@xelto.npm/xc2-lib 0.0.72 → 0.0.73
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/index.cjs.js +132 -73
- package/dist/index.esm.js +132 -73
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -52618,9 +52618,11 @@ var AppTileComponent = function AppTileComponent(_ref3) {
|
|
|
52618
52618
|
_ref3$illustrationNam = _ref3.illustrationName,
|
|
52619
52619
|
illustrationName = _ref3$illustrationNam === void 0 ? 'ilu_availability_by_item' : _ref3$illustrationNam,
|
|
52620
52620
|
_ref3$forwardedRef = _ref3.forwardedRef,
|
|
52621
|
-
forwardedRef = _ref3$forwardedRef === void 0 ? function () {} : _ref3$forwardedRef
|
|
52621
|
+
forwardedRef = _ref3$forwardedRef === void 0 ? function () {} : _ref3$forwardedRef,
|
|
52622
|
+
onClick = _ref3.onClick;
|
|
52622
52623
|
return /*#__PURE__*/React.createElement(StyledAppTileWrapper, {
|
|
52623
|
-
ref: forwardedRef
|
|
52624
|
+
ref: forwardedRef,
|
|
52625
|
+
onClick: onClick
|
|
52624
52626
|
}, /*#__PURE__*/React.createElement(Illustration, {
|
|
52625
52627
|
illustrationName: illustrationName,
|
|
52626
52628
|
color: '',
|
|
@@ -52638,7 +52640,7 @@ var AppTileComponent = function AppTileComponent(_ref3) {
|
|
|
52638
52640
|
};
|
|
52639
52641
|
AppTileComponent.propTypes = {
|
|
52640
52642
|
description: propTypes.exports.string,
|
|
52641
|
-
header: propTypes.exports.
|
|
52643
|
+
header: propTypes.exports.string,
|
|
52642
52644
|
illustrationName: propTypes.exports.string,
|
|
52643
52645
|
onClick: propTypes.exports.func,
|
|
52644
52646
|
forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
|
|
@@ -52651,18 +52653,14 @@ var CustomButton = styled$1(Button$2)(function (_ref) {
|
|
|
52651
52653
|
var fluid = _ref.fluid;
|
|
52652
52654
|
return {
|
|
52653
52655
|
width: fluid ? '100%' : 'auto',
|
|
52654
|
-
// fontSize: '16px',
|
|
52655
|
-
// lineHeight: '15px',
|
|
52656
52656
|
borderRadius: '24px',
|
|
52657
52657
|
fontWeight: 'bold',
|
|
52658
52658
|
boxShadow: 'none',
|
|
52659
|
-
// padding: props => props.size === 'big' ? '34px 60px' : '4px 24px',
|
|
52660
52659
|
border: '2px solid #293072',
|
|
52661
52660
|
backgroundColor: theme.mainPallete.primary.white,
|
|
52662
52661
|
color: theme.mainPallete.primary.blue,
|
|
52663
52662
|
textTransform: 'uppercase',
|
|
52664
52663
|
fontFamily: ['"Barlow", sans-serif'],
|
|
52665
|
-
// backgroundColor: theme.mainPallete.primary.red,
|
|
52666
52664
|
'&:hover': {
|
|
52667
52665
|
boxShadow: 'none'
|
|
52668
52666
|
},
|
|
@@ -52832,7 +52830,6 @@ var CustomButton = styled$1(Button$2)(function (_ref) {
|
|
|
52832
52830
|
},
|
|
52833
52831
|
'&.big': {
|
|
52834
52832
|
padding: '21px',
|
|
52835
|
-
//PADDDINGi DO USTALENIA
|
|
52836
52833
|
fontSize: '16px',
|
|
52837
52834
|
lineHeight: '15px',
|
|
52838
52835
|
borderRadius: '31px',
|
|
@@ -52852,7 +52849,6 @@ var CustomButton = styled$1(Button$2)(function (_ref) {
|
|
|
52852
52849
|
},
|
|
52853
52850
|
'&.small': {
|
|
52854
52851
|
padding: '14px 21px',
|
|
52855
|
-
//PADDDINGi DO USTALENIA
|
|
52856
52852
|
fontSize: '16px',
|
|
52857
52853
|
lineHeight: '15px',
|
|
52858
52854
|
borderRadius: '24px',
|
|
@@ -52872,8 +52868,6 @@ var CustomButton = styled$1(Button$2)(function (_ref) {
|
|
|
52872
52868
|
}
|
|
52873
52869
|
};
|
|
52874
52870
|
});
|
|
52875
|
-
|
|
52876
|
-
// @ts-ignore
|
|
52877
52871
|
var CustomButtonComponent = function CustomButtonComponent(_ref2) {
|
|
52878
52872
|
var type = _ref2.type,
|
|
52879
52873
|
text = _ref2.text,
|
|
@@ -52887,7 +52881,6 @@ var CustomButtonComponent = function CustomButtonComponent(_ref2) {
|
|
|
52887
52881
|
var colorClassName = disabled ? 'grey' : color ? color : 'navy-blue'; // navy-blue / red / black / grey / special-green
|
|
52888
52882
|
var typeClassName = type || 'primary'; // primary / secondary / ghost
|
|
52889
52883
|
var sizeClassName = size || 'big'; // null / big / small
|
|
52890
|
-
// const behaviourClassName = behaviour || '';
|
|
52891
52884
|
var finalClassName = "".concat(typeClassName, " ").concat(colorClassName, " ").concat(sizeClassName);
|
|
52892
52885
|
return /*#__PURE__*/React__namespace.createElement(CustomButton, _extends$1e({
|
|
52893
52886
|
disabled: disabled,
|
|
@@ -52899,8 +52892,20 @@ var CustomButtonComponent = function CustomButtonComponent(_ref2) {
|
|
|
52899
52892
|
ref: forwardedRef
|
|
52900
52893
|
}, props), text);
|
|
52901
52894
|
};
|
|
52895
|
+
CustomButtonComponent.propTypes = {
|
|
52896
|
+
color: propTypes.exports.string,
|
|
52897
|
+
disabled: propTypes.exports.bool,
|
|
52898
|
+
fluid: propTypes.exports.bool,
|
|
52899
|
+
forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
|
|
52900
|
+
current: propTypes.exports.any
|
|
52901
|
+
})]),
|
|
52902
|
+
onClick: propTypes.exports.func,
|
|
52903
|
+
size: propTypes.exports.string,
|
|
52904
|
+
type: propTypes.exports.string,
|
|
52905
|
+
text: propTypes.exports.string
|
|
52906
|
+
};
|
|
52902
52907
|
|
|
52903
|
-
var _excluded$7 = ["
|
|
52908
|
+
var _excluded$7 = ["color", "disabled", "fluid", "forwardedRef", "icon", "onClick", "text", "type"];
|
|
52904
52909
|
var CustomIconButton = styled$1(Button$2)(function (_ref) {
|
|
52905
52910
|
var fluid = _ref.fluid;
|
|
52906
52911
|
return {
|
|
@@ -52912,7 +52917,6 @@ var CustomIconButton = styled$1(Button$2)(function (_ref) {
|
|
|
52912
52917
|
textTransform: 'uppercase',
|
|
52913
52918
|
fontFamily: ['"Barlow", sans-serif'],
|
|
52914
52919
|
padding: '4px 25px 4px 21px',
|
|
52915
|
-
//PADDDINGi DO USTALENIA
|
|
52916
52920
|
fontSize: '16px',
|
|
52917
52921
|
lineHeight: '15px',
|
|
52918
52922
|
'@media(min-width: 1024px)': {
|
|
@@ -52921,7 +52925,6 @@ var CustomIconButton = styled$1(Button$2)(function (_ref) {
|
|
|
52921
52925
|
lineHeight: '16px',
|
|
52922
52926
|
borderRadius: '24px'
|
|
52923
52927
|
},
|
|
52924
|
-
// backgroundColor: theme.mainPallete.primary.red,
|
|
52925
52928
|
'&:hover': {
|
|
52926
52929
|
boxShadow: 'none',
|
|
52927
52930
|
'img': {
|
|
@@ -53094,23 +53097,22 @@ var CustomIconButton = styled$1(Button$2)(function (_ref) {
|
|
|
53094
53097
|
};
|
|
53095
53098
|
});
|
|
53096
53099
|
var IconButtonComponent = function IconButtonComponent(_ref2) {
|
|
53097
|
-
var
|
|
53098
|
-
|
|
53099
|
-
icon = _ref2.icon,
|
|
53100
|
-
color = _ref2.color,
|
|
53100
|
+
var color = _ref2.color,
|
|
53101
|
+
disabled = _ref2.disabled,
|
|
53101
53102
|
fluid = _ref2.fluid,
|
|
53102
|
-
onClick = _ref2.onClick,
|
|
53103
53103
|
forwardedRef = _ref2.forwardedRef,
|
|
53104
|
+
_ref2$icon = _ref2.icon,
|
|
53105
|
+
icon = _ref2$icon === void 0 ? 'icon_wf_download' : _ref2$icon,
|
|
53106
|
+
onClick = _ref2.onClick,
|
|
53107
|
+
text = _ref2.text,
|
|
53108
|
+
type = _ref2.type,
|
|
53104
53109
|
props = _objectWithoutProperties$1(_ref2, _excluded$7);
|
|
53105
|
-
var colorClassName = color || '';
|
|
53106
|
-
var typeClassName = type || '';
|
|
53107
|
-
// const resolutionClassName = resolution === '480x800' ? 'regular' : resolution === '720x1280' ? 'big' :resolution === '1024x768/1440x960/1920x1080' ? 'small' : ''
|
|
53108
|
-
// const widthClassName = width === '100%' ? 'width100' : width === '50%' ? 'width50' : width === '33%' ? 'width33' : '';
|
|
53110
|
+
var colorClassName = color || 'navy-blue';
|
|
53111
|
+
var typeClassName = type || 'primary';
|
|
53109
53112
|
var finalClassName = "".concat(typeClassName, " ").concat(colorClassName);
|
|
53110
|
-
// const iconVariant = icon === 'download' ? IconDownloadGrey : IconDownloadWhite;
|
|
53111
|
-
// const iconVariant = `${type} ${icon} ${colorClassName}`;
|
|
53112
53113
|
return /*#__PURE__*/React__namespace.createElement(CustomIconButton, _extends$1e({}, props, {
|
|
53113
53114
|
onClick: onClick,
|
|
53115
|
+
disabled: disabled,
|
|
53114
53116
|
fluid: fluid,
|
|
53115
53117
|
ref: forwardedRef,
|
|
53116
53118
|
startIcon: /*#__PURE__*/React__namespace.createElement(Icon, {
|
|
@@ -53122,6 +53124,19 @@ var IconButtonComponent = function IconButtonComponent(_ref2) {
|
|
|
53122
53124
|
disableRipple: true
|
|
53123
53125
|
}), text);
|
|
53124
53126
|
};
|
|
53127
|
+
IconButtonComponent.propTypes = {
|
|
53128
|
+
color: propTypes.exports.string,
|
|
53129
|
+
disabled: propTypes.exports.bool,
|
|
53130
|
+
icon: propTypes.exports.string,
|
|
53131
|
+
fluid: propTypes.exports.bool,
|
|
53132
|
+
forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
|
|
53133
|
+
current: propTypes.exports.any
|
|
53134
|
+
})]),
|
|
53135
|
+
onClick: propTypes.exports.func,
|
|
53136
|
+
size: propTypes.exports.string,
|
|
53137
|
+
type: propTypes.exports.string,
|
|
53138
|
+
text: propTypes.exports.string
|
|
53139
|
+
};
|
|
53125
53140
|
|
|
53126
53141
|
var _g$v;
|
|
53127
53142
|
function _extends$y() { _extends$y = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$y.apply(this, arguments); }
|
|
@@ -66085,7 +66100,45 @@ var Logo = function Logo(_ref2) {
|
|
|
66085
66100
|
}, props), logoName === 'logo_xelcode' && /*#__PURE__*/React.createElement(SvgLogoXelcode, null), logoName === 'logo_xelcode_dashboard' && /*#__PURE__*/React.createElement(SvgLogoXelcodeDashboard, null));
|
|
66086
66101
|
};
|
|
66087
66102
|
|
|
66088
|
-
|
|
66103
|
+
/**
|
|
66104
|
+
A function that returns a universally unique identifier (uuid).
|
|
66105
|
+
example: 1b83fd69-abe7-468c-bea1-306a8aa1c81d
|
|
66106
|
+
@returns `string` : 32 character uuid (see example)
|
|
66107
|
+
*/
|
|
66108
|
+
|
|
66109
|
+
function uuid() {
|
|
66110
|
+
const hashTable = [
|
|
66111
|
+
"a",
|
|
66112
|
+
"b",
|
|
66113
|
+
"c",
|
|
66114
|
+
"d",
|
|
66115
|
+
"e",
|
|
66116
|
+
"f",
|
|
66117
|
+
"0",
|
|
66118
|
+
"1",
|
|
66119
|
+
"2",
|
|
66120
|
+
"3",
|
|
66121
|
+
"4",
|
|
66122
|
+
"5",
|
|
66123
|
+
"6",
|
|
66124
|
+
"7",
|
|
66125
|
+
"8",
|
|
66126
|
+
"9",
|
|
66127
|
+
];
|
|
66128
|
+
let uuid = [];
|
|
66129
|
+
for (let i = 0; i < 36; i++) {
|
|
66130
|
+
if (i === 8 || i === 13 || i === 18 || i === 23) {
|
|
66131
|
+
uuid[i] = "-";
|
|
66132
|
+
} else {
|
|
66133
|
+
uuid[i] = hashTable[Math.ceil(Math.random() * hashTable.length - 1)];
|
|
66134
|
+
}
|
|
66135
|
+
}
|
|
66136
|
+
return uuid.join("");
|
|
66137
|
+
}
|
|
66138
|
+
|
|
66139
|
+
var uuid_1 = uuid;
|
|
66140
|
+
|
|
66141
|
+
var _excluded$5 = ["buttons", "forwardedRef"];
|
|
66089
66142
|
var StyledBottomBarWrapper = styled$1(Box$1)(function (_ref) {
|
|
66090
66143
|
_objectDestructuringEmpty(_ref);
|
|
66091
66144
|
return {
|
|
@@ -66112,8 +66165,12 @@ var StyledBottomBarWrapper = styled$1(Box$1)(function (_ref) {
|
|
|
66112
66165
|
});
|
|
66113
66166
|
var BottomBarComponent = function BottomBarComponent(_ref2) {
|
|
66114
66167
|
var buttons = _ref2.buttons,
|
|
66168
|
+
_ref2$forwardedRef = _ref2.forwardedRef,
|
|
66169
|
+
forwardedRef = _ref2$forwardedRef === void 0 ? function () {} : _ref2$forwardedRef,
|
|
66115
66170
|
props = _objectWithoutProperties$1(_ref2, _excluded$5);
|
|
66116
|
-
return /*#__PURE__*/React.createElement(StyledBottomBarWrapper,
|
|
66171
|
+
return /*#__PURE__*/React.createElement(StyledBottomBarWrapper, _extends$1e({
|
|
66172
|
+
ref: forwardedRef
|
|
66173
|
+
}, props), buttons.map(function (item) {
|
|
66117
66174
|
var disabled = (item === null || item === void 0 ? void 0 : item.disabled) || false;
|
|
66118
66175
|
var fluid = (item === null || item === void 0 ? void 0 : item.fluid) || true;
|
|
66119
66176
|
var onClick = (item === null || item === void 0 ? void 0 : item.onClick) || '';
|
|
@@ -66122,6 +66179,7 @@ var BottomBarComponent = function BottomBarComponent(_ref2) {
|
|
|
66122
66179
|
var color = (item === null || item === void 0 ? void 0 : item.color) || 'navy-blue';
|
|
66123
66180
|
var size = (item === null || item === void 0 ? void 0 : item.size) || 'small';
|
|
66124
66181
|
return /*#__PURE__*/React.createElement(CustomButtonComponent, {
|
|
66182
|
+
key: uuid_1(),
|
|
66125
66183
|
disabled: disabled,
|
|
66126
66184
|
fluid: fluid,
|
|
66127
66185
|
onClick: onClick && typeof onClick === "function" ? onClick : undefined,
|
|
@@ -66132,6 +66190,20 @@ var BottomBarComponent = function BottomBarComponent(_ref2) {
|
|
|
66132
66190
|
});
|
|
66133
66191
|
}));
|
|
66134
66192
|
};
|
|
66193
|
+
BottomBarComponent.propTypes = {
|
|
66194
|
+
buttons: propTypes.exports.arrayOf(propTypes.exports.shape({
|
|
66195
|
+
disabled: propTypes.exports.bool,
|
|
66196
|
+
fluid: propTypes.exports.bool,
|
|
66197
|
+
onClick: propTypes.exports.func,
|
|
66198
|
+
type: propTypes.exports.string,
|
|
66199
|
+
text: propTypes.exports.string,
|
|
66200
|
+
color: propTypes.exports.string,
|
|
66201
|
+
size: propTypes.exports.string
|
|
66202
|
+
})),
|
|
66203
|
+
forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
|
|
66204
|
+
current: propTypes.exports.any
|
|
66205
|
+
})])
|
|
66206
|
+
};
|
|
66135
66207
|
|
|
66136
66208
|
var StyledInfoBar = styled$1('div')(function (_ref) {
|
|
66137
66209
|
_objectDestructuringEmpty(_ref);
|
|
@@ -66164,8 +66236,6 @@ var StyledInfoRow = styled$1('div')(function (_ref2) {
|
|
|
66164
66236
|
}
|
|
66165
66237
|
};
|
|
66166
66238
|
});
|
|
66167
|
-
|
|
66168
|
-
// @ts-ignore
|
|
66169
66239
|
var BottomInfoBar = function BottomInfoBar(_ref3) {
|
|
66170
66240
|
var _ref3$noLogo = _ref3.noLogo,
|
|
66171
66241
|
noLogo = _ref3$noLogo === void 0 ? false : _ref3$noLogo,
|
|
@@ -66173,8 +66243,12 @@ var BottomInfoBar = function BottomInfoBar(_ref3) {
|
|
|
66173
66243
|
leftText = _ref3$leftText === void 0 ? 'left' : _ref3$leftText,
|
|
66174
66244
|
_ref3$rightText = _ref3.rightText,
|
|
66175
66245
|
rightText = _ref3$rightText === void 0 ? 'right' : _ref3$rightText,
|
|
66176
|
-
onRightTextClick = _ref3.onRightTextClick
|
|
66177
|
-
|
|
66246
|
+
onRightTextClick = _ref3.onRightTextClick,
|
|
66247
|
+
_ref3$forwardedRef = _ref3.forwardedRef,
|
|
66248
|
+
forwardedRef = _ref3$forwardedRef === void 0 ? function () {} : _ref3$forwardedRef;
|
|
66249
|
+
return /*#__PURE__*/React__namespace.createElement(StyledInfoBar, {
|
|
66250
|
+
ref: forwardedRef
|
|
66251
|
+
}, /*#__PURE__*/React__namespace.createElement(StyledInfoRow, {
|
|
66178
66252
|
noLogo: noLogo
|
|
66179
66253
|
}, /*#__PURE__*/React__namespace.createElement("div", null, /*#__PURE__*/React__namespace.createElement(CustomButtonComponent, {
|
|
66180
66254
|
type: "ghost",
|
|
@@ -66195,6 +66269,15 @@ var BottomInfoBar = function BottomInfoBar(_ref3) {
|
|
|
66195
66269
|
}
|
|
66196
66270
|
}))));
|
|
66197
66271
|
};
|
|
66272
|
+
BottomInfoBar.propTypes = {
|
|
66273
|
+
noLogo: propTypes.exports.bool,
|
|
66274
|
+
leftText: propTypes.exports.string,
|
|
66275
|
+
rightText: propTypes.exports.string,
|
|
66276
|
+
onRightTextClick: propTypes.exports.func,
|
|
66277
|
+
forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
|
|
66278
|
+
current: propTypes.exports.any
|
|
66279
|
+
})])
|
|
66280
|
+
};
|
|
66198
66281
|
|
|
66199
66282
|
var _excluded$4 = ["disabled", "label", "checked", "onChange", "indeterminate", "forwardedRef"];
|
|
66200
66283
|
var StyledFormControlLabel$1 = styled$1(FormControlLabel$2)(function (_ref) {
|
|
@@ -89803,11 +89886,16 @@ var StyledModuleTileWrapper = styled$1(Box$1)(function (_ref) {
|
|
|
89803
89886
|
};
|
|
89804
89887
|
});
|
|
89805
89888
|
var ModuleTile = function ModuleTile(_ref2) {
|
|
89806
|
-
var fluid = _ref2.fluid,
|
|
89807
|
-
|
|
89889
|
+
var _ref2$fluid = _ref2.fluid,
|
|
89890
|
+
fluid = _ref2$fluid === void 0 ? false : _ref2$fluid,
|
|
89891
|
+
_ref2$illustrationNam = _ref2.illustrationName,
|
|
89892
|
+
illustrationName = _ref2$illustrationNam === void 0 ? 'ilu_availability_by_item' : _ref2$illustrationNam,
|
|
89808
89893
|
header = _ref2.header,
|
|
89809
|
-
onClick = _ref2.onClick
|
|
89894
|
+
onClick = _ref2.onClick,
|
|
89895
|
+
_ref2$forwardedRef = _ref2.forwardedRef,
|
|
89896
|
+
forwardedRef = _ref2$forwardedRef === void 0 ? function () {} : _ref2$forwardedRef;
|
|
89810
89897
|
return /*#__PURE__*/React.createElement(StyledModuleTileWrapper, {
|
|
89898
|
+
ref: forwardedRef,
|
|
89811
89899
|
fluid: fluid,
|
|
89812
89900
|
onClick: onClick
|
|
89813
89901
|
}, /*#__PURE__*/React.createElement(Illustration, {
|
|
@@ -89817,6 +89905,15 @@ var ModuleTile = function ModuleTile(_ref2) {
|
|
|
89817
89905
|
type: 'module-tile-header'
|
|
89818
89906
|
}));
|
|
89819
89907
|
};
|
|
89908
|
+
ModuleTile.propTypes = {
|
|
89909
|
+
fluid: propTypes.exports.bool,
|
|
89910
|
+
header: propTypes.exports.string,
|
|
89911
|
+
illustrationName: propTypes.exports.string,
|
|
89912
|
+
onClick: propTypes.exports.func,
|
|
89913
|
+
forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
|
|
89914
|
+
current: propTypes.exports.any
|
|
89915
|
+
})])
|
|
89916
|
+
};
|
|
89820
89917
|
|
|
89821
89918
|
var StyledStepperContainer = styled$1(Box$1)(function (_ref) {
|
|
89822
89919
|
_objectDestructuringEmpty(_ref);
|
|
@@ -90147,44 +90244,6 @@ var RadioGroupComponent = function RadioGroupComponent(_ref2) {
|
|
|
90147
90244
|
}, renderRadioOptions(options));
|
|
90148
90245
|
};
|
|
90149
90246
|
|
|
90150
|
-
/**
|
|
90151
|
-
A function that returns a universally unique identifier (uuid).
|
|
90152
|
-
example: 1b83fd69-abe7-468c-bea1-306a8aa1c81d
|
|
90153
|
-
@returns `string` : 32 character uuid (see example)
|
|
90154
|
-
*/
|
|
90155
|
-
|
|
90156
|
-
function uuid() {
|
|
90157
|
-
const hashTable = [
|
|
90158
|
-
"a",
|
|
90159
|
-
"b",
|
|
90160
|
-
"c",
|
|
90161
|
-
"d",
|
|
90162
|
-
"e",
|
|
90163
|
-
"f",
|
|
90164
|
-
"0",
|
|
90165
|
-
"1",
|
|
90166
|
-
"2",
|
|
90167
|
-
"3",
|
|
90168
|
-
"4",
|
|
90169
|
-
"5",
|
|
90170
|
-
"6",
|
|
90171
|
-
"7",
|
|
90172
|
-
"8",
|
|
90173
|
-
"9",
|
|
90174
|
-
];
|
|
90175
|
-
let uuid = [];
|
|
90176
|
-
for (let i = 0; i < 36; i++) {
|
|
90177
|
-
if (i === 8 || i === 13 || i === 18 || i === 23) {
|
|
90178
|
-
uuid[i] = "-";
|
|
90179
|
-
} else {
|
|
90180
|
-
uuid[i] = hashTable[Math.ceil(Math.random() * hashTable.length - 1)];
|
|
90181
|
-
}
|
|
90182
|
-
}
|
|
90183
|
-
return uuid.join("");
|
|
90184
|
-
}
|
|
90185
|
-
|
|
90186
|
-
var uuid_1 = uuid;
|
|
90187
|
-
|
|
90188
90247
|
var StyledMenu = styled$1('div')(function (_ref) {
|
|
90189
90248
|
var variant = _ref.variant;
|
|
90190
90249
|
return {
|
package/dist/index.esm.js
CHANGED
|
@@ -52598,9 +52598,11 @@ var AppTileComponent = function AppTileComponent(_ref3) {
|
|
|
52598
52598
|
_ref3$illustrationNam = _ref3.illustrationName,
|
|
52599
52599
|
illustrationName = _ref3$illustrationNam === void 0 ? 'ilu_availability_by_item' : _ref3$illustrationNam,
|
|
52600
52600
|
_ref3$forwardedRef = _ref3.forwardedRef,
|
|
52601
|
-
forwardedRef = _ref3$forwardedRef === void 0 ? function () {} : _ref3$forwardedRef
|
|
52601
|
+
forwardedRef = _ref3$forwardedRef === void 0 ? function () {} : _ref3$forwardedRef,
|
|
52602
|
+
onClick = _ref3.onClick;
|
|
52602
52603
|
return /*#__PURE__*/React__default.createElement(StyledAppTileWrapper, {
|
|
52603
|
-
ref: forwardedRef
|
|
52604
|
+
ref: forwardedRef,
|
|
52605
|
+
onClick: onClick
|
|
52604
52606
|
}, /*#__PURE__*/React__default.createElement(Illustration, {
|
|
52605
52607
|
illustrationName: illustrationName,
|
|
52606
52608
|
color: '',
|
|
@@ -52618,7 +52620,7 @@ var AppTileComponent = function AppTileComponent(_ref3) {
|
|
|
52618
52620
|
};
|
|
52619
52621
|
AppTileComponent.propTypes = {
|
|
52620
52622
|
description: propTypes.exports.string,
|
|
52621
|
-
header: propTypes.exports.
|
|
52623
|
+
header: propTypes.exports.string,
|
|
52622
52624
|
illustrationName: propTypes.exports.string,
|
|
52623
52625
|
onClick: propTypes.exports.func,
|
|
52624
52626
|
forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
|
|
@@ -52631,18 +52633,14 @@ var CustomButton = styled$1(Button$2)(function (_ref) {
|
|
|
52631
52633
|
var fluid = _ref.fluid;
|
|
52632
52634
|
return {
|
|
52633
52635
|
width: fluid ? '100%' : 'auto',
|
|
52634
|
-
// fontSize: '16px',
|
|
52635
|
-
// lineHeight: '15px',
|
|
52636
52636
|
borderRadius: '24px',
|
|
52637
52637
|
fontWeight: 'bold',
|
|
52638
52638
|
boxShadow: 'none',
|
|
52639
|
-
// padding: props => props.size === 'big' ? '34px 60px' : '4px 24px',
|
|
52640
52639
|
border: '2px solid #293072',
|
|
52641
52640
|
backgroundColor: theme.mainPallete.primary.white,
|
|
52642
52641
|
color: theme.mainPallete.primary.blue,
|
|
52643
52642
|
textTransform: 'uppercase',
|
|
52644
52643
|
fontFamily: ['"Barlow", sans-serif'],
|
|
52645
|
-
// backgroundColor: theme.mainPallete.primary.red,
|
|
52646
52644
|
'&:hover': {
|
|
52647
52645
|
boxShadow: 'none'
|
|
52648
52646
|
},
|
|
@@ -52812,7 +52810,6 @@ var CustomButton = styled$1(Button$2)(function (_ref) {
|
|
|
52812
52810
|
},
|
|
52813
52811
|
'&.big': {
|
|
52814
52812
|
padding: '21px',
|
|
52815
|
-
//PADDDINGi DO USTALENIA
|
|
52816
52813
|
fontSize: '16px',
|
|
52817
52814
|
lineHeight: '15px',
|
|
52818
52815
|
borderRadius: '31px',
|
|
@@ -52832,7 +52829,6 @@ var CustomButton = styled$1(Button$2)(function (_ref) {
|
|
|
52832
52829
|
},
|
|
52833
52830
|
'&.small': {
|
|
52834
52831
|
padding: '14px 21px',
|
|
52835
|
-
//PADDDINGi DO USTALENIA
|
|
52836
52832
|
fontSize: '16px',
|
|
52837
52833
|
lineHeight: '15px',
|
|
52838
52834
|
borderRadius: '24px',
|
|
@@ -52852,8 +52848,6 @@ var CustomButton = styled$1(Button$2)(function (_ref) {
|
|
|
52852
52848
|
}
|
|
52853
52849
|
};
|
|
52854
52850
|
});
|
|
52855
|
-
|
|
52856
|
-
// @ts-ignore
|
|
52857
52851
|
var CustomButtonComponent = function CustomButtonComponent(_ref2) {
|
|
52858
52852
|
var type = _ref2.type,
|
|
52859
52853
|
text = _ref2.text,
|
|
@@ -52867,7 +52861,6 @@ var CustomButtonComponent = function CustomButtonComponent(_ref2) {
|
|
|
52867
52861
|
var colorClassName = disabled ? 'grey' : color ? color : 'navy-blue'; // navy-blue / red / black / grey / special-green
|
|
52868
52862
|
var typeClassName = type || 'primary'; // primary / secondary / ghost
|
|
52869
52863
|
var sizeClassName = size || 'big'; // null / big / small
|
|
52870
|
-
// const behaviourClassName = behaviour || '';
|
|
52871
52864
|
var finalClassName = "".concat(typeClassName, " ").concat(colorClassName, " ").concat(sizeClassName);
|
|
52872
52865
|
return /*#__PURE__*/React.createElement(CustomButton, _extends$1e({
|
|
52873
52866
|
disabled: disabled,
|
|
@@ -52879,8 +52872,20 @@ var CustomButtonComponent = function CustomButtonComponent(_ref2) {
|
|
|
52879
52872
|
ref: forwardedRef
|
|
52880
52873
|
}, props), text);
|
|
52881
52874
|
};
|
|
52875
|
+
CustomButtonComponent.propTypes = {
|
|
52876
|
+
color: propTypes.exports.string,
|
|
52877
|
+
disabled: propTypes.exports.bool,
|
|
52878
|
+
fluid: propTypes.exports.bool,
|
|
52879
|
+
forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
|
|
52880
|
+
current: propTypes.exports.any
|
|
52881
|
+
})]),
|
|
52882
|
+
onClick: propTypes.exports.func,
|
|
52883
|
+
size: propTypes.exports.string,
|
|
52884
|
+
type: propTypes.exports.string,
|
|
52885
|
+
text: propTypes.exports.string
|
|
52886
|
+
};
|
|
52882
52887
|
|
|
52883
|
-
var _excluded$7 = ["
|
|
52888
|
+
var _excluded$7 = ["color", "disabled", "fluid", "forwardedRef", "icon", "onClick", "text", "type"];
|
|
52884
52889
|
var CustomIconButton = styled$1(Button$2)(function (_ref) {
|
|
52885
52890
|
var fluid = _ref.fluid;
|
|
52886
52891
|
return {
|
|
@@ -52892,7 +52897,6 @@ var CustomIconButton = styled$1(Button$2)(function (_ref) {
|
|
|
52892
52897
|
textTransform: 'uppercase',
|
|
52893
52898
|
fontFamily: ['"Barlow", sans-serif'],
|
|
52894
52899
|
padding: '4px 25px 4px 21px',
|
|
52895
|
-
//PADDDINGi DO USTALENIA
|
|
52896
52900
|
fontSize: '16px',
|
|
52897
52901
|
lineHeight: '15px',
|
|
52898
52902
|
'@media(min-width: 1024px)': {
|
|
@@ -52901,7 +52905,6 @@ var CustomIconButton = styled$1(Button$2)(function (_ref) {
|
|
|
52901
52905
|
lineHeight: '16px',
|
|
52902
52906
|
borderRadius: '24px'
|
|
52903
52907
|
},
|
|
52904
|
-
// backgroundColor: theme.mainPallete.primary.red,
|
|
52905
52908
|
'&:hover': {
|
|
52906
52909
|
boxShadow: 'none',
|
|
52907
52910
|
'img': {
|
|
@@ -53074,23 +53077,22 @@ var CustomIconButton = styled$1(Button$2)(function (_ref) {
|
|
|
53074
53077
|
};
|
|
53075
53078
|
});
|
|
53076
53079
|
var IconButtonComponent = function IconButtonComponent(_ref2) {
|
|
53077
|
-
var
|
|
53078
|
-
|
|
53079
|
-
icon = _ref2.icon,
|
|
53080
|
-
color = _ref2.color,
|
|
53080
|
+
var color = _ref2.color,
|
|
53081
|
+
disabled = _ref2.disabled,
|
|
53081
53082
|
fluid = _ref2.fluid,
|
|
53082
|
-
onClick = _ref2.onClick,
|
|
53083
53083
|
forwardedRef = _ref2.forwardedRef,
|
|
53084
|
+
_ref2$icon = _ref2.icon,
|
|
53085
|
+
icon = _ref2$icon === void 0 ? 'icon_wf_download' : _ref2$icon,
|
|
53086
|
+
onClick = _ref2.onClick,
|
|
53087
|
+
text = _ref2.text,
|
|
53088
|
+
type = _ref2.type,
|
|
53084
53089
|
props = _objectWithoutProperties$1(_ref2, _excluded$7);
|
|
53085
|
-
var colorClassName = color || '';
|
|
53086
|
-
var typeClassName = type || '';
|
|
53087
|
-
// const resolutionClassName = resolution === '480x800' ? 'regular' : resolution === '720x1280' ? 'big' :resolution === '1024x768/1440x960/1920x1080' ? 'small' : ''
|
|
53088
|
-
// const widthClassName = width === '100%' ? 'width100' : width === '50%' ? 'width50' : width === '33%' ? 'width33' : '';
|
|
53090
|
+
var colorClassName = color || 'navy-blue';
|
|
53091
|
+
var typeClassName = type || 'primary';
|
|
53089
53092
|
var finalClassName = "".concat(typeClassName, " ").concat(colorClassName);
|
|
53090
|
-
// const iconVariant = icon === 'download' ? IconDownloadGrey : IconDownloadWhite;
|
|
53091
|
-
// const iconVariant = `${type} ${icon} ${colorClassName}`;
|
|
53092
53093
|
return /*#__PURE__*/React.createElement(CustomIconButton, _extends$1e({}, props, {
|
|
53093
53094
|
onClick: onClick,
|
|
53095
|
+
disabled: disabled,
|
|
53094
53096
|
fluid: fluid,
|
|
53095
53097
|
ref: forwardedRef,
|
|
53096
53098
|
startIcon: /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -53102,6 +53104,19 @@ var IconButtonComponent = function IconButtonComponent(_ref2) {
|
|
|
53102
53104
|
disableRipple: true
|
|
53103
53105
|
}), text);
|
|
53104
53106
|
};
|
|
53107
|
+
IconButtonComponent.propTypes = {
|
|
53108
|
+
color: propTypes.exports.string,
|
|
53109
|
+
disabled: propTypes.exports.bool,
|
|
53110
|
+
icon: propTypes.exports.string,
|
|
53111
|
+
fluid: propTypes.exports.bool,
|
|
53112
|
+
forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
|
|
53113
|
+
current: propTypes.exports.any
|
|
53114
|
+
})]),
|
|
53115
|
+
onClick: propTypes.exports.func,
|
|
53116
|
+
size: propTypes.exports.string,
|
|
53117
|
+
type: propTypes.exports.string,
|
|
53118
|
+
text: propTypes.exports.string
|
|
53119
|
+
};
|
|
53105
53120
|
|
|
53106
53121
|
var _g$v;
|
|
53107
53122
|
function _extends$y() { _extends$y = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$y.apply(this, arguments); }
|
|
@@ -66065,7 +66080,45 @@ var Logo = function Logo(_ref2) {
|
|
|
66065
66080
|
}, props), logoName === 'logo_xelcode' && /*#__PURE__*/React__default.createElement(SvgLogoXelcode, null), logoName === 'logo_xelcode_dashboard' && /*#__PURE__*/React__default.createElement(SvgLogoXelcodeDashboard, null));
|
|
66066
66081
|
};
|
|
66067
66082
|
|
|
66068
|
-
|
|
66083
|
+
/**
|
|
66084
|
+
A function that returns a universally unique identifier (uuid).
|
|
66085
|
+
example: 1b83fd69-abe7-468c-bea1-306a8aa1c81d
|
|
66086
|
+
@returns `string` : 32 character uuid (see example)
|
|
66087
|
+
*/
|
|
66088
|
+
|
|
66089
|
+
function uuid() {
|
|
66090
|
+
const hashTable = [
|
|
66091
|
+
"a",
|
|
66092
|
+
"b",
|
|
66093
|
+
"c",
|
|
66094
|
+
"d",
|
|
66095
|
+
"e",
|
|
66096
|
+
"f",
|
|
66097
|
+
"0",
|
|
66098
|
+
"1",
|
|
66099
|
+
"2",
|
|
66100
|
+
"3",
|
|
66101
|
+
"4",
|
|
66102
|
+
"5",
|
|
66103
|
+
"6",
|
|
66104
|
+
"7",
|
|
66105
|
+
"8",
|
|
66106
|
+
"9",
|
|
66107
|
+
];
|
|
66108
|
+
let uuid = [];
|
|
66109
|
+
for (let i = 0; i < 36; i++) {
|
|
66110
|
+
if (i === 8 || i === 13 || i === 18 || i === 23) {
|
|
66111
|
+
uuid[i] = "-";
|
|
66112
|
+
} else {
|
|
66113
|
+
uuid[i] = hashTable[Math.ceil(Math.random() * hashTable.length - 1)];
|
|
66114
|
+
}
|
|
66115
|
+
}
|
|
66116
|
+
return uuid.join("");
|
|
66117
|
+
}
|
|
66118
|
+
|
|
66119
|
+
var uuid_1 = uuid;
|
|
66120
|
+
|
|
66121
|
+
var _excluded$5 = ["buttons", "forwardedRef"];
|
|
66069
66122
|
var StyledBottomBarWrapper = styled$1(Box$1)(function (_ref) {
|
|
66070
66123
|
_objectDestructuringEmpty(_ref);
|
|
66071
66124
|
return {
|
|
@@ -66092,8 +66145,12 @@ var StyledBottomBarWrapper = styled$1(Box$1)(function (_ref) {
|
|
|
66092
66145
|
});
|
|
66093
66146
|
var BottomBarComponent = function BottomBarComponent(_ref2) {
|
|
66094
66147
|
var buttons = _ref2.buttons,
|
|
66148
|
+
_ref2$forwardedRef = _ref2.forwardedRef,
|
|
66149
|
+
forwardedRef = _ref2$forwardedRef === void 0 ? function () {} : _ref2$forwardedRef,
|
|
66095
66150
|
props = _objectWithoutProperties$1(_ref2, _excluded$5);
|
|
66096
|
-
return /*#__PURE__*/React__default.createElement(StyledBottomBarWrapper,
|
|
66151
|
+
return /*#__PURE__*/React__default.createElement(StyledBottomBarWrapper, _extends$1e({
|
|
66152
|
+
ref: forwardedRef
|
|
66153
|
+
}, props), buttons.map(function (item) {
|
|
66097
66154
|
var disabled = (item === null || item === void 0 ? void 0 : item.disabled) || false;
|
|
66098
66155
|
var fluid = (item === null || item === void 0 ? void 0 : item.fluid) || true;
|
|
66099
66156
|
var onClick = (item === null || item === void 0 ? void 0 : item.onClick) || '';
|
|
@@ -66102,6 +66159,7 @@ var BottomBarComponent = function BottomBarComponent(_ref2) {
|
|
|
66102
66159
|
var color = (item === null || item === void 0 ? void 0 : item.color) || 'navy-blue';
|
|
66103
66160
|
var size = (item === null || item === void 0 ? void 0 : item.size) || 'small';
|
|
66104
66161
|
return /*#__PURE__*/React__default.createElement(CustomButtonComponent, {
|
|
66162
|
+
key: uuid_1(),
|
|
66105
66163
|
disabled: disabled,
|
|
66106
66164
|
fluid: fluid,
|
|
66107
66165
|
onClick: onClick && typeof onClick === "function" ? onClick : undefined,
|
|
@@ -66112,6 +66170,20 @@ var BottomBarComponent = function BottomBarComponent(_ref2) {
|
|
|
66112
66170
|
});
|
|
66113
66171
|
}));
|
|
66114
66172
|
};
|
|
66173
|
+
BottomBarComponent.propTypes = {
|
|
66174
|
+
buttons: propTypes.exports.arrayOf(propTypes.exports.shape({
|
|
66175
|
+
disabled: propTypes.exports.bool,
|
|
66176
|
+
fluid: propTypes.exports.bool,
|
|
66177
|
+
onClick: propTypes.exports.func,
|
|
66178
|
+
type: propTypes.exports.string,
|
|
66179
|
+
text: propTypes.exports.string,
|
|
66180
|
+
color: propTypes.exports.string,
|
|
66181
|
+
size: propTypes.exports.string
|
|
66182
|
+
})),
|
|
66183
|
+
forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
|
|
66184
|
+
current: propTypes.exports.any
|
|
66185
|
+
})])
|
|
66186
|
+
};
|
|
66115
66187
|
|
|
66116
66188
|
var StyledInfoBar = styled$1('div')(function (_ref) {
|
|
66117
66189
|
_objectDestructuringEmpty(_ref);
|
|
@@ -66144,8 +66216,6 @@ var StyledInfoRow = styled$1('div')(function (_ref2) {
|
|
|
66144
66216
|
}
|
|
66145
66217
|
};
|
|
66146
66218
|
});
|
|
66147
|
-
|
|
66148
|
-
// @ts-ignore
|
|
66149
66219
|
var BottomInfoBar = function BottomInfoBar(_ref3) {
|
|
66150
66220
|
var _ref3$noLogo = _ref3.noLogo,
|
|
66151
66221
|
noLogo = _ref3$noLogo === void 0 ? false : _ref3$noLogo,
|
|
@@ -66153,8 +66223,12 @@ var BottomInfoBar = function BottomInfoBar(_ref3) {
|
|
|
66153
66223
|
leftText = _ref3$leftText === void 0 ? 'left' : _ref3$leftText,
|
|
66154
66224
|
_ref3$rightText = _ref3.rightText,
|
|
66155
66225
|
rightText = _ref3$rightText === void 0 ? 'right' : _ref3$rightText,
|
|
66156
|
-
onRightTextClick = _ref3.onRightTextClick
|
|
66157
|
-
|
|
66226
|
+
onRightTextClick = _ref3.onRightTextClick,
|
|
66227
|
+
_ref3$forwardedRef = _ref3.forwardedRef,
|
|
66228
|
+
forwardedRef = _ref3$forwardedRef === void 0 ? function () {} : _ref3$forwardedRef;
|
|
66229
|
+
return /*#__PURE__*/React.createElement(StyledInfoBar, {
|
|
66230
|
+
ref: forwardedRef
|
|
66231
|
+
}, /*#__PURE__*/React.createElement(StyledInfoRow, {
|
|
66158
66232
|
noLogo: noLogo
|
|
66159
66233
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CustomButtonComponent, {
|
|
66160
66234
|
type: "ghost",
|
|
@@ -66175,6 +66249,15 @@ var BottomInfoBar = function BottomInfoBar(_ref3) {
|
|
|
66175
66249
|
}
|
|
66176
66250
|
}))));
|
|
66177
66251
|
};
|
|
66252
|
+
BottomInfoBar.propTypes = {
|
|
66253
|
+
noLogo: propTypes.exports.bool,
|
|
66254
|
+
leftText: propTypes.exports.string,
|
|
66255
|
+
rightText: propTypes.exports.string,
|
|
66256
|
+
onRightTextClick: propTypes.exports.func,
|
|
66257
|
+
forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
|
|
66258
|
+
current: propTypes.exports.any
|
|
66259
|
+
})])
|
|
66260
|
+
};
|
|
66178
66261
|
|
|
66179
66262
|
var _excluded$4 = ["disabled", "label", "checked", "onChange", "indeterminate", "forwardedRef"];
|
|
66180
66263
|
var StyledFormControlLabel$1 = styled$1(FormControlLabel$2)(function (_ref) {
|
|
@@ -89783,11 +89866,16 @@ var StyledModuleTileWrapper = styled$1(Box$1)(function (_ref) {
|
|
|
89783
89866
|
};
|
|
89784
89867
|
});
|
|
89785
89868
|
var ModuleTile = function ModuleTile(_ref2) {
|
|
89786
|
-
var fluid = _ref2.fluid,
|
|
89787
|
-
|
|
89869
|
+
var _ref2$fluid = _ref2.fluid,
|
|
89870
|
+
fluid = _ref2$fluid === void 0 ? false : _ref2$fluid,
|
|
89871
|
+
_ref2$illustrationNam = _ref2.illustrationName,
|
|
89872
|
+
illustrationName = _ref2$illustrationNam === void 0 ? 'ilu_availability_by_item' : _ref2$illustrationNam,
|
|
89788
89873
|
header = _ref2.header,
|
|
89789
|
-
onClick = _ref2.onClick
|
|
89874
|
+
onClick = _ref2.onClick,
|
|
89875
|
+
_ref2$forwardedRef = _ref2.forwardedRef,
|
|
89876
|
+
forwardedRef = _ref2$forwardedRef === void 0 ? function () {} : _ref2$forwardedRef;
|
|
89790
89877
|
return /*#__PURE__*/React__default.createElement(StyledModuleTileWrapper, {
|
|
89878
|
+
ref: forwardedRef,
|
|
89791
89879
|
fluid: fluid,
|
|
89792
89880
|
onClick: onClick
|
|
89793
89881
|
}, /*#__PURE__*/React__default.createElement(Illustration, {
|
|
@@ -89797,6 +89885,15 @@ var ModuleTile = function ModuleTile(_ref2) {
|
|
|
89797
89885
|
type: 'module-tile-header'
|
|
89798
89886
|
}));
|
|
89799
89887
|
};
|
|
89888
|
+
ModuleTile.propTypes = {
|
|
89889
|
+
fluid: propTypes.exports.bool,
|
|
89890
|
+
header: propTypes.exports.string,
|
|
89891
|
+
illustrationName: propTypes.exports.string,
|
|
89892
|
+
onClick: propTypes.exports.func,
|
|
89893
|
+
forwardedRef: propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.shape({
|
|
89894
|
+
current: propTypes.exports.any
|
|
89895
|
+
})])
|
|
89896
|
+
};
|
|
89800
89897
|
|
|
89801
89898
|
var StyledStepperContainer = styled$1(Box$1)(function (_ref) {
|
|
89802
89899
|
_objectDestructuringEmpty(_ref);
|
|
@@ -90127,44 +90224,6 @@ var RadioGroupComponent = function RadioGroupComponent(_ref2) {
|
|
|
90127
90224
|
}, renderRadioOptions(options));
|
|
90128
90225
|
};
|
|
90129
90226
|
|
|
90130
|
-
/**
|
|
90131
|
-
A function that returns a universally unique identifier (uuid).
|
|
90132
|
-
example: 1b83fd69-abe7-468c-bea1-306a8aa1c81d
|
|
90133
|
-
@returns `string` : 32 character uuid (see example)
|
|
90134
|
-
*/
|
|
90135
|
-
|
|
90136
|
-
function uuid() {
|
|
90137
|
-
const hashTable = [
|
|
90138
|
-
"a",
|
|
90139
|
-
"b",
|
|
90140
|
-
"c",
|
|
90141
|
-
"d",
|
|
90142
|
-
"e",
|
|
90143
|
-
"f",
|
|
90144
|
-
"0",
|
|
90145
|
-
"1",
|
|
90146
|
-
"2",
|
|
90147
|
-
"3",
|
|
90148
|
-
"4",
|
|
90149
|
-
"5",
|
|
90150
|
-
"6",
|
|
90151
|
-
"7",
|
|
90152
|
-
"8",
|
|
90153
|
-
"9",
|
|
90154
|
-
];
|
|
90155
|
-
let uuid = [];
|
|
90156
|
-
for (let i = 0; i < 36; i++) {
|
|
90157
|
-
if (i === 8 || i === 13 || i === 18 || i === 23) {
|
|
90158
|
-
uuid[i] = "-";
|
|
90159
|
-
} else {
|
|
90160
|
-
uuid[i] = hashTable[Math.ceil(Math.random() * hashTable.length - 1)];
|
|
90161
|
-
}
|
|
90162
|
-
}
|
|
90163
|
-
return uuid.join("");
|
|
90164
|
-
}
|
|
90165
|
-
|
|
90166
|
-
var uuid_1 = uuid;
|
|
90167
|
-
|
|
90168
90227
|
var StyledMenu = styled$1('div')(function (_ref) {
|
|
90169
90228
|
var variant = _ref.variant;
|
|
90170
90229
|
return {
|