@bpinternal/billing-ui 0.8.0 → 0.8.2

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.ts CHANGED
@@ -941,6 +941,7 @@ export declare type UsageItem = {
941
941
  used: number;
942
942
  quota: number;
943
943
  remaining: number;
944
+ resets: boolean;
944
945
  /** Consumed percentage, 0–100. */
945
946
  pct: number;
946
947
  };
@@ -954,7 +955,7 @@ export declare function usageItems(quotas: WorkspaceUsages | undefined): UsageIt
954
955
  * hover/focus after `delay`. Renders the children plainly on legacy billing
955
956
  * or when there's no usage to show (the popover just never opens).
956
957
  */
957
- export declare const UsagePopover: ({ children, delay, placement, period, onUpgrade, block, className, }: UsagePopoverProps) => JSX.Element;
958
+ export declare const UsagePopover: ({ children, delay, placement, align, period, onUpgrade, block, className, }: UsagePopoverProps) => JSX.Element;
958
959
 
959
960
  export declare type UsagePopoverProps = {
960
961
  /** The trigger — hovering/focusing it reveals the usage popover. */
@@ -963,6 +964,8 @@ export declare type UsagePopoverProps = {
963
964
  delay?: number;
964
965
  /** Where the card opens relative to the trigger. Default 'top'. */
965
966
  placement?: 'top' | 'bottom';
967
+ /** Horizontal anchor relative to the trigger. Default 'center'; use 'start' near an edge. */
968
+ align?: 'start' | 'center' | 'end';
966
969
  /** Period (any datetime in the billing month); defaults to current month. */
967
970
  period?: string;
968
971
  /**
@@ -982,7 +985,7 @@ export declare type UsagePopoverProps = {
982
985
  * tier (blue ≤75%, amber 75–90%, red 90%+). Hovering reveals a UsagePopover
983
986
  * listing every metric. Renders nothing on legacy billing / while loading.
984
987
  */
985
- export declare const UsageRing: ({ size, thickness, showLabel, onClick, popoverDelay, period, className, ...aria }: UsageRingProps) => JSX.Element | null;
988
+ export declare const UsageRing: ({ size, thickness, showLabel, onClick, popoverDelay, popoverAlign, trackColor, period, className, ...aria }: UsageRingProps) => JSX.Element | null;
986
989
 
987
990
  export declare type UsageRingProps = {
988
991
  /** Diameter in px. Default 20. */
@@ -995,6 +998,10 @@ export declare type UsageRingProps = {
995
998
  onClick?: () => void;
996
999
  /** Delay in ms before the usage popover appears on hover/focus. Default 200. */
997
1000
  popoverDelay?: number;
1001
+ /** Horizontal anchor of the popover relative to the ring. Default 'center'; use 'start' near an edge. */
1002
+ popoverAlign?: 'start' | 'center' | 'end';
1003
+ /** Track color weight. Default 'light'; use 'dark' for more contrast on busy/colored surfaces. */
1004
+ trackColor?: 'light' | 'dark';
998
1005
  /** Period (any datetime in the billing month); defaults to current month. */
999
1006
  period?: string;
1000
1007
  className?: string;