@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 CHANGED
@@ -1827,7 +1827,7 @@ function PopoverContent({
1827
1827
  align,
1828
1828
  sideOffset,
1829
1829
  className: cn(
1830
- "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 border p-4 shadow-md outline-hidden",
1830
+ "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",
1831
1831
  className
1832
1832
  ),
1833
1833
  ...props
@@ -2045,7 +2045,7 @@ var CountrySelect = ({
2045
2045
  PopoverContent,
2046
2046
  {
2047
2047
  align: "start",
2048
- className: "p-0 bg-(--background-primary) shadow-card-md rounded-4 border-none outline-1 outline-solid outline-(--border-primary-hover) **:data-[slot='command-input-wrapper']:border-b-(--border-secondary)",
2048
+ 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)",
2049
2049
  children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(Command, { children: [
2050
2050
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2051
2051
  CommandInput,
@@ -2691,61 +2691,68 @@ var Slider = (props) => {
2691
2691
  index
2692
2692
  );
2693
2693
  };
2694
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: wrapperBase2, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: cn("w-full flex flex-col gap-1", className), children: [
2695
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative w-full", children: [
2696
- showTooltip && primary !== void 0 && renderTooltipBubble(
2697
- "primary",
2698
- primaryPercent,
2699
- formatDisplayValue(primary),
2700
- hoveredThumbIndex === 0 || draggingThumbIndex === 0
2701
- ),
2702
- showTooltip && isRange && secondary !== void 0 && renderTooltipBubble(
2703
- "secondary",
2704
- secondaryPercent,
2705
- formatDisplayValue(secondary),
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
- style: { height: `${trackHeight}px` },
2716
- ref: trackRef,
2717
- onPointerDown: handleTrackPointerDown,
2718
- children: [
2719
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2720
- "div",
2721
- {
2722
- className: cn(
2723
- "absolute h-full rounded-4",
2724
- disabled ? "bg-(--background-primary-disabled)" : "bg-(--background-secondary)"
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
- style: {
2727
- width: `calc(100% + ${thumbWidth}px)`,
2728
- left: `-${thumbRadius}px`
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
- renderHandle(0, primaryPercent, formatDisplayValue(primary)),
2733
- isRange && secondary !== void 0 && renderHandle(1, secondaryPercent, formatDisplayValue(secondary))
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
 
@@ -3104,7 +3111,7 @@ var Toggle = (props) => {
3104
3111
  "peer-checked:border-(--border-brand)",
3105
3112
  // 4: enabled, checked, hovered, unfocused
3106
3113
  "peer-checked:hover:border-(--border-brand-hover)",
3107
- "peer-checked:hover:shadow-[0_0_0_var(--focus-ring-spread)_var(--color-b-100)]",
3114
+ "peer-checked:hover:shadow-[0_0_0_var(--focus-ring-spread)_var(--focus-secondary)]",
3108
3115
  // 5: enabled, unchecked, unhovered, focused
3109
3116
  "peer-focus-visible:border-(--border-brand-focus)",
3110
3117
  // 6: enabled, checked, unhovered, focused