techsbcn-storybook 0.5.0 → 0.6.0
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/layouts/DrawerLayout/DrawerSidebar/DrawerSidebar.d.ts +2 -0
- package/dist/components/layouts/Standard/AppSidebar/AppSidebar.d.ts +2 -0
- package/dist/components/tables/{SearchComponent.d.ts → SearchComponent/SearchComponent.d.ts} +4 -3
- package/dist/components/wrappers/MainWrapperComponent/MainWrapperComponent.d.ts +10 -0
- package/dist/index.d.ts +2 -0
- package/dist/stories/MainWrapper/MainWrapper.stories.d.ts +4 -0
- package/dist/techsbcn-storybook.cjs.development.js +249 -20
- 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 +251 -24
- package/dist/techsbcn-storybook.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/layouts/DrawerLayout/DrawerSidebar/DrawerSidebar.tsx +15 -1
- package/src/components/layouts/Standard/AppHeader/AppHeader.tsx +1 -1
- package/src/components/layouts/Standard/AppSidebar/AppSidebar.tsx +28 -2
- package/src/components/navigation/VerticalNav/VerticalNav.scss +2 -2
- package/src/components/navigation/VerticalNav/VerticalNavItem.tsx +8 -3
- package/src/components/tables/SearchComponent/SearchComponent.scss +46 -0
- package/src/components/tables/{SearchComponent.tsx → SearchComponent/SearchComponent.tsx} +23 -16
- package/src/components/wrappers/MainWrapperComponent/MainWrapperComponent.scss +33 -0
- package/src/components/wrappers/MainWrapperComponent/MainWrapperComponent.tsx +30 -0
- package/src/index.tsx +2 -0
- package/src/stories/Layouts/MainLayoutSimple.stories.tsx +5 -4
- package/src/stories/MainWrapper/MainWrapper.stories.tsx +55 -0
- package/src/styles/Globals.scss +6 -1
package/dist/components/tables/{SearchComponent.d.ts → SearchComponent/SearchComponent.d.ts}
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import './SearchComponent.scss';
|
|
3
|
+
export interface SearchComponentProps {
|
|
3
4
|
className?: string;
|
|
4
5
|
title?: string;
|
|
5
6
|
searchBar?: React.ReactNode;
|
|
@@ -17,5 +18,5 @@ interface DoubleFilter {
|
|
|
17
18
|
secondFilter: any;
|
|
18
19
|
}
|
|
19
20
|
declare const DoubleFilter: (filters: DoubleFilter) => JSX.Element;
|
|
20
|
-
declare const SearchComponent: React.FC<SearchComponentProps>;
|
|
21
|
-
export
|
|
21
|
+
export declare const SearchComponent: React.FC<SearchComponentProps>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SearchComponentProps } from '../../tables/SearchComponent/SearchComponent';
|
|
3
|
+
import './MainWrapperComponent.scss';
|
|
4
|
+
interface MainWrapperComponentProps {
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
headerProps: SearchComponentProps;
|
|
7
|
+
divider?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const MainWrapperComponent: React.FC<MainWrapperComponentProps>;
|
|
10
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from './components/wrappers/PublicFormWrapper/PublicFormWrapper';
|
|
2
|
+
export * from './components/wrappers/MainWrapperComponent/MainWrapperComponent';
|
|
3
|
+
export * from './components/tables/SearchComponent/SearchComponent';
|
|
2
4
|
export * from './components/layouts/MainLayoutSimple/MainLayoutSimple';
|
|
3
5
|
export * from './components/navigation/VerticalNav/VerticalNav';
|
|
4
6
|
export * from './components/layouts/Standard/AppSidebar/AppSidebar';
|
|
@@ -8,8 +8,8 @@ var React = require('react');
|
|
|
8
8
|
var React__default = _interopDefault(React);
|
|
9
9
|
var material = require('@mui/material');
|
|
10
10
|
var _ = require('@mui/material/');
|
|
11
|
-
var reactRouterDom = require('react-router-dom');
|
|
12
11
|
var iconsMaterial = require('@mui/icons-material');
|
|
12
|
+
var reactRouterDom = require('react-router-dom');
|
|
13
13
|
var MenuIcon = _interopDefault(require('@mui/icons-material/Menu'));
|
|
14
14
|
var yup = require('yup');
|
|
15
15
|
var reactHookForm = require('react-hook-form');
|
|
@@ -60,9 +60,198 @@ var PublicFormWrapper = function PublicFormWrapper(props) {
|
|
|
60
60
|
}, props.children)));
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
var css_248z$1 = ".
|
|
63
|
+
var css_248z$1 = ".search-component .title {\n color: #000;\n font-size: calc(21px + (23 - 21) * calc(100vw - 300px)/1300) !important;\n font-weight: 400;\n position: relative;\n}\n.search-component .tune-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 50px;\n cursor: pointer;\n color: white;\n}\n.search-component .tune-btn:hover {\n box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12) !important;\n}\n.search-component .wrapper-actions .btn-action {\n cursor: pointer;\n}\n.search-component .wrapper-actions .btn-action .btn {\n width: max-content;\n}\n.search-component .wrapper-actions .btn-action svg {\n font-size: 40px !important;\n}\n\n.search-menu-actions .wrapper-actions .btn-action {\n cursor: pointer;\n}\n.search-menu-actions .wrapper-actions .btn-action .btn {\n width: max-content;\n}\n.search-menu-actions .wrapper-actions .btn-action svg {\n font-size: 40px !important;\n}";
|
|
64
64
|
styleInject(css_248z$1);
|
|
65
65
|
|
|
66
|
+
var ActionsList = function ActionsList(actions) {
|
|
67
|
+
return React__default.createElement(material.Box, {
|
|
68
|
+
ml: "auto",
|
|
69
|
+
justifyContent: "start",
|
|
70
|
+
display: "flex",
|
|
71
|
+
alignItems: "center",
|
|
72
|
+
flexDirection: "row"
|
|
73
|
+
}, actions && actions.map(function (action, i) {
|
|
74
|
+
return React__default.createElement(material.Box, {
|
|
75
|
+
ml: 2,
|
|
76
|
+
key: i,
|
|
77
|
+
className: "btn-action main-color"
|
|
78
|
+
}, action.children);
|
|
79
|
+
}));
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
var DoubleFilter = function DoubleFilter(filters) {
|
|
83
|
+
return React__default.createElement(material.Grid, {
|
|
84
|
+
container: true,
|
|
85
|
+
alignItems: "center",
|
|
86
|
+
spacing: 1
|
|
87
|
+
}, filters.label && React__default.createElement(material.Grid, {
|
|
88
|
+
item: true,
|
|
89
|
+
xs: 12,
|
|
90
|
+
md: 3
|
|
91
|
+
}, React__default.createElement(material.Box, null, filters.label)), React__default.createElement(material.Grid, {
|
|
92
|
+
item: true,
|
|
93
|
+
xs: 12,
|
|
94
|
+
md: filters.label ? 9 : 12
|
|
95
|
+
}, React__default.createElement(material.Grid, {
|
|
96
|
+
container: true,
|
|
97
|
+
spacing: 1
|
|
98
|
+
}, React__default.createElement(material.Grid, {
|
|
99
|
+
item: true,
|
|
100
|
+
xs: 6
|
|
101
|
+
}, filters.firstFilter), React__default.createElement(material.Grid, {
|
|
102
|
+
item: true,
|
|
103
|
+
xs: 6
|
|
104
|
+
}, filters.secondFilter))));
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
var SearchComponent = function SearchComponent(props) {
|
|
108
|
+
var _useState = React.useState(false),
|
|
109
|
+
isOpen = _useState[0],
|
|
110
|
+
setIsOpen = _useState[1];
|
|
111
|
+
|
|
112
|
+
var _useState2 = React.useState(null),
|
|
113
|
+
anchorEl = _useState2[0],
|
|
114
|
+
setAnchorEl = _useState2[1];
|
|
115
|
+
|
|
116
|
+
var open = Boolean(anchorEl);
|
|
117
|
+
|
|
118
|
+
var handleClick = function handleClick(event) {
|
|
119
|
+
setAnchorEl(event.currentTarget);
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
var handleClose = function handleClose() {
|
|
123
|
+
setAnchorEl(null);
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
var randId = Math.random().toString(36).substring(7);
|
|
127
|
+
return React__default.createElement(material.Box, {
|
|
128
|
+
className: "search-component " + props.className
|
|
129
|
+
}, React__default.createElement(material.Grid, {
|
|
130
|
+
container: true,
|
|
131
|
+
spacing: 2,
|
|
132
|
+
alignItems: "center"
|
|
133
|
+
}, React__default.createElement(material.Grid, {
|
|
134
|
+
item: true,
|
|
135
|
+
xs: 4
|
|
136
|
+
}, React__default.createElement(material.Box, {
|
|
137
|
+
pl: 1,
|
|
138
|
+
className: "title main-background-color-after"
|
|
139
|
+
}, props.title)), props.actions && React__default.createElement(material.Grid, {
|
|
140
|
+
item: true,
|
|
141
|
+
xs: 8,
|
|
142
|
+
sx: {
|
|
143
|
+
display: {
|
|
144
|
+
xs: 'block',
|
|
145
|
+
md: 'none'
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}, React__default.createElement(material.Box, {
|
|
149
|
+
sx: {
|
|
150
|
+
display: {
|
|
151
|
+
xs: 'none',
|
|
152
|
+
sm: 'flex'
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}, ActionsList(props.actions)), React__default.createElement(material.Box, {
|
|
156
|
+
sx: {
|
|
157
|
+
display: {
|
|
158
|
+
xs: 'flex',
|
|
159
|
+
sm: 'none'
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}, props.actions.length > 1 ? React__default.createElement(material.Box, {
|
|
163
|
+
ml: "auto"
|
|
164
|
+
}, React__default.createElement(material.IconButton, {
|
|
165
|
+
"aria-label": "more",
|
|
166
|
+
id: "long-button-" + randId,
|
|
167
|
+
"aria-controls": "long-button-" + randId,
|
|
168
|
+
"aria-expanded": open ? 'true' : undefined,
|
|
169
|
+
"aria-haspopup": "true",
|
|
170
|
+
onClick: handleClick
|
|
171
|
+
}, React__default.createElement(iconsMaterial.MoreVert, null)), React__default.createElement(material.Menu, {
|
|
172
|
+
id: "long-button-" + randId,
|
|
173
|
+
MenuListProps: {
|
|
174
|
+
'aria-labelledby': "long-button-" + randId
|
|
175
|
+
},
|
|
176
|
+
anchorEl: anchorEl,
|
|
177
|
+
open: open,
|
|
178
|
+
onClose: handleClose,
|
|
179
|
+
className: "search-menu-actions"
|
|
180
|
+
}, props.actions.map(function (action, i) {
|
|
181
|
+
return React__default.createElement(material.MenuItem, {
|
|
182
|
+
key: i,
|
|
183
|
+
className: "wrapper-actions"
|
|
184
|
+
}, React__default.createElement(material.Box, {
|
|
185
|
+
className: "btn-action main-color"
|
|
186
|
+
}, action.children));
|
|
187
|
+
}))) : React__default.createElement(material.Box, {
|
|
188
|
+
ml: "auto",
|
|
189
|
+
className: "wrapper-actions"
|
|
190
|
+
}, ActionsList(props.actions)))), React__default.createElement(material.Grid, {
|
|
191
|
+
item: true,
|
|
192
|
+
xs: 12,
|
|
193
|
+
md: props.actions ? 8 : 7
|
|
194
|
+
}, React__default.createElement(material.Box, {
|
|
195
|
+
display: "flex",
|
|
196
|
+
alignItems: "center"
|
|
197
|
+
}, React__default.createElement(material.Box, {
|
|
198
|
+
ml: "auto",
|
|
199
|
+
display: "flex",
|
|
200
|
+
width: "100%"
|
|
201
|
+
}, props.searchBar, props.filters && React__default.createElement(material.Box, {
|
|
202
|
+
onClick: function onClick() {
|
|
203
|
+
return setIsOpen(!isOpen);
|
|
204
|
+
},
|
|
205
|
+
className: "tune-btn main-background-color"
|
|
206
|
+
}, React__default.createElement(iconsMaterial.Tune, null))), props.actions && React__default.createElement(material.Box, {
|
|
207
|
+
sx: {
|
|
208
|
+
display: {
|
|
209
|
+
xs: 'none',
|
|
210
|
+
md: 'block'
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
className: "wrapper-actions"
|
|
214
|
+
}, ActionsList(props.actions))))), React__default.createElement(material.Collapse, {
|
|
215
|
+
"in": isOpen
|
|
216
|
+
}, React__default.createElement(material.Box, {
|
|
217
|
+
className: "filters",
|
|
218
|
+
my: 2
|
|
219
|
+
}, React__default.createElement(material.Grid, {
|
|
220
|
+
container: true,
|
|
221
|
+
spacing: 3
|
|
222
|
+
}, props.filters && props.filters.map(function (filter, i) {
|
|
223
|
+
return React__default.createElement(material.Grid, {
|
|
224
|
+
item: true,
|
|
225
|
+
key: i,
|
|
226
|
+
xs: 12,
|
|
227
|
+
sm: 6,
|
|
228
|
+
xl: 4
|
|
229
|
+
}, filter.doubleFilter ? DoubleFilter(filter.doubleFilter) : filter.singleFilter);
|
|
230
|
+
})))));
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
var css_248z$2 = ".main-wrapper-component {\n background-color: white;\n box-shadow: 0 1px 20px 0 rgba(69, 90, 100, 0.08);\n}\n.main-wrapper-component .title {\n color: #000;\n font-size: calc(21px + (23 - 21) * calc(100vw - 300px)/1300) !important;\n font-weight: 400;\n position: relative;\n}\n.main-wrapper-component .title:after {\n content: \"\";\n position: absolute;\n left: -17px;\n top: 0;\n width: 4px;\n height: 30px;\n}\n.main-wrapper-component .wrapper-actions .btn-action {\n cursor: pointer;\n}\n.main-wrapper-component .wrapper-actions .btn-action .MuiButton-root {\n width: max-content;\n}\n.main-wrapper-component .wrapper-actions .btn-action svg {\n font-size: 40px !important;\n}";
|
|
234
|
+
styleInject(css_248z$2);
|
|
235
|
+
|
|
236
|
+
var MainWrapperComponent = function MainWrapperComponent(props) {
|
|
237
|
+
return React__default.createElement(_.Box, {
|
|
238
|
+
className: "main-wrapper-component",
|
|
239
|
+
py: 2
|
|
240
|
+
}, React__default.createElement(_.Box, {
|
|
241
|
+
mb: 1,
|
|
242
|
+
px: 2
|
|
243
|
+
}, React__default.createElement(SearchComponent, Object.assign({}, props.headerProps))), props.divider && React__default.createElement(_.Divider, null), props.children && !props.loading ? React__default.createElement(_.Box, {
|
|
244
|
+
px: 2
|
|
245
|
+
}, props.children) : props.loading ? React__default.createElement(_.Box, {
|
|
246
|
+
display: "flex",
|
|
247
|
+
alignItems: "center",
|
|
248
|
+
px: 2
|
|
249
|
+
}, React__default.createElement(_.CircularProgress, null)) : React__default.createElement(React__default.Fragment, null));
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
var css_248z$3 = ".main-layout-simple {\n width: 100%;\n}\n.main-layout-simple .main-wrapper {\n width: 100%;\n min-height: 100vh;\n height: fit-content;\n position: relative;\n}";
|
|
253
|
+
styleInject(css_248z$3);
|
|
254
|
+
|
|
66
255
|
var MainLayoutSimple = function MainLayoutSimple(props) {
|
|
67
256
|
return React__default.createElement(_.Box, {
|
|
68
257
|
display: "flex",
|
|
@@ -105,12 +294,14 @@ var VerticalNavItem = function VerticalNavItem(props) {
|
|
|
105
294
|
|
|
106
295
|
return React__default.createElement(reactRouterDom.NavLink, {
|
|
107
296
|
to: props.item.route || '',
|
|
108
|
-
className: "nav-link-item"
|
|
297
|
+
className: "nav-link-item " + (reactRouterDom.matchPath({
|
|
298
|
+
path: props.item.route + "/*" || ''
|
|
299
|
+
}, pathname) ? 'active' : ''),
|
|
109
300
|
onClick: props.onHide
|
|
110
301
|
}, React__default.createElement(material.Box, {
|
|
111
302
|
p: 2,
|
|
112
303
|
className: "nav-item " + (reactRouterDom.matchPath({
|
|
113
|
-
path: props.item.route || ''
|
|
304
|
+
path: props.item.route + "/*" || ''
|
|
114
305
|
}, pathname) ? 'main-background-color' : '')
|
|
115
306
|
}, React__default.createElement(material.Box, {
|
|
116
307
|
className: "nav-item-text"
|
|
@@ -213,8 +404,8 @@ var VerticalNavItemCollapse = function VerticalNavItemCollapse(props) {
|
|
|
213
404
|
|
|
214
405
|
var VerticalNavItemCollapse$1 = /*#__PURE__*/React__default.memo(VerticalNavItemCollapse);
|
|
215
406
|
|
|
216
|
-
var css_248z$
|
|
217
|
-
styleInject(css_248z$
|
|
407
|
+
var css_248z$4 = ".vertical-navigation {\n background: transparent;\n color: white;\n}\n.vertical-navigation .nav-item {\n cursor: pointer;\n}\n.vertical-navigation .nav-item svg {\n font-size: 28px;\n}\n.vertical-navigation .nav-item {\n padding: 12px;\n}\n.vertical-navigation .nav-item:hover {\n background-color: #333f54;\n}\n.vertical-navigation .active .nav-item {\n background-color: #04a9f5;\n border-radius: 0 25px 25px 0;\n margin-right: 16px;\n}\n.vertical-navigation .active .nav-item .nav-item-text {\n color: white !important;\n}\n.vertical-navigation .active .nav-item:hover {\n color: white !important;\n}\n.vertical-navigation .active .nav-item:hover .nav-item-text {\n color: white !important;\n}\n.vertical-navigation .nav-item-collapse .active {\n background-color: #333f54;\n}\n.vertical-navigation .nav-item-collapse .active .nav-item-text {\n color: white !important;\n}\n.vertical-navigation .nav-item-collapse .active:hover {\n color: white !important;\n}\n.vertical-navigation .nav-item-collapse .active:hover .nav-item-text {\n color: white !important;\n}\n.vertical-navigation .nav-item-collapse .open {\n background-color: #333f54;\n color: white !important;\n}\n.vertical-navigation .nav-item-collapse .open .nav-item-text {\n color: white !important;\n}\n.vertical-navigation .nav-item-collapse .collapse-children {\n background-color: #39465e;\n}\n.vertical-navigation .nav-item-collapse .collapse-children .nav-item-text {\n padding-left: 16px;\n padding-right: 16px;\n}";
|
|
408
|
+
styleInject(css_248z$4);
|
|
218
409
|
|
|
219
410
|
(function (NavigationType) {
|
|
220
411
|
NavigationType[NavigationType["Item"] = 0] = "Item";
|
|
@@ -244,8 +435,8 @@ var VerticalNav = function VerticalNav(props) {
|
|
|
244
435
|
}));
|
|
245
436
|
};
|
|
246
437
|
|
|
247
|
-
var css_248z$
|
|
248
|
-
styleInject(css_248z$
|
|
438
|
+
var css_248z$5 = ".app-sidebar {\n width: 17rem;\n background-color: #3f4d67;\n box-shadow: 1px 0 20px 0 #3f4d67;\n z-index: 1029;\n color: white;\n}";
|
|
439
|
+
styleInject(css_248z$5);
|
|
249
440
|
|
|
250
441
|
var AppSidebar = function AppSidebar(props) {
|
|
251
442
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(material.Drawer, {
|
|
@@ -262,7 +453,19 @@ var AppSidebar = function AppSidebar(props) {
|
|
|
262
453
|
}, React__default.createElement(material.Box, {
|
|
263
454
|
height: "100%",
|
|
264
455
|
className: "app-sidebar"
|
|
265
|
-
},
|
|
456
|
+
}, React__default.createElement(material.Box, {
|
|
457
|
+
display: "flex",
|
|
458
|
+
flexDirection: "column",
|
|
459
|
+
height: "100vh"
|
|
460
|
+
}, props.headerComponents && React__default.createElement(material.Box, {
|
|
461
|
+
p: 2,
|
|
462
|
+
flexShrink: 0
|
|
463
|
+
}, props.headerComponents), React__default.createElement(material.Box, {
|
|
464
|
+
overflow: "auto"
|
|
465
|
+
}, props.children), props.footerComponents && React__default.createElement(material.Box, {
|
|
466
|
+
mt: "auto",
|
|
467
|
+
flexShrink: 0
|
|
468
|
+
}, props.footerComponents)))), React__default.createElement(material.Box, {
|
|
266
469
|
sx: {
|
|
267
470
|
display: {
|
|
268
471
|
xs: 'none',
|
|
@@ -275,11 +478,23 @@ var AppSidebar = function AppSidebar(props) {
|
|
|
275
478
|
}, React__default.createElement(material.Box, {
|
|
276
479
|
position: "sticky",
|
|
277
480
|
top: "0"
|
|
278
|
-
},
|
|
481
|
+
}, React__default.createElement(material.Box, {
|
|
482
|
+
display: "flex",
|
|
483
|
+
flexDirection: "column",
|
|
484
|
+
height: "100vh"
|
|
485
|
+
}, props.headerComponents && React__default.createElement(material.Box, {
|
|
486
|
+
p: 2,
|
|
487
|
+
flexShrink: 0
|
|
488
|
+
}, props.headerComponents), React__default.createElement(material.Box, {
|
|
489
|
+
overflow: "auto"
|
|
490
|
+
}, props.children), props.footerComponents && React__default.createElement(material.Box, {
|
|
491
|
+
mt: "auto",
|
|
492
|
+
flexShrink: 0
|
|
493
|
+
}, props.footerComponents))))));
|
|
279
494
|
};
|
|
280
495
|
|
|
281
|
-
var css_248z$
|
|
282
|
-
styleInject(css_248z$
|
|
496
|
+
var css_248z$6 = ".drawer-sidebar {\n width: 17rem;\n background-color: #3f4d67;\n box-shadow: 1px 0 20px 0 #3f4d67;\n z-index: 1029;\n color: white;\n}";
|
|
497
|
+
styleInject(css_248z$6);
|
|
283
498
|
|
|
284
499
|
var DrawerSidebar = function DrawerSidebar(props) {
|
|
285
500
|
return React__default.createElement(material.Drawer, {
|
|
@@ -290,16 +505,28 @@ var DrawerSidebar = function DrawerSidebar(props) {
|
|
|
290
505
|
}, React__default.createElement(material.Box, {
|
|
291
506
|
height: "100%",
|
|
292
507
|
className: "drawer-sidebar"
|
|
293
|
-
},
|
|
508
|
+
}, React__default.createElement(material.Box, {
|
|
509
|
+
display: "flex",
|
|
510
|
+
flexDirection: "column",
|
|
511
|
+
height: "100vh"
|
|
512
|
+
}, props.headerComponents && React__default.createElement(material.Box, {
|
|
513
|
+
p: 2,
|
|
514
|
+
flexShrink: 0
|
|
515
|
+
}, props.headerComponents), React__default.createElement(material.Box, {
|
|
516
|
+
overflow: "auto"
|
|
517
|
+
}, props.children), props.footerComponents && React__default.createElement(material.Box, {
|
|
518
|
+
mt: "auto",
|
|
519
|
+
flexShrink: 0
|
|
520
|
+
}, props.footerComponents))));
|
|
294
521
|
};
|
|
295
522
|
|
|
296
|
-
var css_248z$
|
|
297
|
-
styleInject(css_248z$
|
|
523
|
+
var css_248z$7 = ".app-bar {\n background-color: white !important;\n border-bottom: 1px solid rgba(0, 0, 0, 0.12);\n color: black !important;\n}";
|
|
524
|
+
styleInject(css_248z$7);
|
|
298
525
|
|
|
299
526
|
var AppHeader = function AppHeader(props) {
|
|
300
527
|
return React__default.createElement(material.AppBar, {
|
|
301
528
|
position: "sticky",
|
|
302
|
-
className: "app-bar main-
|
|
529
|
+
className: "app-bar main-background-body"
|
|
303
530
|
}, React__default.createElement(material.Toolbar, {
|
|
304
531
|
className: "app-toolbar"
|
|
305
532
|
}, React__default.createElement(material.IconButton, {
|
|
@@ -316,8 +543,8 @@ var AppHeader = function AppHeader(props) {
|
|
|
316
543
|
}, React__default.createElement(MenuIcon, null)), props.children));
|
|
317
544
|
};
|
|
318
545
|
|
|
319
|
-
var css_248z$
|
|
320
|
-
styleInject(css_248z$
|
|
546
|
+
var css_248z$8 = ".MuiButton-root {\n width: auto;\n padding: 0.8rem 1rem !important;\n text-transform: inherit !important;\n line-height: inherit !important;\n box-shadow: none !important;\n}\n.MuiButton-root.btn-login {\n width: 100%;\n}\n.MuiButton-root.btn-modal-cancel {\n background-color: #666666 !important;\n}\n.MuiButton-root.btn-modal-cancel.Mui-disabled {\n background-color: #666666c4 !important;\n color: #030303b4 !important;\n}\n.MuiButton-root:hover {\n box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12) !important;\n}\n.MuiButton-root .MuiCircularProgress-root {\n color: white !important;\n}\n.MuiButton-root .MuiButton-label .MuiCircularProgress-root {\n color: white !important;\n}";
|
|
547
|
+
styleInject(css_248z$8);
|
|
321
548
|
|
|
322
549
|
var ButtonComponent = function ButtonComponent(props) {
|
|
323
550
|
return React__default.createElement(_.Button, {
|
|
@@ -334,8 +561,8 @@ var ButtonComponent = function ButtonComponent(props) {
|
|
|
334
561
|
}) : props.label);
|
|
335
562
|
};
|
|
336
563
|
|
|
337
|
-
var css_248z$
|
|
338
|
-
styleInject(css_248z$
|
|
564
|
+
var css_248z$9 = ".text-field-component .MuiFormLabel-root + .MuiInputBase-formControl {\n margin-top: 22px !important;\n}\n.text-field-component .MuiInputBase-root {\n color: grey !important;\n border: 1px solid grey;\n padding: 0.43rem 0.87rem;\n background-color: white !important;\n border-radius: 3px !important;\n}\n.text-field-component .MuiInputBase-root.Mui-error {\n border: 1px solid #F24726 !important;\n}\n.text-field-component .MuiInputBase-root:not(.Mui-disabled):hover {\n border: 1px solid grey;\n}\n.text-field-component .MuiInputBase-root.Mui-focused {\n border: 1px solid grey;\n}\n.text-field-component .MuiInputBase-root .MuiInputBase-input {\n color: #666666 !important;\n background-color: white !important;\n}\n.text-field-component .MuiInputBase-root .MuiInputBase-input::placeholder {\n text-overflow: ellipsis !important;\n color: #666666 !important;\n opacity: 1;\n}\n.text-field-component .MuiInputBase-root .Mui-disabled {\n -webkit-text-fill-color: #666666 !important;\n}\n.text-field-component .MuiFormHelperText-root {\n padding: 0 !important;\n font-size: 0.85rem !important;\n}";
|
|
565
|
+
styleInject(css_248z$9);
|
|
339
566
|
|
|
340
567
|
var TextFieldComponent = function TextFieldComponent(props) {
|
|
341
568
|
return React__default.createElement(_.Box, {
|
|
@@ -706,9 +933,11 @@ exports.ChangePasswordForm = ChangePasswordForm;
|
|
|
706
933
|
exports.DrawerSidebar = DrawerSidebar;
|
|
707
934
|
exports.LoginForm = LoginForm;
|
|
708
935
|
exports.MainLayoutSimple = MainLayoutSimple;
|
|
936
|
+
exports.MainWrapperComponent = MainWrapperComponent;
|
|
709
937
|
exports.ModalComponent = ModalComponent;
|
|
710
938
|
exports.PublicFormWrapper = PublicFormWrapper;
|
|
711
939
|
exports.ResetPasswordForm = ResetPasswordForm;
|
|
940
|
+
exports.SearchComponent = SearchComponent;
|
|
712
941
|
exports.TextFieldComponent = TextFieldComponent;
|
|
713
942
|
exports.VerticalNav = VerticalNav;
|
|
714
943
|
//# sourceMappingURL=techsbcn-storybook.cjs.development.js.map
|