ingeniuscliq-core 0.1.2 → 0.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/core/commands/create-template.js +6 -6
- package/dist/components/index.d.ts +1 -1
- package/dist/components/templates/partials/CoreHeader.d.ts +3 -3
- package/dist/components/templates/partials/CoreMainSearch.d.ts +3 -3
- package/dist/components/templates/partials/CoreNavbar.d.ts +2 -2
- package/dist/components/templates/partials/CoreSubMenu.d.ts +4 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +10670 -6460
- package/dist/modules/CoreAuth/components/index.d.ts +1 -0
- package/dist/modules/CoreAuth/components/layouts/index.d.ts +1 -0
- package/dist/modules/CoreAuth/components/layouts/partials/CoreAuthDecorator.d.ts +1 -0
- package/dist/modules/CoreAuth/components/layouts/partials/CoreAuthProfileDeleteAccountForm.d.ts +1 -0
- package/dist/modules/CoreAuth/components/layouts/partials/CoreAuthProfileForm.d.ts +1 -0
- package/dist/modules/CoreAuth/components/layouts/partials/CoreAuthProfileUpdatePassForm.d.ts +1 -0
- package/dist/modules/CoreAuth/components/layouts/partials/CoreAuthUserMenu.d.ts +1 -0
- package/dist/modules/CoreAuth/components/layouts/partials/index.d.ts +5 -0
- package/dist/modules/CoreAuth/constants/index.d.ts +1 -0
- package/dist/modules/CoreAuth/hooks/index.d.ts +1 -0
- package/dist/modules/CoreAuth/registry.d.ts +6 -0
- package/dist/modules/CoreAuth/services/index.d.ts +1 -0
- package/dist/modules/CoreAuth/stores/index.d.ts +1 -0
- package/dist/modules/CoreAuth/types/index.d.ts +1 -0
- package/dist/modules/CoreCustomization/classes/index.d.ts +1 -0
- package/dist/modules/CoreCustomization/registry.d.ts +3 -0
- package/dist/modules/CoreCustomization/services/index.d.ts +1 -0
- package/dist/modules/CoreCustomization/types/index.d.ts +1 -0
- package/dist/modules/CoreOrder/classes/index.d.ts +1 -0
- package/dist/modules/CoreOrder/registry.d.ts +3 -0
- package/dist/modules/CoreOrder/services/index.d.ts +1 -0
- package/dist/modules/CoreOrder/types/index.d.ts +2 -0
- package/dist/modules/CoreOrder/types/interfaces/index.d.ts +1 -0
- package/dist/modules/CorePayForm/classes/index.d.ts +1 -0
- package/dist/modules/CorePayForm/registry.d.ts +3 -0
- package/dist/modules/CorePayForm/services/index.d.ts +1 -0
- package/dist/modules/CorePayForm/types/index.d.ts +1 -0
- package/dist/modules/CoreProduct/classes/index.d.ts +1 -0
- package/dist/modules/CoreProduct/components/index.d.ts +2 -0
- package/dist/modules/CoreProduct/components/layouts/index.d.ts +1 -0
- package/dist/modules/CoreProduct/components/layouts/partials/index.d.ts +1 -0
- package/dist/modules/CoreProduct/components/ui/cards/addons/index.d.ts +1 -0
- package/dist/modules/CoreProduct/components/ui/cards/index.d.ts +7 -0
- package/dist/modules/CoreProduct/components/ui/carousels/index.d.ts +1 -0
- package/dist/modules/CoreProduct/components/ui/containers/index.d.ts +1 -0
- package/dist/modules/CoreProduct/components/ui/index.d.ts +3 -0
- package/dist/modules/CoreProduct/registry.d.ts +4 -0
- package/dist/modules/CoreProduct/services/index.d.ts +1 -0
- package/dist/modules/CoreProduct/types/index.d.ts +2 -0
- package/dist/modules/CoreShopCart/classes/CoreShopCartBuilder.d.ts +4 -4
- package/dist/modules/CoreShopCart/classes/index.d.ts +1 -0
- package/dist/modules/CoreShopCart/components/index.d.ts +2 -0
- package/dist/modules/CoreShopCart/components/layouts/index.d.ts +1 -0
- package/dist/modules/CoreShopCart/components/layouts/partials/index.d.ts +2 -0
- package/dist/modules/CoreShopCart/components/ui/cards/index.d.ts +2 -0
- package/dist/modules/CoreShopCart/components/ui/cards/skeletons/index.d.ts +1 -0
- package/dist/modules/CoreShopCart/components/ui/empty/index.d.ts +1 -0
- package/dist/modules/CoreShopCart/components/ui/index.d.ts +3 -0
- package/dist/modules/CoreShopCart/components/ui/texts/index.d.ts +4 -0
- package/dist/modules/CoreShopCart/constants/index.d.ts +1 -0
- package/dist/modules/CoreShopCart/registry.d.ts +5 -0
- package/dist/modules/CoreShopCart/services/index.d.ts +1 -0
- package/dist/modules/CoreShopCart/types/index.d.ts +2 -0
- package/dist/modules/CoreShopCart/types/interfaces/index.d.ts +1 -0
- package/dist/modules/registry.d.ts +6 -0
- package/dist/stores/customizationStore.d.ts +5 -5
- package/package.json +1 -1
- package/dist/modules/CoreAuth/components/layouts/partials/AuthDecorator.d.ts +0 -1
- package/dist/modules/CoreAuth/components/layouts/partials/AuthProfileDeleteAccountForm.d.ts +0 -1
- package/dist/modules/CoreAuth/components/layouts/partials/AuthProfileForm.d.ts +0 -1
- package/dist/modules/CoreAuth/components/layouts/partials/AuthProfileUpdatePassForm.d.ts +0 -1
- package/dist/modules/CoreAuth/components/layouts/partials/AuthUserMenu.d.ts +0 -1
- /package/dist/components/{customs → common}/carousel/CustomCarousel.d.ts +0 -0
- /package/dist/components/{customs → common}/carousel/CustomCarouselSection.d.ts +0 -0
- /package/dist/components/{customs → common}/carousel/index.d.ts +0 -0
- /package/dist/components/{customs → common}/form/CustomFormField.d.ts +0 -0
- /package/dist/components/{customs → common}/form/FormInput.d.ts +0 -0
- /package/dist/components/{customs → common}/form/FormTextArea.d.ts +0 -0
- /package/dist/components/{customs → common}/form/FormWrapper.d.ts +0 -0
- /package/dist/components/{customs → common}/form/index.d.ts +0 -0
- /package/dist/components/{customs → common}/index.d.ts +0 -0
- /package/dist/components/{customs → common}/logo/Logo.d.ts +0 -0
- /package/dist/components/{customs → common}/pagination/CustomPagination.d.ts +0 -0
- /package/dist/components/{customs → common}/select/CustomSelect.d.ts +0 -0
- /package/dist/components/{customs → common}/spinner/Spinner.d.ts +0 -0
|
@@ -29,7 +29,7 @@ function createTemplate(templateNameRaw) {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
// Base: <cwd>/components/templates/<templateName>
|
|
32
|
-
const baseDir = createBaseDir(templateName, ['components', 'templates']);
|
|
32
|
+
const baseDir = createBaseDir(templateName, ['src', 'components', 'templates']);
|
|
33
33
|
|
|
34
34
|
if (fs.existsSync(baseDir)) {
|
|
35
35
|
console.error(chalk.red.bold(`❌ Error: La plantilla '${templateName}' ya existe en components/templates.`));
|
|
@@ -38,18 +38,18 @@ function createTemplate(templateNameRaw) {
|
|
|
38
38
|
|
|
39
39
|
try {
|
|
40
40
|
// Asegurar carpetas padre
|
|
41
|
-
ensureDir(createBaseDir('', ['components'])); // <cwd>/components
|
|
42
|
-
ensureDir(createBaseDir('', ['components', 'templates'])); // <cwd>/components/templates
|
|
41
|
+
ensureDir(createBaseDir('', ['src', 'components'])); // <cwd>/components
|
|
42
|
+
ensureDir(createBaseDir('', ['src', 'components', 'templates'])); // <cwd>/components/templates
|
|
43
43
|
|
|
44
44
|
// Crear carpeta de la plantilla
|
|
45
45
|
ensureDir(baseDir);
|
|
46
|
-
console.log(chalk.green(`✓ Creado directorio: ${chalk.bold(`components/templates/${templateName}`)}`));
|
|
46
|
+
console.log(chalk.green(`✓ Creado directorio: ${chalk.bold(`src/components/templates/${templateName}`)}`));
|
|
47
47
|
|
|
48
48
|
// Subcarpetas requeridas
|
|
49
49
|
const subdirs = ['components', 'pages', 'styles'];
|
|
50
50
|
subdirs.forEach((dir) => {
|
|
51
51
|
ensureDir(joinPaths(baseDir, dir));
|
|
52
|
-
console.log(chalk.green(`✓ Creado directorio: ${chalk.bold(`components/templates/${templateName}/${dir}`)}`));
|
|
52
|
+
console.log(chalk.green(`✓ Creado directorio: ${chalk.bold(`src/components/templates/${templateName}/${dir}`)}`));
|
|
53
53
|
});
|
|
54
54
|
|
|
55
55
|
console.log(chalk.green.bold(`\n✨ Plantilla '${templateName}' creada correctamente.`));
|
|
@@ -71,7 +71,7 @@ async function promptTemplateName() {
|
|
|
71
71
|
validate: (input) => {
|
|
72
72
|
const val = sanitizeTemplateName(input);
|
|
73
73
|
if (!val) return 'El nombre es requerido.';
|
|
74
|
-
const target = createBaseDir(val, ['components', 'templates']);
|
|
74
|
+
const target = createBaseDir(val, ['src', 'components', 'templates']);
|
|
75
75
|
if (fs.existsSync(target)) return `La plantilla '${val}' ya existe.`;
|
|
76
76
|
return true;
|
|
77
77
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface CoreHeaderProps {
|
|
2
|
-
readonly
|
|
3
|
-
readonly
|
|
2
|
+
readonly navbar?: React.ReactNode;
|
|
3
|
+
readonly subMenuHeader?: React.ReactNode;
|
|
4
4
|
}
|
|
5
|
-
export declare function CoreHeader({
|
|
5
|
+
export declare function CoreHeader({ navbar, subMenuHeader }: CoreHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
interface CoreMainSearchProps {
|
|
2
2
|
readonly left?: React.ReactNode;
|
|
3
3
|
readonly right?: React.ReactNode;
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
4
|
+
readonly input?: React.ReactNode;
|
|
5
|
+
readonly searchButton?: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare function CoreMainSearch({ left, right,
|
|
7
|
+
export declare function CoreMainSearch({ left, right, input, searchButton }: CoreMainSearchProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -2,7 +2,7 @@ import { BaseStyleProps } from '../../../types/ui/main';
|
|
|
2
2
|
interface CoreNavbarProps extends BaseStyleProps {
|
|
3
3
|
readonly center?: React.ReactNode;
|
|
4
4
|
readonly right?: React.ReactNode;
|
|
5
|
-
readonly
|
|
5
|
+
readonly logo?: React.ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare function CoreNavbar({ className,
|
|
7
|
+
export declare function CoreNavbar({ className, logo, center, right }: CoreNavbarProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { BaseStyleProps } from '../../../types/ui/main';
|
|
2
|
+
import { CoreMenuItem } from '../../../types';
|
|
2
3
|
interface CoreSubMenuProps extends BaseStyleProps {
|
|
3
4
|
classNameItems?: string;
|
|
5
|
+
items?: CoreMenuItem[];
|
|
6
|
+
itemComponent?: (item: CoreMenuItem) => React.ReactNode;
|
|
4
7
|
}
|
|
5
|
-
export declare function CoreSubMenu({ className, classNameItems }: CoreSubMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function CoreSubMenu({ className, classNameItems, items, itemComponent }: CoreSubMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
6
9
|
export {};
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--color-spinner: white;--size-spinner: 20px}div.spinner{position:relative;width:var(--size-spinner);height:var(--size-spinner);display:inline-block;margin-left:50%;margin-right:50%;padding:10px;border-radius:10px}div.spinner div{width:6%;height:16%;background:var(--color-spinner);position:absolute;left:49%;top:43%;opacity:0;-webkit-border-radius:50px;-webkit-box-shadow:0 0 3px rgba(0,0,0,.2);-webkit-animation:fade 1s linear infinite}@-webkit-keyframes fade{0%{opacity:1}to{opacity:.25}}div.spinner div.bar1{-webkit-transform:rotate(0deg) translate(0,-130%);-webkit-animation-delay:0s}div.spinner div.bar2{-webkit-transform:rotate(30deg) translate(0,-130%);-webkit-animation-delay:-.9167s}div.spinner div.bar3{-webkit-transform:rotate(60deg) translate(0,-130%);-webkit-animation-delay:-.833s}div.spinner div.bar4{-webkit-transform:rotate(90deg) translate(0,-130%);-webkit-animation-delay:-.7497s}div.spinner div.bar5{-webkit-transform:rotate(120deg) translate(0,-130%);-webkit-animation-delay:-.667s}div.spinner div.bar6{-webkit-transform:rotate(150deg) translate(0,-130%);-webkit-animation-delay:-.5837s}div.spinner div.bar7{-webkit-transform:rotate(180deg) translate(0,-130%);-webkit-animation-delay:-.5s}div.spinner div.bar8{-webkit-transform:rotate(210deg) translate(0,-130%);-webkit-animation-delay:-.4167s}div.spinner div.bar9{-webkit-transform:rotate(240deg) translate(0,-130%);-webkit-animation-delay:-.333s}div.spinner div.bar10{-webkit-transform:rotate(270deg) translate(0,-130%);-webkit-animation-delay:-.2497s}div.spinner div.bar11{-webkit-transform:rotate(300deg) translate(0,-130%);-webkit-animation-delay:-.167s}div.spinner div.bar12{-webkit-transform:rotate(330deg) translate(0,-130%);-webkit-animation-delay:-.0833s}
|
|
1
|
+
:root{--color-spinner: white;--size-spinner: 20px}div.spinner{position:relative;width:var(--size-spinner);height:var(--size-spinner);display:inline-block;margin-left:50%;margin-right:50%;padding:10px;border-radius:10px}div.spinner div{width:6%;height:16%;background:var(--color-spinner);position:absolute;left:49%;top:43%;opacity:0;-webkit-border-radius:50px;-webkit-box-shadow:0 0 3px rgba(0,0,0,.2);-webkit-animation:fade 1s linear infinite}@-webkit-keyframes fade{0%{opacity:1}to{opacity:.25}}div.spinner div.bar1{-webkit-transform:rotate(0deg) translate(0,-130%);-webkit-animation-delay:0s}div.spinner div.bar2{-webkit-transform:rotate(30deg) translate(0,-130%);-webkit-animation-delay:-.9167s}div.spinner div.bar3{-webkit-transform:rotate(60deg) translate(0,-130%);-webkit-animation-delay:-.833s}div.spinner div.bar4{-webkit-transform:rotate(90deg) translate(0,-130%);-webkit-animation-delay:-.7497s}div.spinner div.bar5{-webkit-transform:rotate(120deg) translate(0,-130%);-webkit-animation-delay:-.667s}div.spinner div.bar6{-webkit-transform:rotate(150deg) translate(0,-130%);-webkit-animation-delay:-.5837s}div.spinner div.bar7{-webkit-transform:rotate(180deg) translate(0,-130%);-webkit-animation-delay:-.5s}div.spinner div.bar8{-webkit-transform:rotate(210deg) translate(0,-130%);-webkit-animation-delay:-.4167s}div.spinner div.bar9{-webkit-transform:rotate(240deg) translate(0,-130%);-webkit-animation-delay:-.333s}div.spinner div.bar10{-webkit-transform:rotate(270deg) translate(0,-130%);-webkit-animation-delay:-.2497s}div.spinner div.bar11{-webkit-transform:rotate(300deg) translate(0,-130%);-webkit-animation-delay:-.167s}div.spinner div.bar12{-webkit-transform:rotate(330deg) translate(0,-130%);-webkit-animation-delay:-.0833s}.warranty{transform:rotate(-45deg) translate(-28%) translateY(-125%);transition:all .5s ease}.warranty-left,.warranty-right{content:"";width:10px;height:30px;position:absolute;top:0;z-index:-100}.warranty-left{left:0;transform:rotate(45deg) scale(.7) translate(110%)}.warranty-right{right:0;transform:rotate(-45deg) scaleX(.7) translate(-110%) translateY(-15%)}
|
package/dist/index.d.ts
CHANGED