@underverse-ui/underverse 0.2.14 → 0.2.16
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 +26 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +26 -37
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1559,8 +1559,12 @@ var SkeletonCard = ({
|
|
|
1559
1559
|
showAvatar = true,
|
|
1560
1560
|
showImage = false,
|
|
1561
1561
|
textLines = 3,
|
|
1562
|
-
className
|
|
1562
|
+
className,
|
|
1563
|
+
children
|
|
1563
1564
|
}) => {
|
|
1565
|
+
if (children) {
|
|
1566
|
+
return /* @__PURE__ */ jsx11("div", { className: cn("p-4 space-y-4 rounded-lg bg-card outline-none focus:outline-none", className), children });
|
|
1567
|
+
}
|
|
1564
1568
|
return /* @__PURE__ */ jsxs9("div", { className: cn("p-4 space-y-4 rounded-lg bg-card outline-none focus:outline-none", className), children: [
|
|
1565
1569
|
showAvatar && /* @__PURE__ */ jsxs9("div", { className: "flex items-center space-x-3", children: [
|
|
1566
1570
|
/* @__PURE__ */ jsx11(SkeletonAvatar, {}),
|
|
@@ -2537,39 +2541,36 @@ var shadcnAnimationStyles = `
|
|
|
2537
2541
|
* Uses spring-like cubic-bezier for natural feel
|
|
2538
2542
|
* ============================================ */
|
|
2539
2543
|
|
|
2544
|
+
/* Native-like Combobox Animation - Mimics browser default select */
|
|
2540
2545
|
[data-state="open"][data-combobox-dropdown] {
|
|
2541
|
-
animation: comboboxOpen
|
|
2546
|
+
animation: comboboxOpen 150ms cubic-bezier(0.2, 0, 0, 1);
|
|
2542
2547
|
transform-origin: top center;
|
|
2543
2548
|
}
|
|
2544
|
-
|
|
2549
|
+
|
|
2545
2550
|
[data-state="closed"][data-combobox-dropdown] {
|
|
2546
|
-
animation: comboboxClose
|
|
2551
|
+
animation: comboboxClose 120ms cubic-bezier(0.4, 0, 1, 1);
|
|
2547
2552
|
transform-origin: top center;
|
|
2548
2553
|
}
|
|
2549
|
-
|
|
2554
|
+
|
|
2550
2555
|
@keyframes comboboxOpen {
|
|
2551
2556
|
0% {
|
|
2552
2557
|
opacity: 0;
|
|
2553
|
-
transform: translateY(-
|
|
2554
|
-
}
|
|
2555
|
-
50% {
|
|
2556
|
-
opacity: 0.8;
|
|
2557
|
-
transform: translateY(2px) scale(1.01);
|
|
2558
|
+
transform: translateY(-4px) scaleY(0.9);
|
|
2558
2559
|
}
|
|
2559
2560
|
100% {
|
|
2560
2561
|
opacity: 1;
|
|
2561
|
-
transform: translateY(0)
|
|
2562
|
+
transform: translateY(0) scaleY(1);
|
|
2562
2563
|
}
|
|
2563
2564
|
}
|
|
2564
|
-
|
|
2565
|
+
|
|
2565
2566
|
@keyframes comboboxClose {
|
|
2566
2567
|
0% {
|
|
2567
2568
|
opacity: 1;
|
|
2568
|
-
transform: translateY(0)
|
|
2569
|
+
transform: translateY(0) scaleY(1);
|
|
2569
2570
|
}
|
|
2570
2571
|
100% {
|
|
2571
2572
|
opacity: 0;
|
|
2572
|
-
transform: translateY(-
|
|
2573
|
+
transform: translateY(-4px) scaleY(0.9);
|
|
2573
2574
|
}
|
|
2574
2575
|
}
|
|
2575
2576
|
|
|
@@ -2605,41 +2606,29 @@ var shadcnAnimationStyles = `
|
|
|
2605
2606
|
}
|
|
2606
2607
|
|
|
2607
2608
|
/* ============================================
|
|
2608
|
-
* DROPDOWN ITEMS -
|
|
2609
|
+
* DROPDOWN ITEMS - Native-like instant appearance
|
|
2609
2610
|
* ============================================ */
|
|
2610
|
-
|
|
2611
|
+
|
|
2612
|
+
/* Fast staggered animation for native feel */
|
|
2611
2613
|
.dropdown-item {
|
|
2612
2614
|
opacity: 0;
|
|
2613
|
-
animation:
|
|
2614
|
-
will-change: opacity, transform;
|
|
2615
|
+
animation: itemFadeIn 120ms cubic-bezier(0.2, 0, 0, 1) forwards;
|
|
2615
2616
|
}
|
|
2616
|
-
|
|
2617
|
-
@keyframes
|
|
2617
|
+
|
|
2618
|
+
@keyframes itemFadeIn {
|
|
2618
2619
|
0% {
|
|
2619
2620
|
opacity: 0;
|
|
2620
|
-
transform:
|
|
2621
|
-
}
|
|
2622
|
-
60% {
|
|
2623
|
-
opacity: 0.9;
|
|
2624
|
-
transform: translateX(2px);
|
|
2621
|
+
transform: translateY(-2px);
|
|
2625
2622
|
}
|
|
2626
2623
|
100% {
|
|
2627
2624
|
opacity: 1;
|
|
2628
|
-
transform:
|
|
2625
|
+
transform: translateY(0);
|
|
2629
2626
|
}
|
|
2630
2627
|
}
|
|
2631
|
-
|
|
2632
|
-
/*
|
|
2628
|
+
|
|
2629
|
+
/* Subtle hover effect */
|
|
2633
2630
|
.dropdown-item {
|
|
2634
|
-
transition: background-color
|
|
2635
|
-
}
|
|
2636
|
-
|
|
2637
|
-
.dropdown-item:hover {
|
|
2638
|
-
transform: translateX(2px);
|
|
2639
|
-
}
|
|
2640
|
-
|
|
2641
|
-
.dropdown-item:active {
|
|
2642
|
-
transform: scale(0.98);
|
|
2631
|
+
transition: background-color 100ms ease;
|
|
2643
2632
|
}
|
|
2644
2633
|
|
|
2645
2634
|
/* ============================================
|