@iobroker/adapter-react-v5 8.0.8 → 8.0.10
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/README.md +4 -1
- package/build/Components/Icon.d.ts +1 -3
- package/build/Components/Icon.js +11 -11
- package/build/Components/Icon.js.map +1 -1
- package/build/Components/ObjectBrowser.js +3 -3
- package/build/Components/ObjectBrowser.js.map +1 -1
- package/build/Components/TabContent.d.ts +1 -1
- package/build/Components/TabContent.js +3 -3
- package/build/Components/TabContent.js.map +1 -1
- package/package.json +1 -1
|
@@ -7,5 +7,5 @@ interface TabContentProps {
|
|
|
7
7
|
style?: React.CSSProperties;
|
|
8
8
|
ref?: React.RefObject<HTMLDivElement>;
|
|
9
9
|
}
|
|
10
|
-
export declare
|
|
10
|
+
export declare const TabContent: React.ForwardRefExoticComponent<Omit<TabContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
export {};
|
|
@@ -10,11 +10,11 @@ const styles = {
|
|
|
10
10
|
overflow: 'auto',
|
|
11
11
|
},
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export const TabContent = React.forwardRef(function TabContentComponent(props, ref) {
|
|
14
14
|
return (React.createElement(Grid2, { sx: {
|
|
15
15
|
...styles.root,
|
|
16
16
|
...(props?.style || undefined),
|
|
17
17
|
...(props.overflow === 'auto' ? styles.overflowAuto : undefined),
|
|
18
|
-
}, ref:
|
|
19
|
-
}
|
|
18
|
+
}, ref: ref }, props.children));
|
|
19
|
+
});
|
|
20
20
|
//# sourceMappingURL=TabContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabContent.js","sourceRoot":"./src/","sources":["Components/TabContent.tsx"],"names":[],"mappings":"AAAA,uHAAuH;AACvH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"TabContent.js","sourceRoot":"./src/","sources":["Components/TabContent.tsx"],"names":[],"mappings":"AAAA,uHAAuH;AACvH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGtC,MAAM,MAAM,GAAwC;IAChD,IAAI,EAAE;QACF,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,QAAQ;KACrB;IACD,YAAY,EAAE;QACV,QAAQ,EAAE,MAAM;KACnB;CACJ,CAAC;AAUF,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CACtC,SAAS,mBAAmB,CAAC,KAAK,EAAE,GAAG;IACnC,OAAO,CACH,oBAAC,KAAK,IACF,EAAE,EAAE;YACA,GAAG,MAAM,CAAC,IAAI;YACd,GAAG,CAAC,KAAK,EAAE,KAAK,IAAI,SAAS,CAAC;YAC9B,GAAG,CAAC,KAAK,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE,EACD,GAAG,EAAE,GAAG,IAEP,KAAK,CAAC,QAAQ,CACX,CACX,CAAC;AACN,CAAC,CACJ,CAAC","sourcesContent":["// please do not delete React, as without it other projects could not be compiled: ReferenceError: React is not defined\nimport React from 'react';\nimport { Grid2 } from '@mui/material';\nimport { IconProps } from './Icon';\n\nconst styles: Record<string, React.CSSProperties> = {\n root: {\n height: '100%',\n overflow: 'hidden',\n },\n overflowAuto: {\n overflow: 'auto',\n },\n};\n\ninterface TabContentProps {\n /** The content of the component. */\n children: React.JSX.Element | (React.JSX.Element | null | React.JSX.Element[])[];\n /** Overflow behavior */\n overflow?: 'auto';\n style?: React.CSSProperties;\n ref?: React.RefObject<HTMLDivElement>;\n}\nexport const TabContent = React.forwardRef<HTMLDivElement, TabContentProps>(\n function TabContentComponent(props, ref): React.JSX.Element | null {\n return (\n <Grid2\n sx={{\n ...styles.root,\n ...(props?.style || undefined),\n ...(props.overflow === 'auto' ? styles.overflowAuto : undefined),\n }}\n ref={ref}\n >\n {props.children}\n </Grid2>\n );\n },\n);\n"]}
|