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/cjs/index.js
CHANGED
|
@@ -2508,8 +2508,9 @@ var UserMenuButtonAnalyst = Component$27;
|
|
|
2508
2508
|
|
|
2509
2509
|
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"};
|
|
2510
2510
|
|
|
2511
|
-
var numberToCurrency = function (currency) {
|
|
2512
|
-
|
|
2511
|
+
var numberToCurrency = function (currency, withSymbol) {
|
|
2512
|
+
if (withSymbol === void 0) { withSymbol = true; }
|
|
2513
|
+
return "".concat(withSymbol ? '$' : '').concat(currency.toLocaleString('es-CO', {
|
|
2513
2514
|
maximumFractionDigits: 3
|
|
2514
2515
|
}));
|
|
2515
2516
|
};
|
|
@@ -2711,9 +2712,9 @@ var style$V = {"magneto-ui-mobile-drawer":"mg_mobile_drawer_magneto-ui-mobile-dr
|
|
|
2711
2712
|
|
|
2712
2713
|
var cx$S = classNames.bind(style$V);
|
|
2713
2714
|
var Component$23 = function (_a) {
|
|
2714
|
-
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;
|
|
2715
|
-
var
|
|
2716
|
-
var
|
|
2715
|
+
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;
|
|
2716
|
+
var _e = React.useState(false), showContent = _e[0], setShowContent = _e[1];
|
|
2717
|
+
var _f = React.useState(isOpen), renderPortal = _f[0], setRenderPortal = _f[1];
|
|
2717
2718
|
var showMenu = showContent ? 'show' : 'hidden';
|
|
2718
2719
|
React.useEffect(function () {
|
|
2719
2720
|
var timer = null;
|
|
@@ -2741,7 +2742,7 @@ var Component$23 = function (_a) {
|
|
|
2741
2742
|
React__default["default"].createElement("button", { "data-name": "close-drawer", title: "close-modal", className: cx$S('magneto-ui-close-button'), onClick: onClose },
|
|
2742
2743
|
React__default["default"].createElement(IconItem, { icon: Add, hover: false })),
|
|
2743
2744
|
React__default["default"].createElement("div", { className: cx$S('magneto-ui-container') }, children)),
|
|
2744
|
-
isOpen && (React__default["default"].createElement("span", { className: cx$S('background-drawer'), onClick: blockBackgroundClose ? function () { return null; } : onClose })))))));
|
|
2745
|
+
isOpen && (React__default["default"].createElement("span", { className: cx$S('background-drawer', backgroundClassName), onClick: blockBackgroundClose ? function () { return null; } : onClose })))))));
|
|
2745
2746
|
};
|
|
2746
2747
|
/**
|
|
2747
2748
|
* Molecule UI component for Mobile Drawer
|
|
@@ -4264,7 +4265,7 @@ var MegaMenuCard = function (_a) {
|
|
|
4264
4265
|
React__default["default"].createElement(Image, { image: logo, alt: 'logo', className: styles$1v["magneto-ui-mega-menu-card__logo"] }))),
|
|
4265
4266
|
React__default["default"].createElement("div", { className: styles$1v["magneto-ui-mega-menu-card__content"] },
|
|
4266
4267
|
React__default["default"].createElement("div", { className: styles$1v["magneto-ui-mega-menu-card__title"] }, title),
|
|
4267
|
-
React__default["default"].createElement("div", { className: styles$1v["magneto-ui-mega-menu-card__quotas"] }, "".concat(numberToCurrency(quotas), " cupos"))),
|
|
4268
|
+
React__default["default"].createElement("div", { className: styles$1v["magneto-ui-mega-menu-card__quotas"] }, "".concat(numberToCurrency(quotas, false), " cupos"))),
|
|
4268
4269
|
arrow));
|
|
4269
4270
|
};
|
|
4270
4271
|
|
|
@@ -4344,7 +4345,7 @@ var MegaMenuJobsTabs = function () {
|
|
|
4344
4345
|
React__default["default"].createElement("div", { className: "".concat(style$D["mega-menu-jobs-tabs__content"]) }, content)));
|
|
4345
4346
|
};
|
|
4346
4347
|
|
|
4347
|
-
var styles$1u = {"magneto-ui-mega-menu-popover__dropdown":"mg_mega_menu_popover_magneto-ui-mega-menu-
|
|
4348
|
+
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"};
|
|
4348
4349
|
|
|
4349
4350
|
var popoverClassName = 'magneto-ui-mega-menu-popover';
|
|
4350
4351
|
var MegaMenuPopover = function (_a) {
|
|
@@ -4535,7 +4536,7 @@ var Component$1x = function (_a) {
|
|
|
4535
4536
|
*/
|
|
4536
4537
|
var MobileSearchbar = Component$1x;
|
|
4537
4538
|
|
|
4538
|
-
var styles$1p = {"magneto-ui-modal":"mg_modal_magneto-ui-
|
|
4539
|
+
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"};
|
|
4539
4540
|
|
|
4540
4541
|
var ModalPortal = function (_a) {
|
|
4541
4542
|
var children = _a.children;
|
|
@@ -4558,7 +4559,7 @@ var ModalPortal = function (_a) {
|
|
|
4558
4559
|
};
|
|
4559
4560
|
|
|
4560
4561
|
var Modal = function (_a) {
|
|
4561
|
-
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;
|
|
4562
|
+
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;
|
|
4562
4563
|
React.useEffect(function () {
|
|
4563
4564
|
var body = document.body;
|
|
4564
4565
|
if (!body)
|
|
@@ -4574,7 +4575,7 @@ var Modal = function (_a) {
|
|
|
4574
4575
|
children,
|
|
4575
4576
|
React__default["default"].createElement("button", { "data-name": "close-drawer", className: "".concat(styles$1p["".concat(classMUI, "-modal__close-btn")]), onClick: onClose, type: "button" },
|
|
4576
4577
|
React__default["default"].createElement("img", { src: Close, alt: "close icon" }))),
|
|
4577
|
-
React__default["default"].createElement("span", { className: "".concat(styles$1p["".concat(classMUI, "-background-modal")]), onClick: blockBackgroundClose ? function () { return null; } : onClose })));
|
|
4578
|
+
React__default["default"].createElement("span", { className: "".concat(styles$1p["".concat(classMUI, "-background-modal")], " ").concat(backgroundClassName), onClick: blockBackgroundClose ? function () { return null; } : onClose })));
|
|
4578
4579
|
};
|
|
4579
4580
|
var Title = function (_a) {
|
|
4580
4581
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
|
@@ -4587,9 +4588,9 @@ var Description = function (_a) {
|
|
|
4587
4588
|
var Modal$1 = Object.assign(Modal, { Title: Title, Description: Description });
|
|
4588
4589
|
|
|
4589
4590
|
var Component$1w = function (_a) {
|
|
4590
|
-
var children = _a.children, open = _a.open, onClose = _a.onClose,
|
|
4591
|
-
var container = useMediaQuery(React__default["default"].createElement(Modal$1, { className: modalClassName, isOpen: open, onClose: onClose }, children), {
|
|
4592
|
-
md: (React__default["default"].createElement(MobileDrawer, { className: mobileDrawerClassName, isOpen: open, onClose: onClose }, children))
|
|
4591
|
+
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;
|
|
4592
|
+
var container = useMediaQuery(React__default["default"].createElement(Modal$1, { className: modalClassName, backgroundClassName: backgroundClassNameDesktop, isOpen: open, onClose: onClose }, children), {
|
|
4593
|
+
md: (React__default["default"].createElement(MobileDrawer, { backgroundClassName: backgroundClassNameMobile, className: mobileDrawerClassName, isOpen: open, onClose: onClose }, children))
|
|
4593
4594
|
});
|
|
4594
4595
|
return container;
|
|
4595
4596
|
};
|