@onpe/ui 1.1.2 → 1.1.3
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 +2 -0
- package/dist/cli.js +2 -0
- package/package.json +1 -1
package/dist/cli.esm.js
CHANGED
|
@@ -6394,6 +6394,8 @@ function personalizeComponent(code, componentName) {
|
|
|
6394
6394
|
// Para modales que importan componentes UI
|
|
6395
6395
|
if (componentName.toLowerCase().startsWith("modal") && componentName !== "modal") {
|
|
6396
6396
|
personalizedCode = personalizedCode.replace(/from "\.\.\/onpe\/ui\/([^"]+)"/g, function (match, component) { return "from \"../ui/".concat(component, "\""); });
|
|
6397
|
+
// Arreglar importaciones de iconos en modales
|
|
6398
|
+
personalizedCode = personalizedCode.replace(/from "\.\.\/onpe\/icons\/([^"]+)"/g, function (match, path) { return "from \"../icons/".concat(path, "\""); });
|
|
6397
6399
|
}
|
|
6398
6400
|
// Agregar export default si no existe
|
|
6399
6401
|
if (!personalizedCode.includes("export default")) {
|
package/dist/cli.js
CHANGED
|
@@ -6394,6 +6394,8 @@ function personalizeComponent(code, componentName) {
|
|
|
6394
6394
|
// Para modales que importan componentes UI
|
|
6395
6395
|
if (componentName.toLowerCase().startsWith("modal") && componentName !== "modal") {
|
|
6396
6396
|
personalizedCode = personalizedCode.replace(/from "\.\.\/onpe\/ui\/([^"]+)"/g, function (match, component) { return "from \"../ui/".concat(component, "\""); });
|
|
6397
|
+
// Arreglar importaciones de iconos en modales
|
|
6398
|
+
personalizedCode = personalizedCode.replace(/from "\.\.\/onpe\/icons\/([^"]+)"/g, function (match, path) { return "from \"../icons/".concat(path, "\""); });
|
|
6397
6399
|
}
|
|
6398
6400
|
// Agregar export default si no existe
|
|
6399
6401
|
if (!personalizedCode.includes("export default")) {
|