@particle-academy/react-fancy 1.3.2 → 1.3.4
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 +11 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2530,7 +2530,6 @@ var SingleSlider = react.forwardRef(
|
|
|
2530
2530
|
);
|
|
2531
2531
|
const slider = /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-react-fancy-slider": "", className: cn("flex flex-col gap-1", className), children: [
|
|
2532
2532
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
2533
|
-
prefix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-sm text-zinc-500 dark:text-zinc-400", "data-react-fancy-slider-prefix": "", children: prefix }),
|
|
2534
2533
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2535
2534
|
"input",
|
|
2536
2535
|
{
|
|
@@ -2557,8 +2556,11 @@ var SingleSlider = react.forwardRef(
|
|
|
2557
2556
|
)
|
|
2558
2557
|
}
|
|
2559
2558
|
),
|
|
2560
|
-
|
|
2561
|
-
|
|
2559
|
+
showValue && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "min-w-[3ch] shrink-0 whitespace-nowrap text-right text-sm font-medium text-zinc-700 dark:text-zinc-300", children: [
|
|
2560
|
+
prefix,
|
|
2561
|
+
value,
|
|
2562
|
+
suffix
|
|
2563
|
+
] })
|
|
2562
2564
|
] }),
|
|
2563
2565
|
marks && marks.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(SliderMarks, { marks, min, max })
|
|
2564
2566
|
] });
|
|
@@ -2606,7 +2608,6 @@ var RangeSlider = react.forwardRef(
|
|
|
2606
2608
|
const rightPercent = (value[1] - min) / (max - min) * 100;
|
|
2607
2609
|
const slider = /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-react-fancy-slider": "", className: cn("flex flex-col gap-1", className), children: [
|
|
2608
2610
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
2609
|
-
prefix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-sm text-zinc-500 dark:text-zinc-400", "data-react-fancy-slider-prefix": "", children: prefix }),
|
|
2610
2611
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative w-full", children: [
|
|
2611
2612
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none absolute top-1/2 h-1.5 w-full -translate-y-1/2 rounded-full bg-zinc-200 dark:bg-zinc-700" }),
|
|
2612
2613
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2648,11 +2649,14 @@ var RangeSlider = react.forwardRef(
|
|
|
2648
2649
|
),
|
|
2649
2650
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-6" })
|
|
2650
2651
|
] }),
|
|
2651
|
-
|
|
2652
|
-
|
|
2652
|
+
showValue && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "min-w-[6ch] shrink-0 whitespace-nowrap text-right text-sm font-medium text-zinc-700 dark:text-zinc-300", children: [
|
|
2653
|
+
prefix,
|
|
2653
2654
|
value[0],
|
|
2655
|
+
suffix,
|
|
2654
2656
|
"\u2013",
|
|
2655
|
-
|
|
2657
|
+
prefix,
|
|
2658
|
+
value[1],
|
|
2659
|
+
suffix
|
|
2656
2660
|
] })
|
|
2657
2661
|
] }),
|
|
2658
2662
|
marks && marks.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(SliderMarks, { marks, min, max })
|