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