@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/cjs/index.js CHANGED
@@ -19979,7 +19979,9 @@ process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */
19979
19979
  variant: propTypes.exports /* @typescript-to-proptypes-ignore */.oneOfType([propTypes.exports.oneOf(['contained', 'outlined', 'text']), propTypes.exports.string])
19980
19980
  } : void 0;
19981
19981
 
19982
- var CustomButton = styled(Button)(function (_a) {
19982
+ var CustomButton = styled(Button, {
19983
+ shouldForwardProp: function (prop) { return prop !== "fluid"; }
19984
+ })(function (_a) {
19983
19985
  var fluid = _a.fluid;
19984
19986
  return ({
19985
19987
  width: fluid ? '100%' : 'auto',
@@ -20206,13 +20208,11 @@ var CustomButton = styled(Button)(function (_a) {
20206
20208
  });
20207
20209
  // @ts-ignore
20208
20210
  var CustomButtonComponent = function (_a) {
20209
- 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"]);
20211
+ 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"]);
20210
20212
  var colorClassName = disabled ? 'grey' : color ? color : 'navy-blue'; // navy-blue / red / black / grey / special-green
20211
20213
  var typeClassName = type || 'primary'; // primary / secondary / ghost
20212
20214
  var sizeClassName = size || 'big'; // null / big / small
20213
20215
  // const behaviourClassName = behaviour || '';
20214
- // const resolutionClassName = resolution === '480x800' ? 'regular' : resolution === '720x1280' ? 'big' :resolution === '1024x768/1440x960/1920x1080' ? 'small' : ''
20215
- // const widthClassName = width === '100%' ? 'width100' : width === '50%' ? 'width50' : width === '33%' ? 'width33' : '';
20216
20216
  var finalClassName = "".concat(typeClassName, " ").concat(colorClassName, " ").concat(sizeClassName);
20217
20217
  return (jsxRuntime.exports.jsx(CustomButton, __assign({ disabled: disabled, onClick: onClick, className: finalClassName, fluid: fluid, variant: "contained", disableRipple: true, ref: forwardedRef }, props, { children: text })));
20218
20218
  };
@@ -21686,11 +21686,13 @@ var StyledIconWrapper = styled(Box)(function (_a) {
21686
21686
  });
21687
21687
  // @ts-ignore
21688
21688
  var Icon$1 = function (_a) {
21689
- 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"]);
21690
- 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, {})] })));
21689
+ 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"]);
21690
+ 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, {})] })));
21691
21691
  };
21692
21692
 
21693
- var CustomIconButton = styled(Button)(function (_a) {
21693
+ var CustomIconButton = styled(Button, {
21694
+ shouldForwardProp: function (prop) { return prop !== "fluid"; }
21695
+ })(function (_a) {
21694
21696
  var fluid = _a.fluid;
21695
21697
  return ({
21696
21698
  width: fluid ? '100%' : 'auto',
@@ -21883,9 +21885,8 @@ var CustomIconButton = styled(Button)(function (_a) {
21883
21885
  },
21884
21886
  });
21885
21887
  });
21886
- // @ts-ignore
21887
- function IconButtonComponent(_a) {
21888
- 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"]);
21888
+ var IconButtonComponent = function (_a) {
21889
+ 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"]);
21889
21890
  var colorClassName = color || '';
21890
21891
  var typeClassName = type || '';
21891
21892
  // const resolutionClassName = resolution === '480x800' ? 'regular' : resolution === '720x1280' ? 'big' :resolution === '1024x768/1440x960/1920x1080' ? 'small' : ''
@@ -21894,7 +21895,7 @@ function IconButtonComponent(_a) {
21894
21895
  // const iconVariant = icon === 'download' ? IconDownloadGrey : IconDownloadWhite;
21895
21896
  // const iconVariant = `${type} ${icon} ${colorClassName}`;
21896
21897
  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 })));
21897
- }
21898
+ };
21898
21899
 
21899
21900
  var _g$t;
21900
21901
  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); }
@@ -34870,7 +34871,7 @@ var StyledLogoWrapper = styled(Box)(function (_a) {
34870
34871
  });
34871
34872
  // @ts-ignore
34872
34873
  var Logo = function (_a) {
34873
- var logoName = _a.logoName, color = _a.color, props = __rest(_a, ["logoName", "color"]);
34874
+ var logoName = _a.logoName, _b = _a.color, color = _b === void 0 ? 'red-navy' : _b, props = __rest(_a, ["logoName", "color"]);
34874
34875
  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, {})] })));
34875
34876
  };
34876
34877
 
@@ -34897,7 +34898,6 @@ var StyledBottomBarWrapper = styled(Box)(function (_a) {
34897
34898
  },
34898
34899
  });
34899
34900
  });
34900
- // @ts-ignore
34901
34901
  var BottomBarComponent = function (_a) {
34902
34902
  var buttons = _a.buttons, props = __rest(_a, ["buttons"]);
34903
34903
  return (jsxRuntime.exports.jsx(StyledBottomBarWrapper, __assign({}, props, { children: buttons.map(function (item) {
@@ -34908,7 +34908,7 @@ var BottomBarComponent = function (_a) {
34908
34908
  var text = (item === null || item === void 0 ? void 0 : item.text) || '';
34909
34909
  var color = (item === null || item === void 0 ? void 0 : item.color) || 'navy-blue';
34910
34910
  var size = (item === null || item === void 0 ? void 0 : item.size) || 'small';
34911
- 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 }));
34911
+ return (jsxRuntime.exports.jsx(CustomButtonComponent, { disabled: disabled, fluid: fluid, onClick: onClick && typeof onClick === "function" ? onClick : undefined, type: type, text: text, color: color, size: size }));
34912
34912
  }) })));
34913
34913
  };
34914
34914
 
@@ -34920,7 +34920,9 @@ var StyledInfoBar = styled('div')(function (_a) { return ({
34920
34920
  width: '100%',
34921
34921
  zIndex: 100,
34922
34922
  }); });
34923
- var StyledInfoRow = styled('div')(function (_a) {
34923
+ var StyledInfoRow = styled('div', {
34924
+ shouldForwardProp: function (prop) { return prop !== "noLogo"; }
34925
+ })(function (_a) {
34924
34926
  var noLogo = _a.noLogo;
34925
34927
  return ({
34926
34928
  boxSizing: 'border-box',
@@ -34943,13 +34945,7 @@ var StyledInfoRow = styled('div')(function (_a) {
34943
34945
  // @ts-ignore
34944
34946
  var BottomInfoBar = function (_a) {
34945
34947
  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;
34946
- 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; } }) })] })) }));
34947
- };
34948
- BottomInfoBar.propTypes = {
34949
- noLogo: propTypes.exports.bool,
34950
- leftText: propTypes.exports.string,
34951
- rightText: propTypes.exports.string,
34952
- onRightTextClick: propTypes.exports.func,
34948
+ 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; } }) })] })) }));
34953
34949
  };
34954
34950
 
34955
34951
  /**
@@ -36252,7 +36248,7 @@ process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes /* remove-pro
36252
36248
  value: propTypes.exports.any
36253
36249
  } : void 0;
36254
36250
 
36255
- var StyledFormControlLabel = styled(function (props) { return jsxRuntime.exports.jsx(FormControlLabel, __assign({ ref: props.forwardedRef }, props)); })(function (_a) { return ({
36251
+ var StyledFormControlLabel = styled(FormControlLabel)(function (_a) { return ({
36256
36252
  boxSizing: 'border-box',
36257
36253
  marginBottom: '30px',
36258
36254
  marginLeft: 0,
@@ -36361,7 +36357,7 @@ var StyledCheckbox = styled(Checkbox)(function () {
36361
36357
  });
36362
36358
  });
36363
36359
  var CheckboxComponent = function (_a) {
36364
- 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"]);
36360
+ 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"]);
36365
36361
  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 })) }));
36366
36362
  };
36367
36363
 
@@ -42064,7 +42060,7 @@ const styledRootConfig = {
42064
42060
  const StyledInput = styled(Input, styledRootConfig)('');
42065
42061
  const StyledOutlinedInput = styled(OutlinedInput, styledRootConfig)('');
42066
42062
  const StyledFilledInput = styled(FilledInput, styledRootConfig)('');
42067
- const Select = /*#__PURE__*/React__namespace.forwardRef(function Select(inProps, ref) {
42063
+ const Select$1 = /*#__PURE__*/React__namespace.forwardRef(function Select(inProps, ref) {
42068
42064
  const props = useThemeProps({
42069
42065
  name: 'MuiSelect',
42070
42066
  props: inProps
@@ -42154,7 +42150,7 @@ const Select = /*#__PURE__*/React__namespace.forwardRef(function Select(inProps,
42154
42150
  }, other))
42155
42151
  });
42156
42152
  });
42157
- process.env.NODE_ENV !== "production" ? Select.propTypes /* remove-proptypes */ = {
42153
+ process.env.NODE_ENV !== "production" ? Select$1.propTypes /* remove-proptypes */ = {
42158
42154
  // ----------------------------- Warning --------------------------------
42159
42155
  // | These PropTypes are generated from the TypeScript type definitions |
42160
42156
  // | To update them edit the d.ts file and run "yarn proptypes" |
@@ -42301,7 +42297,7 @@ process.env.NODE_ENV !== "production" ? Select.propTypes /* remove-proptypes */
42301
42297
  */
42302
42298
  variant: propTypes.exports.oneOf(['filled', 'outlined', 'standard'])
42303
42299
  } : void 0;
42304
- Select.muiName = 'Select';
42300
+ Select$1.muiName = 'Select';
42305
42301
 
42306
42302
  function getTextFieldUtilityClass(slot) {
42307
42303
  return generateUtilityClass('MuiTextField', slot);
@@ -42473,7 +42469,7 @@ const TextField$1 = /*#__PURE__*/React__namespace.forwardRef(function TextField(
42473
42469
  id: inputLabelId
42474
42470
  }, InputLabelProps, {
42475
42471
  children: label
42476
- })), select ? /*#__PURE__*/jsxRuntime.exports.jsx(Select, _extends$1b({
42472
+ })), select ? /*#__PURE__*/jsxRuntime.exports.jsx(Select$1, _extends$1b({
42477
42473
  "aria-describedby": helperTextId,
42478
42474
  id: id,
42479
42475
  labelId: inputLabelId,
@@ -72226,7 +72222,7 @@ const TablePaginationSelectLabel = styled('p', {
72226
72222
  }) => _extends$1b({}, theme.typography.body2, {
72227
72223
  flexShrink: 0
72228
72224
  }));
72229
- const TablePaginationSelect = styled(Select, {
72225
+ const TablePaginationSelect = styled(Select$1, {
72230
72226
  name: 'MuiTablePagination',
72231
72227
  slot: 'Select',
72232
72228
  overridesResolver: (props, styles) => _extends$1b({
@@ -81120,7 +81116,9 @@ process.env.NODE_ENV !== "production" ? DatePicker$1.propTypes = {
81120
81116
  views: propTypes.exports.arrayOf(propTypes.exports.oneOf(['day', 'month', 'year']).isRequired)
81121
81117
  } : void 0;
81122
81118
 
81123
- var StyledDatePicker = styled(DatePicker$1)(function (_a) {
81119
+ var StyledDatePicker = styled(DatePicker$1, {
81120
+ shouldForwardProp: function (prop) { return prop !== "fluid"; }
81121
+ })(function (_a) {
81124
81122
  var fluid = _a.fluid;
81125
81123
  return ({
81126
81124
  width: fluid ? '100%' : 'min(100%, 368px)',
@@ -81197,7 +81195,7 @@ var StyledDatePicker = styled(DatePicker$1)(function (_a) {
81197
81195
  },
81198
81196
  });
81199
81197
  });
81200
- var pickerStyles = function (theme) { return ({
81198
+ var pickerStyles = function () { return ({
81201
81199
  '&.MuiPaper-root, .MuiPaper-root': {
81202
81200
  borderRadius: 2,
81203
81201
  boxShadow: '0 3px 6px #252A674D',
@@ -81299,7 +81297,11 @@ var pickerStyles = function (theme) { return ({
81299
81297
  },
81300
81298
  },
81301
81299
  }); };
81302
- var PickerIcon = React__namespace.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' } })); });
81300
+ var PickerIcon = React__namespace.forwardRef(function (props, ref) {
81301
+ return jsxRuntime.exports.jsx(Icon$1, __assign({}, props, { iconName: "icon_wf_calendar",
81302
+ // color={props.disabled ? 'disabled' : 'red-navy'}
81303
+ forwardedRef: ref, style: { display: 'flex' } }));
81304
+ });
81303
81305
  var DatePicker = function (_a) {
81304
81306
  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"]);
81305
81307
  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,
@@ -81309,14 +81311,15 @@ var DatePicker = function (_a) {
81309
81311
  SwitchViewButton: undefined,
81310
81312
  SwitchViewIcon: undefined,
81311
81313
  }, PaperProps: {
81312
- sx: pickerStyles(theme)
81314
+ sx: pickerStyles()
81313
81315
  }, DialogProps: {
81314
- sx: pickerStyles(theme)
81316
+ sx: pickerStyles()
81315
81317
  }, renderInput: function (params) { return jsxRuntime.exports.jsx(TextField$1, __assign({}, params)); } }) })));
81316
81318
  };
81317
81319
 
81318
- // @ts-ignore
81319
- var StyledTextField = styled(TextField$1)(function (_a) {
81320
+ var StyledTextField = styled(TextField$1, {
81321
+ shouldForwardProp: function (prop) { return prop !== "fluid" && prop !== "small"; }
81322
+ })(function (_a) {
81320
81323
  var fluid = _a.fluid, small = _a.small;
81321
81324
  return ({
81322
81325
  width: fluid ? '100%' : 'min(100%, 368px)',
@@ -81439,16 +81442,201 @@ var StyledTextField = styled(TextField$1)(function (_a) {
81439
81442
  });
81440
81443
  var TextField = function (_a) {
81441
81444
  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"]);
81442
- // @ts-ignore
81443
81445
  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: {
81444
81446
  inputProps: {
81445
81447
  min: min,
81446
81448
  max: max,
81447
81449
  },
81448
- 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" }) }))
81450
+ 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' } }) }))
81449
81451
  } })));
81450
81452
  };
81451
81453
 
81454
+ var StyledAutocomplete = styled(Autocomplete)(function (_a) {
81455
+ return ({
81456
+ width: '100%',
81457
+ '& label': {
81458
+ zIndex: 0,
81459
+ color: theme.mainPallete.primary.placeholderText,
81460
+ transform: 'translate(20px,15px) scale(1)',
81461
+ '&.Mui-focused, &[data-shrink="true"]': {
81462
+ color: theme.mainPallete.primary.blue,
81463
+ transform: 'translate(15px,-10px) scale(0.75)',
81464
+ },
81465
+ '&.Mui-disabled': {
81466
+ color: theme.mainPallete.primary.placeholderText,
81467
+ },
81468
+ },
81469
+ '& label, .MuiOutlinedInput-root': {
81470
+ fontSize: 21,
81471
+ fontWeight: theme.fontWeight.regular,
81472
+ fontFamily: theme.fontFamily,
81473
+ },
81474
+ '.MuiOutlinedInput-root': {
81475
+ color: theme.mainPallete.primary.blue,
81476
+ padding: '7.5px 75px 7.5px 20px !important',
81477
+ borderRadius: 7,
81478
+ '&.Mui-focused': {
81479
+ '.MuiOutlinedInput-notchedOutline': {
81480
+ borderColor: theme.mainPallete.primary.blue,
81481
+ },
81482
+ },
81483
+ '.MuiOutlinedInput-notchedOutline': {
81484
+ borderColor: theme.mainPallete.primary.blue,
81485
+ },
81486
+ '&.Mui-disabled fieldset': {
81487
+ borderColor: theme.mainPallete.primary.placeholderText,
81488
+ },
81489
+ '&.MuiInputBase-adornedStart': {
81490
+ paddingTop: 13,
81491
+ paddingBottom: 13
81492
+ },
81493
+ },
81494
+ 'div.MuiAutocomplete-endAdornment': {
81495
+ top: 'calc(50% - 17px)',
81496
+ right: '20px !important',
81497
+ 'button': {
81498
+ padding: 0,
81499
+ transition: 'transform 0.15s linear',
81500
+ '&[aria-label="Close"]': {
81501
+ transform: 'rotateX(180deg)'
81502
+ }
81503
+ },
81504
+ '.MuiAutocomplete-clearIndicator': {
81505
+ marginRight: '4px !important',
81506
+ color: theme.mainPallete.primary.blue
81507
+ },
81508
+ 'svg': {
81509
+ width: 26,
81510
+ height: 26,
81511
+ }
81512
+ },
81513
+ '@media(min-width: 720px)': {
81514
+ '& label': {
81515
+ transform: 'translate(20px,17px) scale(1)',
81516
+ '&.Mui-focused, &[data-shrink="true"]': {
81517
+ transform: 'translate(14px,-14px) scale(0.75)',
81518
+ },
81519
+ },
81520
+ '& label, .MuiOutlinedInput-root': {
81521
+ fontSize: 26,
81522
+ },
81523
+ '.MuiOutlinedInput-root': {
81524
+ padding: '11.5px 75px 11.5px 20px !important',
81525
+ },
81526
+ 'div.MuiAutocomplete-endAdornment': {
81527
+ top: 'calc(50% - 22px)',
81528
+ '.MuiAutocomplete-clearIndicator': {
81529
+ marginRight: '8px !important',
81530
+ },
81531
+ 'svg': {
81532
+ width: 30,
81533
+ height: 30,
81534
+ }
81535
+ },
81536
+ },
81537
+ '@media(min-width: 1024px)': {
81538
+ '& label': {
81539
+ transform: 'translate(20px,11px) scale(1)',
81540
+ '&.Mui-focused, &[data-shrink="true"]': {
81541
+ transform: 'translate(15px,-9px) scale(0.75)'
81542
+ },
81543
+ },
81544
+ '& label, .MuiOutlinedInput-root': {
81545
+ fontSize: 16,
81546
+ },
81547
+ '.MuiOutlinedInput-root': {
81548
+ padding: '3.5px 65px 3.5px 20px !important',
81549
+ },
81550
+ 'div.MuiAutocomplete-endAdornment': {
81551
+ top: 'calc(50% - 13px)',
81552
+ '.MuiAutocomplete-clearIndicator': {
81553
+ marginRight: '2px !important',
81554
+ },
81555
+ 'svg': {
81556
+ width: 22,
81557
+ height: 22,
81558
+ }
81559
+ },
81560
+ },
81561
+ });
81562
+ });
81563
+ var StyledWrapper = styled('div', {
81564
+ shouldForwardProp: function (prop) { return prop !== "fluid"; }
81565
+ })(function (_a) {
81566
+ var fluid = _a.fluid;
81567
+ return ({
81568
+ display: 'flex',
81569
+ alignItems: 'center',
81570
+ width: fluid === true ? '100%' : 'min(100%, 368px)',
81571
+ '@media (min-width: 720px) and (max-width: 1023px)': {
81572
+ width: fluid === true ? '100%' : 'min(100%, 468px)',
81573
+ },
81574
+ '@media (min-width: 1024px)': {
81575
+ width: fluid === true ? '100%' : 'min(100%, 268px)',
81576
+ },
81577
+ });
81578
+ });
81579
+ var StyledPaper = styled(Paper)(function (_a) { return ({
81580
+ border: '2px solid #293072',
81581
+ borderRadius: '7px !important',
81582
+ translate: '0 -1.5px',
81583
+ '.MuiAutocomplete-listbox': {
81584
+ fontSize: 21,
81585
+ margin: '16px 8px !important',
81586
+ fontWeight: theme.fontWeight.regular,
81587
+ fontFamily: theme.fontFamily,
81588
+ color: theme.mainPallete.primary.blue,
81589
+ padding: '0 !important',
81590
+ '&::-webkit-scrollbar': __assign({}, theme.scrollbar),
81591
+ '@media(min-width: 720px)': {
81592
+ fontSize: 26,
81593
+ },
81594
+ '@media(min-width: 1024px)': {
81595
+ fontSize: 16,
81596
+ }
81597
+ },
81598
+ '.MuiAutocomplete-option': {
81599
+ padding: '6px 14px !important',
81600
+ '@media(min-width: 720px)': {
81601
+ padding: '9px 14px !important',
81602
+ },
81603
+ '@media(min-width: 1024px)': {
81604
+ padding: '3px 14px !important',
81605
+ }
81606
+ },
81607
+ '.MuiAutocomplete-noOptions': {
81608
+ fontWeight: theme.fontWeight.regular,
81609
+ fontFamily: theme.fontFamily,
81610
+ color: theme.mainPallete.primary.placeholderText + '!important',
81611
+ },
81612
+ }); });
81613
+ var Select = function (_a) {
81614
+ 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"]);
81615
+ var _o = React__namespace.useState(360), deg = _o[0], SetDeg = _o[1];
81616
+ var flag = false;
81617
+ var onRefresh = function (target) {
81618
+ if (flag)
81619
+ return;
81620
+ if (!target)
81621
+ return;
81622
+ var targetAsHTMLElement = target;
81623
+ targetAsHTMLElement.style.transform = "rotate(".concat(deg, "deg)");
81624
+ SetDeg(deg + 360);
81625
+ flag = true;
81626
+ setTimeout(function () {
81627
+ flag = false;
81628
+ }, 300);
81629
+ };
81630
+ return (jsxRuntime.exports.jsxs(StyledWrapper, __assign({ fluid: fluid, ref: forwardedRef }, { children: [jsxRuntime.exports.jsx(StyledAutocomplete, __assign({}, props, { disabled: disabled, options: options, value: value,
81631
+ // @ts-ignore
81632
+ 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) {
81633
+ var target = e.target;
81634
+ if (onRefresh) {
81635
+ onRefresh(target.parentNode);
81636
+ }
81637
+ } }) : null] })));
81638
+ };
81639
+
81452
81640
  exports.AppTile = AppTileComponent;
81453
81641
  exports.BottomBar = BottomBarComponent;
81454
81642
  exports.BottomInfoBar = BottomInfoBar;
@@ -81459,6 +81647,7 @@ exports.Icon = Icon$1;
81459
81647
  exports.IconButton = IconButtonComponent;
81460
81648
  exports.Illustration = Illustration;
81461
81649
  exports.Logo = Logo;
81650
+ exports.Select = Select;
81462
81651
  exports.TextField = TextField;
81463
81652
  exports.Typography = TypographyComponent;
81464
81653
  //# sourceMappingURL=index.js.map