@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.cjs
CHANGED
|
@@ -2691,61 +2691,68 @@ var Slider = (props) => {
|
|
|
2691
2691
|
index
|
|
2692
2692
|
);
|
|
2693
2693
|
};
|
|
2694
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
hoveredThumbIndex === 1 || draggingThumbIndex === 1
|
|
2707
|
-
),
|
|
2708
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2709
|
-
"div",
|
|
2710
|
-
{
|
|
2711
|
-
className: cn(
|
|
2712
|
-
"relative w-full flex items-center rounded-4",
|
|
2713
|
-
disabled ? "bg-(--background-primary-disabled) cursor-default" : "bg-(--background-secondary) cursor-pointer"
|
|
2694
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2695
|
+
"div",
|
|
2696
|
+
{
|
|
2697
|
+
className: wrapperBase2,
|
|
2698
|
+
style: { marginInline: `${thumbRadius}px` },
|
|
2699
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: cn("w-full flex flex-col gap-1", className), children: [
|
|
2700
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative w-full", children: [
|
|
2701
|
+
showTooltip && primary !== void 0 && renderTooltipBubble(
|
|
2702
|
+
"primary",
|
|
2703
|
+
primaryPercent,
|
|
2704
|
+
formatDisplayValue(primary),
|
|
2705
|
+
hoveredThumbIndex === 0 || draggingThumbIndex === 0
|
|
2714
2706
|
),
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2707
|
+
showTooltip && isRange && secondary !== void 0 && renderTooltipBubble(
|
|
2708
|
+
"secondary",
|
|
2709
|
+
secondaryPercent,
|
|
2710
|
+
formatDisplayValue(secondary),
|
|
2711
|
+
hoveredThumbIndex === 1 || draggingThumbIndex === 1
|
|
2712
|
+
),
|
|
2713
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2714
|
+
"div",
|
|
2715
|
+
{
|
|
2716
|
+
className: cn(
|
|
2717
|
+
"relative w-full flex items-center rounded-4",
|
|
2718
|
+
disabled ? "bg-(--background-primary-disabled) cursor-default" : "bg-(--background-secondary) cursor-pointer"
|
|
2719
|
+
),
|
|
2720
|
+
style: { height: `${trackHeight}px` },
|
|
2721
|
+
ref: trackRef,
|
|
2722
|
+
onPointerDown: handleTrackPointerDown,
|
|
2723
|
+
children: [
|
|
2724
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2725
|
+
"div",
|
|
2726
|
+
{
|
|
2727
|
+
className: cn(
|
|
2728
|
+
"absolute h-full rounded-4",
|
|
2729
|
+
disabled ? "bg-(--background-primary-disabled)" : "bg-(--background-secondary)"
|
|
2730
|
+
),
|
|
2731
|
+
style: {
|
|
2732
|
+
width: `calc(100% + ${thumbWidth}px)`,
|
|
2733
|
+
left: `-${thumbRadius}px`
|
|
2734
|
+
}
|
|
2735
|
+
}
|
|
2725
2736
|
),
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2737
|
+
renderHandle(0, primaryPercent, formatDisplayValue(primary)),
|
|
2738
|
+
isRange && secondary !== void 0 && renderHandle(1, secondaryPercent, formatDisplayValue(secondary))
|
|
2739
|
+
]
|
|
2740
|
+
}
|
|
2741
|
+
)
|
|
2742
|
+
] }),
|
|
2743
|
+
showNumeric && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2744
|
+
"p",
|
|
2745
|
+
{
|
|
2746
|
+
className: cn(
|
|
2747
|
+
"paragraph-s text-primary",
|
|
2748
|
+
disabled && "text-primary-disabled"
|
|
2731
2749
|
),
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
showNumeric && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2739
|
-
"p",
|
|
2740
|
-
{
|
|
2741
|
-
className: cn(
|
|
2742
|
-
"paragraph-s text-primary",
|
|
2743
|
-
disabled && "text-primary-disabled"
|
|
2744
|
-
),
|
|
2745
|
-
children: formatNumericLabel()
|
|
2746
|
-
}
|
|
2747
|
-
)
|
|
2748
|
-
] }) });
|
|
2750
|
+
children: formatNumericLabel()
|
|
2751
|
+
}
|
|
2752
|
+
)
|
|
2753
|
+
] })
|
|
2754
|
+
}
|
|
2755
|
+
);
|
|
2749
2756
|
};
|
|
2750
2757
|
Slider.displayName = "Slider";
|
|
2751
2758
|
|