@facter/ds-core 1.9.0 → 1.10.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.d.mts CHANGED
@@ -2535,6 +2535,8 @@ interface FloatingBarProps extends React$1.HTMLAttributes<HTMLDivElement> {
2535
2535
  visible?: boolean;
2536
2536
  /** Position on screen */
2537
2537
  position?: 'bottom-center' | 'bottom-left' | 'bottom-right';
2538
+ /** Additional classes for the outer positioning wrapper */
2539
+ wrapperClassName?: string;
2538
2540
  }
2539
2541
  declare const actionVariants: (props?: ({
2540
2542
  variant?: "default" | "destructive" | "ghost" | "success" | null | undefined;
package/dist/index.d.ts CHANGED
@@ -2535,6 +2535,8 @@ interface FloatingBarProps extends React$1.HTMLAttributes<HTMLDivElement> {
2535
2535
  visible?: boolean;
2536
2536
  /** Position on screen */
2537
2537
  position?: 'bottom-center' | 'bottom-left' | 'bottom-right';
2538
+ /** Additional classes for the outer positioning wrapper */
2539
+ wrapperClassName?: string;
2538
2540
  }
2539
2541
  declare const actionVariants: (props?: ({
2540
2542
  variant?: "default" | "destructive" | "ghost" | "success" | null | undefined;
package/dist/index.js CHANGED
@@ -7724,30 +7724,35 @@ var Wizard = Object.assign(WizardRoot, {
7724
7724
  Progress: WizardProgress
7725
7725
  });
7726
7726
  var positionClasses = {
7727
- "bottom-center": "bottom-6 left-1/2 -translate-x-1/2",
7727
+ "bottom-center": "bottom-6 inset-x-0 flex justify-center",
7728
7728
  "bottom-left": "bottom-6 left-6",
7729
7729
  "bottom-right": "bottom-6 right-6"
7730
7730
  };
7731
7731
  var FloatingBar = React10__namespace.forwardRef(
7732
- ({ className, visible = true, position = "bottom-center", children, style, ...props }, ref) => {
7732
+ ({ className, visible = true, position = "bottom-center", wrapperClassName, children, style, ...props }, ref) => {
7733
7733
  return /* @__PURE__ */ jsxRuntime.jsx(
7734
7734
  "div",
7735
7735
  {
7736
7736
  ref,
7737
- className: cn("fixed z-50", positionClasses[position]),
7737
+ className: cn(
7738
+ "fixed z-50 pointer-events-none",
7739
+ positionClasses[position],
7740
+ wrapperClassName
7741
+ ),
7738
7742
  style,
7739
7743
  ...props,
7740
7744
  children: /* @__PURE__ */ jsxRuntime.jsx(
7741
7745
  "div",
7742
7746
  {
7743
7747
  className: cn(
7744
- "flex items-center gap-1.5 px-2 py-1.5 rounded-full",
7745
- "bg-white/70 dark:bg-gray-900/70 backdrop-blur-xl",
7746
- "border border-white/50 dark:border-white/10",
7747
- "shadow-xl shadow-black/10 dark:shadow-black/30",
7748
- "ring-1 ring-black/5 dark:ring-white/5",
7749
- "transition-all duration-300 ease-out",
7750
- visible ? "translate-y-0 opacity-100" : "translate-y-4 opacity-0 pointer-events-none",
7748
+ "pointer-events-auto",
7749
+ "flex items-center gap-2 px-4 py-2.5 rounded-full",
7750
+ "bg-white/80 dark:bg-gray-900/80 backdrop-blur-xl",
7751
+ "border border-white/60 dark:border-white/10",
7752
+ "shadow-2xl shadow-black/15 dark:shadow-black/40",
7753
+ "ring-1 ring-black/[0.06] dark:ring-white/[0.06]",
7754
+ "transition-all duration-300",
7755
+ visible ? "translate-y-0 opacity-100 scale-100" : "translate-y-6 opacity-0 scale-95 pointer-events-none",
7751
7756
  className
7752
7757
  ),
7753
7758
  children
@@ -7759,18 +7764,18 @@ var FloatingBar = React10__namespace.forwardRef(
7759
7764
  );
7760
7765
  FloatingBar.displayName = "FloatingBar";
7761
7766
  var actionVariants = classVarianceAuthority.cva(
7762
- "inline-flex items-center gap-2 rounded-full font-medium transition-all duration-150 active:scale-[0.97] disabled:opacity-50 disabled:pointer-events-none",
7767
+ "inline-flex items-center gap-2 rounded-full font-medium transition-all duration-150 active:scale-[0.97] disabled:opacity-50 disabled:pointer-events-none cursor-pointer",
7763
7768
  {
7764
7769
  variants: {
7765
7770
  variant: {
7766
- default: "bg-primary hover:bg-primary/90 text-primary-foreground",
7767
- success: "bg-emerald-600 hover:bg-emerald-700 text-white",
7768
- destructive: "bg-red-600 hover:bg-red-700 text-white",
7771
+ default: "bg-primary hover:bg-primary/90 text-primary-foreground shadow-sm",
7772
+ success: "bg-emerald-600 hover:bg-emerald-700 text-white shadow-sm shadow-emerald-600/20",
7773
+ destructive: "bg-red-600 hover:bg-red-700 text-white shadow-sm shadow-red-600/20",
7769
7774
  ghost: "hover:bg-accent text-foreground"
7770
7775
  },
7771
7776
  size: {
7772
- default: "h-8 px-4 text-sm",
7773
- sm: "h-7 px-3 text-xs"
7777
+ default: "h-9 px-5 text-sm",
7778
+ sm: "h-8 px-4 text-xs"
7774
7779
  }
7775
7780
  },
7776
7781
  defaultVariants: {
@@ -7788,7 +7793,7 @@ var FloatingBarAction = React10__namespace.forwardRef(
7788
7793
  className: cn(actionVariants({ variant, size, className })),
7789
7794
  ...props,
7790
7795
  children: [
7791
- Icon2 && /* @__PURE__ */ jsxRuntime.jsx(Icon2, { className: "h-3.5 w-3.5" }),
7796
+ Icon2 && /* @__PURE__ */ jsxRuntime.jsx(Icon2, { className: "h-4 w-4" }),
7792
7797
  /* @__PURE__ */ jsxRuntime.jsx("span", { children })
7793
7798
  ]
7794
7799
  }
@@ -7797,7 +7802,7 @@ var FloatingBarAction = React10__namespace.forwardRef(
7797
7802
  );
7798
7803
  FloatingBarAction.displayName = "FloatingBarAction";
7799
7804
  var iconActionVariants = classVarianceAuthority.cva(
7800
- "inline-flex items-center justify-center rounded-full transition-colors duration-150 disabled:opacity-50 disabled:pointer-events-none",
7805
+ "inline-flex items-center justify-center rounded-full transition-colors duration-150 cursor-pointer disabled:opacity-50 disabled:pointer-events-none",
7801
7806
  {
7802
7807
  variants: {
7803
7808
  variant: {
@@ -7807,8 +7812,8 @@ var iconActionVariants = classVarianceAuthority.cva(
7807
7812
  danger: "text-muted-foreground hover:text-destructive hover:bg-destructive/10"
7808
7813
  },
7809
7814
  size: {
7810
- default: "h-8 w-8",
7811
- sm: "h-7 w-7"
7815
+ default: "h-9 w-9",
7816
+ sm: "h-8 w-8"
7812
7817
  }
7813
7818
  },
7814
7819
  defaultVariants: {
@@ -7839,7 +7844,7 @@ var FloatingBarDivider = React10__namespace.forwardRef(
7839
7844
  "div",
7840
7845
  {
7841
7846
  ref,
7842
- className: cn("w-px h-5 bg-border mx-0.5", className),
7847
+ className: cn("w-px h-6 bg-border/60 mx-0.5", className),
7843
7848
  ...props
7844
7849
  }
7845
7850
  );