@xelto.npm/xc2-lib 0.0.45 → 0.0.47

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.
Files changed (40) hide show
  1. package/dist/cjs/index.js +227 -38
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/Inputs/select/Select.d.ts +4 -0
  4. package/dist/cjs/types/components/Inputs/select/SelectProps.d.ts +18 -0
  5. package/dist/cjs/types/components/Inputs/select/index.d.ts +1 -0
  6. package/dist/cjs/types/components/Inputs/textfield/TextField.d.ts +5 -1
  7. package/dist/cjs/types/components/bottomBar/BottomBarComponent.d.ts +13 -5
  8. package/dist/cjs/types/components/bottomInfoBar/BottomInfoBar.d.ts +3 -16
  9. package/dist/cjs/types/components/bottomInfoBar/BottomInfoBarProps.d.ts +7 -0
  10. package/dist/cjs/types/components/buttons/customButton/CustomButtonComponent.d.ts +3 -14
  11. package/dist/cjs/types/components/buttons/customButton/CustomButtonProps.d.ts +11 -0
  12. package/dist/cjs/types/components/buttons/iconButton/IconButtonComponent.d.ts +4 -11
  13. package/dist/cjs/types/components/buttons/iconButton/IconButtonProps.d.ts +10 -0
  14. package/dist/cjs/types/components/checkbox/CheckboxComponent.d.ts +3 -10
  15. package/dist/cjs/types/components/checkbox/CheckboxProps.d.ts +9 -0
  16. package/dist/cjs/types/components/foundations/icon/Icon.d.ts +3 -8
  17. package/dist/cjs/types/components/foundations/icon/IconProps.d.ts +9 -0
  18. package/dist/cjs/types/components/foundations/logo/Logo.d.ts +5 -6
  19. package/dist/cjs/types/components/index.d.ts +1 -0
  20. package/dist/esm/index.js +227 -39
  21. package/dist/esm/index.js.map +1 -1
  22. package/dist/esm/types/components/Inputs/select/Select.d.ts +4 -0
  23. package/dist/esm/types/components/Inputs/select/SelectProps.d.ts +18 -0
  24. package/dist/esm/types/components/Inputs/select/index.d.ts +1 -0
  25. package/dist/esm/types/components/Inputs/textfield/TextField.d.ts +5 -1
  26. package/dist/esm/types/components/bottomBar/BottomBarComponent.d.ts +13 -5
  27. package/dist/esm/types/components/bottomInfoBar/BottomInfoBar.d.ts +3 -16
  28. package/dist/esm/types/components/bottomInfoBar/BottomInfoBarProps.d.ts +7 -0
  29. package/dist/esm/types/components/buttons/customButton/CustomButtonComponent.d.ts +3 -14
  30. package/dist/esm/types/components/buttons/customButton/CustomButtonProps.d.ts +11 -0
  31. package/dist/esm/types/components/buttons/iconButton/IconButtonComponent.d.ts +4 -11
  32. package/dist/esm/types/components/buttons/iconButton/IconButtonProps.d.ts +10 -0
  33. package/dist/esm/types/components/checkbox/CheckboxComponent.d.ts +3 -10
  34. package/dist/esm/types/components/checkbox/CheckboxProps.d.ts +9 -0
  35. package/dist/esm/types/components/foundations/icon/Icon.d.ts +3 -8
  36. package/dist/esm/types/components/foundations/icon/IconProps.d.ts +9 -0
  37. package/dist/esm/types/components/foundations/logo/Logo.d.ts +5 -6
  38. package/dist/esm/types/components/index.d.ts +1 -0
  39. package/dist/index.d.ts +90 -66
  40. package/package.json +3 -3
package/dist/esm/index.js CHANGED
@@ -19959,7 +19959,9 @@ process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */
19959
19959
  variant: propTypes.exports /* @typescript-to-proptypes-ignore */.oneOfType([propTypes.exports.oneOf(['contained', 'outlined', 'text']), propTypes.exports.string])
19960
19960
  } : void 0;
19961
19961
 
19962
- var CustomButton = styled(Button)(function (_a) {
19962
+ var CustomButton = styled(Button, {
19963
+ shouldForwardProp: function (prop) { return prop !== "fluid"; }
19964
+ })(function (_a) {
19963
19965
  var fluid = _a.fluid;
19964
19966
  return ({
19965
19967
  width: fluid ? '100%' : 'auto',
@@ -20186,13 +20188,11 @@ var CustomButton = styled(Button)(function (_a) {
20186
20188
  });
20187
20189
  // @ts-ignore
20188
20190
  var CustomButtonComponent = function (_a) {
20189
- var type = _a.type, text = _a.text, size = _a.size, fluid = _a.fluid, color = _a.color; _a.resolution; _a.width; var onClick = _a.onClick, disabled = _a.disabled, _b = _a.forwardedRef, forwardedRef = _b === void 0 ? null : _b, props = __rest(_a, ["type", "text", "size", "fluid", "color", "resolution", "width", "onClick", "disabled", "forwardedRef"]);
20191
+ var type = _a.type, text = _a.text, size = _a.size, fluid = _a.fluid, color = _a.color, onClick = _a.onClick, disabled = _a.disabled, forwardedRef = _a.forwardedRef, props = __rest(_a, ["type", "text", "size", "fluid", "color", "onClick", "disabled", "forwardedRef"]);
20190
20192
  var colorClassName = disabled ? 'grey' : color ? color : 'navy-blue'; // navy-blue / red / black / grey / special-green
20191
20193
  var typeClassName = type || 'primary'; // primary / secondary / ghost
20192
20194
  var sizeClassName = size || 'big'; // null / big / small
20193
20195
  // const behaviourClassName = behaviour || '';
20194
- // const resolutionClassName = resolution === '480x800' ? 'regular' : resolution === '720x1280' ? 'big' :resolution === '1024x768/1440x960/1920x1080' ? 'small' : ''
20195
- // const widthClassName = width === '100%' ? 'width100' : width === '50%' ? 'width50' : width === '33%' ? 'width33' : '';
20196
20196
  var finalClassName = "".concat(typeClassName, " ").concat(colorClassName, " ").concat(sizeClassName);
20197
20197
  return (jsxRuntime.exports.jsx(CustomButton, __assign({ disabled: disabled, onClick: onClick, className: finalClassName, fluid: fluid, variant: "contained", disableRipple: true, ref: forwardedRef }, props, { children: text })));
20198
20198
  };
@@ -21666,11 +21666,13 @@ var StyledIconWrapper = styled(Box)(function (_a) {
21666
21666
  });
21667
21667
  // @ts-ignore
21668
21668
  var Icon$1 = function (_a) {
21669
- var _b = _a.iconName, iconName = _b === void 0 ? '' : _b, _c = _a.color, color = _c === void 0 ? 'red-navy' : _c, _d = _a.size, size = _d === void 0 ? 'responsive' : _d, _e = _a.forwardedRef, forwardedRef = _e === void 0 ? null : _e, rest = __rest(_a, ["iconName", "color", "size", "forwardedRef"]);
21670
- return (jsxRuntime.exports.jsxs(StyledIconWrapper, __assign({}, rest, { ref: forwardedRef, className: "".concat(color, " ").concat(size), color: color, size: size, iconName: iconName }, { children: [iconName === 'icon_wf_search' && jsxRuntime.exports.jsx(SvgIconWfSearch, {}), iconName === 'icon_wf_locked' && jsxRuntime.exports.jsx(SvgIconWfLocked, {}), iconName === 'icon_wf_download' && jsxRuntime.exports.jsx(SvgIconWfDownload, {}), iconName === 'icon_wf_remove' && jsxRuntime.exports.jsx(SvgIconWfRemove, {}), iconName === 'icon_wf_logout' && jsxRuntime.exports.jsx(SvgIconWfLogout, {}), iconName === 'icon_wf_edit' && jsxRuntime.exports.jsx(SvgIconWfEdit, {}), iconName === 'icon_wf_settings_or_filter' && jsxRuntime.exports.jsx(SvgIconWfSettingsOrFilter, {}), iconName === 'icon_wf_barcode_1d' && jsxRuntime.exports.jsx(SvgIconWfBarcode1D, {}), iconName === 'icon_wf_barcode_2d' && jsxRuntime.exports.jsx(SvgIconWfBarcode2D, {}), iconName === 'icon_wf_barcode_printer' && jsxRuntime.exports.jsx(SvgIconWfBarcodePrinter, {}), iconName === 'icon_wf_box' && jsxRuntime.exports.jsx(SvgIconWfBox, {}), iconName === 'icon_wf_calculator' && jsxRuntime.exports.jsx(SvgIconWfCalculator, {}), iconName === 'icon_wf_calendar' && jsxRuntime.exports.jsx(SvgIconWfCalendar, {}), iconName === 'icon_wf_car' && jsxRuntime.exports.jsx(SvgIconWfCar, {}), iconName === 'icon_wf_forklift' && jsxRuntime.exports.jsx(SvgIconWfForklift, {}), iconName === 'icon_wf_invoice' && jsxRuntime.exports.jsx(SvgIconWfInvoice, {}), iconName === 'icon_wf_keyboard' && jsxRuntime.exports.jsx(SvgIconWfKeyboard, {}), iconName === 'icon_wf_logs' && jsxRuntime.exports.jsx(SvgIconWfLogs, {}), iconName === 'icon_wf_no_barcode_printer' && jsxRuntime.exports.jsx(SvgIconWfNoBarcodePrinter, {}), iconName === 'icon_wf_no_scan' && jsxRuntime.exports.jsx(SvgIconWfNoScan, {}), iconName === 'icon_wf_pallet' && jsxRuntime.exports.jsx(SvgIconWfPallet, {}), iconName === 'icon_wf_pin' && jsxRuntime.exports.jsx(SvgIconWfPin, {}), iconName === 'icon_wf_scan' && jsxRuntime.exports.jsx(SvgIconWfScan, {}), iconName === 'icon_wf_send' && jsxRuntime.exports.jsx(SvgIconWfSend, {}), iconName === 'icon_wf_status_ksef' && jsxRuntime.exports.jsx(SvgIconWfStatusKsef, {}), iconName === 'icon_wf_stop' && jsxRuntime.exports.jsx(SvgIconWfStop, {}), iconName === 'icon_wf_unpin' && jsxRuntime.exports.jsx(SvgIconWfUnpin, {}), iconName === 'icon_wf_refresh' && jsxRuntime.exports.jsx(SvgIconWfRefresh, {}), iconName === 'icon_ui_close' && jsxRuntime.exports.jsx(SvgIconUiClose, {}), iconName === 'icon_ui_chevron_up' && jsxRuntime.exports.jsx(SvgIconUiChevronUp, {}), iconName === 'icon_ui_chevron_down' && jsxRuntime.exports.jsx(SvgIconUiChevronDown, {}), iconName === 'icon_ui_chevron_right' && jsxRuntime.exports.jsx(SvgIconUiChevronRight, {}), iconName === 'icon_ui_chevron_left' && jsxRuntime.exports.jsx(SvgIconUiChevronLeft, {}), iconName === 'icon_sp_check_mark' && jsxRuntime.exports.jsx(SvgIconSpCheckMark, {}), iconName === 'icon_sp_warning' && jsxRuntime.exports.jsx(SvgIconSpWarning, {}), iconName === 'icon_sp_info' && jsxRuntime.exports.jsx(SvgIconSpInfo, {}), iconName === 'icon_sp_info_2' && jsxRuntime.exports.jsx(SvgIconSpInfo2, {}), iconName === 'icon_burger_menu' && jsxRuntime.exports.jsx(SvgMenuBurger, {}), iconName === 'icon_update' && jsxRuntime.exports.jsx(SvgUpdateIcon, {}), iconName === 'icon_checkbox_default' && jsxRuntime.exports.jsx(SvgCheckboxDefault, {}), iconName === 'icon_checkbox_checked' && jsxRuntime.exports.jsx(SvgCheckboxChecked, {}), iconName === 'icon_checkbox_indeterminate' && jsxRuntime.exports.jsx(SvgChecbkoxIndeterminate, {})] })));
21669
+ var _b = _a.iconName, iconName = _b === void 0 ? '' : _b, _c = _a.color, color = _c === void 0 ? 'red-navy' : _c, _d = _a.size, size = _d === void 0 ? 'responsive' : _d, forwardedRef = _a.forwardedRef, rest = __rest(_a, ["iconName", "color", "size", "forwardedRef"]);
21670
+ return (jsxRuntime.exports.jsxs(StyledIconWrapper, __assign({}, rest, { ref: forwardedRef, className: "".concat(color, " ").concat(size), color: color, iconName: iconName }, { children: [iconName === 'icon_wf_search' && jsxRuntime.exports.jsx(SvgIconWfSearch, {}), iconName === 'icon_wf_locked' && jsxRuntime.exports.jsx(SvgIconWfLocked, {}), iconName === 'icon_wf_download' && jsxRuntime.exports.jsx(SvgIconWfDownload, {}), iconName === 'icon_wf_remove' && jsxRuntime.exports.jsx(SvgIconWfRemove, {}), iconName === 'icon_wf_logout' && jsxRuntime.exports.jsx(SvgIconWfLogout, {}), iconName === 'icon_wf_edit' && jsxRuntime.exports.jsx(SvgIconWfEdit, {}), iconName === 'icon_wf_settings_or_filter' && jsxRuntime.exports.jsx(SvgIconWfSettingsOrFilter, {}), iconName === 'icon_wf_barcode_1d' && jsxRuntime.exports.jsx(SvgIconWfBarcode1D, {}), iconName === 'icon_wf_barcode_2d' && jsxRuntime.exports.jsx(SvgIconWfBarcode2D, {}), iconName === 'icon_wf_barcode_printer' && jsxRuntime.exports.jsx(SvgIconWfBarcodePrinter, {}), iconName === 'icon_wf_box' && jsxRuntime.exports.jsx(SvgIconWfBox, {}), iconName === 'icon_wf_calculator' && jsxRuntime.exports.jsx(SvgIconWfCalculator, {}), iconName === 'icon_wf_calendar' && jsxRuntime.exports.jsx(SvgIconWfCalendar, {}), iconName === 'icon_wf_car' && jsxRuntime.exports.jsx(SvgIconWfCar, {}), iconName === 'icon_wf_forklift' && jsxRuntime.exports.jsx(SvgIconWfForklift, {}), iconName === 'icon_wf_invoice' && jsxRuntime.exports.jsx(SvgIconWfInvoice, {}), iconName === 'icon_wf_keyboard' && jsxRuntime.exports.jsx(SvgIconWfKeyboard, {}), iconName === 'icon_wf_logs' && jsxRuntime.exports.jsx(SvgIconWfLogs, {}), iconName === 'icon_wf_no_barcode_printer' && jsxRuntime.exports.jsx(SvgIconWfNoBarcodePrinter, {}), iconName === 'icon_wf_no_scan' && jsxRuntime.exports.jsx(SvgIconWfNoScan, {}), iconName === 'icon_wf_pallet' && jsxRuntime.exports.jsx(SvgIconWfPallet, {}), iconName === 'icon_wf_pin' && jsxRuntime.exports.jsx(SvgIconWfPin, {}), iconName === 'icon_wf_scan' && jsxRuntime.exports.jsx(SvgIconWfScan, {}), iconName === 'icon_wf_send' && jsxRuntime.exports.jsx(SvgIconWfSend, {}), iconName === 'icon_wf_status_ksef' && jsxRuntime.exports.jsx(SvgIconWfStatusKsef, {}), iconName === 'icon_wf_stop' && jsxRuntime.exports.jsx(SvgIconWfStop, {}), iconName === 'icon_wf_unpin' && jsxRuntime.exports.jsx(SvgIconWfUnpin, {}), iconName === 'icon_wf_refresh' && jsxRuntime.exports.jsx(SvgIconWfRefresh, {}), iconName === 'icon_ui_close' && jsxRuntime.exports.jsx(SvgIconUiClose, {}), iconName === 'icon_ui_chevron_up' && jsxRuntime.exports.jsx(SvgIconUiChevronUp, {}), iconName === 'icon_ui_chevron_down' && jsxRuntime.exports.jsx(SvgIconUiChevronDown, {}), iconName === 'icon_ui_chevron_right' && jsxRuntime.exports.jsx(SvgIconUiChevronRight, {}), iconName === 'icon_ui_chevron_left' && jsxRuntime.exports.jsx(SvgIconUiChevronLeft, {}), iconName === 'icon_sp_check_mark' && jsxRuntime.exports.jsx(SvgIconSpCheckMark, {}), iconName === 'icon_sp_warning' && jsxRuntime.exports.jsx(SvgIconSpWarning, {}), iconName === 'icon_sp_info' && jsxRuntime.exports.jsx(SvgIconSpInfo, {}), iconName === 'icon_sp_info_2' && jsxRuntime.exports.jsx(SvgIconSpInfo2, {}), iconName === 'icon_burger_menu' && jsxRuntime.exports.jsx(SvgMenuBurger, {}), iconName === 'icon_update' && jsxRuntime.exports.jsx(SvgUpdateIcon, {}), iconName === 'icon_checkbox_default' && jsxRuntime.exports.jsx(SvgCheckboxDefault, {}), iconName === 'icon_checkbox_checked' && jsxRuntime.exports.jsx(SvgCheckboxChecked, {}), iconName === 'icon_checkbox_indeterminate' && jsxRuntime.exports.jsx(SvgChecbkoxIndeterminate, {})] })));
21671
21671
  };
21672
21672
 
21673
- var CustomIconButton = styled(Button)(function (_a) {
21673
+ var CustomIconButton = styled(Button, {
21674
+ shouldForwardProp: function (prop) { return prop !== "fluid"; }
21675
+ })(function (_a) {
21674
21676
  var fluid = _a.fluid;
21675
21677
  return ({
21676
21678
  width: fluid ? '100%' : 'auto',
@@ -21863,9 +21865,8 @@ var CustomIconButton = styled(Button)(function (_a) {
21863
21865
  },
21864
21866
  });
21865
21867
  });
21866
- // @ts-ignore
21867
- function IconButtonComponent(_a) {
21868
- var text = _a.text, type = _a.type, icon = _a.icon, color = _a.color, fluid = _a.fluid, onClick = _a.onClick, _b = _a.forwardedRef, forwardedRef = _b === void 0 ? null : _b, props = __rest(_a, ["text", "type", "icon", "color", "fluid", "onClick", "forwardedRef"]);
21868
+ var IconButtonComponent = function (_a) {
21869
+ var text = _a.text, type = _a.type, icon = _a.icon, color = _a.color, fluid = _a.fluid, onClick = _a.onClick, forwardedRef = _a.forwardedRef, props = __rest(_a, ["text", "type", "icon", "color", "fluid", "onClick", "forwardedRef"]);
21869
21870
  var colorClassName = color || '';
21870
21871
  var typeClassName = type || '';
21871
21872
  // const resolutionClassName = resolution === '480x800' ? 'regular' : resolution === '720x1280' ? 'big' :resolution === '1024x768/1440x960/1920x1080' ? 'small' : ''
@@ -21874,7 +21875,7 @@ function IconButtonComponent(_a) {
21874
21875
  // const iconVariant = icon === 'download' ? IconDownloadGrey : IconDownloadWhite;
21875
21876
  // const iconVariant = `${type} ${icon} ${colorClassName}`;
21876
21877
  return (jsxRuntime.exports.jsx(CustomIconButton, __assign({}, props, { onClick: onClick, fluid: fluid, ref: forwardedRef, startIcon: jsxRuntime.exports.jsx(Icon$1, { iconName: icon, color: color === 'grey' ? 'disabled' : type === 'primary' ? 'white' : color }), className: finalClassName, variant: "contained", disableRipple: true }, { children: text })));
21877
- }
21878
+ };
21878
21879
 
21879
21880
  var _g$t;
21880
21881
  function _extends$v() { _extends$v = 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$v.apply(this, arguments); }
@@ -34850,7 +34851,7 @@ var StyledLogoWrapper = styled(Box)(function (_a) {
34850
34851
  });
34851
34852
  // @ts-ignore
34852
34853
  var Logo = function (_a) {
34853
- var logoName = _a.logoName, color = _a.color, props = __rest(_a, ["logoName", "color"]);
34854
+ var logoName = _a.logoName, _b = _a.color, color = _b === void 0 ? 'red-navy' : _b, props = __rest(_a, ["logoName", "color"]);
34854
34855
  return (jsxRuntime.exports.jsxs(StyledLogoWrapper, __assign({ className: color, color: color }, props, { children: [logoName === 'logo_xelcode' && jsxRuntime.exports.jsx(SvgLogoXelcode, {}), logoName === 'logo_xelcode_dashboard' && jsxRuntime.exports.jsx(SvgLogoXelcodeDashboard, {})] })));
34855
34856
  };
34856
34857
 
@@ -34877,7 +34878,6 @@ var StyledBottomBarWrapper = styled(Box)(function (_a) {
34877
34878
  },
34878
34879
  });
34879
34880
  });
34880
- // @ts-ignore
34881
34881
  var BottomBarComponent = function (_a) {
34882
34882
  var buttons = _a.buttons, props = __rest(_a, ["buttons"]);
34883
34883
  return (jsxRuntime.exports.jsx(StyledBottomBarWrapper, __assign({}, props, { children: buttons.map(function (item) {
@@ -34888,7 +34888,7 @@ var BottomBarComponent = function (_a) {
34888
34888
  var text = (item === null || item === void 0 ? void 0 : item.text) || '';
34889
34889
  var color = (item === null || item === void 0 ? void 0 : item.color) || 'navy-blue';
34890
34890
  var size = (item === null || item === void 0 ? void 0 : item.size) || 'small';
34891
- return (jsxRuntime.exports.jsx(CustomButtonComponent, { disabled: disabled, fluid: fluid, onClick: onClick && typeof onClick === "function" ? onClick : null, type: type, text: text, color: color, size: size, resolution: undefined, width: undefined, forwardedRef: undefined }));
34891
+ return (jsxRuntime.exports.jsx(CustomButtonComponent, { disabled: disabled, fluid: fluid, onClick: onClick && typeof onClick === "function" ? onClick : undefined, type: type, text: text, color: color, size: size }));
34892
34892
  }) })));
34893
34893
  };
34894
34894
 
@@ -34900,7 +34900,9 @@ var StyledInfoBar = styled('div')(function (_a) { return ({
34900
34900
  width: '100%',
34901
34901
  zIndex: 100,
34902
34902
  }); });
34903
- var StyledInfoRow = styled('div')(function (_a) {
34903
+ var StyledInfoRow = styled('div', {
34904
+ shouldForwardProp: function (prop) { return prop !== "noLogo"; }
34905
+ })(function (_a) {
34904
34906
  var noLogo = _a.noLogo;
34905
34907
  return ({
34906
34908
  boxSizing: 'border-box',
@@ -34923,13 +34925,7 @@ var StyledInfoRow = styled('div')(function (_a) {
34923
34925
  // @ts-ignore
34924
34926
  var BottomInfoBar = function (_a) {
34925
34927
  var _b = _a.noLogo, noLogo = _b === void 0 ? false : _b, _c = _a.leftText, leftText = _c === void 0 ? 'left' : _c, _d = _a.rightText, rightText = _d === void 0 ? 'right' : _d, onRightTextClick = _a.onRightTextClick;
34926
- return (jsxRuntime.exports.jsx(StyledInfoBar, { children: jsxRuntime.exports.jsxs(StyledInfoRow, __assign({ noLogo: noLogo }, { children: [jsxRuntime.exports.jsx("div", { children: jsxRuntime.exports.jsx(CustomButtonComponent, { type: "ghost", text: leftText, color: "grey", disabled: true }) }), !noLogo && (jsxRuntime.exports.jsx("a", __assign({ href: "https://xelcode.com/", target: "_blank" }, { children: jsxRuntime.exports.jsx(Logo, { logoName: "logo_xelcode" }) }))), jsxRuntime.exports.jsx("div", { children: jsxRuntime.exports.jsx(CustomButtonComponent, { type: "ghost", text: rightText, color: "red", onClick: function () { return onRightTextClick && typeof onRightTextClick === "function" ? onRightTextClick() : null; } }) })] })) }));
34927
- };
34928
- BottomInfoBar.propTypes = {
34929
- noLogo: propTypes.exports.bool,
34930
- leftText: propTypes.exports.string,
34931
- rightText: propTypes.exports.string,
34932
- onRightTextClick: propTypes.exports.func,
34928
+ return (jsxRuntime.exports.jsx(StyledInfoBar, { children: jsxRuntime.exports.jsxs(StyledInfoRow, __assign({ noLogo: noLogo }, { children: [jsxRuntime.exports.jsx("div", { children: jsxRuntime.exports.jsx(CustomButtonComponent, { type: "ghost", text: leftText, color: "grey", disabled: true }) }), !noLogo && (jsxRuntime.exports.jsx("a", __assign({ href: "https://xelcode.com/", target: "_blank" }, { children: jsxRuntime.exports.jsx(Logo, { logoName: "logo_xelcode" }) }))), jsxRuntime.exports.jsx("div", { children: jsxRuntime.exports.jsx(CustomButtonComponent, { type: "ghost", text: rightText, color: "red", onClick: function (e) { return onRightTextClick && typeof onRightTextClick === "function" ? onRightTextClick(e) : null; } }) })] })) }));
34933
34929
  };
34934
34930
 
34935
34931
  /**
@@ -36232,7 +36228,7 @@ process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes /* remove-pro
36232
36228
  value: propTypes.exports.any
36233
36229
  } : void 0;
36234
36230
 
36235
- var StyledFormControlLabel = styled(function (props) { return jsxRuntime.exports.jsx(FormControlLabel, __assign({ ref: props.forwardedRef }, props)); })(function (_a) { return ({
36231
+ var StyledFormControlLabel = styled(FormControlLabel)(function (_a) { return ({
36236
36232
  boxSizing: 'border-box',
36237
36233
  marginBottom: '30px',
36238
36234
  marginLeft: 0,
@@ -36341,7 +36337,7 @@ var StyledCheckbox = styled(Checkbox)(function () {
36341
36337
  });
36342
36338
  });
36343
36339
  var CheckboxComponent = function (_a) {
36344
- var disabled = _a.disabled, label = _a.label, checked = _a.checked, onChange = _a.onChange, indeterminate = _a.indeterminate, _b = _a.forwardedRef, forwardedRef = _b === void 0 ? null : _b, props = __rest(_a, ["disabled", "label", "checked", "onChange", "indeterminate", "forwardedRef"]);
36340
+ var disabled = _a.disabled, label = _a.label, checked = _a.checked, onChange = _a.onChange, indeterminate = _a.indeterminate, forwardedRef = _a.forwardedRef, props = __rest(_a, ["disabled", "label", "checked", "onChange", "indeterminate", "forwardedRef"]);
36345
36341
  return (jsxRuntime.exports.jsx(FormGroup, { children: jsxRuntime.exports.jsx(StyledFormControlLabel, __assign({}, props, { ref: forwardedRef, classes: { disabled: 'disabled' }, control: jsxRuntime.exports.jsx(StyledCheckbox, { 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 })) }));
36346
36342
  };
36347
36343
 
@@ -42044,7 +42040,7 @@ const styledRootConfig = {
42044
42040
  const StyledInput = styled(Input, styledRootConfig)('');
42045
42041
  const StyledOutlinedInput = styled(OutlinedInput, styledRootConfig)('');
42046
42042
  const StyledFilledInput = styled(FilledInput, styledRootConfig)('');
42047
- const Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
42043
+ const Select$1 = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
42048
42044
  const props = useThemeProps({
42049
42045
  name: 'MuiSelect',
42050
42046
  props: inProps
@@ -42134,7 +42130,7 @@ const Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
42134
42130
  }, other))
42135
42131
  });
42136
42132
  });
42137
- process.env.NODE_ENV !== "production" ? Select.propTypes /* remove-proptypes */ = {
42133
+ process.env.NODE_ENV !== "production" ? Select$1.propTypes /* remove-proptypes */ = {
42138
42134
  // ----------------------------- Warning --------------------------------
42139
42135
  // | These PropTypes are generated from the TypeScript type definitions |
42140
42136
  // | To update them edit the d.ts file and run "yarn proptypes" |
@@ -42281,7 +42277,7 @@ process.env.NODE_ENV !== "production" ? Select.propTypes /* remove-proptypes */
42281
42277
  */
42282
42278
  variant: propTypes.exports.oneOf(['filled', 'outlined', 'standard'])
42283
42279
  } : void 0;
42284
- Select.muiName = 'Select';
42280
+ Select$1.muiName = 'Select';
42285
42281
 
42286
42282
  function getTextFieldUtilityClass(slot) {
42287
42283
  return generateUtilityClass('MuiTextField', slot);
@@ -42453,7 +42449,7 @@ const TextField$1 = /*#__PURE__*/React.forwardRef(function TextField(inProps, re
42453
42449
  id: inputLabelId
42454
42450
  }, InputLabelProps, {
42455
42451
  children: label
42456
- })), select ? /*#__PURE__*/jsxRuntime.exports.jsx(Select, _extends$1b({
42452
+ })), select ? /*#__PURE__*/jsxRuntime.exports.jsx(Select$1, _extends$1b({
42457
42453
  "aria-describedby": helperTextId,
42458
42454
  id: id,
42459
42455
  labelId: inputLabelId,
@@ -72206,7 +72202,7 @@ const TablePaginationSelectLabel = styled('p', {
72206
72202
  }) => _extends$1b({}, theme.typography.body2, {
72207
72203
  flexShrink: 0
72208
72204
  }));
72209
- const TablePaginationSelect = styled(Select, {
72205
+ const TablePaginationSelect = styled(Select$1, {
72210
72206
  name: 'MuiTablePagination',
72211
72207
  slot: 'Select',
72212
72208
  overridesResolver: (props, styles) => _extends$1b({
@@ -81100,7 +81096,9 @@ process.env.NODE_ENV !== "production" ? DatePicker$1.propTypes = {
81100
81096
  views: propTypes.exports.arrayOf(propTypes.exports.oneOf(['day', 'month', 'year']).isRequired)
81101
81097
  } : void 0;
81102
81098
 
81103
- var StyledDatePicker = styled(DatePicker$1)(function (_a) {
81099
+ var StyledDatePicker = styled(DatePicker$1, {
81100
+ shouldForwardProp: function (prop) { return prop !== "fluid"; }
81101
+ })(function (_a) {
81104
81102
  var fluid = _a.fluid;
81105
81103
  return ({
81106
81104
  width: fluid ? '100%' : 'min(100%, 368px)',
@@ -81177,7 +81175,7 @@ var StyledDatePicker = styled(DatePicker$1)(function (_a) {
81177
81175
  },
81178
81176
  });
81179
81177
  });
81180
- var pickerStyles = function (theme) { return ({
81178
+ var pickerStyles = function () { return ({
81181
81179
  '&.MuiPaper-root, .MuiPaper-root': {
81182
81180
  borderRadius: 2,
81183
81181
  boxShadow: '0 3px 6px #252A674D',
@@ -81279,7 +81277,11 @@ var pickerStyles = function (theme) { return ({
81279
81277
  },
81280
81278
  },
81281
81279
  }); };
81282
- var PickerIcon = React.forwardRef(function (props, ref) { return jsxRuntime.exports.jsx(Icon$1, __assign({}, props, { iconName: "icon_wf_calendar", color: props.disabled ? 'disabled' : 'red-navy', forwardedRef: ref, style: { display: 'flex' } })); });
81280
+ var PickerIcon = React.forwardRef(function (props, ref) {
81281
+ return jsxRuntime.exports.jsx(Icon$1, __assign({}, props, { iconName: "icon_wf_calendar",
81282
+ // color={props.disabled ? 'disabled' : 'red-navy'}
81283
+ forwardedRef: ref, style: { display: 'flex' } }));
81284
+ });
81283
81285
  var DatePicker = function (_a) {
81284
81286
  var value = _a.value, onChange = _a.onChange, _b = _a.label, label = _b === void 0 ? 'Date Picker' : _b, _c = _a.fluid, fluid = _c === void 0 ? false : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, forwardedRef = _a.forwardedRef, props = __rest(_a, ["value", "onChange", "label", "fluid", "disabled", "forwardedRef"]);
81285
81287
  return (jsxRuntime.exports.jsx(LocalizationProvider, __assign({ dateAdapter: AdapterDateFns }, { children: jsxRuntime.exports.jsx(StyledDatePicker, { label: label, value: value, desktopModeMediaQuery: '@media (min-width: 1020px)', disabled: disabled, inputProps: props, inputRef: forwardedRef, fluid: fluid,
@@ -81289,14 +81291,15 @@ var DatePicker = function (_a) {
81289
81291
  SwitchViewButton: undefined,
81290
81292
  SwitchViewIcon: undefined,
81291
81293
  }, PaperProps: {
81292
- sx: pickerStyles(theme)
81294
+ sx: pickerStyles()
81293
81295
  }, DialogProps: {
81294
- sx: pickerStyles(theme)
81296
+ sx: pickerStyles()
81295
81297
  }, renderInput: function (params) { return jsxRuntime.exports.jsx(TextField$1, __assign({}, params)); } }) })));
81296
81298
  };
81297
81299
 
81298
- // @ts-ignore
81299
- var StyledTextField = styled(TextField$1)(function (_a) {
81300
+ var StyledTextField = styled(TextField$1, {
81301
+ shouldForwardProp: function (prop) { return prop !== "fluid" && prop !== "small"; }
81302
+ })(function (_a) {
81300
81303
  var fluid = _a.fluid, small = _a.small;
81301
81304
  return ({
81302
81305
  width: fluid ? '100%' : 'min(100%, 368px)',
@@ -81419,15 +81422,200 @@ var StyledTextField = styled(TextField$1)(function (_a) {
81419
81422
  });
81420
81423
  var TextField = function (_a) {
81421
81424
  var _b = _a.label, label = _b === void 0 ? 'TextField' : _b, _c = _a.error, error = _c === void 0 ? false : _c, _d = _a.icon, icon = _d === void 0 ? 'icon_wf_keyboard' : _d, _e = _a.disabled, disabled = _e === void 0 ? false : _e, _f = _a.fluid, fluid = _f === void 0 ? false : _f, _g = _a.type, type = _g === void 0 ? 'text' : _g, _h = _a.min, min = _h === void 0 ? '' : _h, _j = _a.max, max = _j === void 0 ? '' : _j, _k = _a.small, small = _k === void 0 ? false : _k, _l = _a.helperText, helperText = _l === void 0 ? '' : _l, _m = _a.value, value = _m === void 0 ? '' : _m, onChange = _a.onChange, onBlur = _a.onBlur, forwardedRef = _a.forwardedRef, _o = _a.endAdornment, endAdornment = _o === void 0 ? '' : _o, props = __rest(_a, ["label", "error", "icon", "disabled", "fluid", "type", "min", "max", "small", "helperText", "value", "onChange", "onBlur", "forwardedRef", "endAdornment"]);
81422
- // @ts-ignore
81423
81425
  return (jsxRuntime.exports.jsx(StyledTextField, __assign({}, props, { value: value, onChange: onChange, label: label, type: type, variant: "outlined", error: error, onBlur: onBlur, disabled: disabled, helperText: error ? helperText : '', fluid: fluid, ref: forwardedRef, small: small, InputProps: {
81424
81426
  inputProps: {
81425
81427
  min: min,
81426
81428
  max: max,
81427
81429
  },
81428
- endAdornment: jsxRuntime.exports.jsx(InputAdornment, __assign({ position: "end" }, { children: endAdornment ? endAdornment : jsxRuntime.exports.jsx(Icon$1, { iconName: icon, color: disabled ? 'disabled' : error ? 'red' : 'red-navy', style: { display: 'flex', alignItems: 'center' }, size: "responsive" }) }))
81430
+ endAdornment: jsxRuntime.exports.jsx(InputAdornment, __assign({ position: "end" }, { children: endAdornment ? endAdornment : jsxRuntime.exports.jsx(Icon$1, { iconName: icon, color: disabled ? 'disabled' : error ? 'red' : 'red-navy', style: { display: 'flex', alignItems: 'center' } }) }))
81429
81431
  } })));
81430
81432
  };
81431
81433
 
81432
- export { AppTileComponent as AppTile, BottomBarComponent as BottomBar, BottomInfoBar, CustomButtonComponent as Button, CheckboxComponent as Checkbox, DatePicker, Icon$1 as Icon, IconButtonComponent as IconButton, Illustration, Logo, TextField, TypographyComponent as Typography };
81434
+ var StyledAutocomplete = styled(Autocomplete)(function (_a) {
81435
+ return ({
81436
+ width: '100%',
81437
+ '& label': {
81438
+ zIndex: 0,
81439
+ color: theme.mainPallete.primary.placeholderText,
81440
+ transform: 'translate(20px,15px) scale(1)',
81441
+ '&.Mui-focused, &[data-shrink="true"]': {
81442
+ color: theme.mainPallete.primary.blue,
81443
+ transform: 'translate(15px,-10px) scale(0.75)',
81444
+ },
81445
+ '&.Mui-disabled': {
81446
+ color: theme.mainPallete.primary.placeholderText,
81447
+ },
81448
+ },
81449
+ '& label, .MuiOutlinedInput-root': {
81450
+ fontSize: 21,
81451
+ fontWeight: theme.fontWeight.regular,
81452
+ fontFamily: theme.fontFamily,
81453
+ },
81454
+ '.MuiOutlinedInput-root': {
81455
+ color: theme.mainPallete.primary.blue,
81456
+ padding: '7.5px 75px 7.5px 20px !important',
81457
+ borderRadius: 7,
81458
+ '&.Mui-focused': {
81459
+ '.MuiOutlinedInput-notchedOutline': {
81460
+ borderColor: theme.mainPallete.primary.blue,
81461
+ },
81462
+ },
81463
+ '.MuiOutlinedInput-notchedOutline': {
81464
+ borderColor: theme.mainPallete.primary.blue,
81465
+ },
81466
+ '&.Mui-disabled fieldset': {
81467
+ borderColor: theme.mainPallete.primary.placeholderText,
81468
+ },
81469
+ '&.MuiInputBase-adornedStart': {
81470
+ paddingTop: 13,
81471
+ paddingBottom: 13
81472
+ },
81473
+ },
81474
+ 'div.MuiAutocomplete-endAdornment': {
81475
+ top: 'calc(50% - 17px)',
81476
+ right: '20px !important',
81477
+ 'button': {
81478
+ padding: 0,
81479
+ transition: 'transform 0.15s linear',
81480
+ '&[aria-label="Close"]': {
81481
+ transform: 'rotateX(180deg)'
81482
+ }
81483
+ },
81484
+ '.MuiAutocomplete-clearIndicator': {
81485
+ marginRight: '4px !important',
81486
+ color: theme.mainPallete.primary.blue
81487
+ },
81488
+ 'svg': {
81489
+ width: 26,
81490
+ height: 26,
81491
+ }
81492
+ },
81493
+ '@media(min-width: 720px)': {
81494
+ '& label': {
81495
+ transform: 'translate(20px,17px) scale(1)',
81496
+ '&.Mui-focused, &[data-shrink="true"]': {
81497
+ transform: 'translate(14px,-14px) scale(0.75)',
81498
+ },
81499
+ },
81500
+ '& label, .MuiOutlinedInput-root': {
81501
+ fontSize: 26,
81502
+ },
81503
+ '.MuiOutlinedInput-root': {
81504
+ padding: '11.5px 75px 11.5px 20px !important',
81505
+ },
81506
+ 'div.MuiAutocomplete-endAdornment': {
81507
+ top: 'calc(50% - 22px)',
81508
+ '.MuiAutocomplete-clearIndicator': {
81509
+ marginRight: '8px !important',
81510
+ },
81511
+ 'svg': {
81512
+ width: 30,
81513
+ height: 30,
81514
+ }
81515
+ },
81516
+ },
81517
+ '@media(min-width: 1024px)': {
81518
+ '& label': {
81519
+ transform: 'translate(20px,11px) scale(1)',
81520
+ '&.Mui-focused, &[data-shrink="true"]': {
81521
+ transform: 'translate(15px,-9px) scale(0.75)'
81522
+ },
81523
+ },
81524
+ '& label, .MuiOutlinedInput-root': {
81525
+ fontSize: 16,
81526
+ },
81527
+ '.MuiOutlinedInput-root': {
81528
+ padding: '3.5px 65px 3.5px 20px !important',
81529
+ },
81530
+ 'div.MuiAutocomplete-endAdornment': {
81531
+ top: 'calc(50% - 13px)',
81532
+ '.MuiAutocomplete-clearIndicator': {
81533
+ marginRight: '2px !important',
81534
+ },
81535
+ 'svg': {
81536
+ width: 22,
81537
+ height: 22,
81538
+ }
81539
+ },
81540
+ },
81541
+ });
81542
+ });
81543
+ var StyledWrapper = styled('div', {
81544
+ shouldForwardProp: function (prop) { return prop !== "fluid"; }
81545
+ })(function (_a) {
81546
+ var fluid = _a.fluid;
81547
+ return ({
81548
+ display: 'flex',
81549
+ alignItems: 'center',
81550
+ width: fluid === true ? '100%' : 'min(100%, 368px)',
81551
+ '@media (min-width: 720px) and (max-width: 1023px)': {
81552
+ width: fluid === true ? '100%' : 'min(100%, 468px)',
81553
+ },
81554
+ '@media (min-width: 1024px)': {
81555
+ width: fluid === true ? '100%' : 'min(100%, 268px)',
81556
+ },
81557
+ });
81558
+ });
81559
+ var StyledPaper = styled(Paper)(function (_a) { return ({
81560
+ border: '2px solid #293072',
81561
+ borderRadius: '7px !important',
81562
+ translate: '0 -1.5px',
81563
+ '.MuiAutocomplete-listbox': {
81564
+ fontSize: 21,
81565
+ margin: '16px 8px !important',
81566
+ fontWeight: theme.fontWeight.regular,
81567
+ fontFamily: theme.fontFamily,
81568
+ color: theme.mainPallete.primary.blue,
81569
+ padding: '0 !important',
81570
+ '&::-webkit-scrollbar': __assign({}, theme.scrollbar),
81571
+ '@media(min-width: 720px)': {
81572
+ fontSize: 26,
81573
+ },
81574
+ '@media(min-width: 1024px)': {
81575
+ fontSize: 16,
81576
+ }
81577
+ },
81578
+ '.MuiAutocomplete-option': {
81579
+ padding: '6px 14px !important',
81580
+ '@media(min-width: 720px)': {
81581
+ padding: '9px 14px !important',
81582
+ },
81583
+ '@media(min-width: 1024px)': {
81584
+ padding: '3px 14px !important',
81585
+ }
81586
+ },
81587
+ '.MuiAutocomplete-noOptions': {
81588
+ fontWeight: theme.fontWeight.regular,
81589
+ fontFamily: theme.fontFamily,
81590
+ color: theme.mainPallete.primary.placeholderText + '!important',
81591
+ },
81592
+ }); });
81593
+ var Select = function (_a) {
81594
+ var _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.label, label = _c === void 0 ? 'Select' : _c, _d = _a.withRefresh, withRefresh = _d === void 0 ? false : _d, _e = _a.fluid, fluid = _e === void 0 ? false : _e, _f = _a.placeholder, placeholder = _f === void 0 ? '' : _f; _a.onRefreshClick; var _h = _a.options, options = _h === void 0 ? [] : _h, _j = _a.value, value = _j === void 0 ? null : _j, _k = _a.onChange, onChange = _k === void 0 ? null : _k, _l = _a.forwardedRef, forwardedRef = _l === void 0 ? null : _l, _m = _a.noOptionsText, noOptionsText = _m === void 0 ? "" : _m, props = __rest(_a, ["disabled", "label", "withRefresh", "fluid", "placeholder", "onRefreshClick", "options", "value", "onChange", "forwardedRef", "noOptionsText"]);
81595
+ var _o = React.useState(360), deg = _o[0], SetDeg = _o[1];
81596
+ var flag = false;
81597
+ var onRefresh = function (target) {
81598
+ if (flag)
81599
+ return;
81600
+ if (!target)
81601
+ return;
81602
+ var targetAsHTMLElement = target;
81603
+ targetAsHTMLElement.style.transform = "rotate(".concat(deg, "deg)");
81604
+ SetDeg(deg + 360);
81605
+ flag = true;
81606
+ setTimeout(function () {
81607
+ flag = false;
81608
+ }, 300);
81609
+ };
81610
+ return (jsxRuntime.exports.jsxs(StyledWrapper, __assign({ fluid: fluid, ref: forwardedRef }, { children: [jsxRuntime.exports.jsx(StyledAutocomplete, __assign({}, props, { disabled: disabled, options: options, value: value,
81611
+ // @ts-ignore
81612
+ onChange: onChange, popupIcon: jsxRuntime.exports.jsx(Icon$1, { iconName: "icon_ui_chevron_down", color: disabled ? 'disabled' : 'red-navy', style: { display: 'flex' } }), PaperComponent: StyledPaper, renderInput: function (params) { return jsxRuntime.exports.jsx(TextField$1, __assign({}, params, { label: label, placeholder: placeholder })); }, noOptionsText: noOptionsText })), withRefresh ? jsxRuntime.exports.jsx(Icon$1, { iconName: 'icon_wf_refresh', style: { display: 'flex' }, onClick: function (e) {
81613
+ var target = e.target;
81614
+ if (onRefresh) {
81615
+ onRefresh(target.parentNode);
81616
+ }
81617
+ } }) : null] })));
81618
+ };
81619
+
81620
+ export { AppTileComponent as AppTile, BottomBarComponent as BottomBar, BottomInfoBar, CustomButtonComponent as Button, CheckboxComponent as Checkbox, DatePicker, Icon$1 as Icon, IconButtonComponent as IconButton, Illustration, Logo, Select, TextField, TypographyComponent as Typography };
81433
81621
  //# sourceMappingURL=index.js.map