ingeniuscliq-core 0.0.8 → 0.0.10

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.
Files changed (140) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.js +58 -277
  3. package/package.json +2 -12
  4. package/dist/classes/CoreBuilder.d.ts +0 -3
  5. package/dist/components/config.d.ts +0 -1
  6. package/dist/components/customs/carousel/CustomCarousel.d.ts +0 -7
  7. package/dist/components/customs/carousel/CustomCarouselSection.d.ts +0 -11
  8. package/dist/components/customs/form/CustomFormField.d.ts +0 -12
  9. package/dist/components/customs/form/FormInput.d.ts +0 -16
  10. package/dist/components/customs/form/FormTextArea.d.ts +0 -9
  11. package/dist/components/customs/form/FormWrapper.d.ts +0 -8
  12. package/dist/components/customs/logo/Logo.d.ts +0 -6
  13. package/dist/components/customs/pagination/CustomPagination.d.ts +0 -7
  14. package/dist/components/customs/select/CustomSelect.d.ts +0 -10
  15. package/dist/components/customs/spinner/Spinner.d.ts +0 -7
  16. package/dist/components/layouts/CoreBaseLayout.d.ts +0 -9
  17. package/dist/components/templates/CoreHomeLayout.d.ts +0 -5
  18. package/dist/components/templates/CorePreviewLayout.d.ts +0 -2
  19. package/dist/components/templates/partials/CoreFooter.d.ts +0 -1
  20. package/dist/components/templates/partials/CoreHeader.d.ts +0 -6
  21. package/dist/components/templates/partials/CoreMainSearch.d.ts +0 -8
  22. package/dist/components/templates/partials/CoreNavbar.d.ts +0 -8
  23. package/dist/components/templates/partials/CoreSubMenu.d.ts +0 -6
  24. package/dist/components/templates/partials/CoreSubMenuHeader.d.ts +0 -7
  25. package/dist/components/templates/partials/DynamicHeader.d.ts +0 -7
  26. package/dist/components/templates/partials/DynamicMain.d.ts +0 -5
  27. package/dist/components/ui/accordion.d.ts +0 -7
  28. package/dist/components/ui/alert-dialog.d.ts +0 -14
  29. package/dist/components/ui/alert.d.ts +0 -9
  30. package/dist/components/ui/avatar.d.ts +0 -6
  31. package/dist/components/ui/badge.d.ts +0 -9
  32. package/dist/components/ui/breadcrumb.d.ts +0 -11
  33. package/dist/components/ui/button.d.ts +0 -10
  34. package/dist/components/ui/calendar.d.ts +0 -4
  35. package/dist/components/ui/card.d.ts +0 -9
  36. package/dist/components/ui/carousel.d.ts +0 -19
  37. package/dist/components/ui/checkbox.d.ts +0 -4
  38. package/dist/components/ui/dialog.d.ts +0 -15
  39. package/dist/components/ui/drawer.d.ts +0 -13
  40. package/dist/components/ui/dropdown-menu.d.ts +0 -25
  41. package/dist/components/ui/form.d.ts +0 -24
  42. package/dist/components/ui/input.d.ts +0 -5
  43. package/dist/components/ui/label.d.ts +0 -4
  44. package/dist/components/ui/navigation-menu.d.ts +0 -14
  45. package/dist/components/ui/pagination.d.ts +0 -13
  46. package/dist/components/ui/popover.d.ts +0 -7
  47. package/dist/components/ui/radio-group.d.ts +0 -5
  48. package/dist/components/ui/select.d.ts +0 -15
  49. package/dist/components/ui/separator.d.ts +0 -4
  50. package/dist/components/ui/sheet.d.ts +0 -13
  51. package/dist/components/ui/sidebar.d.ts +0 -69
  52. package/dist/components/ui/skeleton.d.ts +0 -2
  53. package/dist/components/ui/slider.d.ts +0 -4
  54. package/dist/components/ui/sonner.d.ts +0 -3
  55. package/dist/components/ui/stepper.d.ts +0 -18
  56. package/dist/components/ui/switch.d.ts +0 -4
  57. package/dist/components/ui/table.d.ts +0 -10
  58. package/dist/components/ui/tabs.d.ts +0 -7
  59. package/dist/components/ui/textarea.d.ts +0 -3
  60. package/dist/components/ui/tooltip.d.ts +0 -7
  61. package/dist/constants/menu.d.ts +0 -2
  62. package/dist/helpers/axiosGlobal.d.ts +0 -7
  63. package/dist/helpers/strings.d.ts +0 -1
  64. package/dist/helpers/template.d.ts +0 -4
  65. package/dist/helpers/tenant.d.ts +0 -3
  66. package/dist/hooks/use-mobile.d.ts +0 -1
  67. package/dist/hooks/useI18n.d.ts +0 -5
  68. package/dist/hooks/useNotification.d.ts +0 -6
  69. package/dist/i18n/config.d.ts +0 -130
  70. package/dist/i18n/utils/loadModuleTranslations.d.ts +0 -8
  71. package/dist/index.cjs +0 -22
  72. package/dist/modules/CoreAuth/components/layouts/partials/AuthDecorator.d.ts +0 -1
  73. package/dist/modules/CoreAuth/components/layouts/partials/AuthProfileDeleteAccountForm.d.ts +0 -1
  74. package/dist/modules/CoreAuth/components/layouts/partials/AuthProfileForm.d.ts +0 -1
  75. package/dist/modules/CoreAuth/components/layouts/partials/AuthProfileUpdatePassForm.d.ts +0 -1
  76. package/dist/modules/CoreAuth/components/layouts/partials/AuthUserMenu.d.ts +0 -1
  77. package/dist/modules/CoreAuth/constants/auth.d.ts +0 -5
  78. package/dist/modules/CoreAuth/hooks/useAuth.d.ts +0 -18
  79. package/dist/modules/CoreAuth/index.d.ts +0 -1
  80. package/dist/modules/CoreAuth/services/base.d.ts +0 -23
  81. package/dist/modules/CoreAuth/stores/authStore.d.ts +0 -22
  82. package/dist/modules/CoreAuth/types/CoreAuth.d.ts +0 -25
  83. package/dist/modules/CoreCustomization/classes/CoreCustomizationBuilder.d.ts +0 -30
  84. package/dist/modules/CoreCustomization/index.d.ts +0 -1
  85. package/dist/modules/CoreCustomization/services/base.d.ts +0 -10
  86. package/dist/modules/CoreCustomization/types/CoreCustomization.d.ts +0 -22
  87. package/dist/modules/CoreOrder/classes/CoreOrderBuilder.d.ts +0 -23
  88. package/dist/modules/CoreOrder/index.d.ts +0 -1
  89. package/dist/modules/CoreOrder/services/base.d.ts +0 -7
  90. package/dist/modules/CoreOrder/types/CoreOrder.d.ts +0 -41
  91. package/dist/modules/CoreOrder/types/interfaces/OrderActions.d.ts +0 -14
  92. package/dist/modules/CorePayForm/classes/CorePayFormBuilder.d.ts +0 -19
  93. package/dist/modules/CorePayForm/index.d.ts +0 -1
  94. package/dist/modules/CorePayForm/services/base.d.ts +0 -7
  95. package/dist/modules/CorePayForm/types/CorePayForm.d.ts +0 -19
  96. package/dist/modules/CoreProduct/classes/CoreProductBuilder.d.ts +0 -25
  97. package/dist/modules/CoreProduct/components/layouts/partials/TabHead.d.ts +0 -6
  98. package/dist/modules/CoreProduct/components/ui/cards/CoreProductCard.d.ts +0 -15
  99. package/dist/modules/CoreProduct/components/ui/cards/CoreProductCardActions.d.ts +0 -18
  100. package/dist/modules/CoreProduct/components/ui/cards/CoreProductCartItemAsideCard.d.ts +0 -7
  101. package/dist/modules/CoreProduct/components/ui/cards/CoreProductCartItemCard.d.ts +0 -8
  102. package/dist/modules/CoreProduct/components/ui/cards/CoreProductCartSummaryCard.d.ts +0 -7
  103. package/dist/modules/CoreProduct/components/ui/cards/addons/WarrantyLabel.d.ts +0 -10
  104. package/dist/modules/CoreProduct/components/ui/cards/skeletons/CoreProductCardSkeleton.d.ts +0 -5
  105. package/dist/modules/CoreProduct/components/ui/cards/skeletons/CoreProductCartItemCardSkeleton.d.ts +0 -1
  106. package/dist/modules/CoreProduct/components/ui/carousels/CoreProductImageCarousel.d.ts +0 -8
  107. package/dist/modules/CoreProduct/components/ui/containers/CoreProductGrid.d.ts +0 -19
  108. package/dist/modules/CoreProduct/index.d.ts +0 -1
  109. package/dist/modules/CoreProduct/services/base.d.ts +0 -7
  110. package/dist/modules/CoreProduct/types/CoreProduct.d.ts +0 -33
  111. package/dist/modules/CoreProduct/types/CoreProductCategory.d.ts +0 -10
  112. package/dist/modules/CoreShopCart/classes/CoreShopCartBuilder.d.ts +0 -25
  113. package/dist/modules/CoreShopCart/components/layouts/partials/CoreShopCartAside.d.ts +0 -12
  114. package/dist/modules/CoreShopCart/components/layouts/partials/CoreShopCartIcon.d.ts +0 -7
  115. package/dist/modules/CoreShopCart/components/ui/cards/CoreCartItemAsideCard.d.ts +0 -9
  116. package/dist/modules/CoreShopCart/components/ui/cards/skeletons/CoreCartItemAsideCardSkeleton.d.ts +0 -4
  117. package/dist/modules/CoreShopCart/components/ui/empty/EmptyCartItems.d.ts +0 -1
  118. package/dist/modules/CoreShopCart/components/ui/texts/CoreCartHintTitle.d.ts +0 -8
  119. package/dist/modules/CoreShopCart/components/ui/texts/CoreCartSubtotalText.d.ts +0 -7
  120. package/dist/modules/CoreShopCart/components/ui/texts/CoreCartSummaryHead.d.ts +0 -6
  121. package/dist/modules/CoreShopCart/components/ui/texts/CoreCartSummaryText.d.ts +0 -7
  122. package/dist/modules/CoreShopCart/constants/shopCart.d.ts +0 -6
  123. package/dist/modules/CoreShopCart/index.d.ts +0 -1
  124. package/dist/modules/CoreShopCart/services/base.d.ts +0 -16
  125. package/dist/modules/CoreShopCart/types/CoreShopCart.d.ts +0 -32
  126. package/dist/modules/CoreShopCart/types/interfaces/CartActions.d.ts +0 -23
  127. package/dist/modules/index.d.ts +0 -0
  128. package/dist/services/base.d.ts +0 -38
  129. package/dist/types/BaseStore.d.ts +0 -7
  130. package/dist/types/BaseType.d.ts +0 -5
  131. package/dist/types/CoreImage.d.ts +0 -5
  132. package/dist/types/CoreMenu.d.ts +0 -6
  133. package/dist/types/contracts/BaseApiResponse.d.ts +0 -7
  134. package/dist/types/contracts/BasePagination.d.ts +0 -9
  135. package/dist/types/interfaces/BaseImageType.d.ts +0 -7
  136. package/dist/types/interfaces/BaseSlugType.d.ts +0 -3
  137. package/dist/types/interfaces/BaseVisibleType.d.ts +0 -3
  138. package/dist/types/ui/carousel.d.ts +0 -5
  139. package/dist/types/ui/index.d.ts +0 -8
  140. package/dist/types/ui/template.d.ts +0 -19
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export {}
1
+ export { CoreHeader } from './components/templates/partials/CoreHeader';
package/dist/index.js CHANGED
@@ -1,281 +1,62 @@
1
- import ee from "react";
2
- var T = { exports: {} }, _ = {};
3
- /**
4
- * @license React
5
- * react-jsx-runtime.production.js
6
- *
7
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var $;
13
- function re() {
14
- if ($) return _;
15
- $ = 1;
16
- var l = Symbol.for("react.transitional.element"), b = Symbol.for("react.fragment");
17
- function f(d, a, s) {
18
- var m = null;
19
- if (s !== void 0 && (m = "" + s), a.key !== void 0 && (m = "" + a.key), "key" in a) {
20
- s = {};
21
- for (var E in a)
22
- E !== "key" && (s[E] = a[E]);
23
- } else s = a;
24
- return a = s.ref, {
25
- $$typeof: l,
26
- type: d,
27
- key: m,
28
- ref: a !== void 0 ? a : null,
29
- props: s
30
- };
1
+ import { jsx as r, jsxs as a, Fragment as c } from "react/jsx-runtime";
2
+ import { useTranslation as l } from "react-i18next";
3
+ import { Link as s } from "@tanstack/react-router";
4
+ function u({ className: n = "", renderLogo: e, center: t, right: o }) {
5
+ return /* @__PURE__ */ r("nav", { className: `w-full py-4 bg-navbar-bg-color text-navbar-text-color ${n}`, children: /* @__PURE__ */ a("div", { className: "relative flex items-center justify-between max-container", children: [
6
+ e,
7
+ t,
8
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: o })
9
+ ] }) });
10
+ }
11
+ function i() {
12
+ const { t: n, i18n: e } = l();
13
+ return { t: n, i18n: e, toggleLanguage: () => {
14
+ const o = e.language === "en" ? "es" : "en";
15
+ e.changeLanguage(o);
16
+ } };
17
+ }
18
+ const m = [
19
+ {
20
+ id: 1,
21
+ name: "menu.store",
22
+ route: "/store",
23
+ isMainAction: !0
24
+ },
25
+ {
26
+ id: 2,
27
+ name: "menu.about",
28
+ route: "/info"
29
+ },
30
+ {
31
+ id: 3,
32
+ name: "menu.contact",
33
+ route: "/contact-us"
31
34
  }
32
- return _.Fragment = b, _.jsx = f, _.jsxs = f, _;
35
+ ];
36
+ function b({ className: n = "", classNameItems: e = "" }) {
37
+ const { t } = i();
38
+ return /* @__PURE__ */ r("div", { className: `${n} flex flex-1 w-full items-center gap-5`, children: m.map((o) => /* @__PURE__ */ r(
39
+ s,
40
+ {
41
+ to: o.route ?? "",
42
+ className: `${o.isMainAction ? "bg-submenu-main-bg-color hover:bg-submenu-main-hover-bg-color border border-submenu-main-border-color text-submenu-main-text-color hover:text-submenu-main-hover-text-color rounded-full px-7 py-2" : "!p-0 text-submenu-text-color hover:text-submenu-hover-text-color bg-submenu-bg-color hover:bg-submenu-hover-bg-color border border-submenu-border-color"} flex items-center text-sm lg:text-base w-max font-bold cursor-pointer ${e}`,
43
+ children: t(o.name)
44
+ },
45
+ o.id
46
+ )) });
33
47
  }
34
- var R = {};
35
- /**
36
- * @license React
37
- * react-jsx-runtime.development.js
38
- *
39
- * Copyright (c) Meta Platforms, Inc. and affiliates.
40
- *
41
- * This source code is licensed under the MIT license found in the
42
- * LICENSE file in the root directory of this source tree.
43
- */
44
- var F;
45
- function te() {
46
- return F || (F = 1, process.env.NODE_ENV !== "production" && (function() {
47
- function l(e) {
48
- if (e == null) return null;
49
- if (typeof e == "function")
50
- return e.$$typeof === Z ? null : e.displayName || e.name || null;
51
- if (typeof e == "string") return e;
52
- switch (e) {
53
- case p:
54
- return "Fragment";
55
- case q:
56
- return "Profiler";
57
- case U:
58
- return "StrictMode";
59
- case G:
60
- return "Suspense";
61
- case X:
62
- return "SuspenseList";
63
- case H:
64
- return "Activity";
65
- }
66
- if (typeof e == "object")
67
- switch (typeof e.tag == "number" && console.error(
68
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
69
- ), e.$$typeof) {
70
- case W:
71
- return "Portal";
72
- case z:
73
- return (e.displayName || "Context") + ".Provider";
74
- case J:
75
- return (e._context.displayName || "Context") + ".Consumer";
76
- case V:
77
- var r = e.render;
78
- return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
79
- case B:
80
- return r = e.displayName || null, r !== null ? r : l(e.type) || "Memo";
81
- case h:
82
- r = e._payload, e = e._init;
83
- try {
84
- return l(e(r));
85
- } catch {
86
- }
87
- }
88
- return null;
89
- }
90
- function b(e) {
91
- return "" + e;
92
- }
93
- function f(e) {
94
- try {
95
- b(e);
96
- var r = !1;
97
- } catch {
98
- r = !0;
99
- }
100
- if (r) {
101
- r = console;
102
- var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
103
- return t.call(
104
- r,
105
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
106
- n
107
- ), b(e);
108
- }
109
- }
110
- function d(e) {
111
- if (e === p) return "<>";
112
- if (typeof e == "object" && e !== null && e.$$typeof === h)
113
- return "<...>";
114
- try {
115
- var r = l(e);
116
- return r ? "<" + r + ">" : "<...>";
117
- } catch {
118
- return "<...>";
119
- }
120
- }
121
- function a() {
122
- var e = k.A;
123
- return e === null ? null : e.getOwner();
124
- }
125
- function s() {
126
- return Error("react-stack-top-frame");
127
- }
128
- function m(e) {
129
- if (x.call(e, "key")) {
130
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
131
- if (r && r.isReactWarning) return !1;
132
- }
133
- return e.key !== void 0;
134
- }
135
- function E(e, r) {
136
- function t() {
137
- y || (y = !0, console.error(
138
- "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
139
- r
140
- ));
141
- }
142
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
143
- get: t,
144
- configurable: !0
145
- });
146
- }
147
- function L() {
148
- var e = l(this.type);
149
- return N[e] || (N[e] = !0, console.error(
150
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
151
- )), e = this.props.ref, e !== void 0 ? e : null;
152
- }
153
- function M(e, r, t, n, c, u, A, S) {
154
- return t = u.ref, e = {
155
- $$typeof: g,
156
- type: e,
157
- key: r,
158
- props: u,
159
- _owner: c
160
- }, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
161
- enumerable: !1,
162
- get: L
163
- }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
164
- configurable: !1,
165
- enumerable: !1,
166
- writable: !0,
167
- value: 0
168
- }), Object.defineProperty(e, "_debugInfo", {
169
- configurable: !1,
170
- enumerable: !1,
171
- writable: !0,
172
- value: null
173
- }), Object.defineProperty(e, "_debugStack", {
174
- configurable: !1,
175
- enumerable: !1,
176
- writable: !0,
177
- value: A
178
- }), Object.defineProperty(e, "_debugTask", {
179
- configurable: !1,
180
- enumerable: !1,
181
- writable: !0,
182
- value: S
183
- }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
184
- }
185
- function w(e, r, t, n, c, u, A, S) {
186
- var o = r.children;
187
- if (o !== void 0)
188
- if (n)
189
- if (Q(o)) {
190
- for (n = 0; n < o.length; n++)
191
- j(o[n]);
192
- Object.freeze && Object.freeze(o);
193
- } else
194
- console.error(
195
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
196
- );
197
- else j(o);
198
- if (x.call(r, "key")) {
199
- o = l(e);
200
- var i = Object.keys(r).filter(function(K) {
201
- return K !== "key";
202
- });
203
- n = 0 < i.length ? "{key: someKey, " + i.join(": ..., ") + ": ...}" : "{key: someKey}", I[o + n] || (i = 0 < i.length ? "{" + i.join(": ..., ") + ": ...}" : "{}", console.error(
204
- `A props object containing a "key" prop is being spread into JSX:
205
- let props = %s;
206
- <%s {...props} />
207
- React keys must be passed directly to JSX without using spread:
208
- let props = %s;
209
- <%s key={someKey} {...props} />`,
210
- n,
211
- o,
212
- i,
213
- o
214
- ), I[o + n] = !0);
215
- }
216
- if (o = null, t !== void 0 && (f(t), o = "" + t), m(r) && (f(r.key), o = "" + r.key), "key" in r) {
217
- t = {};
218
- for (var P in r)
219
- P !== "key" && (t[P] = r[P]);
220
- } else t = r;
221
- return o && E(
222
- t,
223
- typeof e == "function" ? e.displayName || e.name || "Unknown" : e
224
- ), M(
225
- e,
226
- o,
227
- u,
228
- c,
229
- a(),
230
- t,
231
- A,
232
- S
233
- );
234
- }
235
- function j(e) {
236
- typeof e == "object" && e !== null && e.$$typeof === g && e._store && (e._store.validated = 1);
237
- }
238
- var v = ee, g = Symbol.for("react.transitional.element"), W = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), q = Symbol.for("react.profiler"), J = Symbol.for("react.consumer"), z = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), G = Symbol.for("react.suspense"), X = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), H = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), k = v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, x = Object.prototype.hasOwnProperty, Q = Array.isArray, O = console.createTask ? console.createTask : function() {
239
- return null;
240
- };
241
- v = {
242
- react_stack_bottom_frame: function(e) {
243
- return e();
244
- }
245
- };
246
- var y, N = {}, C = v.react_stack_bottom_frame.bind(
247
- v,
248
- s
249
- )(), Y = O(d(s)), I = {};
250
- R.Fragment = p, R.jsx = function(e, r, t, n, c) {
251
- var u = 1e4 > k.recentlyCreatedOwnerStacks++;
252
- return w(
253
- e,
254
- r,
255
- t,
256
- !1,
257
- n,
258
- c,
259
- u ? Error("react-stack-top-frame") : C,
260
- u ? O(d(e)) : Y
261
- );
262
- }, R.jsxs = function(e, r, t, n, c) {
263
- var u = 1e4 > k.recentlyCreatedOwnerStacks++;
264
- return w(
265
- e,
266
- r,
267
- t,
268
- !0,
269
- n,
270
- c,
271
- u ? Error("react-stack-top-frame") : C,
272
- u ? O(d(e)) : Y
273
- );
274
- };
275
- })()), R;
48
+ function d({ className: n = "", subMenuHeaderLeft: e, subMenuHeaderRight: t }) {
49
+ return /* @__PURE__ */ r("nav", { className: `${n} w-full bg-submenuheader-bg-color border-y border-y-submenuheader-border-color`, children: /* @__PURE__ */ a("div", { className: "w-full h-[4.5rem] max-h-[4.5rem] grid grid-cols-12 items-center gap-5 max-container", children: [
50
+ /* @__PURE__ */ r("div", { className: "flex items-center w-full col-span-4 gap-5 md:col-span-8", children: e ?? /* @__PURE__ */ r(b, {}) }),
51
+ /* @__PURE__ */ r("div", { className: "flex items-center justify-end col-span-8 md:col-span-4 font-primary", children: t })
52
+ ] }) });
276
53
  }
277
- var D;
278
- function ne() {
279
- return D || (D = 1, process.env.NODE_ENV === "production" ? T.exports = re() : T.exports = te()), T.exports;
54
+ function h({ renderNavbar: n, renderSubMenuHeader: e }) {
55
+ return /* @__PURE__ */ a(c, { children: [
56
+ n ?? /* @__PURE__ */ r(u, {}),
57
+ e ?? /* @__PURE__ */ r(d, {})
58
+ ] });
280
59
  }
281
- ne();
60
+ export {
61
+ h as CoreHeader
62
+ };
package/package.json CHANGED
@@ -1,20 +1,10 @@
1
1
  {
2
2
  "name": "ingeniuscliq-core",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "IngeniusCliq Core UI y lógica compartida",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
- "main": "./dist/index.cjs",
8
- "module": "./dist/index.js",
9
- "types": "./dist/index.d.ts",
10
- "exports": {
11
- ".": {
12
- "types": "./dist/index.d.ts",
13
- "import": "./dist/index.js",
14
- "require": "./dist/index.cjs"
15
- },
16
- "./styles.css": "./dist/styles.css"
17
- },
7
+ "main": "./dist/index.js",
18
8
  "files": [
19
9
  "dist"
20
10
  ],
@@ -1,3 +0,0 @@
1
- export declare abstract class CoreBuilder {
2
- abstract build(): any;
3
- }
@@ -1 +0,0 @@
1
- export declare const CoreComponentsConfig: any;
@@ -1,7 +0,0 @@
1
- import { BaseStyleProps } from '../../../types/ui';
2
- import { CoreImage } from '../../../types/CoreImage';
3
- import { BaseCarousel } from '../../../types/ui/carousel';
4
- interface CustomCarouselProps extends BaseStyleProps, BaseCarousel<CoreImage> {
5
- }
6
- export default function CustomCarousel({ items, withoutControls, className }: CustomCarouselProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,11 +0,0 @@
1
- import { BaseStyleProps } from '../../../types/ui';
2
- import { BaseType } from '../../../types/BaseType';
3
- import { BaseCarousel } from '../../../types/ui/carousel';
4
- interface CustomCarouselSectionProps<T extends Record<string, any> & BaseType> extends BaseStyleProps, BaseCarousel<T> {
5
- subtitle?: string;
6
- title: string;
7
- renderActions?: React.ReactNode;
8
- itemComponent: React.ComponentType<T>;
9
- }
10
- export default function CustomCarouselSection<T extends Record<string, any> & BaseType>({ className, subtitle, title, renderActions, itemComponent: ItemComponent, items, withoutControls }: CustomCarouselSectionProps<T>): import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,12 +0,0 @@
1
- import { Control, FieldValues, Path } from 'react-hook-form';
2
- import { BaseStyleProps } from '../../../types/ui';
3
- interface CustomFormFieldProps<T extends FieldValues = FieldValues> extends BaseStyleProps {
4
- readonly control: Control<T>;
5
- readonly name: Path<T>;
6
- readonly label?: string;
7
- readonly render: (field: FieldValues) => React.ReactNode;
8
- readonly withinLabel?: boolean;
9
- readonly withinMessage?: boolean;
10
- }
11
- export declare function CustomFormField<T extends FieldValues = FieldValues>({ control, name, label, render, className, withinLabel, withinMessage }: CustomFormFieldProps<T>): import("react/jsx-runtime").JSX.Element;
12
- export {};
@@ -1,16 +0,0 @@
1
- import { BaseStyleProps } from '../../../types/ui';
2
- import { Control, FieldValues, Path } from 'react-hook-form';
3
- declare enum SUPPORTED_INPUT_TYPES {
4
- text = "text",
5
- number = "number",
6
- password = "password",
7
- email = "email"
8
- }
9
- interface FormInputProps<T extends FieldValues = FieldValues> extends BaseStyleProps {
10
- readonly control: Control<T>;
11
- readonly name: Path<T>;
12
- readonly placeholder?: string;
13
- readonly type?: keyof typeof SUPPORTED_INPUT_TYPES;
14
- }
15
- export default function FormInput<T extends FieldValues = FieldValues>({ control, name, placeholder, type, className }: FormInputProps<T>): import("react/jsx-runtime").JSX.Element;
16
- export {};
@@ -1,9 +0,0 @@
1
- import { BaseStyleProps } from '../../../types/ui';
2
- import { Control, FieldValues, Path } from 'react-hook-form';
3
- interface FormInputProps<T extends FieldValues = FieldValues> extends BaseStyleProps {
4
- readonly control: Control<T>;
5
- readonly name: Path<T>;
6
- readonly placeholder?: string;
7
- }
8
- export default function FormTextArea<T extends FieldValues = FieldValues>({ control, name, placeholder, className }: FormInputProps<T>): import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,8 +0,0 @@
1
- import { BaseProps } from '../../../types/ui';
2
- import { FormEvent } from 'react';
3
- interface FormWrapperProps extends BaseProps {
4
- readonly noValidate?: boolean;
5
- readonly onSubmit?: (e: FormEvent) => void;
6
- }
7
- export declare function FormWrapper({ children, className, noValidate, onSubmit }: FormWrapperProps): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,6 +0,0 @@
1
- import { BaseStyleProps } from '../../../types/ui';
2
- interface LogoProps extends BaseStyleProps {
3
- to?: string;
4
- }
5
- export default function Logo({ className, to }: LogoProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,7 +0,0 @@
1
- interface CustomPaginationProps {
2
- readonly currentPage: number;
3
- readonly totalPages: number;
4
- readonly onPageChange: (page: number) => void;
5
- }
6
- export default function CustomPagination({ currentPage, totalPages, onPageChange }: CustomPaginationProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,10 +0,0 @@
1
- import { BaseStyleProps } from '../../../types/ui';
2
- interface CustomSelectProps extends BaseStyleProps {
3
- readonly options: {
4
- readonly value: string;
5
- readonly label: string | React.ReactNode;
6
- }[];
7
- readonly placeholder?: string;
8
- }
9
- export default function CustomSelect({ options, placeholder, className }: CustomSelectProps): import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1,7 +0,0 @@
1
- import { BaseStyleProps } from '../../../types/ui';
2
- interface SpinnerProps extends BaseStyleProps {
3
- readonly color?: string;
4
- readonly size?: number;
5
- }
6
- export default function Spinner({ color, className, size }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,9 +0,0 @@
1
- export interface CoreBaseLayoutProps extends React.PropsWithChildren {
2
- readonly headerChildren?: React.ReactNode;
3
- readonly footerChildren?: React.ReactNode;
4
- readonly headerClassName?: string;
5
- readonly mainClassName?: string;
6
- readonly footerClassName?: string;
7
- readonly styles?: any;
8
- }
9
- export default function CoreBaseLayout({ headerChildren, footerChildren, headerClassName, mainClassName, footerClassName, children, styles }: CoreBaseLayoutProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- import { CoreBaseLayoutProps } from '../layouts/CoreBaseLayout';
2
- export interface CoreHomeLayoutProps extends CoreBaseLayoutProps {
3
- readonly styles?: any;
4
- }
5
- export default function CoreHomeLayout({ styles, children }: CoreHomeLayoutProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { CoreBaseLayoutProps } from '../layouts/CoreBaseLayout';
2
- export default function CorePreviewLayout({ headerChildren, footerChildren, headerClassName, mainClassName, footerClassName, children, styles }: CoreBaseLayoutProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export default function CoreFooter(): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- interface CoreHeaderProps {
2
- readonly renderNavbar?: React.ReactNode;
3
- readonly renderSubMenuHeader?: React.ReactNode;
4
- }
5
- export default function CoreHeader({ renderNavbar, renderSubMenuHeader }: CoreHeaderProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,8 +0,0 @@
1
- interface CoreMainSearchProps {
2
- readonly left?: React.ReactNode;
3
- readonly right?: React.ReactNode;
4
- readonly renderInput?: React.ReactNode;
5
- readonly renderSearchButton?: React.ReactNode;
6
- }
7
- export default function CoreMainSearch({ left, right, renderInput, renderSearchButton }: CoreMainSearchProps): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,8 +0,0 @@
1
- import { BaseStyleProps } from '../../../types/ui';
2
- interface CoreNavbarProps extends BaseStyleProps {
3
- readonly center?: React.ReactNode;
4
- readonly right?: React.ReactNode;
5
- readonly renderLogo?: React.ReactNode;
6
- }
7
- export default function CoreNavbar({ className, renderLogo, center, right }: CoreNavbarProps): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,6 +0,0 @@
1
- import { BaseStyleProps } from '../../../types/ui';
2
- interface CoreSubMenuProps extends BaseStyleProps {
3
- classNameItems?: string;
4
- }
5
- export default function CoreSubMenu({ className, classNameItems }: CoreSubMenuProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,7 +0,0 @@
1
- import { BaseStyleProps } from '../../../types/ui';
2
- interface CoreSubMenuHeaderProps extends BaseStyleProps {
3
- readonly subMenuHeaderLeft?: React.ReactNode;
4
- readonly subMenuHeaderRight?: React.ReactNode;
5
- }
6
- export default function CoreSubMenuHeader({ className, subMenuHeaderLeft, subMenuHeaderRight }: CoreSubMenuHeaderProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,7 +0,0 @@
1
- interface DynamicHeaderProps {
2
- navbar: any;
3
- submenuHeader: any;
4
- submenu: any;
5
- }
6
- export default function DynamicHeader({ navbar, submenuHeader, submenu }: DynamicHeaderProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,5 +0,0 @@
1
- interface DynamicMainProps {
2
- card: any;
3
- }
4
- export default function DynamicMain({ card }: DynamicMainProps): import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- import * as AccordionPrimitive from "@radix-ui/react-accordion";
3
- declare function Accordion({ ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
5
- declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
- declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
- export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
@@ -1,14 +0,0 @@
1
- import * as React from "react";
2
- import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
3
- declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
- declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
6
- declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
7
- declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
8
- declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
9
- declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
10
- declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
11
- declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
12
- declare function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): import("react/jsx-runtime").JSX.Element;
13
- declare function AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): import("react/jsx-runtime").JSX.Element;
14
- export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
@@ -1,9 +0,0 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import * as React from "react";
3
- declare const alertVariants: (props?: ({
4
- variant?: "default" | "destructive" | null | undefined;
5
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
- declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
7
- declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
8
- declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
9
- export { Alert, AlertTitle, AlertDescription };
@@ -1,6 +0,0 @@
1
- import * as React from "react";
2
- import * as AvatarPrimitive from "@radix-ui/react-avatar";
3
- declare function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
5
- declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
6
- export { Avatar, AvatarImage, AvatarFallback };
@@ -1,9 +0,0 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import * as React from "react";
3
- declare const badgeVariants: (props?: ({
4
- variant?: "secondary" | "default" | "destructive" | "outline" | null | undefined;
5
- } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
- declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
7
- asChild?: boolean;
8
- }): import("react/jsx-runtime").JSX.Element;
9
- export { Badge, badgeVariants };
@@ -1,11 +0,0 @@
1
- import * as React from "react";
2
- declare function Breadcrumb({ ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
3
- declare function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">): import("react/jsx-runtime").JSX.Element;
4
- declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
5
- declare function BreadcrumbLink({ asChild, className, ...props }: React.ComponentProps<"a"> & {
6
- asChild?: boolean;
7
- }): import("react/jsx-runtime").JSX.Element;
8
- declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
9
- declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
10
- declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
11
- export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };