@xelto.npm/xc2-lib 0.0.49 → 0.0.50
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 +70 -70
- package/dist/cjs/index.js +209 -25
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/index.d.ts +2 -0
- package/dist/cjs/types/components/modal/ModalComponent.d.ts +4 -0
- package/dist/cjs/types/components/modal/ModalProps.d.ts +12 -0
- package/dist/cjs/types/components/modal/index.d.ts +1 -0
- package/dist/cjs/types/components/moduleTile/ModuleTileComponent.d.ts +4 -0
- package/dist/cjs/types/components/moduleTile/ModuleTileProps.d.ts +7 -0
- package/dist/cjs/types/components/moduleTile/index.d.ts +1 -0
- package/dist/esm/index.js +208 -26
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/index.d.ts +2 -0
- package/dist/esm/types/components/modal/ModalComponent.d.ts +4 -0
- package/dist/esm/types/components/modal/ModalProps.d.ts +12 -0
- package/dist/esm/types/components/modal/index.d.ts +1 -0
- package/dist/esm/types/components/moduleTile/ModuleTileComponent.d.ts +4 -0
- package/dist/esm/types/components/moduleTile/ModuleTileProps.d.ts +7 -0
- package/dist/esm/types/components/moduleTile/index.d.ts +1 -0
- package/dist/index.d.ts +24 -1
- package/package.json +1 -1
|
@@ -14,3 +14,5 @@ export { default as Select } from "./Inputs/select";
|
|
|
14
14
|
export { default as MultiSelect } from "./Inputs/multiselect";
|
|
15
15
|
export { default as TableMobile } from "./tableMobile";
|
|
16
16
|
export { default as SearchBar } from "./searchBar";
|
|
17
|
+
export { default as Modal } from "./modal";
|
|
18
|
+
export { default as ModuleTile } from "./moduleTile";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ChangeEventHandler } from "react";
|
|
2
|
+
export interface ModalProps {
|
|
3
|
+
actionButtonLabel?: string;
|
|
4
|
+
bottomButtonLabel?: string;
|
|
5
|
+
closeButtonLabel?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
type?: string;
|
|
9
|
+
handleCloseModal?: ChangeEventHandler<HTMLTextAreaElement | HTMLInputElement>;
|
|
10
|
+
handleActionButton?: ChangeEventHandler<HTMLTextAreaElement | HTMLInputElement>;
|
|
11
|
+
isModalOpen?: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ModalComponent';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ModuleTileComponent';
|
package/dist/esm/index.js
CHANGED
|
@@ -36339,11 +36339,10 @@ process.env.NODE_ENV !== "production" ? Checkbox$1.propTypes /* remove-proptypes
|
|
|
36339
36339
|
*/
|
|
36340
36340
|
value: propTypes.exports.any
|
|
36341
36341
|
} : void 0;
|
|
36342
|
-
var Checkbox$2 = Checkbox$1;
|
|
36343
36342
|
|
|
36344
36343
|
var Checkbox = /*#__PURE__*/Object.freeze({
|
|
36345
36344
|
__proto__: null,
|
|
36346
|
-
default: Checkbox$
|
|
36345
|
+
default: Checkbox$1,
|
|
36347
36346
|
checkboxClasses: checkboxClasses,
|
|
36348
36347
|
getCheckboxUtilityClass: getCheckboxUtilityClass
|
|
36349
36348
|
});
|
|
@@ -36459,10 +36458,11 @@ process.env.NODE_ENV !== "production" ? FormGroup$1.propTypes /* remove-proptype
|
|
|
36459
36458
|
*/
|
|
36460
36459
|
sx: propTypes.exports.oneOfType([propTypes.exports.arrayOf(propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.object, propTypes.exports.bool])), propTypes.exports.func, propTypes.exports.object])
|
|
36461
36460
|
} : void 0;
|
|
36461
|
+
var FormGroup$2 = FormGroup$1;
|
|
36462
36462
|
|
|
36463
36463
|
var FormGroup = /*#__PURE__*/Object.freeze({
|
|
36464
36464
|
__proto__: null,
|
|
36465
|
-
default: FormGroup$
|
|
36465
|
+
default: FormGroup$2,
|
|
36466
36466
|
formGroupClasses: formGroupClasses,
|
|
36467
36467
|
getFormGroupUtilityClass: getFormGroupUtilityClass
|
|
36468
36468
|
});
|
|
@@ -37041,7 +37041,7 @@ var StyledFormControlLabel = styled(FormControlLabel$1)(function (_a) { return (
|
|
|
37041
37041
|
}
|
|
37042
37042
|
}
|
|
37043
37043
|
}); });
|
|
37044
|
-
var StyledCheckbox$1 = styled(Checkbox$
|
|
37044
|
+
var StyledCheckbox$1 = styled(Checkbox$1)(function () {
|
|
37045
37045
|
return ({
|
|
37046
37046
|
'svg': {
|
|
37047
37047
|
width: 20,
|
|
@@ -37111,7 +37111,7 @@ var StyledCheckbox$1 = styled(Checkbox$2)(function () {
|
|
|
37111
37111
|
});
|
|
37112
37112
|
var CheckboxComponent = function (_a) {
|
|
37113
37113
|
var disabled = _a.disabled, label = _a.label, checked = _a.checked, onChange = _a.onChange, indeterminate = _a.indeterminate, forwardedRef = _a.forwardedRef, props = __rest$1(_a, ["disabled", "label", "checked", "onChange", "indeterminate", "forwardedRef"]);
|
|
37114
|
-
return (jsxRuntime.exports.jsx(FormGroup$
|
|
37114
|
+
return (jsxRuntime.exports.jsx(FormGroup$2, { children: jsxRuntime.exports.jsx(StyledFormControlLabel, __assign({}, props, { ref: forwardedRef, classes: { disabled: 'disabled' }, control: jsxRuntime.exports.jsx(StyledCheckbox$1, { indeterminate: indeterminate, checked: checked, onChange: onChange, disabled: disabled, classes: { disabled: 'disabled' }, icon: jsxRuntime.exports.jsx(Icon$1, { iconName: "icon_checkbox_default", color: disabled ? 'disabled' : 'red-navy', style: { display: 'flex' } }), checkedIcon: jsxRuntime.exports.jsx(Icon$1, { iconName: "icon_checkbox_checked", color: disabled ? 'disabled' : 'red-navy', style: { display: 'flex' } }), indeterminateIcon: jsxRuntime.exports.jsx(Icon$1, { iconName: "icon_checkbox_indeterminate", color: disabled ? 'disabled' : 'red-navy', style: { display: 'flex' } }) }), label: label })) }));
|
|
37115
37115
|
};
|
|
37116
37116
|
|
|
37117
37117
|
function GlobalStyles$2(props) {
|
|
@@ -40355,11 +40355,10 @@ process.env.NODE_ENV !== "production" ? Paper$1.propTypes /* remove-proptypes */
|
|
|
40355
40355
|
*/
|
|
40356
40356
|
variant: propTypes.exports /* @typescript-to-proptypes-ignore */.oneOfType([propTypes.exports.oneOf(['elevation', 'outlined']), propTypes.exports.string])
|
|
40357
40357
|
} : void 0;
|
|
40358
|
-
var Paper$2 = Paper$1;
|
|
40359
40358
|
|
|
40360
40359
|
var Paper = /*#__PURE__*/Object.freeze({
|
|
40361
40360
|
__proto__: null,
|
|
40362
|
-
default: Paper$
|
|
40361
|
+
default: Paper$1,
|
|
40363
40362
|
paperClasses: paperClasses,
|
|
40364
40363
|
getPaperUtilityClass: getPaperUtilityClass
|
|
40365
40364
|
});
|
|
@@ -41334,7 +41333,7 @@ const PopoverRoot = styled(Modal, {
|
|
|
41334
41333
|
slot: 'Root',
|
|
41335
41334
|
overridesResolver: (props, styles) => styles.root
|
|
41336
41335
|
})({});
|
|
41337
|
-
const PopoverPaper = styled(Paper$
|
|
41336
|
+
const PopoverPaper = styled(Paper$1, {
|
|
41338
41337
|
name: 'MuiPopover',
|
|
41339
41338
|
slot: 'Paper',
|
|
41340
41339
|
overridesResolver: (props, styles) => styles.paper
|
|
@@ -41779,7 +41778,7 @@ const MenuRoot = styled(Popover$2, {
|
|
|
41779
41778
|
slot: 'Root',
|
|
41780
41779
|
overridesResolver: (props, styles) => styles.root
|
|
41781
41780
|
})({});
|
|
41782
|
-
const MenuPaper = styled(Paper$
|
|
41781
|
+
const MenuPaper = styled(Paper$1, {
|
|
41783
41782
|
name: 'MuiMenu',
|
|
41784
41783
|
slot: 'Paper',
|
|
41785
41784
|
overridesResolver: (props, styles) => styles.paper
|
|
@@ -53192,7 +53191,7 @@ const useUtilityClasses$1D = ownerState => {
|
|
|
53192
53191
|
};
|
|
53193
53192
|
return composeClasses(slots, getAccordionUtilityClass, classes);
|
|
53194
53193
|
};
|
|
53195
|
-
const AccordionRoot = styled(Paper$
|
|
53194
|
+
const AccordionRoot = styled(Paper$1, {
|
|
53196
53195
|
name: 'MuiAccordion',
|
|
53197
53196
|
slot: 'Root',
|
|
53198
53197
|
overridesResolver: (props, styles) => {
|
|
@@ -53991,7 +53990,7 @@ const useUtilityClasses$1y = ownerState => {
|
|
|
53991
53990
|
};
|
|
53992
53991
|
return composeClasses(slots, getAlertUtilityClass, classes);
|
|
53993
53992
|
};
|
|
53994
|
-
const AlertRoot = styled(Paper$
|
|
53993
|
+
const AlertRoot = styled(Paper$1, {
|
|
53995
53994
|
name: 'MuiAlert',
|
|
53996
53995
|
slot: 'Root',
|
|
53997
53996
|
overridesResolver: (props, styles) => {
|
|
@@ -54369,7 +54368,7 @@ const useUtilityClasses$1w = ownerState => {
|
|
|
54369
54368
|
// var2 is the fallback.
|
|
54370
54369
|
// Ex. var1: 'var(--a)', var2: 'var(--b)'; return: 'var(--a, var(--b))'
|
|
54371
54370
|
const joinVars = (var1, var2) => `${var1 == null ? void 0 : var1.replace(')', '')}, ${var2})`;
|
|
54372
|
-
const AppBarRoot = styled(Paper$
|
|
54371
|
+
const AppBarRoot = styled(Paper$1, {
|
|
54373
54372
|
name: 'MuiAppBar',
|
|
54374
54373
|
slot: 'Root',
|
|
54375
54374
|
overridesResolver: (props, styles) => {
|
|
@@ -55536,7 +55535,7 @@ const AutocompletePopper = styled(Popper, {
|
|
|
55536
55535
|
}, ownerState.disablePortal && {
|
|
55537
55536
|
position: 'absolute'
|
|
55538
55537
|
}));
|
|
55539
|
-
const AutocompletePaper = styled(Paper$
|
|
55538
|
+
const AutocompletePaper = styled(Paper$1, {
|
|
55540
55539
|
name: 'MuiAutocomplete',
|
|
55541
55540
|
slot: 'Paper',
|
|
55542
55541
|
overridesResolver: (props, styles) => styles.paper
|
|
@@ -55694,7 +55693,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
55694
55693
|
noOptionsText = 'No options',
|
|
55695
55694
|
openOnFocus = false,
|
|
55696
55695
|
openText = 'Open',
|
|
55697
|
-
PaperComponent = Paper$
|
|
55696
|
+
PaperComponent = Paper$1,
|
|
55698
55697
|
PopperComponent = Popper,
|
|
55699
55698
|
popupIcon = _ArrowDropDownIcon || (_ArrowDropDownIcon = /*#__PURE__*/jsxRuntime.exports.jsx(ArrowDropDownIcon, {})),
|
|
55700
55699
|
readOnly = false,
|
|
@@ -57911,7 +57910,7 @@ const useUtilityClasses$1l = ownerState => {
|
|
|
57911
57910
|
};
|
|
57912
57911
|
return composeClasses(slots, getCardUtilityClass, classes);
|
|
57913
57912
|
};
|
|
57914
|
-
const CardRoot = styled(Paper$
|
|
57913
|
+
const CardRoot = styled(Paper$1, {
|
|
57915
57914
|
name: 'MuiCard',
|
|
57916
57915
|
slot: 'Root',
|
|
57917
57916
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -58983,7 +58982,7 @@ const DialogContainer = styled('div', {
|
|
|
58983
58982
|
width: '0'
|
|
58984
58983
|
}
|
|
58985
58984
|
}));
|
|
58986
|
-
const DialogPaper = styled(Paper$
|
|
58985
|
+
const DialogPaper = styled(Paper$1, {
|
|
58987
58986
|
name: 'MuiDialog',
|
|
58988
58987
|
slot: 'Paper',
|
|
58989
58988
|
overridesResolver: (props, styles) => {
|
|
@@ -59070,7 +59069,7 @@ const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
|
|
59070
59069
|
onBackdropClick,
|
|
59071
59070
|
onClose,
|
|
59072
59071
|
open,
|
|
59073
|
-
PaperComponent = Paper$
|
|
59072
|
+
PaperComponent = Paper$1,
|
|
59074
59073
|
PaperProps = {},
|
|
59075
59074
|
scroll = 'paper',
|
|
59076
59075
|
TransitionComponent = Fade,
|
|
@@ -60197,7 +60196,7 @@ const DrawerDockedRoot = styled('div', {
|
|
|
60197
60196
|
})({
|
|
60198
60197
|
flex: '0 0 auto'
|
|
60199
60198
|
});
|
|
60200
|
-
const DrawerPaper = styled(Paper$
|
|
60199
|
+
const DrawerPaper = styled(Paper$1, {
|
|
60201
60200
|
name: 'MuiDrawer',
|
|
60202
60201
|
slot: 'Paper',
|
|
60203
60202
|
overridesResolver: (props, styles) => {
|
|
@@ -64383,7 +64382,7 @@ const useUtilityClasses$T = ownerState => {
|
|
|
64383
64382
|
};
|
|
64384
64383
|
return composeClasses(slots, getMobileStepperUtilityClass, classes);
|
|
64385
64384
|
};
|
|
64386
|
-
const MobileStepperRoot = styled(Paper$
|
|
64385
|
+
const MobileStepperRoot = styled(Paper$1, {
|
|
64387
64386
|
name: 'MuiMobileStepper',
|
|
64388
64387
|
slot: 'Root',
|
|
64389
64388
|
overridesResolver: (props, styles) => {
|
|
@@ -65709,7 +65708,7 @@ const RadioGroup = /*#__PURE__*/React.forwardRef(function RadioGroup(props, ref)
|
|
|
65709
65708
|
}), [name, onChange, setValueState, value]);
|
|
65710
65709
|
return /*#__PURE__*/jsxRuntime.exports.jsx(RadioGroupContext.Provider, {
|
|
65711
65710
|
value: contextValue,
|
|
65712
|
-
children: /*#__PURE__*/jsxRuntime.exports.jsx(FormGroup$
|
|
65711
|
+
children: /*#__PURE__*/jsxRuntime.exports.jsx(FormGroup$2, _extends$1c({
|
|
65713
65712
|
role: "radiogroup",
|
|
65714
65713
|
ref: handleRef
|
|
65715
65714
|
}, other, {
|
|
@@ -67469,7 +67468,7 @@ const useUtilityClasses$L = ownerState => {
|
|
|
67469
67468
|
};
|
|
67470
67469
|
return composeClasses(slots, getSnackbarContentUtilityClass, classes);
|
|
67471
67470
|
};
|
|
67472
|
-
const SnackbarContentRoot = styled(Paper$
|
|
67471
|
+
const SnackbarContentRoot = styled(Paper$1, {
|
|
67473
67472
|
name: 'MuiSnackbarContent',
|
|
67474
67473
|
slot: 'Root',
|
|
67475
67474
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -75587,7 +75586,7 @@ const PickersPopperRoot = styled(Popper, {
|
|
|
75587
75586
|
}) => ({
|
|
75588
75587
|
zIndex: theme.zIndex.modal
|
|
75589
75588
|
}));
|
|
75590
|
-
const PickersPopperPaper = styled(Paper$
|
|
75589
|
+
const PickersPopperPaper = styled(Paper$1, {
|
|
75591
75590
|
name: 'MuiPickersPopper',
|
|
75592
75591
|
slot: 'Paper',
|
|
75593
75592
|
overridesResolver: (_, styles) => styles.paper
|
|
@@ -82557,7 +82556,7 @@ var StyledWrapper = styled('div', {
|
|
|
82557
82556
|
},
|
|
82558
82557
|
});
|
|
82559
82558
|
});
|
|
82560
|
-
var StyledPaper$1 = styled(Paper$
|
|
82559
|
+
var StyledPaper$1 = styled(Paper$1)(function (_a) { return ({
|
|
82561
82560
|
border: '2px solid #293072',
|
|
82562
82561
|
borderRadius: '7px !important',
|
|
82563
82562
|
translate: '0 -1.5px',
|
|
@@ -82731,7 +82730,7 @@ var StyledAutocomplete = styled(Autocomplete, {
|
|
|
82731
82730
|
},
|
|
82732
82731
|
});
|
|
82733
82732
|
});
|
|
82734
|
-
var StyledCheckbox = styled(Checkbox$
|
|
82733
|
+
var StyledCheckbox = styled(Checkbox$1)(function () { return ({
|
|
82735
82734
|
'div': {
|
|
82736
82735
|
width: 16,
|
|
82737
82736
|
height: 16,
|
|
@@ -82743,7 +82742,7 @@ var StyledCheckbox = styled(Checkbox$2)(function () { return ({
|
|
|
82743
82742
|
},
|
|
82744
82743
|
},
|
|
82745
82744
|
}); });
|
|
82746
|
-
var StyledPaper = styled(Paper$
|
|
82745
|
+
var StyledPaper = styled(Paper$1)(function () { return ({
|
|
82747
82746
|
border: '2px solid #293072',
|
|
82748
82747
|
borderRadius: '7px !important',
|
|
82749
82748
|
translate: '0 -1.5px',
|
|
@@ -105400,5 +105399,188 @@ var TableMobileComponent = function (_a) {
|
|
|
105400
105399
|
return (jsxRuntime.exports.jsxs(StyledCustomTable, { children: [includeSearch && jsxRuntime.exports.jsx(MUIDataTable, { data: values, columns: columns, options: includeSearchOptions }), !includeSearch && jsxRuntime.exports.jsx(MUIDataTable, { data: values, columns: columns, options: commonOptions })] }));
|
|
105401
105400
|
};
|
|
105402
105401
|
|
|
105403
|
-
|
|
105402
|
+
var StyledModalContainer = styled(Box)(function (_a) {
|
|
105403
|
+
return ({
|
|
105404
|
+
backgroundColor: 'rgba(41, 48, 114, 0.35)',
|
|
105405
|
+
width: '100%',
|
|
105406
|
+
height: '100%',
|
|
105407
|
+
position: 'fixed',
|
|
105408
|
+
top: 0,
|
|
105409
|
+
left: 0,
|
|
105410
|
+
zIndex: 10,
|
|
105411
|
+
'&.hidden': {
|
|
105412
|
+
display: 'none',
|
|
105413
|
+
}
|
|
105414
|
+
});
|
|
105415
|
+
});
|
|
105416
|
+
var StyledModalWrapper = styled(Modal, {
|
|
105417
|
+
shouldForwardProp: function (prop) { return prop !== 'isBottomTextButton'; }
|
|
105418
|
+
})(function (_a) {
|
|
105419
|
+
var isBottomTextButton = _a.isBottomTextButton;
|
|
105420
|
+
return ({
|
|
105421
|
+
'&.MuiModal-root': {
|
|
105422
|
+
boxSizing: 'border-box',
|
|
105423
|
+
borderRadius: '12px',
|
|
105424
|
+
border: 'none',
|
|
105425
|
+
backgroundColor: theme.mainPallete.primary.white,
|
|
105426
|
+
display: 'flex',
|
|
105427
|
+
flexDirection: 'column',
|
|
105428
|
+
justifyContent: 'center',
|
|
105429
|
+
alignItems: 'center',
|
|
105430
|
+
position: 'absolute',
|
|
105431
|
+
padding: '0 25px',
|
|
105432
|
+
top: '50%',
|
|
105433
|
+
left: '50%',
|
|
105434
|
+
transform: 'translate(-50%, -50%)',
|
|
105435
|
+
width: '320px',
|
|
105436
|
+
height: '423px',
|
|
105437
|
+
'@media(min-width: 720px)': {
|
|
105438
|
+
width: '460px',
|
|
105439
|
+
height: '640px',
|
|
105440
|
+
padding: '0 45px',
|
|
105441
|
+
},
|
|
105442
|
+
'@media(min-width: 1024px)': {
|
|
105443
|
+
width: '270px',
|
|
105444
|
+
height: isBottomTextButton ? '402px' : '364px',
|
|
105445
|
+
padding: '0 40px',
|
|
105446
|
+
},
|
|
105447
|
+
'&.scrollable': {
|
|
105448
|
+
width: '394px',
|
|
105449
|
+
height: '586px',
|
|
105450
|
+
'@media(min-width: 720px)': {
|
|
105451
|
+
width: '626px',
|
|
105452
|
+
height: '887px',
|
|
105453
|
+
},
|
|
105454
|
+
'@media(min-width: 1024px)': {
|
|
105455
|
+
width: '367px',
|
|
105456
|
+
height: '482px',
|
|
105457
|
+
},
|
|
105458
|
+
},
|
|
105459
|
+
},
|
|
105460
|
+
'.MuiBackdrop-root': {
|
|
105461
|
+
display: 'none',
|
|
105462
|
+
// opacity: 0,
|
|
105463
|
+
// backgroundColor: 'rgba(41, 48, 114, 0.35)'
|
|
105464
|
+
},
|
|
105465
|
+
'svg': {
|
|
105466
|
+
width: '115px',
|
|
105467
|
+
height: '115px',
|
|
105468
|
+
'@media(min-width: 720px)': {
|
|
105469
|
+
width: '170px',
|
|
105470
|
+
height: '170px',
|
|
105471
|
+
},
|
|
105472
|
+
'@media(min-width: 1024px)': {
|
|
105473
|
+
width: '115px',
|
|
105474
|
+
height: '115px',
|
|
105475
|
+
}
|
|
105476
|
+
}
|
|
105477
|
+
});
|
|
105478
|
+
});
|
|
105479
|
+
var StyledScrollableDescription = styled(Box)(function (_a) {
|
|
105480
|
+
return ({
|
|
105481
|
+
fontSize: '18px',
|
|
105482
|
+
lineHeight: '24px',
|
|
105483
|
+
color: theme.mainPallete.primary.blue,
|
|
105484
|
+
textAlign: 'center',
|
|
105485
|
+
marginBottom: '45px',
|
|
105486
|
+
maxHeight: '200px',
|
|
105487
|
+
overflowY: 'auto',
|
|
105488
|
+
fontFamily: [
|
|
105489
|
+
'"Barlow", sans-serif',
|
|
105490
|
+
],
|
|
105491
|
+
fontWeight: theme.fontWeight.medium,
|
|
105492
|
+
'@media(min-width: 720px)': {
|
|
105493
|
+
fontSize: '32px',
|
|
105494
|
+
lineHeight: '43px',
|
|
105495
|
+
marginBottom: '60px',
|
|
105496
|
+
maxHeight: '318px',
|
|
105497
|
+
},
|
|
105498
|
+
'@media(min-width: 1024px)': {
|
|
105499
|
+
fontSize: '16px',
|
|
105500
|
+
lineHeight: '21px',
|
|
105501
|
+
fontWeight: theme.fontWeight.regular,
|
|
105502
|
+
marginBottom: '20px',
|
|
105503
|
+
maxHeight: '177px',
|
|
105504
|
+
},
|
|
105505
|
+
'&::-webkit-scrollbar': __assign({}, theme.scrollbar),
|
|
105506
|
+
});
|
|
105507
|
+
});
|
|
105508
|
+
var StyledButtonsWrapper = styled(Box)(function (_a) {
|
|
105509
|
+
return ({
|
|
105510
|
+
width: '100%',
|
|
105511
|
+
display: 'flex',
|
|
105512
|
+
justifyContent: 'center',
|
|
105513
|
+
'button:nth-child(2)': {
|
|
105514
|
+
marginLeft: 10
|
|
105515
|
+
}
|
|
105516
|
+
});
|
|
105517
|
+
});
|
|
105518
|
+
var StyledBottomButtonWrapper = styled(Box)(function (_a) {
|
|
105519
|
+
return ({
|
|
105520
|
+
marginTop: '30px',
|
|
105521
|
+
'@media(min-width: 720px)': {
|
|
105522
|
+
marginTop: '45px',
|
|
105523
|
+
},
|
|
105524
|
+
'@media(min-width:1024px)': {
|
|
105525
|
+
marginTop: '25px'
|
|
105526
|
+
}
|
|
105527
|
+
});
|
|
105528
|
+
});
|
|
105529
|
+
var CustomModal = function (_a) {
|
|
105530
|
+
// const [open, setOpen] = React.useState(isModalOpen);
|
|
105531
|
+
// const handleOpen = () => setOpen(true);
|
|
105532
|
+
// const handleClose = () => setOpen(false);
|
|
105533
|
+
var actionButtonLabel = _a.actionButtonLabel, bottomButtonLabel = _a.bottomButtonLabel, closeButtonLabel = _a.closeButtonLabel, description = _a.description, title = _a.title, type = _a.type, handleCloseModal = _a.handleCloseModal, handleActionButton = _a.handleActionButton, isModalOpen = _a.isModalOpen;
|
|
105534
|
+
// const showIcon = (type) => {
|
|
105535
|
+
// if( type==='complete') {
|
|
105536
|
+
// return <Illustration illustrationName={'ilu_status_change'} size='115'/>
|
|
105537
|
+
// } else if (type === 'error') {
|
|
105538
|
+
// return <Illustration illustrationName={'ilu_status_change'} size='big'/>
|
|
105539
|
+
// } else if (type === 'info') {
|
|
105540
|
+
// return <Illustration illustrationName={'ilu_status_change'} size='big'/>
|
|
105541
|
+
// } else return
|
|
105542
|
+
// }
|
|
105543
|
+
var isScrollableTextModal = type === 'text-scroll';
|
|
105544
|
+
var isBottomTextButton = bottomButtonLabel && bottomButtonLabel.length > 0 || false;
|
|
105545
|
+
return (jsxRuntime.exports.jsx(StyledModalContainer, __assign({ className: !isModalOpen ? 'hidden' : '' }, { children: jsxRuntime.exports.jsx(StyledModalWrapper, __assign({ className: isScrollableTextModal ? 'scrollable' : '', onClose: handleCloseModal, isBottomTextButton: isBottomTextButton }, { children: jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, { children: [jsxRuntime.exports.jsx(Illustration, { illustrationName: 'ilu_status_change', size: 'small', color: '', isBigType: false }), jsxRuntime.exports.jsx(TypographyComponent, { text: title, type: 'modal-header' }), type === 'basic' && (jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, { children: [jsxRuntime.exports.jsx(TypographyComponent, { text: description, type: 'modal-description' }), jsxRuntime.exports.jsx(CustomButtonComponent, { fixed: true, onClick: handleCloseModal, type: "primary", text: closeButtonLabel, color: "navy-blue", size: 'small' })] })), isScrollableTextModal && (jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, { children: [jsxRuntime.exports.jsx(StyledScrollableDescription, { children: description }), jsxRuntime.exports.jsxs(StyledButtonsWrapper, { children: [jsxRuntime.exports.jsx(CustomButtonComponent, { fixed: true, onClick: handleActionButton, type: "secondary", text: actionButtonLabel, color: "navy-blue", size: 'small' }), jsxRuntime.exports.jsx(CustomButtonComponent, { fixed: true, onClick: handleCloseModal, type: "primary", text: closeButtonLabel, color: "navy-blue", size: 'small' })] })] })), bottomButtonLabel && !isScrollableTextModal && (jsxRuntime.exports.jsx(StyledBottomButtonWrapper, { children: jsxRuntime.exports.jsx(CustomButtonComponent, { fixed: true, onClick: handleCloseModal, type: "ghost", text: bottomButtonLabel, color: "navy-blue", size: 'small' }) }))] }) })) })));
|
|
105546
|
+
};
|
|
105547
|
+
|
|
105548
|
+
var StyledModuleTileWrapper = styled(Box, {
|
|
105549
|
+
shouldForwardProp: function (prop) { return prop !== 'fluid'; }
|
|
105550
|
+
})(function (_a) {
|
|
105551
|
+
var fluid = _a.fluid;
|
|
105552
|
+
return ({
|
|
105553
|
+
boxSizing: 'border-box',
|
|
105554
|
+
width: fluid ? '100%' : '210px',
|
|
105555
|
+
cursor: 'pointer',
|
|
105556
|
+
minHeight: '240px',
|
|
105557
|
+
padding: '25px 15px 45px 15px',
|
|
105558
|
+
border: "1px solid ".concat(theme.mainPallete.primary.blue),
|
|
105559
|
+
borderRadius: '12px',
|
|
105560
|
+
backgroundColor: theme.mainPallete.primary.white,
|
|
105561
|
+
display: 'flex',
|
|
105562
|
+
flexDirection: 'column',
|
|
105563
|
+
justifyContent: 'flex-start',
|
|
105564
|
+
alignItems: 'center',
|
|
105565
|
+
'@media(min-width:720px)': {
|
|
105566
|
+
width: fluid ? '100%' : '320px',
|
|
105567
|
+
minHeight: '350px',
|
|
105568
|
+
padding: '30px 35px 60px 35px',
|
|
105569
|
+
},
|
|
105570
|
+
'svg': {
|
|
105571
|
+
width: '115px',
|
|
105572
|
+
height: '115px',
|
|
105573
|
+
'@media(min-width: 720px)': {
|
|
105574
|
+
width: '170px',
|
|
105575
|
+
height: '170px'
|
|
105576
|
+
}
|
|
105577
|
+
}
|
|
105578
|
+
});
|
|
105579
|
+
});
|
|
105580
|
+
var ModuleTile = function (_a) {
|
|
105581
|
+
var fluid = _a.fluid, illustrationName = _a.illustrationName, header = _a.header, onClick = _a.onClick;
|
|
105582
|
+
return (jsxRuntime.exports.jsxs(StyledModuleTileWrapper, __assign({ fluid: fluid, onClick: onClick }, { children: [jsxRuntime.exports.jsx(Illustration, { illustrationName: illustrationName, color: '', size: '', isBigType: false }), jsxRuntime.exports.jsx(TypographyComponent, { text: header, type: 'module-tile-header' })] })));
|
|
105583
|
+
};
|
|
105584
|
+
|
|
105585
|
+
export { AppTileComponent as AppTile, BottomBarComponent as BottomBar, BottomInfoBar, CustomButtonComponent as Button, CheckboxComponent as Checkbox, DatePicker, Icon$1 as Icon, IconButtonComponent as IconButton, Illustration, Logo, CustomModal as Modal, ModuleTile, MultiSelect, SearchBarComponent as SearchBar, Select, TableMobileComponent as TableMobile, TextField, TypographyComponent as Typography };
|
|
105404
105586
|
//# sourceMappingURL=index.js.map
|