"use client"; /* * Documentation: * Progress — https://app.subframe.com/f023064a5ca0/library?component=Progress_60964db0-a1bf-428b-b9d5-f34cdf58ea77 */ import React from "react"; import * as SubframeCore from "@subframe/core"; import * as SubframeUtils from "../../utils"; export interface IndicatorProps extends React.ComponentProps { state?: "default" | "success" | "error"; className?: string; } const Indicator = React.forwardRef( function Indicator( { state = "default", className, ...otherProps }: IndicatorProps, ref ) { return (
); } ); export interface ProgressRootProps extends React.ComponentProps { state?: "uploading" | "success" | "error"; cardProgress?: boolean; hideLabel?: boolean; value?: number; label?: React.ReactNode; statusText?: React.ReactNode; className?: string; } const ProgressRoot = React.forwardRef( function ProgressRoot( { state = "uploading", cardProgress = false, hideLabel = false, value = 30, label, statusText, className, ...otherProps }: ProgressRootProps, ref ) { return (
{label ? ( {label} ) : null} {statusText ? ( {statusText} ) : null}
{statusText ? ( {statusText} ) : null}
); } ); export const Progress = Object.assign(ProgressRoot, { Indicator, });