@xelto.npm/xc2-lib 0.0.26 → 0.0.27

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.
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare const BottomBarComponent: ({ buttons, ...props }: {
3
+ [x: string]: any;
4
+ buttons: any;
5
+ }) => JSX.Element;
6
+ export default BottomBarComponent;
@@ -0,0 +1 @@
1
+ export { default } from "./BottomBarComponent";
@@ -3,3 +3,4 @@ export { default as Typography } from "./typography";
3
3
  export { default as Button } from "./buttons/customButton";
4
4
  export { default as Illustration } from "./foundations/illustration";
5
5
  export { default as Icon } from "./foundations/icon";
6
+ export { default as BottomBar } from "./bottomBar";
package/dist/esm/index.js CHANGED
@@ -28020,5 +28020,43 @@ var Icon = function (_a) {
28020
28020
  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, {})] })));
28021
28021
  };
28022
28022
 
28023
- export { AppTileComponent as AppTile, CustomButtonComponent as Button, Icon, Illustration, TypographyComponent as Typography };
28023
+ var StyledBottomBarWrapper = styled(Box)(function (_a) {
28024
+ return ({
28025
+ boxSizing: 'border-box',
28026
+ width: '100%',
28027
+ height: '80px',
28028
+ backgroundColor: theme.mainPallete.primary.white,
28029
+ boxShadow: '0 -3px 6px rgba(0,0,0,0.1)',
28030
+ display: 'flex',
28031
+ justifyContent: 'space-between',
28032
+ alignItems: 'center',
28033
+ padding: '0 18px',
28034
+ position: 'fixed',
28035
+ bottom: 0,
28036
+ left: 0,
28037
+ zIndex: 5,
28038
+ 'button': {
28039
+ marginLeft: 10,
28040
+ '&:first-child': {
28041
+ marginLeft: 0,
28042
+ }
28043
+ },
28044
+ });
28045
+ });
28046
+ // @ts-ignore
28047
+ var BottomBarComponent = function (_a) {
28048
+ var buttons = _a.buttons, props = __rest(_a, ["buttons"]);
28049
+ return (jsxRuntime.exports.jsx(StyledBottomBarWrapper, __assign({}, props, { children: buttons.map(function (item) {
28050
+ var disabled = (item === null || item === void 0 ? void 0 : item.disabled) || false;
28051
+ var fluid = (item === null || item === void 0 ? void 0 : item.fluid) || true;
28052
+ var onClick = (item === null || item === void 0 ? void 0 : item.onClick) || '';
28053
+ var type = (item === null || item === void 0 ? void 0 : item.type) || 'primary';
28054
+ var text = (item === null || item === void 0 ? void 0 : item.text) || '';
28055
+ var color = (item === null || item === void 0 ? void 0 : item.color) || 'navy-blue';
28056
+ var size = (item === null || item === void 0 ? void 0 : item.size) || 'small';
28057
+ 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 }));
28058
+ }) })));
28059
+ };
28060
+
28061
+ export { AppTileComponent as AppTile, BottomBarComponent as BottomBar, CustomButtonComponent as Button, Icon, Illustration, TypographyComponent as Typography };
28024
28062
  //# sourceMappingURL=index.js.map