@onpe/ui 1.1.2 → 1.1.4

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/cli.esm.js CHANGED
@@ -6393,7 +6393,11 @@ function personalizeComponent(code, componentName) {
6393
6393
  }
6394
6394
  // Para modales que importan componentes UI
6395
6395
  if (componentName.toLowerCase().startsWith("modal") && componentName !== "modal") {
6396
+ // Arreglar importación de Modal específicamente
6397
+ personalizedCode = personalizedCode.replace(/from "\.\.\/\.\.\/Modal\/Modal"/g, "from \"../ui/Modal\"");
6396
6398
  personalizedCode = personalizedCode.replace(/from "\.\.\/onpe\/ui\/([^"]+)"/g, function (match, component) { return "from \"../ui/".concat(component, "\""); });
6399
+ // Arreglar importaciones de iconos en modales
6400
+ personalizedCode = personalizedCode.replace(/from "\.\.\/onpe\/icons\/([^"]+)"/g, function (match, path) { return "from \"../icons/".concat(path, "\""); });
6397
6401
  }
6398
6402
  // Agregar export default si no existe
6399
6403
  if (!personalizedCode.includes("export default")) {
package/dist/cli.js CHANGED
@@ -6393,7 +6393,11 @@ function personalizeComponent(code, componentName) {
6393
6393
  }
6394
6394
  // Para modales que importan componentes UI
6395
6395
  if (componentName.toLowerCase().startsWith("modal") && componentName !== "modal") {
6396
+ // Arreglar importación de Modal específicamente
6397
+ personalizedCode = personalizedCode.replace(/from "\.\.\/\.\.\/Modal\/Modal"/g, "from \"../ui/Modal\"");
6396
6398
  personalizedCode = personalizedCode.replace(/from "\.\.\/onpe\/ui\/([^"]+)"/g, function (match, component) { return "from \"../ui/".concat(component, "\""); });
6399
+ // Arreglar importaciones de iconos en modales
6400
+ personalizedCode = personalizedCode.replace(/from "\.\.\/onpe\/icons\/([^"]+)"/g, function (match, path) { return "from \"../icons/".concat(path, "\""); });
6397
6401
  }
6398
6402
  // Agregar export default si no existe
6399
6403
  if (!personalizedCode.includes("export default")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onpe/ui",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "type": "module",
5
5
  "description": "Librería completa de UI para ONPE - Componentes, Hooks, Utils y Librerías",
6
6
  "main": "dist/index.js",