nexaas-ui-components 1.0.37 → 1.0.39

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/index.cjs CHANGED
@@ -12,7 +12,7 @@ var react$1 = require('@headlessui-float/react');
12
12
  var IntlCurrencyInputRaw = require('react-intl-currency-input');
13
13
  var lodashNamespace = require('lodash');
14
14
  var InputMask = require('react-input-mask');
15
- var ReactModalNamespace = require('react-modal');
15
+ var Modal = require('react-modal');
16
16
  var reactTooltip = require('react-tooltip');
17
17
  var Select = require('react-select');
18
18
  var AsyncSelect = require('react-select/async');
@@ -47,7 +47,7 @@ var clsx9__default = /*#__PURE__*/_interopDefault(clsx9);
47
47
  var IntlCurrencyInputRaw__default = /*#__PURE__*/_interopDefault(IntlCurrencyInputRaw);
48
48
  var lodashNamespace__namespace = /*#__PURE__*/_interopNamespace(lodashNamespace);
49
49
  var InputMask__default = /*#__PURE__*/_interopDefault(InputMask);
50
- var ReactModalNamespace__namespace = /*#__PURE__*/_interopNamespace(ReactModalNamespace);
50
+ var Modal__default = /*#__PURE__*/_interopDefault(Modal);
51
51
  var Select__default = /*#__PURE__*/_interopDefault(Select);
52
52
  var AsyncSelect__default = /*#__PURE__*/_interopDefault(AsyncSelect);
53
53
  var Fuse__default = /*#__PURE__*/_interopDefault(Fuse);
@@ -780,7 +780,7 @@ var DatePickerInput = React5.forwardRef(
780
780
  }
781
781
  },
782
782
  value: field.value,
783
- locale: "pt",
783
+ locale: "pt-BR",
784
784
  highlightCurrentDay: true,
785
785
  formatDate: (value) => dateFns.format(value, dateFnsFormat),
786
786
  parseDate: (value) => dateFns.parse(value, dateFnsFormat, /* @__PURE__ */ new Date()),
@@ -1091,7 +1091,7 @@ var Calendar = ({
1091
1091
  highlightCurrentDay: true,
1092
1092
  minDate: dateFns.subYears(/* @__PURE__ */ new Date(), 50),
1093
1093
  maxDate,
1094
- locale: "pt",
1094
+ locale: "pt-BR",
1095
1095
  onShortcutChange: (e) => {
1096
1096
  const index = shorcuts.findIndex(
1097
1097
  (item) => item.label === e.label
@@ -1110,7 +1110,7 @@ var Calendar = ({
1110
1110
  },
1111
1111
  value,
1112
1112
  highlightCurrentDay: true,
1113
- locale: "pt"
1113
+ locale: "pt-BR"
1114
1114
  }
1115
1115
  ) })
1116
1116
  }
@@ -1375,7 +1375,7 @@ var FilterCalendar = ({
1375
1375
  highlightCurrentDay: true,
1376
1376
  minDate: dateFns.subYears(/* @__PURE__ */ new Date(), 50),
1377
1377
  maxDate,
1378
- locale: "pt",
1378
+ locale: "pt-BR",
1379
1379
  onShortcutChange: (e) => {
1380
1380
  const index = shorcuts.findIndex((item) => item.label === e.label);
1381
1381
  if (index !== -1 && setSelectedShortcut) {
@@ -1392,7 +1392,7 @@ var FilterCalendar = ({
1392
1392
  },
1393
1393
  value: currentValue,
1394
1394
  highlightCurrentDay: true,
1395
- locale: "pt"
1395
+ locale: "pt-BR"
1396
1396
  }
1397
1397
  ) });
1398
1398
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -2512,7 +2512,6 @@ var MaskedInput = ({
2512
2512
  }
2513
2513
  );
2514
2514
  };
2515
- var Modal = ReactModalNamespace__namespace.default || ReactModalNamespace__namespace;
2516
2515
  var alertTypes = {
2517
2516
  success: "text-success-500",
2518
2517
  error: "text-dangerous-500",
@@ -2544,7 +2543,8 @@ var ModalDialog = ({
2544
2543
  description,
2545
2544
  children,
2546
2545
  showFooter = true,
2547
- showHeader = true
2546
+ showHeader = true,
2547
+ closeOnOverlayClick = true
2548
2548
  }) => {
2549
2549
  const customStyles6 = {
2550
2550
  content: {
@@ -2572,11 +2572,13 @@ var ModalDialog = ({
2572
2572
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
2573
2573
  trigger,
2574
2574
  /* @__PURE__ */ jsxRuntime.jsx(
2575
- Modal,
2575
+ Modal__default.default,
2576
2576
  {
2577
2577
  ariaHideApp: false,
2578
2578
  isOpen: open,
2579
- onRequestClose: onClose,
2579
+ onRequestClose: closeOnOverlayClick ? onClose || onCancel : void 0,
2580
+ shouldCloseOnOverlayClick: closeOnOverlayClick,
2581
+ shouldCloseOnEsc: closeOnOverlayClick,
2580
2582
  style: customStyles6,
2581
2583
  contentLabel: "Example Modal",
2582
2584
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx9__default.default(sizes3[size]), children: [