@bubo-squared/ui-framework 0.1.98 → 0.1.99
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 +59 -52
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +59 -52
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2630,61 +2630,68 @@ var Slider = (props) => {
|
|
|
2630
2630
|
index
|
|
2631
2631
|
);
|
|
2632
2632
|
};
|
|
2633
|
-
return /* @__PURE__ */ jsx31(
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
hoveredThumbIndex === 1 || draggingThumbIndex === 1
|
|
2646
|
-
),
|
|
2647
|
-
/* @__PURE__ */ jsxs21(
|
|
2648
|
-
"div",
|
|
2649
|
-
{
|
|
2650
|
-
className: cn(
|
|
2651
|
-
"relative w-full flex items-center rounded-4",
|
|
2652
|
-
disabled ? "bg-(--background-primary-disabled) cursor-default" : "bg-(--background-secondary) cursor-pointer"
|
|
2633
|
+
return /* @__PURE__ */ jsx31(
|
|
2634
|
+
"div",
|
|
2635
|
+
{
|
|
2636
|
+
className: wrapperBase2,
|
|
2637
|
+
style: { marginInline: `${thumbRadius}px` },
|
|
2638
|
+
children: /* @__PURE__ */ jsxs21("div", { className: cn("w-full flex flex-col gap-1", className), children: [
|
|
2639
|
+
/* @__PURE__ */ jsxs21("div", { className: "relative w-full", children: [
|
|
2640
|
+
showTooltip && primary !== void 0 && renderTooltipBubble(
|
|
2641
|
+
"primary",
|
|
2642
|
+
primaryPercent,
|
|
2643
|
+
formatDisplayValue(primary),
|
|
2644
|
+
hoveredThumbIndex === 0 || draggingThumbIndex === 0
|
|
2653
2645
|
),
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2646
|
+
showTooltip && isRange && secondary !== void 0 && renderTooltipBubble(
|
|
2647
|
+
"secondary",
|
|
2648
|
+
secondaryPercent,
|
|
2649
|
+
formatDisplayValue(secondary),
|
|
2650
|
+
hoveredThumbIndex === 1 || draggingThumbIndex === 1
|
|
2651
|
+
),
|
|
2652
|
+
/* @__PURE__ */ jsxs21(
|
|
2653
|
+
"div",
|
|
2654
|
+
{
|
|
2655
|
+
className: cn(
|
|
2656
|
+
"relative w-full flex items-center rounded-4",
|
|
2657
|
+
disabled ? "bg-(--background-primary-disabled) cursor-default" : "bg-(--background-secondary) cursor-pointer"
|
|
2658
|
+
),
|
|
2659
|
+
style: { height: `${trackHeight}px` },
|
|
2660
|
+
ref: trackRef,
|
|
2661
|
+
onPointerDown: handleTrackPointerDown,
|
|
2662
|
+
children: [
|
|
2663
|
+
/* @__PURE__ */ jsx31(
|
|
2664
|
+
"div",
|
|
2665
|
+
{
|
|
2666
|
+
className: cn(
|
|
2667
|
+
"absolute h-full rounded-4",
|
|
2668
|
+
disabled ? "bg-(--background-primary-disabled)" : "bg-(--background-secondary)"
|
|
2669
|
+
),
|
|
2670
|
+
style: {
|
|
2671
|
+
width: `calc(100% + ${thumbWidth}px)`,
|
|
2672
|
+
left: `-${thumbRadius}px`
|
|
2673
|
+
}
|
|
2674
|
+
}
|
|
2664
2675
|
),
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2676
|
+
renderHandle(0, primaryPercent, formatDisplayValue(primary)),
|
|
2677
|
+
isRange && secondary !== void 0 && renderHandle(1, secondaryPercent, formatDisplayValue(secondary))
|
|
2678
|
+
]
|
|
2679
|
+
}
|
|
2680
|
+
)
|
|
2681
|
+
] }),
|
|
2682
|
+
showNumeric && /* @__PURE__ */ jsx31(
|
|
2683
|
+
"p",
|
|
2684
|
+
{
|
|
2685
|
+
className: cn(
|
|
2686
|
+
"paragraph-s text-primary",
|
|
2687
|
+
disabled && "text-primary-disabled"
|
|
2670
2688
|
),
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
showNumeric && /* @__PURE__ */ jsx31(
|
|
2678
|
-
"p",
|
|
2679
|
-
{
|
|
2680
|
-
className: cn(
|
|
2681
|
-
"paragraph-s text-primary",
|
|
2682
|
-
disabled && "text-primary-disabled"
|
|
2683
|
-
),
|
|
2684
|
-
children: formatNumericLabel()
|
|
2685
|
-
}
|
|
2686
|
-
)
|
|
2687
|
-
] }) });
|
|
2689
|
+
children: formatNumericLabel()
|
|
2690
|
+
}
|
|
2691
|
+
)
|
|
2692
|
+
] })
|
|
2693
|
+
}
|
|
2694
|
+
);
|
|
2688
2695
|
};
|
|
2689
2696
|
Slider.displayName = "Slider";
|
|
2690
2697
|
|