@beweco/aurora-ui 0.6.24 → 0.6.26
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/assets/css/styles.css +1 -1
- package/dist/index.cjs.js +173 -24
- package/dist/index.esm.js +173 -24
- package/dist/types/components/content-carousel/ContentCarousel.d.ts.map +1 -1
- package/dist/types/components/content-carousel/ContentCarousel.types.d.ts +2 -0
- package/dist/types/components/content-carousel/ContentCarousel.types.d.ts.map +1 -1
- package/dist/types/components/content-carousel/useBreakpoint.d.ts +8 -0
- package/dist/types/components/content-carousel/useBreakpoint.d.ts.map +1 -0
- package/dist/types/components/content-carousel/variants/SocialMediaCarousel.d.ts.map +1 -1
- package/dist/types/components/currency/Currency.d.ts.map +1 -1
- package/dist/types/components/currency/Currency.types.d.ts +6 -0
- package/dist/types/components/currency/Currency.types.d.ts.map +1 -1
- package/dist/types/components/two-column-layout-agent/TwoColumnLayoutAgent.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2285,18 +2285,18 @@ var sanitizeAmountInput = function (raw, maxFractionDigits) {
|
|
|
2285
2285
|
return { display: display, amountForParent: amountForParent };
|
|
2286
2286
|
};
|
|
2287
2287
|
var Currency = function (_a) {
|
|
2288
|
-
var id = _a.id, label = _a.label, _b = _a.required, required = _b === void 0 ? false : _b, _c = _a.error, error = _c === void 0 ? false : _c, _d = _a.errorText, errorText = _d === void 0 ? "" : _d, value = _a.value, onChange = _a.onChange, onBlur = _a.onBlur, _e = _a.disabled, disabled = _e === void 0 ? false : _e, _f = _a.name, name = _f === void 0 ? "currency" : _f, _g = _a.currencySelectorLocked, currencySelectorLocked = _g === void 0 ? false : _g, _h = _a.showInput, showInput = _h === void 0 ? true : _h, optionsProp = _a.options, _j = _a.translations, translations =
|
|
2288
|
+
var id = _a.id, label = _a.label, _b = _a.required, required = _b === void 0 ? false : _b, _c = _a.error, error = _c === void 0 ? false : _c, _d = _a.errorText, errorText = _d === void 0 ? "" : _d, value = _a.value, onChange = _a.onChange, onBlur = _a.onBlur, _e = _a.disabled, disabled = _e === void 0 ? false : _e, _f = _a.name, name = _f === void 0 ? "currency" : _f, _g = _a.currencySelectorLocked, currencySelectorLocked = _g === void 0 ? false : _g, _h = _a.showInput, showInput = _h === void 0 ? true : _h, optionsProp = _a.options, _j = _a.listMaxHeight, listMaxHeight = _j === void 0 ? "max-h-60" : _j, _k = _a.translations, translations = _k === void 0 ? {} : _k, _l = _a.maxFractionDigits, maxFractionDigits = _l === void 0 ? 0 : _l;
|
|
2289
2289
|
var options = useMemo(function () {
|
|
2290
2290
|
var o = optionsProp !== null && optionsProp !== void 0 ? optionsProp : defaultCurrencyOptions;
|
|
2291
2291
|
return o.length > 0 ? o : defaultCurrencyOptions;
|
|
2292
2292
|
}, [optionsProp]);
|
|
2293
|
-
var
|
|
2294
|
-
var
|
|
2295
|
-
var
|
|
2293
|
+
var _m = useState(false), isDropdownOpen = _m[0], setIsDropdownOpen = _m[1];
|
|
2294
|
+
var _o = useState(options[0]), selected = _o[0], setSelected = _o[1];
|
|
2295
|
+
var _p = useState(""), inputValue = _p[0], setInputValue = _p[1];
|
|
2296
2296
|
var dropdownRef = useRef(null);
|
|
2297
2297
|
var portalDropdownRef = useRef(null);
|
|
2298
|
-
var
|
|
2299
|
-
var
|
|
2298
|
+
var _q = useState({}), dropdownPosition = _q[0], setDropdownPosition = _q[1];
|
|
2299
|
+
var _r = useState(options), filteredOptions = _r[0], setFilteredOptions = _r[1];
|
|
2300
2300
|
var t = __assign(__assign({}, defaultTranslations$b), translations);
|
|
2301
2301
|
var getCountryName = function (opt) { var _a, _b; return (_b = (_a = t.countries) === null || _a === void 0 ? void 0 : _a[opt.country]) !== null && _b !== void 0 ? _b : opt.name; };
|
|
2302
2302
|
var finalLabel = label !== null && label !== void 0 ? label : t.label;
|
|
@@ -2404,13 +2404,51 @@ var Currency = function (_a) {
|
|
|
2404
2404
|
opt.country.toLowerCase().includes(searchTerm);
|
|
2405
2405
|
});
|
|
2406
2406
|
setFilteredOptions(filtered);
|
|
2407
|
-
} }) }), jsx("div", { className: "
|
|
2407
|
+
} }) }), jsx("div", { className: "".concat(listMaxHeight, " overflow-y-auto"), children: filteredOptions.length > 0 ? (filteredOptions.map(function (opt) { return (jsxs("button", { type: "button", role: "option", "aria-selected": opt.country === selected.country &&
|
|
2408
2408
|
opt.currency === selected.currency, className: "flex items-center w-full px-4 py-2.5 text-sm hover:bg-default-200 ".concat(opt.country === selected.country &&
|
|
2409
2409
|
opt.currency === selected.currency
|
|
2410
2410
|
? "bg-primary-50"
|
|
2411
2411
|
: ""), onClick: function () { return handleOptionSelect(opt); }, children: [jsx("span", { className: "mr-3", children: jsx(FlagIcon, { countryCode: opt.country, size: "md" }) }), jsx("span", { className: "flex-1 text-left text-default-500", children: getCountryName(opt) }), jsx("span", { className: "text-xs text-default-500", children: opt.currency })] }, "".concat(opt.country, "-").concat(opt.currency))); })) : (jsx("div", { className: "px-4 py-2 text-sm text-default-500", children: t.noCurrenciesFound })) })] }), document.body)] }));
|
|
2412
2412
|
};
|
|
2413
2413
|
|
|
2414
|
+
/**
|
|
2415
|
+
* Internal hook — returns current breakpoint based on viewport width.
|
|
2416
|
+
* mobile: < 640px | tablet: 640-1023px | desktop: >= 1024px
|
|
2417
|
+
*/
|
|
2418
|
+
function useBreakpoint() {
|
|
2419
|
+
var _a = useState(function () {
|
|
2420
|
+
if (typeof window === "undefined")
|
|
2421
|
+
return "desktop";
|
|
2422
|
+
var w = window.innerWidth;
|
|
2423
|
+
if (w < 640)
|
|
2424
|
+
return "mobile";
|
|
2425
|
+
if (w < 1024)
|
|
2426
|
+
return "tablet";
|
|
2427
|
+
return "desktop";
|
|
2428
|
+
}), breakpoint = _a[0], setBreakpoint = _a[1];
|
|
2429
|
+
useEffect(function () {
|
|
2430
|
+
if (typeof window === "undefined")
|
|
2431
|
+
return;
|
|
2432
|
+
var mobileQuery = window.matchMedia("(max-width: 639px)");
|
|
2433
|
+
var tabletQuery = window.matchMedia("(min-width: 640px) and (max-width: 1023px)");
|
|
2434
|
+
var update = function () {
|
|
2435
|
+
if (mobileQuery.matches)
|
|
2436
|
+
setBreakpoint("mobile");
|
|
2437
|
+
else if (tabletQuery.matches)
|
|
2438
|
+
setBreakpoint("tablet");
|
|
2439
|
+
else
|
|
2440
|
+
setBreakpoint("desktop");
|
|
2441
|
+
};
|
|
2442
|
+
mobileQuery.addEventListener("change", update);
|
|
2443
|
+
tabletQuery.addEventListener("change", update);
|
|
2444
|
+
return function () {
|
|
2445
|
+
mobileQuery.removeEventListener("change", update);
|
|
2446
|
+
tabletQuery.removeEventListener("change", update);
|
|
2447
|
+
};
|
|
2448
|
+
}, []);
|
|
2449
|
+
return breakpoint;
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2414
2452
|
// Default translations in Spanish
|
|
2415
2453
|
var defaultTranslations$a = {
|
|
2416
2454
|
emptyStateMessage: "No hay contenido disponible",
|
|
@@ -2439,7 +2477,14 @@ var defaultTranslations$a = {
|
|
|
2439
2477
|
var ContentCarousel = function (_a) {
|
|
2440
2478
|
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;
|
|
2441
2479
|
var t = __assign(__assign({}, defaultTranslations$a), translations);
|
|
2480
|
+
var breakpoint = useBreakpoint();
|
|
2481
|
+
var isMobile = breakpoint === "mobile";
|
|
2482
|
+
var isTablet = breakpoint === "tablet";
|
|
2442
2483
|
var _f = useState(items.length >= 3 ? 1 : 0), activeIndex = _f[0], setActiveIndex = _f[1];
|
|
2484
|
+
var _g = useState(0), swipeOffset = _g[0], setSwipeOffset = _g[1];
|
|
2485
|
+
var swipeOffsetRef = useRef(0);
|
|
2486
|
+
var touchStartRef = useRef(null);
|
|
2487
|
+
var isSwipingRef = useRef(false);
|
|
2443
2488
|
// Reset to show 3 images when items change
|
|
2444
2489
|
useEffect(function () {
|
|
2445
2490
|
setActiveIndex(items.length >= 3 ? 1 : 0);
|
|
@@ -2450,6 +2495,73 @@ var ContentCarousel = function (_a) {
|
|
|
2450
2495
|
var handlePrev = useCallback(function () {
|
|
2451
2496
|
setActiveIndex(function (prev) { return Math.max(prev - 1, 0); });
|
|
2452
2497
|
}, []);
|
|
2498
|
+
var handleDragStart = useCallback(function (clientX, clientY) {
|
|
2499
|
+
touchStartRef.current = { x: clientX, y: clientY };
|
|
2500
|
+
isSwipingRef.current = false;
|
|
2501
|
+
}, []);
|
|
2502
|
+
var handleDragMove = useCallback(function (clientX, clientY, preventDefault) {
|
|
2503
|
+
if (!touchStartRef.current)
|
|
2504
|
+
return;
|
|
2505
|
+
var deltaX = clientX - touchStartRef.current.x;
|
|
2506
|
+
var deltaY = clientY - touchStartRef.current.y;
|
|
2507
|
+
if (!isSwipingRef.current && Math.abs(deltaX) > Math.abs(deltaY) && Math.abs(deltaX) > 10) {
|
|
2508
|
+
isSwipingRef.current = true;
|
|
2509
|
+
}
|
|
2510
|
+
if (isSwipingRef.current) {
|
|
2511
|
+
preventDefault === null || preventDefault === void 0 ? void 0 : preventDefault();
|
|
2512
|
+
var clamped = Math.max(-150, Math.min(150, deltaX));
|
|
2513
|
+
swipeOffsetRef.current = clamped;
|
|
2514
|
+
setSwipeOffset(clamped);
|
|
2515
|
+
}
|
|
2516
|
+
}, []);
|
|
2517
|
+
var handleDragEnd = useCallback(function () {
|
|
2518
|
+
var offset = swipeOffsetRef.current;
|
|
2519
|
+
if (isSwipingRef.current && Math.abs(offset) > 50) {
|
|
2520
|
+
if (offset < 0) {
|
|
2521
|
+
handleNext();
|
|
2522
|
+
}
|
|
2523
|
+
else {
|
|
2524
|
+
handlePrev();
|
|
2525
|
+
}
|
|
2526
|
+
}
|
|
2527
|
+
swipeOffsetRef.current = 0;
|
|
2528
|
+
setSwipeOffset(0);
|
|
2529
|
+
touchStartRef.current = null;
|
|
2530
|
+
isSwipingRef.current = false;
|
|
2531
|
+
}, [handleNext, handlePrev]);
|
|
2532
|
+
// Touch events
|
|
2533
|
+
var handleTouchStart = useCallback(function (e) {
|
|
2534
|
+
handleDragStart(e.touches[0].clientX, e.touches[0].clientY);
|
|
2535
|
+
}, [handleDragStart]);
|
|
2536
|
+
var handleTouchMove = useCallback(function (e) {
|
|
2537
|
+
handleDragMove(e.touches[0].clientX, e.touches[0].clientY, function () { return e.preventDefault(); });
|
|
2538
|
+
}, [handleDragMove]);
|
|
2539
|
+
var handleTouchEnd = useCallback(function () {
|
|
2540
|
+
handleDragEnd();
|
|
2541
|
+
}, [handleDragEnd]);
|
|
2542
|
+
// Mouse events
|
|
2543
|
+
var isDraggingRef = useRef(false);
|
|
2544
|
+
var handleMouseDown = useCallback(function (e) {
|
|
2545
|
+
isDraggingRef.current = true;
|
|
2546
|
+
handleDragStart(e.clientX, e.clientY);
|
|
2547
|
+
}, [handleDragStart]);
|
|
2548
|
+
var handleMouseMove = useCallback(function (e) {
|
|
2549
|
+
if (!isDraggingRef.current)
|
|
2550
|
+
return;
|
|
2551
|
+
handleDragMove(e.clientX, e.clientY);
|
|
2552
|
+
}, [handleDragMove]);
|
|
2553
|
+
var handleMouseUp = useCallback(function () {
|
|
2554
|
+
if (!isDraggingRef.current)
|
|
2555
|
+
return;
|
|
2556
|
+
isDraggingRef.current = false;
|
|
2557
|
+
handleDragEnd();
|
|
2558
|
+
}, [handleDragEnd]);
|
|
2559
|
+
var handleMouseLeave = useCallback(function () {
|
|
2560
|
+
if (!isDraggingRef.current)
|
|
2561
|
+
return;
|
|
2562
|
+
isDraggingRef.current = false;
|
|
2563
|
+
handleDragEnd();
|
|
2564
|
+
}, [handleDragEnd]);
|
|
2453
2565
|
// Get position of card relative to active index
|
|
2454
2566
|
var getPosition = function (index) {
|
|
2455
2567
|
if (index === activeIndex) {
|
|
@@ -2470,19 +2582,19 @@ var ContentCarousel = function (_a) {
|
|
|
2470
2582
|
}, [onItemClick]);
|
|
2471
2583
|
// Empty state when no items
|
|
2472
2584
|
if (items.length === 0) {
|
|
2473
|
-
return (jsxs("div", { className: "flex flex-col items-center justify-center
|
|
2585
|
+
return (jsxs("div", { className: "flex flex-col items-center justify-center px-6 gap-6 ".concat(isMobile ? "py-8" : "py-16", " ").concat(className), children: [jsx("p", { className: "text-default-500 text-center", children: t.emptyStateMessage }), emptyStateRedirectPath && (jsx(Button$1, { color: "primary", variant: "solid", size: "md", className: isMobile ? "w-full" : "", onPress: function () {
|
|
2474
2586
|
if (typeof window !== "undefined") {
|
|
2475
2587
|
window.location.href = emptyStateRedirectPath;
|
|
2476
2588
|
}
|
|
2477
2589
|
}, startContent: jsx(IconComponent, { icon: "solar:add-circle-bold", className: "w-5 h-5" }), children: t.emptyStateButtonText }))] }));
|
|
2478
2590
|
}
|
|
2479
|
-
return (jsx("div", { className: "relative w-full ".concat(className), children: jsxs("div", { className: "relative w-full pt-4 pb-8", children: [jsxs("div", { className: "relative
|
|
2591
|
+
return (jsx("div", { className: "relative w-full ".concat(className), children: jsxs("div", { className: "relative w-full pt-4 pb-8", children: [jsxs("div", { className: "relative flex items-center justify-center ".concat(isMobile ? "h-[420px] overflow-visible" : isTablet ? "h-[380px] overflow-hidden" : "h-[450px] overflow-hidden"), onTouchStart: handleTouchStart, onTouchMove: handleTouchMove, onTouchEnd: handleTouchEnd, onMouseDown: handleMouseDown, onMouseMove: handleMouseMove, onMouseUp: handleMouseUp, onMouseLeave: handleMouseLeave, style: { cursor: isMobile ? "grab" : undefined }, children: [items.length > 1 && !isMobile && (jsxs(Fragment, { children: [jsx("div", { className: "absolute left-0 top-1/2 -translate-y-1/2 z-20 ".concat(isMobile ? "ml-2" : "ml-4"), children: jsx(Button$1, { isIconOnly: true, variant: "bordered", onPress: handlePrev, isDisabled: activeIndex === 0, className: "rounded-full bg-white/95 dark:bg-gray-800/95 backdrop-blur-md border-gray-200 dark:border-gray-700 shadow-xl hover:bg-white dark:hover:bg-gray-800 hover:border-gray-300 dark:hover:border-gray-600 hover:scale-110 hover:-translate-x-1 disabled:opacity-20 disabled:hover:scale-100 disabled:hover:translate-x-0 transition-all duration-300 ".concat(isMobile ? "w-8 h-8" : "w-12 h-12"), "aria-label": t.previousButtonLabel, children: jsx(IconComponent, { icon: "solar:alt-arrow-left-outline", className: isMobile ? "w-4 h-4" : "w-6 h-6" }) }) }), jsx("div", { className: "absolute right-0 top-1/2 -translate-y-1/2 z-20 ".concat(isMobile ? "mr-2" : "mr-4"), children: jsx(Button$1, { isIconOnly: true, variant: "bordered", onPress: handleNext, isDisabled: activeIndex === items.length - 1, className: "rounded-full bg-white/95 dark:bg-gray-800/95 backdrop-blur-md border-gray-200 dark:border-gray-700 shadow-xl hover:bg-white dark:hover:bg-gray-800 hover:border-gray-300 dark:hover:border-gray-600 hover:scale-110 hover:translate-x-1 disabled:opacity-20 disabled:hover:scale-100 disabled:hover:translate-x-0 transition-all duration-300 ".concat(isMobile ? "w-8 h-8" : "w-12 h-12"), "aria-label": t.nextButtonLabel, children: jsx(IconComponent, { icon: "solar:alt-arrow-right-outline", className: isMobile ? "w-4 h-4" : "w-6 h-6" }) }) })] })), items.map(function (item, index) {
|
|
2480
2592
|
var position = getPosition(index);
|
|
2481
2593
|
if (position === "hidden") {
|
|
2482
2594
|
return null;
|
|
2483
2595
|
}
|
|
2484
|
-
return (jsx(CarouselItemComponent, { item: item, position: position, onClick: function () { return handleItemClick(item); }, translations: t, renderFooter: renderFooter, renderHeader: renderHeader, renderBody: renderBody, haveChip: haveChip }, item.id));
|
|
2485
|
-
})] }), 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
|
|
2596
|
+
return (jsx(CarouselItemComponent, { item: item, position: position, breakpoint: breakpoint, onClick: function () { return handleItemClick(item); }, translations: t, renderFooter: renderFooter, renderHeader: renderHeader, renderBody: renderBody, haveChip: haveChip, swipeOffset: swipeOffset }, item.id));
|
|
2597
|
+
})] }), items.length > 1 && (jsx("div", { className: "flex justify-center mt-4", children: jsx("div", { className: "flex justify-center ".concat(isMobile ? "gap-1.5" : "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
|
|
2486
2598
|
? "w-8 h-2 bg-gradient-to-r from-primary-500 to-primary-600 shadow-lg shadow-primary-500/50"
|
|
2487
2599
|
: "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)); }) }) }))] }) }));
|
|
2488
2600
|
};
|
|
@@ -2492,11 +2604,42 @@ var ContentCarousel = function (_a) {
|
|
|
2492
2604
|
* @internal
|
|
2493
2605
|
*/
|
|
2494
2606
|
function CarouselItemComponent(_a) {
|
|
2495
|
-
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;
|
|
2496
|
-
var _b = useState(false),
|
|
2607
|
+
var item = _a.item, position = _a.position, breakpoint = _a.breakpoint, onClick = _a.onClick, translations = _a.translations, renderFooter = _a.renderFooter, renderHeader = _a.renderHeader, renderBody = _a.renderBody, haveChip = _a.haveChip, swipeOffset = _a.swipeOffset;
|
|
2608
|
+
var _b = useState(false), hoverState = _b[0], setHoverState = _b[1];
|
|
2609
|
+
var isMobile = breakpoint === "mobile";
|
|
2610
|
+
var isHovered = isMobile ? false : hoverState;
|
|
2497
2611
|
var captionText = item.caption || item.title;
|
|
2498
|
-
// Get styles based on position
|
|
2612
|
+
// Get styles based on position and breakpoint
|
|
2499
2613
|
var getPositionStyles = function () {
|
|
2614
|
+
if (breakpoint === "mobile") {
|
|
2615
|
+
var baseStyles_1 = {
|
|
2616
|
+
minHeight: "380px",
|
|
2617
|
+
maxHeight: "380px",
|
|
2618
|
+
boxShadow: "0 10px 40px -5px rgba(0, 0, 0, 0.3), 0 8px 25px -8px rgba(0, 0, 0, 0.2)",
|
|
2619
|
+
};
|
|
2620
|
+
if (position === "center") {
|
|
2621
|
+
return __assign(__assign({}, baseStyles_1), { width: "85vw", transform: "translateX(".concat(swipeOffset, "px) scale(1)"), opacity: 1, zIndex: 10, transition: swipeOffset !== 0 ? "none" : undefined });
|
|
2622
|
+
}
|
|
2623
|
+
return __assign(__assign({}, baseStyles_1), { width: "85vw", transform: "scale(0.8)", opacity: 0, zIndex: 0, pointerEvents: "none" });
|
|
2624
|
+
}
|
|
2625
|
+
if (breakpoint === "tablet") {
|
|
2626
|
+
var baseStyles_2 = {
|
|
2627
|
+
minHeight: "340px",
|
|
2628
|
+
maxHeight: "340px",
|
|
2629
|
+
boxShadow: "0 10px 40px -5px rgba(0, 0, 0, 0.3), 0 8px 25px -8px rgba(0, 0, 0, 0.2)",
|
|
2630
|
+
};
|
|
2631
|
+
if (position === "center") {
|
|
2632
|
+
return __assign(__assign({}, baseStyles_2), { width: "420px", transform: "scale(1)", opacity: 1, zIndex: 10 });
|
|
2633
|
+
}
|
|
2634
|
+
if (position === "left") {
|
|
2635
|
+
return __assign(__assign({}, baseStyles_2), { width: "250px", transform: "translateX(-115%) scale(0.7)", opacity: 0.6, zIndex: 5 });
|
|
2636
|
+
}
|
|
2637
|
+
if (position === "right") {
|
|
2638
|
+
return __assign(__assign({}, baseStyles_2), { width: "250px", transform: "translateX(115%) scale(0.7)", opacity: 0.6, zIndex: 5 });
|
|
2639
|
+
}
|
|
2640
|
+
return baseStyles_2;
|
|
2641
|
+
}
|
|
2642
|
+
// Desktop: current behavior unchanged
|
|
2500
2643
|
var baseStyles = {
|
|
2501
2644
|
minHeight: "400px",
|
|
2502
2645
|
maxHeight: "400px",
|
|
@@ -2513,7 +2656,7 @@ function CarouselItemComponent(_a) {
|
|
|
2513
2656
|
}
|
|
2514
2657
|
return baseStyles;
|
|
2515
2658
|
};
|
|
2516
|
-
return (jsxs("div", { className: "absolute rounded-
|
|
2659
|
+
return (jsxs("div", { className: "absolute rounded-[2rem] shadow-lg transition-all duration-500 ease-in-out flex flex-col overflow-hidden", style: getPositionStyles(), onMouseEnter: function () { return !isMobile && setHoverState(true); }, onMouseLeave: function () { return !isMobile && setHoverState(false); }, children: [item.imageUrl ? (jsx("div", { className: "absolute inset-0 bg-cover bg-center transition-all duration-500 ease-in-out ".concat(isHovered ? "scale-110 blur-sm" : "scale-100 blur-0"), style: {
|
|
2517
2660
|
backgroundImage: "url(".concat(item.imageUrl, ")"),
|
|
2518
2661
|
} })) : (jsx("div", { className: "absolute inset-0 transition-all duration-500 ease-in-out ".concat(isHovered ? "scale-110 blur-sm" : "scale-100 blur-0"), style: {
|
|
2519
2662
|
background: item.gradient,
|
|
@@ -2523,7 +2666,7 @@ function CarouselItemComponent(_a) {
|
|
|
2523
2666
|
item: item,
|
|
2524
2667
|
isHovered: isHovered,
|
|
2525
2668
|
translations: translations,
|
|
2526
|
-
}) })), 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
|
|
2669
|
+
}) })), haveChip && item.chipContent != null && (jsx("div", { className: "absolute top-4 right-4 z-30 ".concat(breakpoint === "mobile" ? "scale-90" : ""), 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 font-semibold mb-2 text-left drop-shadow-lg ".concat(breakpoint === "mobile" ? "text-xl" : "text-3xl"), 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 () {
|
|
2527
2670
|
var footerContent = renderFooter({
|
|
2528
2671
|
item: item,
|
|
2529
2672
|
isHovered: isHovered,
|
|
@@ -2609,28 +2752,34 @@ var SocialMediaCarousel = function (_a) {
|
|
|
2609
2752
|
onPreview(item);
|
|
2610
2753
|
}
|
|
2611
2754
|
}, [onPreview]);
|
|
2755
|
+
var breakpoint = useBreakpoint();
|
|
2756
|
+
var isMobile = breakpoint === "mobile";
|
|
2757
|
+
var isMobileOrTablet = breakpoint !== "desktop";
|
|
2612
2758
|
// Custom footer renderer with audience info + SocialMediaBar
|
|
2613
2759
|
var renderSocialFooterWithAudience = useCallback(function (_a) {
|
|
2614
2760
|
var item = _a.item, isHovered = _a.isHovered, translations = _a.translations;
|
|
2615
2761
|
var socialItem = item;
|
|
2616
2762
|
var showAudience = !hideAudienceInfo && socialItem.targetAudienceCount;
|
|
2617
|
-
|
|
2763
|
+
var isExpanded = isMobileOrTablet || isHovered;
|
|
2764
|
+
return (jsxs("div", { className: "flex flex-col gap-3", children: [showAudience && (jsxs("div", { className: "backdrop-blur-xl border border-white/30 shadow-xl flex items-center transition-all duration-500 ".concat(isExpanded
|
|
2618
2765
|
? "bg-gradient-to-br from-white/40 to-white/30 rounded-2xl px-4 py-2.5 gap-3 max-w-md"
|
|
2619
2766
|
: "bg-gradient-to-br from-white/30 to-white/20 rounded-3xl px-3 py-1.5 gap-1.5 w-fit"), style: {
|
|
2620
|
-
animation:
|
|
2767
|
+
animation: isExpanded
|
|
2621
2768
|
? "none"
|
|
2622
2769
|
: "pulse-subtle 3s ease-in-out infinite",
|
|
2623
|
-
}, children: [jsxs("div", { className: "flex items-center gap-1.5 flex-shrink-0", children: [jsx(IconComponent, { icon: "solar:users-group-rounded-bold", className: "w-3.5 h-3.5 text-white transition-transform duration-300 hover:scale-110" }), jsx("span", { className: "text-[11px] font-medium text-white transition-all duration-500 ".concat(
|
|
2770
|
+
}, children: [jsxs("div", { className: "flex items-center gap-1.5 flex-shrink-0", children: [jsx(IconComponent, { icon: "solar:users-group-rounded-bold", className: "w-3.5 h-3.5 text-white transition-transform duration-300 hover:scale-110" }), jsx("span", { className: "text-[11px] font-medium text-white transition-all duration-500 ".concat(isExpanded
|
|
2624
2771
|
? "opacity-100 max-w-20"
|
|
2625
|
-
: "opacity-100 max-w-20 whitespace-nowrap"), children:
|
|
2772
|
+
: "opacity-100 max-w-20 whitespace-nowrap"), children: isMobile && socialItem.targetAudienceCount >= 1000
|
|
2773
|
+
? "".concat((socialItem.targetAudienceCount / 1000).toFixed(1), "K")
|
|
2774
|
+
: socialItem.targetAudienceCount.toLocaleString("es-ES") })] }), socialItem.audienceReason && isExpanded && (jsx("div", { className: "text-[11px] text-white/95 leading-relaxed animate-fade-in", children: socialItem.audienceReason })), socialItem.requiredTags &&
|
|
2626
2775
|
socialItem.requiredTags.length > 0 &&
|
|
2627
|
-
|
|
2776
|
+
isExpanded && (jsx("div", { className: "flex flex-wrap gap-1 mt-2 pt-2 border-t border-white/20 animate-fade-in", children: socialItem.requiredTags.map(function (tag, idx) { return (jsx("span", { className: "rounded-md bg-white/20 text-white/95 backdrop-blur-sm border border-white/30 whitespace-nowrap ".concat(isMobile ? "text-[8px] px-1 py-0.5" : "text-[9px] px-1.5 py-0.5"), children: tag }, idx)); }) }))] })), !hideFooter && (jsx(SocialMediaBar, { platform: socialItem.type, isHovered: isHovered, actionsAlwaysVisible: isMobileOrTablet, showPreview: typeof onPreview === "function", onEdit: onEdit ? function () { return onEdit(socialItem); } : undefined, onDelete: onDelete ? function () { return onDelete(socialItem); } : undefined, onPublish: onPublish ? function () { return onPublish(socialItem); } : undefined, onPreview: function () { return handlePreview(socialItem); }, translations: {
|
|
2628
2777
|
editButtonLabel: translations.editButtonLabel,
|
|
2629
2778
|
deleteButtonLabel: translations.deleteButtonLabel,
|
|
2630
2779
|
publishButtonLabel: translations.publishButtonLabel,
|
|
2631
2780
|
previewButtonLabel: translations.previewButtonLabel,
|
|
2632
2781
|
} }))] }));
|
|
2633
|
-
}, [hideAudienceInfo, hideFooter, onEdit, onDelete, onPublish, handlePreview]);
|
|
2782
|
+
}, [hideAudienceInfo, hideFooter, onEdit, onDelete, onPublish, handlePreview, isMobile, isMobileOrTablet]);
|
|
2634
2783
|
return (jsx(ContentCarousel, { items: items, onItemClick: onItemClick, className: className, emptyStateRedirectPath: emptyStateRedirectPath, translations: translations, renderFooter: renderSocialFooterWithAudience, haveChip: haveChip }));
|
|
2635
2784
|
};
|
|
2636
2785
|
|
|
@@ -4795,7 +4944,7 @@ var SpeechBubble = memo(function (_a) {
|
|
|
4795
4944
|
return (jsxs(motion.div, { initial: { opacity: 0, y: 12, scale: 0.97 }, animate: { opacity: 1, y: 0, scale: 1 }, transition: {
|
|
4796
4945
|
duration: 0.6,
|
|
4797
4946
|
ease: [0.4, 0.0, 0.2, 1],
|
|
4798
|
-
}, className: "relative ".concat(className), style: { maxWidth: "".concat(maxWidth, "px") }, children: [jsx("div", { className: "bg-white/85 dark:bg-gray-900/85 backdrop-blur-xl rounded-3xl px-8 py-6 shadow-[0_8px_30px_rgba(0,0,0,0.04)] dark:shadow-[0_8px_30px_rgba(0,0,0,0.3)] border border-white/50 dark:border-gray-800/50", children: jsxs("p", { className: "text-lg text-gray-800 dark:text-gray-200 leading-relaxed font-sans font-normal", children: [displayedText, isTyping && (jsx(motion.span, { animate: { opacity: [0.3, 1, 0.3] }, transition: {
|
|
4947
|
+
}, className: "relative ".concat(className), style: { maxWidth: "".concat(maxWidth, "px") }, children: [jsx("div", { className: "bg-white/85 dark:bg-gray-900/85 backdrop-blur-xl rounded-3xl px-8 py-6 shadow-[0_8px_30px_rgba(0,0,0,0.04)] dark:shadow-[0_8px_30px_rgba(0,0,0,0.3)] border border-white/50 dark:border-gray-800/50", children: jsxs("p", { className: "text-sm md:text-lg text-gray-800 dark:text-gray-200 leading-relaxed font-sans font-normal", children: [displayedText, isTyping && (jsx(motion.span, { animate: { opacity: [0.3, 1, 0.3] }, transition: {
|
|
4799
4948
|
duration: 1.2,
|
|
4800
4949
|
repeat: Infinity,
|
|
4801
4950
|
ease: "easeInOut",
|
|
@@ -4901,7 +5050,7 @@ var TwoColumnLayoutAgent = function (_a) {
|
|
|
4901
5050
|
setShowRightContent(true);
|
|
4902
5051
|
}, 100);
|
|
4903
5052
|
};
|
|
4904
|
-
return (jsxs("div", { className: "min-h-screen relative isolate overflow-hidden ".concat(className), children: [jsx(BackButton, { onPress: handleBackPress, visible: showBackButton, label: t.backButtonLabel }), jsx(AnimatedBackground, {}), jsx("div", { className: "relative z-10 flex flex-col h-screen", children: jsxs("div", { className: "flex-grow flex overflow-hidden", children: [jsx(motion.div, { initial: false, animate: { opacity: 1, x: 0 }, transition: { duration: 0.8, ease: [0.4, 0.0, 0.2, 1] }, className: "".concat(isDesktop ? "flex w-2/5" : "hidden", " flex-col items-center justify-center p-8 xl:p-12"), children: jsx(AssistantOrb, { text: assistantSpeech, state: assistantState, size: assistantSize, animated: true, typing: enableSequence, typingSpeed: TYPING_SPEED_MS, hint: assistantHint, onTypingComplete: handleTypingComplete }) }), jsxs("div", { className: "".concat(isDesktop ? "w-3/5 p-12" : "w-full p-6 sm:p-8", " flex flex-col items-center
|
|
5053
|
+
return (jsxs("div", { className: "min-h-screen relative isolate overflow-hidden ".concat(className), children: [jsx(BackButton, { onPress: handleBackPress, visible: showBackButton, label: t.backButtonLabel }), jsx(AnimatedBackground, {}), jsx("div", { className: "relative z-10 flex flex-col h-screen", children: jsxs("div", { className: "flex-grow flex overflow-hidden", children: [jsx(motion.div, { initial: false, animate: { opacity: 1, x: 0 }, transition: { duration: 0.8, ease: [0.4, 0.0, 0.2, 1] }, className: "".concat(isDesktop ? "flex w-2/5" : "hidden", " flex-col items-center justify-center p-8 xl:p-12"), children: jsx(AssistantOrb, { text: assistantSpeech, state: assistantState, size: assistantSize, animated: true, typing: enableSequence, typingSpeed: TYPING_SPEED_MS, hint: assistantHint, onTypingComplete: handleTypingComplete }) }), jsxs("div", { className: "".concat(isDesktop ? "w-3/5 p-12 justify-center" : "w-full p-6 sm:p-8 justify-start", " flex flex-col items-center overflow-y-auto"), children: [!isDesktop && (jsx("div", { className: "mb-2 flex flex-col items-center gap-4", children: jsx(AssistantOrb, { text: assistantSpeech, state: assistantState, size: "sm", animated: true, typing: false, className: "!gap-1 [&>*:nth-child(2)]:-mt-10" }) })), jsx(AnimatePresence, { mode: "wait", initial: false, children: showRightContent && (jsx(motion.div, { initial: false, animate: { opacity: 1, x: 0 }, exit: { opacity: 0, x: -30 }, transition: { duration: 0.6, ease: [0.4, 0.0, 0.2, 1] }, className: "w-full max-w-2xl", children: children }, "right-content")) })] })] }) })] }));
|
|
4905
5054
|
};
|
|
4906
5055
|
|
|
4907
5056
|
// 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;
|
|
1
|
+
{"version":3,"file":"ContentCarousel.d.ts","sourceRoot":"","sources":["../../../../src/components/content-carousel/ContentCarousel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAIX,oBAAoB,EAEpB,MAAM,yBAAyB,CAAC;AAejC;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA4Q1D,CAAC"}
|
|
@@ -68,11 +68,13 @@ export interface ContentCarouselProps {
|
|
|
68
68
|
export interface CarouselItemComponentProps {
|
|
69
69
|
item: CarouselItem;
|
|
70
70
|
position: "center" | "left" | "right" | "hidden";
|
|
71
|
+
breakpoint: "mobile" | "tablet" | "desktop";
|
|
71
72
|
onClick: () => void;
|
|
72
73
|
translations: Required<ContentCarouselTranslations>;
|
|
73
74
|
renderFooter?: (props: CarouselFooterRenderProps) => React.ReactNode;
|
|
74
75
|
renderHeader?: (props: CarouselFooterRenderProps) => React.ReactNode;
|
|
75
76
|
renderBody?: (item: CarouselItem, isHovered: boolean) => React.ReactNode;
|
|
76
77
|
haveChip?: boolean;
|
|
78
|
+
swipeOffset: number;
|
|
77
79
|
}
|
|
78
80
|
//# 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,0GAA0G;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B,KAAK,KAAK,CAAC,SAAS,CAAC;IACrE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,KAAK,KAAK,CAAC,SAAS,CAAC;IACrE,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,KAAK,KAAK,CAAC,SAAS,CAAC;IACzE,QAAQ,CAAC,EAAE,OAAO,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;AACH,MAAM,WAAW,yBAAyB;IACzC,IAAI,EAAE,YAAY,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,QAAQ,CAAC,2BAA2B,CAAC,CAAC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K,CAAC,SAAS,CAAC;IACzE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type Breakpoint = "mobile" | "tablet" | "desktop";
|
|
2
|
+
/**
|
|
3
|
+
* Internal hook — returns current breakpoint based on viewport width.
|
|
4
|
+
* mobile: < 640px | tablet: 640-1023px | desktop: >= 1024px
|
|
5
|
+
*/
|
|
6
|
+
export declare function useBreakpoint(): Breakpoint;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=useBreakpoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBreakpoint.d.ts","sourceRoot":"","sources":["../../../../src/components/content-carousel/useBreakpoint.ts"],"names":[],"mappings":"AAEA,KAAK,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAElD;;;GAGG;AACH,wBAAgB,aAAa,IAAI,UAAU,CA+B1C"}
|
|
@@ -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;
|
|
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;AAuC5E;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAkIlE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../../../src/components/currency/Currency.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,kBAAkB,EAAiC,MAAM,kBAAkB,CAAC;AAkD1F,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../../../src/components/currency/Currency.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,kBAAkB,EAAiC,MAAM,kBAAkB,CAAC;AAkD1F,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAmSjD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -50,6 +50,12 @@ export interface CurrencyInputProps {
|
|
|
50
50
|
showInput?: boolean;
|
|
51
51
|
/** Lista de opciones; por defecto se usan países alineados con el componente Phone. */
|
|
52
52
|
options?: CurrencyOption[];
|
|
53
|
+
/**
|
|
54
|
+
* Clase Tailwind para limitar la altura del listado dentro del dropdown
|
|
55
|
+
* (la lista sigue siendo scrolleable internamente).
|
|
56
|
+
* @default "max-h-60"
|
|
57
|
+
*/
|
|
58
|
+
listMaxHeight?: string;
|
|
53
59
|
translations?: CurrencyTranslations;
|
|
54
60
|
/**
|
|
55
61
|
* Dígitos máximos tras el separador decimal en el importe.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Currency.types.d.ts","sourceRoot":"","sources":["../../../../src/components/currency/Currency.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE1D,MAAM,WAAW,oBAAoB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC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pB,uFAAuF;IACvF,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TwoColumnLayoutAgent.d.ts","sourceRoot":"","sources":["../../../../src/components/two-column-layout-agent/TwoColumnLayoutAgent.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EACX,yBAAyB,EAEzB,MAAM,8BAA8B,CAAC;AAiItC,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"TwoColumnLayoutAgent.d.ts","sourceRoot":"","sources":["../../../../src/components/two-column-layout-agent/TwoColumnLayoutAgent.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EACX,yBAAyB,EAEzB,MAAM,8BAA8B,CAAC;AAiItC,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAuGpE,CAAC"}
|