ingeniuscliq-core 0.5.19 → 0.5.20

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.
@@ -1 +1 @@
1
- {"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../src/components/ui/carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,gBAAgB,EAAE,EACvB,KAAK,oBAAoB,EAC1B,MAAM,sBAAsB,CAAA;AAM7B,KAAK,WAAW,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAA;AAC1C,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAChE,KAAK,eAAe,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAA;AAC/C,KAAK,cAAc,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAA;AAE9C,KAAK,aAAa,GAAG;IACnB,IAAI,CAAC,EAAE,eAAe,CAAA;IACtB,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAA;CACpC,CAAA;AAuBD,QAAA,MAAM,QAAQ,6HAyGb,CAAA;AAGD,QAAA,MAAM,eAAe,6GAmBnB,CAAA;AAGF,QAAA,MAAM,YAAY,6GAmBhB,CAAA;AAGF,QAAA,MAAM,gBAAgB,8KA0BpB,CAAA;AAGF,QAAA,MAAM,YAAY,8KA0BhB,CAAA;AAGF,OAAO,EACL,KAAK,WAAW,EAChB,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,YAAY,GACb,CAAA"}
1
+ {"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../src/components/ui/carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,gBAAgB,EAAE,EACvB,KAAK,oBAAoB,EAC1B,MAAM,sBAAsB,CAAA;AAM7B,KAAK,WAAW,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAA;AAC1C,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAChE,KAAK,eAAe,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAA;AAC/C,KAAK,cAAc,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAA;AAE9C,KAAK,aAAa,GAAG;IACnB,IAAI,CAAC,EAAE,eAAe,CAAA;IACtB,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAA;CACpC,CAAA;AAuBD,QAAA,MAAM,QAAQ,6HAyGb,CAAA;AAGD,QAAA,MAAM,eAAe,6GAmBnB,CAAA;AAGF,QAAA,MAAM,YAAY,6GAmBhB,CAAA;AAGF,QAAA,MAAM,gBAAgB,8KAgCpB,CAAA;AAGF,QAAA,MAAM,YAAY,8KAgChB,CAAA;AAGF,OAAO,EACL,KAAK,WAAW,EAChB,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,YAAY,GACb,CAAA"}
@@ -1,4 +1,4 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import useEmblaCarousel from 'embla-carousel-react';
4
4
  import { ArrowLeft, ArrowRight } from 'lucide-react';
@@ -138,9 +138,9 @@ const CarouselItem = React.forwardRef(({ className, ...props }, ref) => {
138
138
  );
139
139
  });
140
140
  CarouselItem.displayName = "CarouselItem";
141
- const CarouselPrevious = React.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
141
+ const CarouselPrevious = React.forwardRef(({ className, variant = "outline", size = "icon", children, ...props }, ref) => {
142
142
  const { orientation, scrollPrev, canScrollPrev } = useCarousel();
143
- return /* @__PURE__ */ jsxs(
143
+ return /* @__PURE__ */ jsx(
144
144
  Button,
145
145
  {
146
146
  ref,
@@ -154,17 +154,17 @@ const CarouselPrevious = React.forwardRef(({ className, variant = "outline", siz
154
154
  disabled: !canScrollPrev,
155
155
  onClick: scrollPrev,
156
156
  ...props,
157
- children: [
157
+ children: children ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
158
158
  /* @__PURE__ */ jsx(ArrowLeft, { className: "h-4 w-4" }),
159
159
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Previous slide" })
160
- ]
160
+ ] })
161
161
  }
162
162
  );
163
163
  });
164
164
  CarouselPrevious.displayName = "CarouselPrevious";
165
- const CarouselNext = React.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
165
+ const CarouselNext = React.forwardRef(({ className, variant = "outline", size = "icon", children, ...props }, ref) => {
166
166
  const { orientation, scrollNext, canScrollNext } = useCarousel();
167
- return /* @__PURE__ */ jsxs(
167
+ return /* @__PURE__ */ jsx(
168
168
  Button,
169
169
  {
170
170
  ref,
@@ -178,10 +178,10 @@ const CarouselNext = React.forwardRef(({ className, variant = "outline", size =
178
178
  disabled: !canScrollNext,
179
179
  onClick: scrollNext,
180
180
  ...props,
181
- children: [
181
+ children: children ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
182
182
  /* @__PURE__ */ jsx(ArrowRight, { className: "h-4 w-4" }),
183
183
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Next slide" })
184
- ]
184
+ ] })
185
185
  }
186
186
  );
187
187
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ingeniuscliq-core",
3
- "version": "0.5.19",
3
+ "version": "0.5.20",
4
4
  "description": "IngeniusCliq Core UI y lógica compartida",
5
5
  "license": "MIT",
6
6
  "type": "module",