@xelto.npm/xc2-lib 0.0.45 → 0.0.46
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/cjs/index.js +35 -33
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Inputs/select/Select.d.ts +4 -0
- package/dist/cjs/types/components/Inputs/select/SelectProps.d.ts +18 -0
- package/dist/cjs/types/components/Inputs/textfield/TextField.d.ts +5 -1
- package/dist/cjs/types/components/bottomBar/BottomBarComponent.d.ts +13 -5
- package/dist/cjs/types/components/bottomInfoBar/BottomInfoBar.d.ts +3 -16
- package/dist/cjs/types/components/bottomInfoBar/BottomInfoBarProps.d.ts +7 -0
- package/dist/cjs/types/components/buttons/customButton/CustomButtonComponent.d.ts +3 -14
- package/dist/cjs/types/components/buttons/customButton/CustomButtonProps.d.ts +11 -0
- package/dist/cjs/types/components/buttons/iconButton/IconButtonComponent.d.ts +4 -11
- package/dist/cjs/types/components/buttons/iconButton/IconButtonProps.d.ts +10 -0
- package/dist/cjs/types/components/checkbox/CheckboxComponent.d.ts +3 -10
- package/dist/cjs/types/components/checkbox/CheckboxProps.d.ts +9 -0
- package/dist/cjs/types/components/foundations/icon/Icon.d.ts +3 -8
- package/dist/cjs/types/components/foundations/icon/IconProps.d.ts +9 -0
- package/dist/cjs/types/components/foundations/logo/Logo.d.ts +5 -6
- package/dist/esm/index.js +35 -33
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Inputs/select/Select.d.ts +4 -0
- package/dist/esm/types/components/Inputs/select/SelectProps.d.ts +18 -0
- package/dist/esm/types/components/Inputs/textfield/TextField.d.ts +5 -1
- package/dist/esm/types/components/bottomBar/BottomBarComponent.d.ts +13 -5
- package/dist/esm/types/components/bottomInfoBar/BottomInfoBar.d.ts +3 -16
- package/dist/esm/types/components/bottomInfoBar/BottomInfoBarProps.d.ts +7 -0
- package/dist/esm/types/components/buttons/customButton/CustomButtonComponent.d.ts +3 -14
- package/dist/esm/types/components/buttons/customButton/CustomButtonProps.d.ts +11 -0
- package/dist/esm/types/components/buttons/iconButton/IconButtonComponent.d.ts +4 -11
- package/dist/esm/types/components/buttons/iconButton/IconButtonProps.d.ts +10 -0
- package/dist/esm/types/components/checkbox/CheckboxComponent.d.ts +3 -10
- package/dist/esm/types/components/checkbox/CheckboxProps.d.ts +9 -0
- package/dist/esm/types/components/foundations/icon/Icon.d.ts +3 -8
- package/dist/esm/types/components/foundations/icon/IconProps.d.ts +9 -0
- package/dist/esm/types/components/foundations/logo/Logo.d.ts +5 -6
- package/dist/index.d.ts +69 -65
- package/package.json +3 -3
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChangeEventHandler, RefObject } from "react";
|
|
2
|
+
export interface SelectProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
fluid?: boolean;
|
|
5
|
+
label?: string;
|
|
6
|
+
options?: {
|
|
7
|
+
label: string;
|
|
8
|
+
}[];
|
|
9
|
+
withRefresh?: boolean;
|
|
10
|
+
value?: object;
|
|
11
|
+
noOptionsText?: string;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
onChange?: ChangeEventHandler<HTMLTextAreaElement | HTMLInputElement>;
|
|
14
|
+
onBlur?: ChangeEventHandler<HTMLTextAreaElement | HTMLInputElement>;
|
|
15
|
+
forwardedRef?: (instance: HTMLDivElement | null) => void | RefObject<HTMLDivElement> | null;
|
|
16
|
+
onRefreshClick?: void;
|
|
17
|
+
endAdornment?: string;
|
|
18
|
+
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { TextFieldProps } from "./TextFieldProps";
|
|
3
|
-
|
|
3
|
+
interface ExtraProps {
|
|
4
|
+
fluid?: boolean;
|
|
5
|
+
small?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const StyledTextField: import("@emotion/styled").StyledComponent<(import("@mui/material/TextField").TextFieldProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>) & ExtraProps, {}, {}>;
|
|
4
8
|
declare const TextField: React.FunctionComponent<TextFieldProps>;
|
|
5
9
|
export default TextField;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import React, { MouseEventHandler } from 'react';
|
|
2
|
+
interface ItemProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
fluid?: boolean;
|
|
5
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
6
|
+
type?: string;
|
|
7
|
+
text?: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
size?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const BottomBarComponent: React.FunctionComponent<{
|
|
12
|
+
buttons: ItemProps[];
|
|
13
|
+
}>;
|
|
6
14
|
export default BottomBarComponent;
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
declare const BottomInfoBar:
|
|
4
|
-
({ noLogo, leftText, rightText, onRightTextClick }: {
|
|
5
|
-
noLogo?: boolean | undefined;
|
|
6
|
-
leftText?: string | undefined;
|
|
7
|
-
rightText?: string | undefined;
|
|
8
|
-
onRightTextClick: any;
|
|
9
|
-
}): JSX.Element;
|
|
10
|
-
propTypes: {
|
|
11
|
-
noLogo: propTypes.Requireable<boolean>;
|
|
12
|
-
leftText: propTypes.Requireable<string>;
|
|
13
|
-
rightText: propTypes.Requireable<string>;
|
|
14
|
-
onRightTextClick: propTypes.Requireable<(...args: any[]) => any>;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { BottomInfoBarProps } from "./BottomInfoBarProps";
|
|
3
|
+
declare const BottomInfoBar: React.FunctionComponent<BottomInfoBarProps>;
|
|
17
4
|
export default BottomInfoBar;
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type: any;
|
|
5
|
-
text: any;
|
|
6
|
-
size: any;
|
|
7
|
-
fluid: any;
|
|
8
|
-
color: any;
|
|
9
|
-
resolution: any;
|
|
10
|
-
width: any;
|
|
11
|
-
onClick: any;
|
|
12
|
-
disabled: any;
|
|
13
|
-
forwardedRef?: null | undefined;
|
|
14
|
-
}) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CustomButtonProps } from "./CustomButtonProps";
|
|
3
|
+
declare const CustomButtonComponent: React.FunctionComponent<CustomButtonProps>;
|
|
15
4
|
export default CustomButtonComponent;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Ref, MouseEventHandler } from "react";
|
|
2
|
+
export interface CustomButtonProps {
|
|
3
|
+
text?: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
size?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
fluid?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
10
|
+
forwardedRef?: Ref<HTMLButtonElement>;
|
|
11
|
+
}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type: any;
|
|
6
|
-
icon: any;
|
|
7
|
-
color: any;
|
|
8
|
-
fluid: any;
|
|
9
|
-
onClick: any;
|
|
10
|
-
forwardedRef?: null | undefined;
|
|
11
|
-
}): JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IconButtonProps } from "./IconButtonProps";
|
|
3
|
+
declare const IconButtonComponent: React.FunctionComponent<IconButtonProps>;
|
|
4
|
+
export default IconButtonComponent;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Ref, MouseEventHandler } from "react";
|
|
2
|
+
export interface IconButtonProps {
|
|
3
|
+
text?: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
fluid?: boolean;
|
|
8
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
9
|
+
forwardedRef?: Ref<HTMLButtonElement>;
|
|
10
|
+
}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
disabled: any;
|
|
5
|
-
label: any;
|
|
6
|
-
checked: any;
|
|
7
|
-
onChange: any;
|
|
8
|
-
indeterminate: any;
|
|
9
|
-
forwardedRef?: null | undefined;
|
|
10
|
-
}) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CheckboxProps } from "./CheckboxProps";
|
|
3
|
+
declare const CheckboxComponent: React.FunctionComponent<CheckboxProps>;
|
|
11
4
|
export default CheckboxComponent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Ref, ChangeEvent } from "react";
|
|
2
|
+
export interface CheckboxProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
label?: string;
|
|
5
|
+
indeterminate?: boolean;
|
|
6
|
+
onChange: (event: ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
7
|
+
forwardedRef?: Ref<HTMLInputElement>;
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
iconName?: string | undefined;
|
|
5
|
-
color?: string | undefined;
|
|
6
|
-
size?: string | undefined;
|
|
7
|
-
forwardedRef?: null | undefined;
|
|
8
|
-
}) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconProps } from "./IconProps";
|
|
3
|
+
declare const Icon: React.FunctionComponent<IconProps>;
|
|
9
4
|
export default Icon;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
declare const Logo:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const Logo: React.FunctionComponent<{
|
|
3
|
+
logoName: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
}>;
|
|
7
6
|
export default Logo;
|
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
|
|
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
|
|
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,
|
|
21670
|
-
return (jsxRuntime.exports.jsxs(StyledIconWrapper, __assign({}, rest, { ref: forwardedRef, className: "".concat(color, " ").concat(size), color: color,
|
|
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
|
|
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
|
-
|
|
21867
|
-
|
|
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,
|
|
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 :
|
|
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'
|
|
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(
|
|
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,
|
|
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
|
|
|
@@ -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
|
|
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 (
|
|
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) {
|
|
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(
|
|
81294
|
+
sx: pickerStyles()
|
|
81293
81295
|
}, DialogProps: {
|
|
81294
|
-
sx: pickerStyles(
|
|
81296
|
+
sx: pickerStyles()
|
|
81295
81297
|
}, renderInput: function (params) { return jsxRuntime.exports.jsx(TextField$1, __assign({}, params)); } }) })));
|
|
81296
81298
|
};
|
|
81297
81299
|
|
|
81298
|
-
|
|
81299
|
-
|
|
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,13 +81422,12 @@ 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' }
|
|
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
|
|