techsbcn-storybook 0.8.0 → 0.8.1
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/dist/components/wrappers/MainWrapperComponent/MainWrapperComponent.d.ts +1 -1
- package/dist/techsbcn-storybook.cjs.development.js +10 -5
- package/dist/techsbcn-storybook.cjs.development.js.map +1 -1
- package/dist/techsbcn-storybook.cjs.production.min.js +1 -1
- package/dist/techsbcn-storybook.cjs.production.min.js.map +1 -1
- package/dist/techsbcn-storybook.esm.js +10 -5
- package/dist/techsbcn-storybook.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/wrappers/MainWrapperComponent/MainWrapperComponent.tsx +9 -7
- package/src/stories/MainWrapper/MainWrapper.stories.tsx +30 -0
- package/src/styles/Globals.scss +3 -0
|
@@ -4,7 +4,7 @@ import './MainWrapperComponent.scss';
|
|
|
4
4
|
interface MainWrapperComponentProps {
|
|
5
5
|
loading?: boolean;
|
|
6
6
|
loadingChildren?: boolean;
|
|
7
|
-
headerProps
|
|
7
|
+
headerProps?: SearchComponentProps;
|
|
8
8
|
divider?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export declare const MainWrapperComponent: React.FC<MainWrapperComponentProps>;
|
|
@@ -241,18 +241,23 @@ var MainWrapperComponent = function MainWrapperComponent(props) {
|
|
|
241
241
|
py: 2
|
|
242
242
|
}, props.loading ? React__default.createElement(_.Box, {
|
|
243
243
|
display: "flex",
|
|
244
|
-
|
|
244
|
+
justifyContent: "center",
|
|
245
245
|
px: 2
|
|
246
|
-
}, React__default.createElement(_.CircularProgress,
|
|
247
|
-
|
|
246
|
+
}, React__default.createElement(_.CircularProgress, {
|
|
247
|
+
className: "circular-progress-main-color"
|
|
248
|
+
})) : React__default.createElement(React__default.Fragment, null, React__default.createElement(_.Box, {
|
|
249
|
+
mb: props.divider ? 1 : 0,
|
|
248
250
|
px: 2
|
|
249
251
|
}, React__default.createElement(SearchComponent, Object.assign({}, props.headerProps))), props.divider && React__default.createElement(_.Divider, null), props.children && !props.loadingChildren ? React__default.createElement(_.Box, {
|
|
252
|
+
py: props.headerProps ? 2 : 1,
|
|
250
253
|
px: 2
|
|
251
254
|
}, props.children) : props.loadingChildren ? React__default.createElement(_.Box, {
|
|
252
255
|
display: "flex",
|
|
253
|
-
|
|
256
|
+
justifyContent: "center",
|
|
254
257
|
px: 2
|
|
255
|
-
}, React__default.createElement(_.CircularProgress,
|
|
258
|
+
}, React__default.createElement(_.CircularProgress, {
|
|
259
|
+
className: "circular-progress-main-color"
|
|
260
|
+
})) : React__default.createElement(React__default.Fragment, null)));
|
|
256
261
|
};
|
|
257
262
|
|
|
258
263
|
var css_248z$3 = ".table-component .paper-container {\n box-shadow: none;\n background-color: transparent !important;\n}\n.table-component .paper-container .checkbox-cell .MuiCheckbox-root {\n padding: 0 !important;\n}\n.table-component .paper-container .checkbox-cell .MuiCheckbox-root:hover {\n background-color: transparent !important;\n}\n.table-component .paper-container .checkbox-cell .Mui-checked {\n color: rgba(0, 0, 0, 0.54) !important;\n}\n.table-component .paper-container .checkbox-cell .MuiCheckbox-indeterminate {\n color: #212529 !important;\n}\n.table-component .paper-container .table-container {\n max-height: 68vh;\n border-bottom: 1px solid black;\n}\n.table-component .paper-container .table-container .table-column:first-child {\n border-radius: 5px 0 0 5px;\n}\n.table-component .paper-container .table-container .table-column:last-child {\n border-right: none !important;\n border-radius: 0 5px 5px 0;\n}\n.table-component .paper-container .table-container .table-column {\n font-weight: bold;\n font-size: 1rem !important;\n padding: 10px !important;\n border-top: 1px solid #e0e0e0;\n border-right: 1px solid #e0e0e0;\n border-bottom: 2px solid #e0e0e0;\n}\n.table-component .paper-container .table-container .table-column .table-header-cell {\n color: black;\n padding: 0px 10px 0px 10px !important;\n}\n.table-component .paper-container .table-container .table-rows.row-click {\n cursor: pointer;\n}\n.table-component .paper-container .table-container .table-rows.row-click:hover {\n background-color: rgba(0, 0, 0, 0.04);\n}\n.table-component .paper-container .table-container .table-rows .MuiTableCell-root {\n padding: 6px !important;\n overflow: hidden;\n}\n.table-component .paper-container .table-container .table-rows .img-table {\n width: 100%;\n height: 110px;\n}\n.table-component .paper-container .table-container .table-rows .img-table img {\n object-fit: contain;\n}\n.table-component .paper-container .table-container .table-rows .actions {\n float: right;\n}\n.table-component .paper-container .table-container .table-rows .btn-action {\n color: rgba(0, 0, 0, 0.54);\n display: inline-block;\n text-decoration: none;\n font-size: 1.6em !important;\n padding: 0px 7px;\n cursor: pointer;\n}\n.table-component .paper-container .MuiTable-root.loading {\n opacity: 0.5;\n}\n.table-component .paper-container .MuiTable-root.loading .MuiCircularProgress-root {\n width: 80px !important;\n height: 80px !important;\n position: absolute;\n left: 0;\n right: 0;\n top: 5px;\n margin: auto;\n color: grey;\n}\n.table-component .paper-container .MuiTablePagination-root {\n overflow: unset;\n}\n.table-component .paper-container .MuiTablePagination-root .MuiToolbar-root {\n justify-content: center !important;\n flex-wrap: wrap;\n padding: 0px !important;\n}\n.table-component .paper-container .MuiTablePagination-root .MuiTablePagination-spacer {\n flex: 0 !important;\n}\n.table-component .paper-container .MuiTablePagination-root .pagination .MuiPaginationItem-page {\n border-radius: 0px;\n margin: 1px;\n color: white !important;\n background-color: #3f4d67;\n}\n.table-component .paper-container .MuiTablePagination-root .pagination .MuiPaginationItem-page.Mui-selected {\n background-color: #3299C7;\n}\n.table-component .paper-container .MuiTablePagination-root .pagination li button {\n padding: 14px;\n}\n.table-component .paper-container .MuiTablePagination-root .pagination li:nth-child(2) .MuiPaginationItem-page {\n border-radius: 5px 0 0 5px !important;\n}\n.table-component .paper-container .MuiTablePagination-root .pagination li:nth-last-child(2) .MuiPaginationItem-page {\n border-radius: 0 5px 5px 0 !important;\n}\n@media (max-width: 992px) {\n .table-component .paper-container .table-container {\n max-height: 60vh;\n border-top: 1px solid #cccccc;\n }\n .table-component .paper-container .table-container .MuiTable-root {\n border-collapse: collapse !important;\n }\n .table-component .paper-container .table-container .MuiTableHead-root {\n display: none !important;\n }\n .table-component .paper-container .table-container .table-rows {\n border-bottom: 2px solid #cccccc;\n }\n .table-component .paper-container .table-container .table-rows .MuiTableCell-root {\n width: 100%;\n border-bottom: none !important;\n }\n .table-component .paper-container .table-container .table-rows .MuiTableCell-root .label-cell {\n font-size: 1rem;\n vertical-align: top;\n width: 50%;\n height: auto;\n }\n .table-component .paper-container .table-container .table-rows .MuiTableCell-root .label-cell + div {\n display: inline-block;\n }\n .table-component .paper-container .table-container .table-rows .table-cell {\n display: inline-block !important;\n }\n .table-component .paper-container .table-container .table-rows .format-value {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n width: 50%;\n max-width: 300px;\n }\n}";
|