magneto365.ui 2.65.4 → 2.65.6
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/css/magneto.ui.lib.min.css +1 -1
- package/dist/cjs/index.js +15 -14
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/UI/molecules/MobileDrawer/MobileDrawer.interface.d.ts +4 -0
- package/dist/cjs/types/components/UI/molecules/Modal/Modal.interface.d.ts +4 -0
- package/dist/cjs/types/components/UI/molecules/ModalResponsive/ModalResponsive.interface.d.ts +8 -0
- package/dist/cjs/types/utils/currency/currency.util.d.ts +1 -1
- package/dist/esm/css/magneto.ui.lib.min.css +1 -1
- package/dist/esm/index.js +15 -14
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/UI/molecules/MobileDrawer/MobileDrawer.interface.d.ts +4 -0
- package/dist/esm/types/components/UI/molecules/Modal/Modal.interface.d.ts +4 -0
- package/dist/esm/types/components/UI/molecules/ModalResponsive/ModalResponsive.interface.d.ts +8 -0
- package/dist/esm/types/utils/currency/currency.util.d.ts +1 -1
- package/dist/index.d.ts +16 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -2499,8 +2499,9 @@ var UserMenuButtonAnalyst = Component$27;
|
|
|
2499
2499
|
|
|
2500
2500
|
var styles$24 = {"magneto-ui-chart-bar":"mg_bar_chart_magneto-ui-chart-bar_by1hf","magneto-ui-chart-bar__popover":"mg_bar_chart_magneto-ui-chart-bar_popover_by1hf","popover-left":"mg_bar_chart_popover-left_by1hf","popover-right":"mg_bar_chart_popover-right_by1hf"};
|
|
2501
2501
|
|
|
2502
|
-
var numberToCurrency = function (currency) {
|
|
2503
|
-
|
|
2502
|
+
var numberToCurrency = function (currency, withSymbol) {
|
|
2503
|
+
if (withSymbol === void 0) { withSymbol = true; }
|
|
2504
|
+
return "".concat(withSymbol ? '$' : '').concat(currency.toLocaleString('es-CO', {
|
|
2504
2505
|
maximumFractionDigits: 3
|
|
2505
2506
|
}));
|
|
2506
2507
|
};
|
|
@@ -2702,9 +2703,9 @@ var style$V = {"magneto-ui-mobile-drawer":"mg_mobile_drawer_magneto-ui-mobile-dr
|
|
|
2702
2703
|
|
|
2703
2704
|
var cx$S = classNames.bind(style$V);
|
|
2704
2705
|
var Component$23 = function (_a) {
|
|
2705
|
-
var onClose = _a.onClose, isOpen = _a.isOpen, children = _a.children, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.blockBackgroundClose, blockBackgroundClose = _c === void 0 ? false : _c;
|
|
2706
|
-
var
|
|
2707
|
-
var
|
|
2706
|
+
var onClose = _a.onClose, isOpen = _a.isOpen, children = _a.children, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.blockBackgroundClose, blockBackgroundClose = _c === void 0 ? false : _c, _d = _a.backgroundClassName, backgroundClassName = _d === void 0 ? '' : _d;
|
|
2707
|
+
var _e = useState(false), showContent = _e[0], setShowContent = _e[1];
|
|
2708
|
+
var _f = useState(isOpen), renderPortal = _f[0], setRenderPortal = _f[1];
|
|
2708
2709
|
var showMenu = showContent ? 'show' : 'hidden';
|
|
2709
2710
|
useEffect(function () {
|
|
2710
2711
|
var timer = null;
|
|
@@ -2732,7 +2733,7 @@ var Component$23 = function (_a) {
|
|
|
2732
2733
|
React.createElement("button", { "data-name": "close-drawer", title: "close-modal", className: cx$S('magneto-ui-close-button'), onClick: onClose },
|
|
2733
2734
|
React.createElement(IconItem, { icon: Add, hover: false })),
|
|
2734
2735
|
React.createElement("div", { className: cx$S('magneto-ui-container') }, children)),
|
|
2735
|
-
isOpen && (React.createElement("span", { className: cx$S('background-drawer'), onClick: blockBackgroundClose ? function () { return null; } : onClose })))))));
|
|
2736
|
+
isOpen && (React.createElement("span", { className: cx$S('background-drawer', backgroundClassName), onClick: blockBackgroundClose ? function () { return null; } : onClose })))))));
|
|
2736
2737
|
};
|
|
2737
2738
|
/**
|
|
2738
2739
|
* Molecule UI component for Mobile Drawer
|
|
@@ -4255,7 +4256,7 @@ var MegaMenuCard = function (_a) {
|
|
|
4255
4256
|
React.createElement(Image, { image: logo, alt: 'logo', className: styles$1v["magneto-ui-mega-menu-card__logo"] }))),
|
|
4256
4257
|
React.createElement("div", { className: styles$1v["magneto-ui-mega-menu-card__content"] },
|
|
4257
4258
|
React.createElement("div", { className: styles$1v["magneto-ui-mega-menu-card__title"] }, title),
|
|
4258
|
-
React.createElement("div", { className: styles$1v["magneto-ui-mega-menu-card__quotas"] }, "".concat(numberToCurrency(quotas), " cupos"))),
|
|
4259
|
+
React.createElement("div", { className: styles$1v["magneto-ui-mega-menu-card__quotas"] }, "".concat(numberToCurrency(quotas, false), " cupos"))),
|
|
4259
4260
|
arrow));
|
|
4260
4261
|
};
|
|
4261
4262
|
|
|
@@ -4335,7 +4336,7 @@ var MegaMenuJobsTabs = function () {
|
|
|
4335
4336
|
React.createElement("div", { className: "".concat(style$D["mega-menu-jobs-tabs__content"]) }, content)));
|
|
4336
4337
|
};
|
|
4337
4338
|
|
|
4338
|
-
var styles$1u = {"magneto-ui-mega-menu-popover__dropdown":"mg_mega_menu_popover_magneto-ui-mega-menu-
|
|
4339
|
+
var styles$1u = {"magneto-ui-mega-menu-popover__dropdown":"mg_mega_menu_popover_magneto-ui-mega-menu-popover_dropdown_78m8m","magneto-ui-mega-menu-popover__dropdown--open":"mg_mega_menu_popover_magneto-ui-mega-menu-popover_dropdown--open_78m8m","magneto-ui-mega-menu-popover__action":"mg_mega_menu_popover_magneto-ui-mega-menu-popover_action_78m8m","magneto-ui-mega-menu-popover__action--text":"mg_mega_menu_popover_magneto-ui-mega-menu-popover_action--text_78m8m","magneto-ui-mega-menu-popover__action--icon":"mg_mega_menu_popover_magneto-ui-mega-menu-popover_action--icon_78m8m","magneto-ui-mega-menu-popover__action--icon-reverse":"mg_mega_menu_popover_magneto-ui-mega-menu-popover_action--icon-reverse_78m8m","magneto-ui-mega-menu-popover__shadow":"mg_mega_menu_popover_magneto-ui-mega-menu-popover_shadow_78m8m","magneto-ui-mega-menu-popover__content":"mg_mega_menu_popover_magneto-ui-mega-menu-popover_content_78m8m"};
|
|
4339
4340
|
|
|
4340
4341
|
var popoverClassName = 'magneto-ui-mega-menu-popover';
|
|
4341
4342
|
var MegaMenuPopover = function (_a) {
|
|
@@ -4526,7 +4527,7 @@ var Component$1x = function (_a) {
|
|
|
4526
4527
|
*/
|
|
4527
4528
|
var MobileSearchbar = Component$1x;
|
|
4528
4529
|
|
|
4529
|
-
var styles$1p = {"magneto-ui-modal":"mg_modal_magneto-ui-
|
|
4530
|
+
var styles$1p = {"magneto-ui-modal":"mg_modal_magneto-ui-modal_1ffsw","magneto-ui-modal__close-btn":"mg_modal_magneto-ui-modal_close-btn_1ffsw","magneto-ui-modal__title":"mg_modal_magneto-ui-modal_title_1ffsw","magneto-ui-modal__description":"mg_modal_magneto-ui-modal_description_1ffsw","magneto-ui-modal__children-container":"mg_modal_magneto-ui-modal_children-container_1ffsw","magneto-ui-background-modal":"mg_modal_magneto-ui-background-modal_1ffsw","fadeIn":"mg_modal_fadeIn_1ffsw"};
|
|
4530
4531
|
|
|
4531
4532
|
var ModalPortal = function (_a) {
|
|
4532
4533
|
var children = _a.children;
|
|
@@ -4549,7 +4550,7 @@ var ModalPortal = function (_a) {
|
|
|
4549
4550
|
};
|
|
4550
4551
|
|
|
4551
4552
|
var Modal = function (_a) {
|
|
4552
|
-
var onClose = _a.onClose, isOpen = _a.isOpen, children = _a.children, title = _a.title, description = _a.description, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.blockBackgroundClose, blockBackgroundClose = _c === void 0 ? false : _c;
|
|
4553
|
+
var onClose = _a.onClose, isOpen = _a.isOpen, children = _a.children, title = _a.title, description = _a.description, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.blockBackgroundClose, blockBackgroundClose = _c === void 0 ? false : _c, _d = _a.backgroundClassName, backgroundClassName = _d === void 0 ? '' : _d;
|
|
4553
4554
|
useEffect(function () {
|
|
4554
4555
|
var body = document.body;
|
|
4555
4556
|
if (!body)
|
|
@@ -4565,7 +4566,7 @@ var Modal = function (_a) {
|
|
|
4565
4566
|
children,
|
|
4566
4567
|
React.createElement("button", { "data-name": "close-drawer", className: "".concat(styles$1p["".concat(classMUI, "-modal__close-btn")]), onClick: onClose, type: "button" },
|
|
4567
4568
|
React.createElement("img", { src: Close, alt: "close icon" }))),
|
|
4568
|
-
React.createElement("span", { className: "".concat(styles$1p["".concat(classMUI, "-background-modal")]), onClick: blockBackgroundClose ? function () { return null; } : onClose })));
|
|
4569
|
+
React.createElement("span", { className: "".concat(styles$1p["".concat(classMUI, "-background-modal")], " ").concat(backgroundClassName), onClick: blockBackgroundClose ? function () { return null; } : onClose })));
|
|
4569
4570
|
};
|
|
4570
4571
|
var Title = function (_a) {
|
|
4571
4572
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
|
@@ -4578,9 +4579,9 @@ var Description = function (_a) {
|
|
|
4578
4579
|
var Modal$1 = Object.assign(Modal, { Title: Title, Description: Description });
|
|
4579
4580
|
|
|
4580
4581
|
var Component$1w = function (_a) {
|
|
4581
|
-
var children = _a.children, open = _a.open, onClose = _a.onClose,
|
|
4582
|
-
var container = useMediaQuery(React.createElement(Modal$1, { className: modalClassName, isOpen: open, onClose: onClose }, children), {
|
|
4583
|
-
md: (React.createElement(MobileDrawer, { className: mobileDrawerClassName, isOpen: open, onClose: onClose }, children))
|
|
4582
|
+
var children = _a.children, open = _a.open, onClose = _a.onClose, _b = _a.modalClassName, modalClassName = _b === void 0 ? '' : _b, _c = _a.mobileDrawerClassName, mobileDrawerClassName = _c === void 0 ? '' : _c, _d = _a.backgroundClassNameDesktop, backgroundClassNameDesktop = _d === void 0 ? '' : _d, _e = _a.backgroundClassNameMobile, backgroundClassNameMobile = _e === void 0 ? '' : _e;
|
|
4583
|
+
var container = useMediaQuery(React.createElement(Modal$1, { className: modalClassName, backgroundClassName: backgroundClassNameDesktop, isOpen: open, onClose: onClose }, children), {
|
|
4584
|
+
md: (React.createElement(MobileDrawer, { backgroundClassName: backgroundClassNameMobile, className: mobileDrawerClassName, isOpen: open, onClose: onClose }, children))
|
|
4584
4585
|
});
|
|
4585
4586
|
return container;
|
|
4586
4587
|
};
|