next-recomponents 1.9.65 → 1.9.67

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.
@@ -3531,84 +3531,6 @@ var require_link2 = __commonJS({
3531
3531
  }
3532
3532
  });
3533
3533
 
3534
- // ../../node_modules/file-saver/dist/FileSaver.min.js
3535
- var require_FileSaver_min = __commonJS({
3536
- "../../node_modules/file-saver/dist/FileSaver.min.js"(exports2, module2) {
3537
- "use strict";
3538
- (function(a, b) {
3539
- if ("function" == typeof define && define.amd) define([], b);
3540
- else if ("undefined" != typeof exports2) b();
3541
- else {
3542
- b(), a.FileSaver = { exports: {} }.exports;
3543
- }
3544
- })(exports2, function() {
3545
- "use strict";
3546
- function b(a2, b2) {
3547
- return "undefined" == typeof b2 ? b2 = { autoBom: false } : "object" != typeof b2 && (console.warn("Deprecated: Expected third argument to be a object"), b2 = { autoBom: !b2 }), b2.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a2.type) ? new Blob(["\uFEFF", a2], { type: a2.type }) : a2;
3548
- }
3549
- function c(a2, b2, c2) {
3550
- var d2 = new XMLHttpRequest();
3551
- d2.open("GET", a2), d2.responseType = "blob", d2.onload = function() {
3552
- g(d2.response, b2, c2);
3553
- }, d2.onerror = function() {
3554
- console.error("could not download file");
3555
- }, d2.send();
3556
- }
3557
- function d(a2) {
3558
- var b2 = new XMLHttpRequest();
3559
- b2.open("HEAD", a2, false);
3560
- try {
3561
- b2.send();
3562
- } catch (a3) {
3563
- }
3564
- return 200 <= b2.status && 299 >= b2.status;
3565
- }
3566
- function e(a2) {
3567
- try {
3568
- a2.dispatchEvent(new MouseEvent("click"));
3569
- } catch (c2) {
3570
- var b2 = document.createEvent("MouseEvents");
3571
- b2.initMouseEvent("click", true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null), a2.dispatchEvent(b2);
3572
- }
3573
- }
3574
- var f = "object" == typeof window && window.window === window ? window : "object" == typeof self && self.self === self ? self : "object" == typeof global && global.global === global ? global : void 0, a = f.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), g = f.saveAs || ("object" != typeof window || window !== f ? function() {
3575
- } : "download" in HTMLAnchorElement.prototype && !a ? function(b2, g2, h) {
3576
- var i = f.URL || f.webkitURL, j = document.createElement("a");
3577
- g2 = g2 || b2.name || "download", j.download = g2, j.rel = "noopener", "string" == typeof b2 ? (j.href = b2, j.origin === location.origin ? e(j) : d(j.href) ? c(b2, g2, h) : e(j, j.target = "_blank")) : (j.href = i.createObjectURL(b2), setTimeout(function() {
3578
- i.revokeObjectURL(j.href);
3579
- }, 4e4), setTimeout(function() {
3580
- e(j);
3581
- }, 0));
3582
- } : "msSaveOrOpenBlob" in navigator ? function(f2, g2, h) {
3583
- if (g2 = g2 || f2.name || "download", "string" != typeof f2) navigator.msSaveOrOpenBlob(b(f2, h), g2);
3584
- else if (d(f2)) c(f2, g2, h);
3585
- else {
3586
- var i = document.createElement("a");
3587
- i.href = f2, i.target = "_blank", setTimeout(function() {
3588
- e(i);
3589
- });
3590
- }
3591
- } : function(b2, d2, e2, g2) {
3592
- if (g2 = g2 || open("", "_blank"), g2 && (g2.document.title = g2.document.body.innerText = "downloading..."), "string" == typeof b2) return c(b2, d2, e2);
3593
- var h = "application/octet-stream" === b2.type, i = /constructor/i.test(f.HTMLElement) || f.safari, j = /CriOS\/[\d]+/.test(navigator.userAgent);
3594
- if ((j || h && i || a) && "undefined" != typeof FileReader) {
3595
- var k = new FileReader();
3596
- k.onloadend = function() {
3597
- var a2 = k.result;
3598
- a2 = j ? a2 : a2.replace(/^data:[^;]*;/, "data:attachment/file;"), g2 ? g2.location.href = a2 : location = a2, g2 = null;
3599
- }, k.readAsDataURL(b2);
3600
- } else {
3601
- var l = f.URL || f.webkitURL, m = l.createObjectURL(b2);
3602
- g2 ? g2.location = m : location.href = m, g2 = null, setTimeout(function() {
3603
- l.revokeObjectURL(m);
3604
- }, 4e4);
3605
- }
3606
- });
3607
- f.saveAs = g.saveAs = g, "undefined" != typeof module2 && (module2.exports = g);
3608
- });
3609
- }
3610
- });
3611
-
3612
3534
  // src/index.tsx
3613
3535
  var index_exports = {};
3614
3536
  __export(index_exports, {
@@ -44038,7 +43960,7 @@ var utils = {
44038
43960
  var version = XLSX.version;
44039
43961
 
44040
43962
  // src/table/export.tsx
44041
- var import_file_saver = __toESM(require_FileSaver_min());
43963
+ var import_file_saver = require("file-saver");
44042
43964
  function useExportdata() {
44043
43965
  return {
44044
43966
  export: (data, fileName = "archivo") => {
@@ -3531,84 +3531,6 @@ var require_link2 = __commonJS({
3531
3531
  }
3532
3532
  });
3533
3533
 
3534
- // ../../node_modules/file-saver/dist/FileSaver.min.js
3535
- var require_FileSaver_min = __commonJS({
3536
- "../../node_modules/file-saver/dist/FileSaver.min.js"(exports, module) {
3537
- "use strict";
3538
- (function(a, b) {
3539
- if ("function" == typeof define && define.amd) define([], b);
3540
- else if ("undefined" != typeof exports) b();
3541
- else {
3542
- b(), a.FileSaver = { exports: {} }.exports;
3543
- }
3544
- })(exports, function() {
3545
- "use strict";
3546
- function b(a2, b2) {
3547
- return "undefined" == typeof b2 ? b2 = { autoBom: false } : "object" != typeof b2 && (console.warn("Deprecated: Expected third argument to be a object"), b2 = { autoBom: !b2 }), b2.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a2.type) ? new Blob(["\uFEFF", a2], { type: a2.type }) : a2;
3548
- }
3549
- function c(a2, b2, c2) {
3550
- var d2 = new XMLHttpRequest();
3551
- d2.open("GET", a2), d2.responseType = "blob", d2.onload = function() {
3552
- g(d2.response, b2, c2);
3553
- }, d2.onerror = function() {
3554
- console.error("could not download file");
3555
- }, d2.send();
3556
- }
3557
- function d(a2) {
3558
- var b2 = new XMLHttpRequest();
3559
- b2.open("HEAD", a2, false);
3560
- try {
3561
- b2.send();
3562
- } catch (a3) {
3563
- }
3564
- return 200 <= b2.status && 299 >= b2.status;
3565
- }
3566
- function e(a2) {
3567
- try {
3568
- a2.dispatchEvent(new MouseEvent("click"));
3569
- } catch (c2) {
3570
- var b2 = document.createEvent("MouseEvents");
3571
- b2.initMouseEvent("click", true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null), a2.dispatchEvent(b2);
3572
- }
3573
- }
3574
- var f = "object" == typeof window && window.window === window ? window : "object" == typeof self && self.self === self ? self : "object" == typeof global && global.global === global ? global : void 0, a = f.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), g = f.saveAs || ("object" != typeof window || window !== f ? function() {
3575
- } : "download" in HTMLAnchorElement.prototype && !a ? function(b2, g2, h) {
3576
- var i = f.URL || f.webkitURL, j = document.createElement("a");
3577
- g2 = g2 || b2.name || "download", j.download = g2, j.rel = "noopener", "string" == typeof b2 ? (j.href = b2, j.origin === location.origin ? e(j) : d(j.href) ? c(b2, g2, h) : e(j, j.target = "_blank")) : (j.href = i.createObjectURL(b2), setTimeout(function() {
3578
- i.revokeObjectURL(j.href);
3579
- }, 4e4), setTimeout(function() {
3580
- e(j);
3581
- }, 0));
3582
- } : "msSaveOrOpenBlob" in navigator ? function(f2, g2, h) {
3583
- if (g2 = g2 || f2.name || "download", "string" != typeof f2) navigator.msSaveOrOpenBlob(b(f2, h), g2);
3584
- else if (d(f2)) c(f2, g2, h);
3585
- else {
3586
- var i = document.createElement("a");
3587
- i.href = f2, i.target = "_blank", setTimeout(function() {
3588
- e(i);
3589
- });
3590
- }
3591
- } : function(b2, d2, e2, g2) {
3592
- if (g2 = g2 || open("", "_blank"), g2 && (g2.document.title = g2.document.body.innerText = "downloading..."), "string" == typeof b2) return c(b2, d2, e2);
3593
- var h = "application/octet-stream" === b2.type, i = /constructor/i.test(f.HTMLElement) || f.safari, j = /CriOS\/[\d]+/.test(navigator.userAgent);
3594
- if ((j || h && i || a) && "undefined" != typeof FileReader) {
3595
- var k = new FileReader();
3596
- k.onloadend = function() {
3597
- var a2 = k.result;
3598
- a2 = j ? a2 : a2.replace(/^data:[^;]*;/, "data:attachment/file;"), g2 ? g2.location.href = a2 : location = a2, g2 = null;
3599
- }, k.readAsDataURL(b2);
3600
- } else {
3601
- var l = f.URL || f.webkitURL, m = l.createObjectURL(b2);
3602
- g2 ? g2.location = m : location.href = m, g2 = null, setTimeout(function() {
3603
- l.revokeObjectURL(m);
3604
- }, 4e4);
3605
- }
3606
- });
3607
- f.saveAs = g.saveAs = g, "undefined" != typeof module && (module.exports = g);
3608
- });
3609
- }
3610
- });
3611
-
3612
3534
  // src/button/colors.tsx
3613
3535
  var catColor = {
3614
3536
  white: "bg-white text-black",
@@ -44019,7 +43941,7 @@ var utils = {
44019
43941
  var version = XLSX.version;
44020
43942
 
44021
43943
  // src/table/export.tsx
44022
- var import_file_saver = __toESM(require_FileSaver_min());
43944
+ import { saveAs as saveAs2 } from "file-saver";
44023
43945
  function useExportdata() {
44024
43946
  return {
44025
43947
  export: (data, fileName = "archivo") => {
@@ -44033,7 +43955,7 @@ function useExportdata() {
44033
43955
  const blob = new Blob([excelBuffer], {
44034
43956
  type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
44035
43957
  });
44036
- (0, import_file_saver.saveAs)(blob, `${fileName}.xlsx`);
43958
+ saveAs2(blob, `${fileName}.xlsx`);
44037
43959
  }
44038
43960
  };
44039
43961
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-recomponents",
3
- "version": "1.9.65",
3
+ "version": "1.9.67",
4
4
  "description": "description nueva",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,6 +20,7 @@
20
20
  "dependencies": {
21
21
  "@emotion/is-prop-valid": "^1.3.1",
22
22
  "axios": "^1.9.0",
23
+ "file-saver": "^2.0.5",
23
24
  "moment": "^2.30.1",
24
25
  "react": "^19.1.0",
25
26
  "react-datepicker": "^8.4.0",