techsbcn-storybook 0.11.0 → 0.12.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/fields/ButtonComponent/ButtonComponent.d.ts +1 -0
- package/dist/components/fields/TextFieldComponent/TextFieldComponent.d.ts +1 -1
- package/dist/components/tables/SimpleTableComponent/SimpleTableComponent.d.ts +68 -0
- package/dist/components/tables/TableComponent/TableComponent.d.ts +11 -0
- package/dist/data/UserList.d.ts +1 -1
- package/dist/interfaces/search/BasicEntity.d.ts +2 -2
- package/dist/stories/Tables/Tables.stories.d.ts +2 -1
- package/dist/stories/button/Button.stories.d.ts +1 -0
- package/dist/techsbcn-storybook.cjs.development.js +119 -84
- 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 +120 -85
- package/dist/techsbcn-storybook.esm.js.map +1 -1
- package/package.json +2 -1
- package/src/components/fields/ButtonComponent/ButtonComponent.tsx +6 -0
- package/src/components/fields/TextFieldComponent/TextFieldComponent.tsx +1 -1
- package/src/components/tables/SimpleTableComponent/SimpleTableComponent.scss +131 -0
- package/src/components/tables/SimpleTableComponent/SimpleTableComponent.tsx +408 -0
- package/src/components/tables/TableComponent/TableComponent.tsx +47 -4
- package/src/data/UserList.tsx +3 -3
- package/src/interfaces/search/BasicEntity.tsx +2 -2
- package/src/stories/Tables/Tables.stories.tsx +71 -1
- package/src/stories/button/Button.stories.tsx +9 -0
|
@@ -24,7 +24,7 @@ interface TextFieldComponentProps {
|
|
|
24
24
|
multiline?: boolean;
|
|
25
25
|
rows?: number;
|
|
26
26
|
maxLength?: number;
|
|
27
|
-
defaultValue?: string;
|
|
27
|
+
defaultValue?: string | number;
|
|
28
28
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
29
29
|
onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
30
30
|
step?: number | string;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ObjectKey } from '../../../interfaces';
|
|
3
|
+
import './SimpleTableComponent.scss';
|
|
4
|
+
import { InputType } from '../../fields/TextFieldComponent/TextFieldComponent';
|
|
5
|
+
interface SimpleTableComponentProps {
|
|
6
|
+
rows: any[];
|
|
7
|
+
values: ObjectKey;
|
|
8
|
+
className?: string;
|
|
9
|
+
columns: ColumnProps[];
|
|
10
|
+
rowsColorColumn?: {
|
|
11
|
+
columnName: string;
|
|
12
|
+
columnValue: string;
|
|
13
|
+
};
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
onClickRow?: (id: number) => void;
|
|
16
|
+
isCheckTable?: {
|
|
17
|
+
rowsChecked?: number[];
|
|
18
|
+
onCheckedAction?: (ids: number[]) => void;
|
|
19
|
+
onCheckedSingleAction?: (id: number) => void;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
interface ColumnProps {
|
|
23
|
+
id?: string;
|
|
24
|
+
label?: string;
|
|
25
|
+
minWidth?: number;
|
|
26
|
+
maxWidth?: number;
|
|
27
|
+
align?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
|
|
28
|
+
alignCell?: 'inherit' | 'left' | 'center' | 'right' | 'justify';
|
|
29
|
+
action?: ActionProps[];
|
|
30
|
+
isUnique?: boolean;
|
|
31
|
+
isDate?: boolean;
|
|
32
|
+
enumColumn?: {
|
|
33
|
+
isEnum?: boolean;
|
|
34
|
+
enumType?: any;
|
|
35
|
+
hasColor?: boolean;
|
|
36
|
+
};
|
|
37
|
+
isCheck?: boolean;
|
|
38
|
+
isPrice?: boolean;
|
|
39
|
+
isImage?: {
|
|
40
|
+
isUrl?: boolean;
|
|
41
|
+
isGuid?: {
|
|
42
|
+
guid: boolean;
|
|
43
|
+
action: (guid: string) => string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
isActiveFunction?: {
|
|
47
|
+
activeIcon: any;
|
|
48
|
+
disabledIcon: any;
|
|
49
|
+
onClickId: (id: number) => void;
|
|
50
|
+
};
|
|
51
|
+
isEditableTableCell?: EditableCellProps;
|
|
52
|
+
}
|
|
53
|
+
interface ActionProps {
|
|
54
|
+
children: React.ReactNode;
|
|
55
|
+
onClick?: (row: any) => void;
|
|
56
|
+
onClickId?: (id: number) => void;
|
|
57
|
+
}
|
|
58
|
+
interface EditableCellProps {
|
|
59
|
+
isTextField?: {
|
|
60
|
+
type?: InputType;
|
|
61
|
+
onCellValueChange: (data: any) => void;
|
|
62
|
+
};
|
|
63
|
+
isSelectField?: {
|
|
64
|
+
onCellValueChange: (data: any) => void;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
export declare const SimpleTableComponent: React.FunctionComponent<SimpleTableComponentProps>;
|
|
68
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SearchFilters, ObjectKey } from '../../../interfaces';
|
|
3
3
|
import './TableComponent.scss';
|
|
4
|
+
import { InputType } from '../../fields/TextFieldComponent/TextFieldComponent';
|
|
4
5
|
interface TableComponentProps {
|
|
5
6
|
rows: any[];
|
|
6
7
|
values: ObjectKey;
|
|
@@ -50,11 +51,21 @@ interface ColumnProps {
|
|
|
50
51
|
disabledIcon: any;
|
|
51
52
|
onClickId: (id: number) => void;
|
|
52
53
|
};
|
|
54
|
+
isEditableTableCell?: EditableCellProps;
|
|
53
55
|
}
|
|
54
56
|
interface ActionProps {
|
|
55
57
|
children: React.ReactNode;
|
|
56
58
|
onClick?: (row: any) => void;
|
|
57
59
|
onClickId?: (id: number) => void;
|
|
58
60
|
}
|
|
61
|
+
interface EditableCellProps {
|
|
62
|
+
isTextField?: {
|
|
63
|
+
type?: InputType;
|
|
64
|
+
onCellValueChange: (data: any) => void;
|
|
65
|
+
};
|
|
66
|
+
isSelectField?: {
|
|
67
|
+
onCellValueChange: (data: any) => void;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
59
70
|
export declare const TableComponent: React.FunctionComponent<TableComponentProps>;
|
|
60
71
|
export {};
|
package/dist/data/UserList.d.ts
CHANGED
|
@@ -7,3 +7,4 @@ export declare const ModalCancel: Story<import("@storybook/react").Args>;
|
|
|
7
7
|
export declare const Loading: Story<import("@storybook/react").Args>;
|
|
8
8
|
export declare const StartIcon: Story<import("@storybook/react").Args>;
|
|
9
9
|
export declare const EndIcon: Story<import("@storybook/react").Args>;
|
|
10
|
+
export declare const Span: Story<import("@storybook/react").Args>;
|
|
@@ -9,6 +9,7 @@ var React__default = _interopDefault(React);
|
|
|
9
9
|
var material = require('@mui/material');
|
|
10
10
|
var _ = require('@mui/material/');
|
|
11
11
|
var iconsMaterial = require('@mui/icons-material');
|
|
12
|
+
var lodash = require('lodash');
|
|
12
13
|
var reactRouterDom = require('react-router-dom');
|
|
13
14
|
var MenuIcon = _interopDefault(require('@mui/icons-material/Menu'));
|
|
14
15
|
var Select = _interopDefault(require('react-select'));
|
|
@@ -275,6 +276,71 @@ var MainWrapperComponent = function MainWrapperComponent(props) {
|
|
|
275
276
|
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}";
|
|
276
277
|
styleInject(css_248z$3);
|
|
277
278
|
|
|
279
|
+
var css_248z$4 = ".text-field-component .MuiFormLabel-root {\n color: #666666 !important;\n font-size: calc(12pt + (14 - 12) * calc(100vw - 300px)/1300) !important;\n transform: translate(0, 0.5px) scale(0.85);\n transform-origin: top left;\n text-overflow: initial !important;\n}\n.text-field-component .MuiFormLabel-root + .MuiInputBase-formControl {\n margin-top: 25px !important;\n}\n.text-field-component .MuiInputBase-root.no-border {\n border: none !important;\n padding: 0 !important;\n width: fit-content !important;\n}\n.text-field-component .MuiInputBase-root {\n color: #666666 !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 #3299C7;\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 color: #666666;\n}";
|
|
280
|
+
styleInject(css_248z$4);
|
|
281
|
+
|
|
282
|
+
var TextFieldComponent = function TextFieldComponent(props) {
|
|
283
|
+
var _React$useState = React__default.useState(false),
|
|
284
|
+
hover = _React$useState[0],
|
|
285
|
+
setHover = _React$useState[1];
|
|
286
|
+
|
|
287
|
+
return React__default.createElement(_.Box, {
|
|
288
|
+
className: "text-field-component",
|
|
289
|
+
width: "100%"
|
|
290
|
+
}, React__default.createElement(_.TextField, {
|
|
291
|
+
onMouseEnter: function onMouseEnter() {
|
|
292
|
+
return setHover(true);
|
|
293
|
+
},
|
|
294
|
+
onMouseLeave: function onMouseLeave() {
|
|
295
|
+
return setHover(false);
|
|
296
|
+
},
|
|
297
|
+
name: props.name,
|
|
298
|
+
error: props.error,
|
|
299
|
+
id: props.id,
|
|
300
|
+
label: props.label,
|
|
301
|
+
value: props.value,
|
|
302
|
+
defaultValue: props.defaultValue,
|
|
303
|
+
className: props.className,
|
|
304
|
+
required: props.required,
|
|
305
|
+
disabled: props.disabled,
|
|
306
|
+
type: props.type,
|
|
307
|
+
placeholder: props.placeholder,
|
|
308
|
+
autoComplete: props.autoComplete,
|
|
309
|
+
variant: "standard",
|
|
310
|
+
ref: props.inputRef,
|
|
311
|
+
InputProps: {
|
|
312
|
+
className: (props.noBorders ? 'no-border' : '') + " " + (!props.disabled && hover ? 'main-border-color' : ''),
|
|
313
|
+
disableUnderline: true,
|
|
314
|
+
startAdornment: props.startIcon,
|
|
315
|
+
endAdornment: props.endIcon,
|
|
316
|
+
inputProps: {
|
|
317
|
+
max: props.maxNumber,
|
|
318
|
+
min: props.minNumber,
|
|
319
|
+
step: props.step
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
InputLabelProps: {
|
|
323
|
+
shrink: true
|
|
324
|
+
},
|
|
325
|
+
helperText: props.helperText,
|
|
326
|
+
fullWidth: props.fullWidth,
|
|
327
|
+
multiline: props.multiline,
|
|
328
|
+
rows: props.rows,
|
|
329
|
+
onChange: props.onChange,
|
|
330
|
+
onKeyUp: props.onKeyUp,
|
|
331
|
+
inputProps: {
|
|
332
|
+
maxLength: props.maxLength,
|
|
333
|
+
step: props.step,
|
|
334
|
+
max: props.maxNumber,
|
|
335
|
+
min: props.minNumber
|
|
336
|
+
}
|
|
337
|
+
}));
|
|
338
|
+
};
|
|
339
|
+
TextFieldComponent.defaultProps = {
|
|
340
|
+
fullWidth: true,
|
|
341
|
+
type: 'text'
|
|
342
|
+
};
|
|
343
|
+
|
|
278
344
|
var TableComponent = function TableComponent(props) {
|
|
279
345
|
var _props$isCheckTable7, _props$isCheckTable8, _props$isCheckTable9;
|
|
280
346
|
|
|
@@ -402,16 +468,46 @@ var TableComponent = function TableComponent(props) {
|
|
|
402
468
|
for (var i = 0, n = a.length; i < n; ++i) {
|
|
403
469
|
var k = a[i];
|
|
404
470
|
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
471
|
+
try {
|
|
472
|
+
if (k in o) {
|
|
473
|
+
o = o[k];
|
|
474
|
+
} else {
|
|
475
|
+
return undefined;
|
|
476
|
+
}
|
|
477
|
+
} catch (_error) {
|
|
478
|
+
return undefined;
|
|
409
479
|
}
|
|
410
480
|
}
|
|
411
481
|
|
|
412
482
|
return o;
|
|
413
483
|
};
|
|
414
484
|
|
|
485
|
+
var EditableTableCell = function EditableTableCell(row, value, fieldName, editableCell) {
|
|
486
|
+
var rowEdit = JSON.parse(JSON.stringify(row));
|
|
487
|
+
|
|
488
|
+
if (editableCell.isTextField) {
|
|
489
|
+
var setUpdate = lodash.debounce(function () {
|
|
490
|
+
var _editableCell$isTextF, _editableCell$isTextF2;
|
|
491
|
+
|
|
492
|
+
((_editableCell$isTextF = editableCell.isTextField) == null ? void 0 : _editableCell$isTextF.onCellValueChange) && ((_editableCell$isTextF2 = editableCell.isTextField) == null ? void 0 : _editableCell$isTextF2.onCellValueChange(rowEdit));
|
|
493
|
+
}, 1000);
|
|
494
|
+
|
|
495
|
+
var handleTextFieldChange = function handleTextFieldChange(e) {
|
|
496
|
+
rowEdit[fieldName] = e.target.value;
|
|
497
|
+
setUpdate();
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
return React__default.createElement(TextFieldComponent, {
|
|
501
|
+
type: editableCell.isTextField.type,
|
|
502
|
+
onChange: handleTextFieldChange,
|
|
503
|
+
name: fieldName,
|
|
504
|
+
defaultValue: value
|
|
505
|
+
});
|
|
506
|
+
} else {
|
|
507
|
+
return value;
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
|
|
415
511
|
return React__default.createElement(_.Box, {
|
|
416
512
|
className: "table-component"
|
|
417
513
|
}, React__default.createElement(_.Paper, {
|
|
@@ -542,7 +638,7 @@ var TableComponent = function TableComponent(props) {
|
|
|
542
638
|
onChange: function onChange(event) {
|
|
543
639
|
return onCheckAction(event, row.id);
|
|
544
640
|
}
|
|
545
|
-
})) : React__default.createElement(_.Box, {
|
|
641
|
+
})) : column.isEditableTableCell ? EditableTableCell(row, value, column.id, column.isEditableTableCell) : React__default.createElement(_.Box, {
|
|
546
642
|
className: ((_column$enumColumn5 = column.enumColumn) != null && _column$enumColumn5.hasColor ? value.toLowerCase() + "-type-color" : '') + " format-value"
|
|
547
643
|
}, formatValue(value, column)));
|
|
548
644
|
}));
|
|
@@ -588,8 +684,8 @@ TableComponent.defaultProps = {
|
|
|
588
684
|
showTotalCount: true
|
|
589
685
|
};
|
|
590
686
|
|
|
591
|
-
var css_248z$
|
|
592
|
-
styleInject(css_248z$
|
|
687
|
+
var css_248z$5 = ".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}";
|
|
688
|
+
styleInject(css_248z$5);
|
|
593
689
|
|
|
594
690
|
var MainLayoutSimple = function MainLayoutSimple(props) {
|
|
595
691
|
return React__default.createElement(_.Box, {
|
|
@@ -755,8 +851,8 @@ var VerticalNavItemCollapse = function VerticalNavItemCollapse(props) {
|
|
|
755
851
|
|
|
756
852
|
var VerticalNavItemCollapse$1 = /*#__PURE__*/React__default.memo(VerticalNavItemCollapse);
|
|
757
853
|
|
|
758
|
-
var css_248z$
|
|
759
|
-
styleInject(css_248z$
|
|
854
|
+
var css_248z$6 = ".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: #3299C7;\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}";
|
|
855
|
+
styleInject(css_248z$6);
|
|
760
856
|
|
|
761
857
|
(function (NavigationType) {
|
|
762
858
|
NavigationType[NavigationType["Item"] = 0] = "Item";
|
|
@@ -786,8 +882,8 @@ var VerticalNav = function VerticalNav(props) {
|
|
|
786
882
|
}));
|
|
787
883
|
};
|
|
788
884
|
|
|
789
|
-
var css_248z$
|
|
790
|
-
styleInject(css_248z$
|
|
885
|
+
var css_248z$7 = ".user-info svg {\n font-size: 28px !important;\n}";
|
|
886
|
+
styleInject(css_248z$7);
|
|
791
887
|
|
|
792
888
|
var UserInfo = function UserInfo(props) {
|
|
793
889
|
var _React$useState = React__default.useState(null),
|
|
@@ -839,8 +935,8 @@ var UserInfo = function UserInfo(props) {
|
|
|
839
935
|
}))))));
|
|
840
936
|
};
|
|
841
937
|
|
|
842
|
-
var css_248z$
|
|
843
|
-
styleInject(css_248z$
|
|
938
|
+
var css_248z$8 = ".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}";
|
|
939
|
+
styleInject(css_248z$8);
|
|
844
940
|
|
|
845
941
|
var AppSidebar = function AppSidebar(props) {
|
|
846
942
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(material.Drawer, {
|
|
@@ -897,8 +993,8 @@ var AppSidebar = function AppSidebar(props) {
|
|
|
897
993
|
}, props.footerComponents))))));
|
|
898
994
|
};
|
|
899
995
|
|
|
900
|
-
var css_248z$
|
|
901
|
-
styleInject(css_248z$
|
|
996
|
+
var css_248z$9 = ".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}";
|
|
997
|
+
styleInject(css_248z$9);
|
|
902
998
|
|
|
903
999
|
var DrawerSidebar = function DrawerSidebar(props) {
|
|
904
1000
|
return React__default.createElement(material.Drawer, {
|
|
@@ -924,8 +1020,8 @@ var DrawerSidebar = function DrawerSidebar(props) {
|
|
|
924
1020
|
}, props.footerComponents))));
|
|
925
1021
|
};
|
|
926
1022
|
|
|
927
|
-
var css_248z$
|
|
928
|
-
styleInject(css_248z$
|
|
1023
|
+
var css_248z$a = ".app-bar {\n background-color: white !important;\n border-bottom: 1px solid rgba(0, 0, 0, 0.12);\n color: black !important;\n}\n.app-bar .header-logo {\n max-height: 59px;\n height: 100%;\n min-height: 56px;\n width: 100%;\n}\n.app-bar img {\n max-height: 59px;\n height: 100%;\n min-height: 56px;\n width: 100%;\n}";
|
|
1024
|
+
styleInject(css_248z$a);
|
|
929
1025
|
|
|
930
1026
|
var AppHeader = function AppHeader(props) {
|
|
931
1027
|
return React__default.createElement(material.AppBar, {
|
|
@@ -947,8 +1043,8 @@ var AppHeader = function AppHeader(props) {
|
|
|
947
1043
|
}, React__default.createElement(MenuIcon, null)), props.children));
|
|
948
1044
|
};
|
|
949
1045
|
|
|
950
|
-
var css_248z$
|
|
951
|
-
styleInject(css_248z$
|
|
1046
|
+
var css_248z$b = ".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 font-size: 1rem !important;\n background-color: #3299C7;\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}\n.MuiButton-root .MuiButton-startIcon svg {\n font-size: 20px !important;\n}\n.MuiButton-root .MuiButton-endIcon svg {\n font-size: 20px !important;\n}";
|
|
1047
|
+
styleInject(css_248z$b);
|
|
952
1048
|
|
|
953
1049
|
var ButtonComponent = function ButtonComponent(props) {
|
|
954
1050
|
return React__default.createElement(_.Button, {
|
|
@@ -959,75 +1055,14 @@ var ButtonComponent = function ButtonComponent(props) {
|
|
|
959
1055
|
startIcon: !props.loading && props.startIcon,
|
|
960
1056
|
endIcon: !props.loading && props.endIcon,
|
|
961
1057
|
onClick: props.onClick,
|
|
962
|
-
disabled: !props.loading && props.disabled
|
|
1058
|
+
disabled: !props.loading && props.disabled,
|
|
1059
|
+
component: props.component
|
|
963
1060
|
}, props.loading ? React__default.createElement(_.CircularProgress, {
|
|
964
1061
|
size: 25
|
|
965
1062
|
}) : props.label);
|
|
966
1063
|
};
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
styleInject(css_248z$b);
|
|
970
|
-
|
|
971
|
-
var TextFieldComponent = function TextFieldComponent(props) {
|
|
972
|
-
var _React$useState = React__default.useState(false),
|
|
973
|
-
hover = _React$useState[0],
|
|
974
|
-
setHover = _React$useState[1];
|
|
975
|
-
|
|
976
|
-
return React__default.createElement(_.Box, {
|
|
977
|
-
className: "text-field-component",
|
|
978
|
-
width: "100%"
|
|
979
|
-
}, React__default.createElement(_.TextField, {
|
|
980
|
-
onMouseEnter: function onMouseEnter() {
|
|
981
|
-
return setHover(true);
|
|
982
|
-
},
|
|
983
|
-
onMouseLeave: function onMouseLeave() {
|
|
984
|
-
return setHover(false);
|
|
985
|
-
},
|
|
986
|
-
name: props.name,
|
|
987
|
-
error: props.error,
|
|
988
|
-
id: props.id,
|
|
989
|
-
label: props.label,
|
|
990
|
-
value: props.value,
|
|
991
|
-
defaultValue: props.defaultValue,
|
|
992
|
-
className: props.className,
|
|
993
|
-
required: props.required,
|
|
994
|
-
disabled: props.disabled,
|
|
995
|
-
type: props.type,
|
|
996
|
-
placeholder: props.placeholder,
|
|
997
|
-
autoComplete: props.autoComplete,
|
|
998
|
-
variant: "standard",
|
|
999
|
-
ref: props.inputRef,
|
|
1000
|
-
InputProps: {
|
|
1001
|
-
className: (props.noBorders ? 'no-border' : '') + " " + (!props.disabled && hover ? 'main-border-color' : ''),
|
|
1002
|
-
disableUnderline: true,
|
|
1003
|
-
startAdornment: props.startIcon,
|
|
1004
|
-
endAdornment: props.endIcon,
|
|
1005
|
-
inputProps: {
|
|
1006
|
-
max: props.maxNumber,
|
|
1007
|
-
min: props.minNumber,
|
|
1008
|
-
step: props.step
|
|
1009
|
-
}
|
|
1010
|
-
},
|
|
1011
|
-
InputLabelProps: {
|
|
1012
|
-
shrink: true
|
|
1013
|
-
},
|
|
1014
|
-
helperText: props.helperText,
|
|
1015
|
-
fullWidth: props.fullWidth,
|
|
1016
|
-
multiline: props.multiline,
|
|
1017
|
-
rows: props.rows,
|
|
1018
|
-
onChange: props.onChange,
|
|
1019
|
-
onKeyUp: props.onKeyUp,
|
|
1020
|
-
inputProps: {
|
|
1021
|
-
maxLength: props.maxLength,
|
|
1022
|
-
step: props.step,
|
|
1023
|
-
max: props.maxNumber,
|
|
1024
|
-
min: props.minNumber
|
|
1025
|
-
}
|
|
1026
|
-
}));
|
|
1027
|
-
};
|
|
1028
|
-
TextFieldComponent.defaultProps = {
|
|
1029
|
-
fullWidth: true,
|
|
1030
|
-
type: 'text'
|
|
1064
|
+
ButtonComponent.defaultProps = {
|
|
1065
|
+
component: 'button'
|
|
1031
1066
|
};
|
|
1032
1067
|
|
|
1033
1068
|
var css_248z$c = ".text-simple-component .MuiFormLabel-root {\n color: #666666 !important;\n font-size: calc(12pt + (14 - 12) * calc(100vw - 300px)/1300) !important;\n transform: translate(0, 0.5px) scale(0.85);\n transform-origin: top left;\n text-overflow: initial !important;\n}\n.text-simple-component .MuiFormLabel-root + .text-simple-box.no-border {\n margin-top: 7px !important;\n}\n.text-simple-component .text-simple-box.no-border {\n border: none !important;\n padding: 0 !important;\n}\n.text-simple-component .text-simple-box {\n color: #666666 !important;\n font-size: 1rem;\n border: 1px solid grey;\n padding: 0.868rem;\n border-radius: 3px !important;\n}\n.text-simple-component .helper-text {\n font-size: 0.85rem !important;\n padding: 0 !important;\n margin-top: 3px;\n line-height: 1.66;\n color: #666666 !important;\n letter-spacing: 0.03333em;\n}\n.text-simple-component .has-error-border {\n border-color: #F24726 !important;\n}\n.text-simple-component .has-error {\n color: #F24726 !important;\n}";
|