@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.cjs
CHANGED
|
@@ -1714,8 +1714,12 @@ var SkeletonCard = ({
|
|
|
1714
1714
|
showAvatar = true,
|
|
1715
1715
|
showImage = false,
|
|
1716
1716
|
textLines = 3,
|
|
1717
|
-
className
|
|
1717
|
+
className,
|
|
1718
|
+
children
|
|
1718
1719
|
}) => {
|
|
1720
|
+
if (children) {
|
|
1721
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: cn("p-4 space-y-4 rounded-lg bg-card outline-none focus:outline-none", className), children });
|
|
1722
|
+
}
|
|
1719
1723
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: cn("p-4 space-y-4 rounded-lg bg-card outline-none focus:outline-none", className), children: [
|
|
1720
1724
|
showAvatar && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex items-center space-x-3", children: [
|
|
1721
1725
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(SkeletonAvatar, {}),
|
|
@@ -2692,39 +2696,36 @@ var shadcnAnimationStyles = `
|
|
|
2692
2696
|
* Uses spring-like cubic-bezier for natural feel
|
|
2693
2697
|
* ============================================ */
|
|
2694
2698
|
|
|
2699
|
+
/* Native-like Combobox Animation - Mimics browser default select */
|
|
2695
2700
|
[data-state="open"][data-combobox-dropdown] {
|
|
2696
|
-
animation: comboboxOpen
|
|
2701
|
+
animation: comboboxOpen 150ms cubic-bezier(0.2, 0, 0, 1);
|
|
2697
2702
|
transform-origin: top center;
|
|
2698
2703
|
}
|
|
2699
|
-
|
|
2704
|
+
|
|
2700
2705
|
[data-state="closed"][data-combobox-dropdown] {
|
|
2701
|
-
animation: comboboxClose
|
|
2706
|
+
animation: comboboxClose 120ms cubic-bezier(0.4, 0, 1, 1);
|
|
2702
2707
|
transform-origin: top center;
|
|
2703
2708
|
}
|
|
2704
|
-
|
|
2709
|
+
|
|
2705
2710
|
@keyframes comboboxOpen {
|
|
2706
2711
|
0% {
|
|
2707
2712
|
opacity: 0;
|
|
2708
|
-
transform: translateY(-
|
|
2709
|
-
}
|
|
2710
|
-
50% {
|
|
2711
|
-
opacity: 0.8;
|
|
2712
|
-
transform: translateY(2px) scale(1.01);
|
|
2713
|
+
transform: translateY(-4px) scaleY(0.9);
|
|
2713
2714
|
}
|
|
2714
2715
|
100% {
|
|
2715
2716
|
opacity: 1;
|
|
2716
|
-
transform: translateY(0)
|
|
2717
|
+
transform: translateY(0) scaleY(1);
|
|
2717
2718
|
}
|
|
2718
2719
|
}
|
|
2719
|
-
|
|
2720
|
+
|
|
2720
2721
|
@keyframes comboboxClose {
|
|
2721
2722
|
0% {
|
|
2722
2723
|
opacity: 1;
|
|
2723
|
-
transform: translateY(0)
|
|
2724
|
+
transform: translateY(0) scaleY(1);
|
|
2724
2725
|
}
|
|
2725
2726
|
100% {
|
|
2726
2727
|
opacity: 0;
|
|
2727
|
-
transform: translateY(-
|
|
2728
|
+
transform: translateY(-4px) scaleY(0.9);
|
|
2728
2729
|
}
|
|
2729
2730
|
}
|
|
2730
2731
|
|
|
@@ -2760,41 +2761,29 @@ var shadcnAnimationStyles = `
|
|
|
2760
2761
|
}
|
|
2761
2762
|
|
|
2762
2763
|
/* ============================================
|
|
2763
|
-
* DROPDOWN ITEMS -
|
|
2764
|
+
* DROPDOWN ITEMS - Native-like instant appearance
|
|
2764
2765
|
* ============================================ */
|
|
2765
|
-
|
|
2766
|
+
|
|
2767
|
+
/* Fast staggered animation for native feel */
|
|
2766
2768
|
.dropdown-item {
|
|
2767
2769
|
opacity: 0;
|
|
2768
|
-
animation:
|
|
2769
|
-
will-change: opacity, transform;
|
|
2770
|
+
animation: itemFadeIn 120ms cubic-bezier(0.2, 0, 0, 1) forwards;
|
|
2770
2771
|
}
|
|
2771
|
-
|
|
2772
|
-
@keyframes
|
|
2772
|
+
|
|
2773
|
+
@keyframes itemFadeIn {
|
|
2773
2774
|
0% {
|
|
2774
2775
|
opacity: 0;
|
|
2775
|
-
transform:
|
|
2776
|
-
}
|
|
2777
|
-
60% {
|
|
2778
|
-
opacity: 0.9;
|
|
2779
|
-
transform: translateX(2px);
|
|
2776
|
+
transform: translateY(-2px);
|
|
2780
2777
|
}
|
|
2781
2778
|
100% {
|
|
2782
2779
|
opacity: 1;
|
|
2783
|
-
transform:
|
|
2780
|
+
transform: translateY(0);
|
|
2784
2781
|
}
|
|
2785
2782
|
}
|
|
2786
|
-
|
|
2787
|
-
/*
|
|
2783
|
+
|
|
2784
|
+
/* Subtle hover effect */
|
|
2788
2785
|
.dropdown-item {
|
|
2789
|
-
transition: background-color
|
|
2790
|
-
}
|
|
2791
|
-
|
|
2792
|
-
.dropdown-item:hover {
|
|
2793
|
-
transform: translateX(2px);
|
|
2794
|
-
}
|
|
2795
|
-
|
|
2796
|
-
.dropdown-item:active {
|
|
2797
|
-
transform: scale(0.98);
|
|
2786
|
+
transition: background-color 100ms ease;
|
|
2798
2787
|
}
|
|
2799
2788
|
|
|
2800
2789
|
/* ============================================
|