@nimbus-ds/components 5.15.0 → 5.16.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.ts CHANGED
@@ -2997,6 +2997,37 @@ export interface TooltipProperties extends TooltipSprinkle {
2997
2997
  }
2998
2998
  export type TooltipProps = TooltipProperties & HTMLAttributes<HTMLDivElement>;
2999
2999
  export declare const Tooltip: React.FC<TooltipProps>;
3000
+ export type ProgressBarSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "height" | "data-testid">>;
3001
+ declare const ProgressBarSkeleton: React.FC<ProgressBarSkeletonProperties>;
3002
+ export interface ProgressBarComponents {
3003
+ Skeleton: typeof ProgressBarSkeleton;
3004
+ }
3005
+ export interface ProgressBarProperties {
3006
+ /**
3007
+ * Progress value from 0 to 100
3008
+ * @note Always renders with a minimum 8px width for visual consistency
3009
+ */
3010
+ value: number;
3011
+ /**
3012
+ * Change the visual style of the progress bar.
3013
+ * @default neutral
3014
+ */
3015
+ appearance?: "primary" | "success" | "warning" | "danger" | "neutral" | "ai-generative";
3016
+ }
3017
+ /**
3018
+ * ProgressBar component displays the progress of an operation or task in a visual format.
3019
+ * It provides a horizontal bar that fills based on the completion percentage.
3020
+ *
3021
+ * @component
3022
+ * @example
3023
+ * <ProgressBar value={50} appearance="primary" />
3024
+ *
3025
+ * @example
3026
+ * // With skeleton loading state
3027
+ * <ProgressBar.Skeleton width="200px" />
3028
+ */
3029
+ export declare const ProgressBar: React.ForwardRefExoticComponent<ProgressBarProperties & Omit<React.HTMLAttributes<HTMLDivElement>, keyof ProgressBarProperties> & React.RefAttributes<HTMLDivElement>> & ProgressBarComponents;
3030
+ export type ProgressBarProps = ComponentPropsWithRef<typeof ProgressBar>;
3000
3031
  export interface AccordionBodyProperties {
3001
3032
  /**
3002
3033
  * The content of the accordion body.