@bubo-squared/ui-framework 0.1.98 → 0.2.0
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 +62 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +62 -55
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1766,7 +1766,7 @@ function PopoverContent({
|
|
|
1766
1766
|
align,
|
|
1767
1767
|
sideOffset,
|
|
1768
1768
|
className: cn(
|
|
1769
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md
|
|
1769
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md p-4 shadow-md outline-hidden",
|
|
1770
1770
|
className
|
|
1771
1771
|
),
|
|
1772
1772
|
...props
|
|
@@ -1984,7 +1984,7 @@ var CountrySelect = ({
|
|
|
1984
1984
|
PopoverContent,
|
|
1985
1985
|
{
|
|
1986
1986
|
align: "start",
|
|
1987
|
-
className: "p-0 bg-(--background-primary) shadow-card-md rounded-4 border-none outline-1 outline-solid outline-(--border-
|
|
1987
|
+
className: "p-0 bg-(--background-primary) shadow-card-md rounded-4 border-none outline-1 outline-solid outline-(--border-secondary-hover) **:data-[slot='command-input-wrapper']:border-b-(--border-secondary)",
|
|
1988
1988
|
children: /* @__PURE__ */ jsxs18(Command, { children: [
|
|
1989
1989
|
/* @__PURE__ */ jsx28(
|
|
1990
1990
|
CommandInput,
|
|
@@ -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
|
|
|
@@ -3043,7 +3050,7 @@ var Toggle = (props) => {
|
|
|
3043
3050
|
"peer-checked:border-(--border-brand)",
|
|
3044
3051
|
// 4: enabled, checked, hovered, unfocused
|
|
3045
3052
|
"peer-checked:hover:border-(--border-brand-hover)",
|
|
3046
|
-
"peer-checked:hover:shadow-[0_0_0_var(--focus-ring-spread)_var(--
|
|
3053
|
+
"peer-checked:hover:shadow-[0_0_0_var(--focus-ring-spread)_var(--focus-secondary)]",
|
|
3047
3054
|
// 5: enabled, unchecked, unhovered, focused
|
|
3048
3055
|
"peer-focus-visible:border-(--border-brand-focus)",
|
|
3049
3056
|
// 6: enabled, checked, unhovered, focused
|