@beweco/aurora-ui 0.1.54 → 0.1.55
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/index.cjs.js +7 -7
- package/dist/index.esm.js +7 -7
- package/dist/types/components/content-carousel/ContentCarousel.d.ts.map +1 -1
- package/dist/types/components/content-carousel/ContentCarousel.types.d.ts +5 -0
- package/dist/types/components/content-carousel/ContentCarousel.types.d.ts.map +1 -1
- package/dist/types/components/content-carousel/variants/SocialMediaCarousel.d.ts.map +1 -1
- package/dist/types/components/content-carousel/variants/SocialMediaCarousel.types.d.ts +2 -0
- package/dist/types/components/content-carousel/variants/SocialMediaCarousel.types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1381,9 +1381,9 @@ var defaultTranslations$b = {
|
|
|
1381
1381
|
* ```
|
|
1382
1382
|
*/
|
|
1383
1383
|
var ContentCarousel = function (_a) {
|
|
1384
|
-
var items = _a.items, onItemClick = _a.onItemClick, _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.emptyStateRedirectPath, emptyStateRedirectPath = _c === void 0 ? "" : _c, _d = _a.translations, translations = _d === void 0 ? {} : _d, renderFooter = _a.renderFooter, renderHeader = _a.renderHeader, renderBody = _a.renderBody;
|
|
1384
|
+
var items = _a.items, onItemClick = _a.onItemClick, _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.emptyStateRedirectPath, emptyStateRedirectPath = _c === void 0 ? "" : _c, _d = _a.translations, translations = _d === void 0 ? {} : _d, renderFooter = _a.renderFooter, renderHeader = _a.renderHeader, renderBody = _a.renderBody, _e = _a.haveChip, haveChip = _e === void 0 ? false : _e;
|
|
1385
1385
|
var t = __assign(__assign({}, defaultTranslations$b), translations);
|
|
1386
|
-
var
|
|
1386
|
+
var _f = React.useState(items.length >= 3 ? 1 : 0), activeIndex = _f[0], setActiveIndex = _f[1];
|
|
1387
1387
|
// Reset to show 3 images when items change
|
|
1388
1388
|
React.useEffect(function () {
|
|
1389
1389
|
setActiveIndex(items.length >= 3 ? 1 : 0);
|
|
@@ -1425,7 +1425,7 @@ var ContentCarousel = function (_a) {
|
|
|
1425
1425
|
if (position === "hidden") {
|
|
1426
1426
|
return null;
|
|
1427
1427
|
}
|
|
1428
|
-
return (jsxRuntime.jsx(CarouselItemComponent, { item: item, position: position, onClick: function () { return handleItemClick(item); }, translations: t, renderFooter: renderFooter, renderHeader: renderHeader, renderBody: renderBody }, item.id));
|
|
1428
|
+
return (jsxRuntime.jsx(CarouselItemComponent, { item: item, position: position, onClick: function () { return handleItemClick(item); }, translations: t, renderFooter: renderFooter, renderHeader: renderHeader, renderBody: renderBody, haveChip: haveChip }, item.id));
|
|
1429
1429
|
})] }), items.length > 1 && (jsxRuntime.jsx("div", { className: "flex justify-center mt-4", children: jsxRuntime.jsx("div", { className: "flex justify-center gap-2", children: items.map(function (_, index) { return (jsxRuntime.jsx("button", { type: "button", onClick: function () { return setActiveIndex(index); }, className: "rounded-full transition-all duration-300 hover:scale-110 ".concat(index === activeIndex
|
|
1430
1430
|
? "w-8 h-2 bg-gradient-to-r from-primary-500 to-primary-600 shadow-lg shadow-primary-500/50"
|
|
1431
1431
|
: "w-2 h-2 bg-gray-300 dark:bg-gray-600 hover:bg-gray-400 dark:hover:bg-gray-500 hover:w-3"), "aria-label": "".concat(t.goToItemLabel, " ").concat(index + 1) }, index)); }) }) }))] }) }));
|
|
@@ -1436,7 +1436,7 @@ var ContentCarousel = function (_a) {
|
|
|
1436
1436
|
* @internal
|
|
1437
1437
|
*/
|
|
1438
1438
|
function CarouselItemComponent(_a) {
|
|
1439
|
-
var item = _a.item, position = _a.position, onClick = _a.onClick, translations = _a.translations, renderFooter = _a.renderFooter, renderHeader = _a.renderHeader, renderBody = _a.renderBody;
|
|
1439
|
+
var item = _a.item, position = _a.position, onClick = _a.onClick, translations = _a.translations, renderFooter = _a.renderFooter, renderHeader = _a.renderHeader, renderBody = _a.renderBody, haveChip = _a.haveChip;
|
|
1440
1440
|
var _b = React.useState(false), isHovered = _b[0], setIsHovered = _b[1];
|
|
1441
1441
|
var captionText = item.caption || item.title;
|
|
1442
1442
|
// Get styles based on position
|
|
@@ -1467,7 +1467,7 @@ function CarouselItemComponent(_a) {
|
|
|
1467
1467
|
item: item,
|
|
1468
1468
|
isHovered: isHovered,
|
|
1469
1469
|
translations: translations,
|
|
1470
|
-
}) })), renderBody ? (jsxRuntime.jsx("div", { className: "relative w-full h-full z-10", children: renderBody(item, isHovered) })) : (jsxRuntime.jsxs("button", { type: "button", onClick: onClick, className: "relative w-full h-full cursor-pointer flex flex-col justify-between p-6 z-10", "aria-label": item.title, children: [jsxRuntime.jsx("div", { children: jsxRuntime.jsx("h3", { className: "text-white text-3xl font-semibold mb-2 text-left drop-shadow-lg", children: item.title }) }), jsxRuntime.jsx("div", { className: "space-y-3 overflow-hidden", children: jsxRuntime.jsx("p", { className: "text-white text-sm text-left drop-shadow-md transition-all duration-500 ease-in-out ".concat(!isHovered && "line-clamp-2"), children: captionText }) })] })), renderFooter && (function () {
|
|
1470
|
+
}) })), haveChip && item.chipContent != null && (jsxRuntime.jsx("div", { className: "absolute top-4 right-4 z-30", children: item.chipContent })), renderBody ? (jsxRuntime.jsx("div", { className: "relative w-full h-full z-10", children: renderBody(item, isHovered) })) : (jsxRuntime.jsxs("button", { type: "button", onClick: onClick, className: "relative w-full h-full cursor-pointer flex flex-col justify-between p-6 z-10", "aria-label": item.title, children: [jsxRuntime.jsx("div", { children: jsxRuntime.jsx("h3", { className: "text-white text-3xl font-semibold mb-2 text-left drop-shadow-lg", children: item.title }) }), jsxRuntime.jsx("div", { className: "space-y-3 overflow-hidden", children: jsxRuntime.jsx("p", { className: "text-white text-sm text-left drop-shadow-md transition-all duration-500 ease-in-out ".concat(!isHovered && "line-clamp-2"), children: captionText }) })] })), renderFooter && (function () {
|
|
1471
1471
|
var footerContent = renderFooter({
|
|
1472
1472
|
item: item,
|
|
1473
1473
|
isHovered: isHovered,
|
|
@@ -1546,7 +1546,7 @@ if (typeof document !== "undefined") {
|
|
|
1546
1546
|
* ```
|
|
1547
1547
|
*/
|
|
1548
1548
|
var SocialMediaCarousel = function (_a) {
|
|
1549
|
-
var items = _a.items, onItemClick = _a.onItemClick, onEdit = _a.onEdit, onDelete = _a.onDelete, onPublish = _a.onPublish, onPreview = _a.onPreview, _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.emptyStateRedirectPath, emptyStateRedirectPath = _c === void 0 ? "/contenidos-ai/crear-contenido" : _c; _a.compactHeader; _a.campaignView; var _f = _a.translations, translations = _f === void 0 ? {} : _f, _g = _a.hideFooter, hideFooter = _g === void 0 ? false : _g, _h = _a.hideAudienceInfo, hideAudienceInfo = _h === void 0 ? false : _h;
|
|
1549
|
+
var items = _a.items, onItemClick = _a.onItemClick, onEdit = _a.onEdit, onDelete = _a.onDelete, onPublish = _a.onPublish, onPreview = _a.onPreview, _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.emptyStateRedirectPath, emptyStateRedirectPath = _c === void 0 ? "/contenidos-ai/crear-contenido" : _c; _a.compactHeader; _a.campaignView; var _f = _a.translations, translations = _f === void 0 ? {} : _f, _g = _a.hideFooter, hideFooter = _g === void 0 ? false : _g, _h = _a.hideAudienceInfo, hideAudienceInfo = _h === void 0 ? false : _h, _j = _a.haveChip, haveChip = _j === void 0 ? false : _j;
|
|
1550
1550
|
var handlePreview = React.useCallback(function (item) {
|
|
1551
1551
|
if (onPreview) {
|
|
1552
1552
|
onPreview(item);
|
|
@@ -1574,7 +1574,7 @@ var SocialMediaCarousel = function (_a) {
|
|
|
1574
1574
|
previewButtonLabel: translations.previewButtonLabel,
|
|
1575
1575
|
} }))] }));
|
|
1576
1576
|
}, [hideAudienceInfo, hideFooter, onEdit, onDelete, onPublish, handlePreview]);
|
|
1577
|
-
return (jsxRuntime.jsx(ContentCarousel, { items: items, onItemClick: onItemClick, className: className, emptyStateRedirectPath: emptyStateRedirectPath, translations: translations, renderFooter: renderSocialFooterWithAudience }));
|
|
1577
|
+
return (jsxRuntime.jsx(ContentCarousel, { items: items, onItemClick: onItemClick, className: className, emptyStateRedirectPath: emptyStateRedirectPath, translations: translations, renderFooter: renderSocialFooterWithAudience, haveChip: haveChip }));
|
|
1578
1578
|
};
|
|
1579
1579
|
|
|
1580
1580
|
// Traducciones por defecto en español
|
package/dist/index.esm.js
CHANGED
|
@@ -1382,9 +1382,9 @@ var defaultTranslations$b = {
|
|
|
1382
1382
|
* ```
|
|
1383
1383
|
*/
|
|
1384
1384
|
var ContentCarousel = function (_a) {
|
|
1385
|
-
var items = _a.items, onItemClick = _a.onItemClick, _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.emptyStateRedirectPath, emptyStateRedirectPath = _c === void 0 ? "" : _c, _d = _a.translations, translations = _d === void 0 ? {} : _d, renderFooter = _a.renderFooter, renderHeader = _a.renderHeader, renderBody = _a.renderBody;
|
|
1385
|
+
var items = _a.items, onItemClick = _a.onItemClick, _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.emptyStateRedirectPath, emptyStateRedirectPath = _c === void 0 ? "" : _c, _d = _a.translations, translations = _d === void 0 ? {} : _d, renderFooter = _a.renderFooter, renderHeader = _a.renderHeader, renderBody = _a.renderBody, _e = _a.haveChip, haveChip = _e === void 0 ? false : _e;
|
|
1386
1386
|
var t = __assign(__assign({}, defaultTranslations$b), translations);
|
|
1387
|
-
var
|
|
1387
|
+
var _f = useState(items.length >= 3 ? 1 : 0), activeIndex = _f[0], setActiveIndex = _f[1];
|
|
1388
1388
|
// Reset to show 3 images when items change
|
|
1389
1389
|
useEffect(function () {
|
|
1390
1390
|
setActiveIndex(items.length >= 3 ? 1 : 0);
|
|
@@ -1426,7 +1426,7 @@ var ContentCarousel = function (_a) {
|
|
|
1426
1426
|
if (position === "hidden") {
|
|
1427
1427
|
return null;
|
|
1428
1428
|
}
|
|
1429
|
-
return (jsx(CarouselItemComponent, { item: item, position: position, onClick: function () { return handleItemClick(item); }, translations: t, renderFooter: renderFooter, renderHeader: renderHeader, renderBody: renderBody }, item.id));
|
|
1429
|
+
return (jsx(CarouselItemComponent, { item: item, position: position, onClick: function () { return handleItemClick(item); }, translations: t, renderFooter: renderFooter, renderHeader: renderHeader, renderBody: renderBody, haveChip: haveChip }, item.id));
|
|
1430
1430
|
})] }), items.length > 1 && (jsx("div", { className: "flex justify-center mt-4", children: jsx("div", { className: "flex justify-center gap-2", children: items.map(function (_, index) { return (jsx("button", { type: "button", onClick: function () { return setActiveIndex(index); }, className: "rounded-full transition-all duration-300 hover:scale-110 ".concat(index === activeIndex
|
|
1431
1431
|
? "w-8 h-2 bg-gradient-to-r from-primary-500 to-primary-600 shadow-lg shadow-primary-500/50"
|
|
1432
1432
|
: "w-2 h-2 bg-gray-300 dark:bg-gray-600 hover:bg-gray-400 dark:hover:bg-gray-500 hover:w-3"), "aria-label": "".concat(t.goToItemLabel, " ").concat(index + 1) }, index)); }) }) }))] }) }));
|
|
@@ -1437,7 +1437,7 @@ var ContentCarousel = function (_a) {
|
|
|
1437
1437
|
* @internal
|
|
1438
1438
|
*/
|
|
1439
1439
|
function CarouselItemComponent(_a) {
|
|
1440
|
-
var item = _a.item, position = _a.position, onClick = _a.onClick, translations = _a.translations, renderFooter = _a.renderFooter, renderHeader = _a.renderHeader, renderBody = _a.renderBody;
|
|
1440
|
+
var item = _a.item, position = _a.position, onClick = _a.onClick, translations = _a.translations, renderFooter = _a.renderFooter, renderHeader = _a.renderHeader, renderBody = _a.renderBody, haveChip = _a.haveChip;
|
|
1441
1441
|
var _b = useState(false), isHovered = _b[0], setIsHovered = _b[1];
|
|
1442
1442
|
var captionText = item.caption || item.title;
|
|
1443
1443
|
// Get styles based on position
|
|
@@ -1468,7 +1468,7 @@ function CarouselItemComponent(_a) {
|
|
|
1468
1468
|
item: item,
|
|
1469
1469
|
isHovered: isHovered,
|
|
1470
1470
|
translations: translations,
|
|
1471
|
-
}) })), renderBody ? (jsx("div", { className: "relative w-full h-full z-10", children: renderBody(item, isHovered) })) : (jsxs("button", { type: "button", onClick: onClick, className: "relative w-full h-full cursor-pointer flex flex-col justify-between p-6 z-10", "aria-label": item.title, children: [jsx("div", { children: jsx("h3", { className: "text-white text-3xl font-semibold mb-2 text-left drop-shadow-lg", children: item.title }) }), jsx("div", { className: "space-y-3 overflow-hidden", children: jsx("p", { className: "text-white text-sm text-left drop-shadow-md transition-all duration-500 ease-in-out ".concat(!isHovered && "line-clamp-2"), children: captionText }) })] })), renderFooter && (function () {
|
|
1471
|
+
}) })), haveChip && item.chipContent != null && (jsx("div", { className: "absolute top-4 right-4 z-30", children: item.chipContent })), renderBody ? (jsx("div", { className: "relative w-full h-full z-10", children: renderBody(item, isHovered) })) : (jsxs("button", { type: "button", onClick: onClick, className: "relative w-full h-full cursor-pointer flex flex-col justify-between p-6 z-10", "aria-label": item.title, children: [jsx("div", { children: jsx("h3", { className: "text-white text-3xl font-semibold mb-2 text-left drop-shadow-lg", children: item.title }) }), jsx("div", { className: "space-y-3 overflow-hidden", children: jsx("p", { className: "text-white text-sm text-left drop-shadow-md transition-all duration-500 ease-in-out ".concat(!isHovered && "line-clamp-2"), children: captionText }) })] })), renderFooter && (function () {
|
|
1472
1472
|
var footerContent = renderFooter({
|
|
1473
1473
|
item: item,
|
|
1474
1474
|
isHovered: isHovered,
|
|
@@ -1547,7 +1547,7 @@ if (typeof document !== "undefined") {
|
|
|
1547
1547
|
* ```
|
|
1548
1548
|
*/
|
|
1549
1549
|
var SocialMediaCarousel = function (_a) {
|
|
1550
|
-
var items = _a.items, onItemClick = _a.onItemClick, onEdit = _a.onEdit, onDelete = _a.onDelete, onPublish = _a.onPublish, onPreview = _a.onPreview, _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.emptyStateRedirectPath, emptyStateRedirectPath = _c === void 0 ? "/contenidos-ai/crear-contenido" : _c; _a.compactHeader; _a.campaignView; var _f = _a.translations, translations = _f === void 0 ? {} : _f, _g = _a.hideFooter, hideFooter = _g === void 0 ? false : _g, _h = _a.hideAudienceInfo, hideAudienceInfo = _h === void 0 ? false : _h;
|
|
1550
|
+
var items = _a.items, onItemClick = _a.onItemClick, onEdit = _a.onEdit, onDelete = _a.onDelete, onPublish = _a.onPublish, onPreview = _a.onPreview, _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.emptyStateRedirectPath, emptyStateRedirectPath = _c === void 0 ? "/contenidos-ai/crear-contenido" : _c; _a.compactHeader; _a.campaignView; var _f = _a.translations, translations = _f === void 0 ? {} : _f, _g = _a.hideFooter, hideFooter = _g === void 0 ? false : _g, _h = _a.hideAudienceInfo, hideAudienceInfo = _h === void 0 ? false : _h, _j = _a.haveChip, haveChip = _j === void 0 ? false : _j;
|
|
1551
1551
|
var handlePreview = useCallback(function (item) {
|
|
1552
1552
|
if (onPreview) {
|
|
1553
1553
|
onPreview(item);
|
|
@@ -1575,7 +1575,7 @@ var SocialMediaCarousel = function (_a) {
|
|
|
1575
1575
|
previewButtonLabel: translations.previewButtonLabel,
|
|
1576
1576
|
} }))] }));
|
|
1577
1577
|
}, [hideAudienceInfo, hideFooter, onEdit, onDelete, onPublish, handlePreview]);
|
|
1578
|
-
return (jsx(ContentCarousel, { items: items, onItemClick: onItemClick, className: className, emptyStateRedirectPath: emptyStateRedirectPath, translations: translations, renderFooter: renderSocialFooterWithAudience }));
|
|
1578
|
+
return (jsx(ContentCarousel, { items: items, onItemClick: onItemClick, className: className, emptyStateRedirectPath: emptyStateRedirectPath, translations: translations, renderFooter: renderSocialFooterWithAudience, haveChip: haveChip }));
|
|
1579
1579
|
};
|
|
1580
1580
|
|
|
1581
1581
|
// Traducciones por defecto en español
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentCarousel.d.ts","sourceRoot":"","sources":["../../../../src/components/content-carousel/ContentCarousel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAIX,oBAAoB,EAEpB,MAAM,yBAAyB,CAAC;AAejC;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ContentCarousel.d.ts","sourceRoot":"","sources":["../../../../src/components/content-carousel/ContentCarousel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAIX,oBAAoB,EAEpB,MAAM,yBAAyB,CAAC;AAejC;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAyK1D,CAAC"}
|
|
@@ -26,6 +26,8 @@ export interface CarouselItem {
|
|
|
26
26
|
caption?: string;
|
|
27
27
|
imageUrl?: string;
|
|
28
28
|
gradient: string;
|
|
29
|
+
/** Optional chip/badge node shown in the top-right corner (e.g. <Chip>premium</Chip>). Rendered as-is. */
|
|
30
|
+
chipContent?: React.ReactNode;
|
|
29
31
|
[key: string]: any;
|
|
30
32
|
}
|
|
31
33
|
/**
|
|
@@ -56,6 +58,8 @@ export interface ContentCarouselProps {
|
|
|
56
58
|
renderHeader?: (props: CarouselFooterRenderProps) => React.ReactNode;
|
|
57
59
|
/** Custom body render function to completely customize card content */
|
|
58
60
|
renderBody?: (item: CarouselItem, isHovered: boolean) => React.ReactNode;
|
|
61
|
+
/** Si true, se muestra el chip en la esquina superior derecha para cada ítem que tenga item.chipContent. */
|
|
62
|
+
haveChip?: boolean;
|
|
59
63
|
}
|
|
60
64
|
/**
|
|
61
65
|
* Internal props for individual carousel item component
|
|
@@ -69,5 +73,6 @@ export interface CarouselItemComponentProps {
|
|
|
69
73
|
renderFooter?: (props: CarouselFooterRenderProps) => React.ReactNode;
|
|
70
74
|
renderHeader?: (props: CarouselFooterRenderProps) => React.ReactNode;
|
|
71
75
|
renderBody?: (item: CarouselItem, isHovered: boolean) => React.ReactNode;
|
|
76
|
+
haveChip?: boolean;
|
|
72
77
|
}
|
|
73
78
|
//# sourceMappingURL=ContentCarousel.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentCarousel.types.d.ts","sourceRoot":"","sources":["../../../../src/components/content-carousel/ContentCarousel.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC3C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACzC,IAAI,EAAE,YAAY,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,QAAQ,CAAC,2BAA2B,CAAC,CAAC;CACpD;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC,gDAAgD;IAChD,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,uCAAuC;IACvC,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IAC3C,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,wCAAwC;IACxC,YAAY,CAAC,EAAE,2BAA2B,CAAC;IAC3C,yEAAyE;IACzE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,KAAK,CAAC,SAAS,CAAC;IACrE,+DAA+D;IAC/D,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,KAAK,CAAC,SAAS,CAAC;IACrE,uEAAuE;IACvE,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,KAAK,KAAK,CAAC,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ContentCarousel.types.d.ts","sourceRoot":"","sources":["../../../../src/components/content-carousel/ContentCarousel.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC3C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,0GAA0G;IAC1G,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACnB;AAED;;GAEG;A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,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,KAAK,KAAK,CAAC,SAAS,CAAC;IACzE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocialMediaCarousel.d.ts","sourceRoot":"","sources":["../../../../../src/components/content-carousel/variants/SocialMediaCarousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAsC5E;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,
|
|
1
|
+
{"version":3,"file":"SocialMediaCarousel.d.ts","sourceRoot":"","sources":["../../../../../src/components/content-carousel/variants/SocialMediaCarousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAsC5E;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAwHlE,CAAC"}
|
|
@@ -49,5 +49,7 @@ export interface SocialMediaCarouselProps {
|
|
|
49
49
|
hideFooter?: boolean;
|
|
50
50
|
/** If true, hides the audience info */
|
|
51
51
|
hideAudienceInfo?: boolean;
|
|
52
|
+
/** Si true, se muestra el chip en la esquina superior derecha para cada ítem que tenga item.chipContent. */
|
|
53
|
+
haveChip?: boolean;
|
|
52
54
|
}
|
|
53
55
|
//# sourceMappingURL=SocialMediaCarousel.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocialMediaCarousel.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/content-carousel/variants/SocialMediaCarousel.types.ts"],"names":[],"mappings":"AAAA,OA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AAK,IAAI,CAAC;IACpD,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,sDAAsD;IACtD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kDAAkD;IAClD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,wCAAwC;IACxC,YAAY,CAAC,EAAE,2BAA2B,CAAC;IAC3C,iDAAiD;IACjD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uCAAuC;IACvC,gBAAgB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SocialMediaCarousel.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/content-carousel/variants/SocialMediaCarousel.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAC1F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,YAAY;IAC5D,IAAI,EAAE,mBAAmB,CAAC;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,WAAW,CAAC,EAAE,IAAI,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