2024-05-27 13:19:11 -04:00
|
|
|
import { ReactNode, FC } from 'react';
|
2024-05-12 15:45:26 -04:00
|
|
|
|
|
|
|
|
import { Export, findModuleExport } from '../webpack';
|
|
|
|
|
import { ItemProps } from './Item';
|
|
|
|
|
|
|
|
|
|
export interface ProgressBarItemProps extends ItemProps {
|
|
|
|
|
indeterminate?: boolean;
|
|
|
|
|
nTransitionSec?: number;
|
|
|
|
|
nProgress?: number;
|
|
|
|
|
focusable?: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ProgressBarProps {
|
|
|
|
|
indeterminate?: boolean;
|
|
|
|
|
nTransitionSec?: number;
|
|
|
|
|
nProgress?: number;
|
|
|
|
|
focusable?: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ProgressBarWithInfoProps extends ProgressBarItemProps {
|
|
|
|
|
sTimeRemaining?: ReactNode;
|
|
|
|
|
sOperationText?: ReactNode;
|
|
|
|
|
}
|
|
|
|
|
|
2024-05-12 15:48:13 -04:00
|
|
|
export const ProgressBar = findModuleExport((e: Export) =>
|
|
|
|
|
e?.toString()?.includes('.ProgressBar,"standard"=='),
|
2024-05-27 13:19:11 -04:00
|
|
|
) as FC<ProgressBarProps>;
|
2024-05-12 15:45:26 -04:00
|
|
|
|
2024-05-12 15:48:13 -04:00
|
|
|
export const ProgressBarWithInfo = findModuleExport((e: Export) =>
|
|
|
|
|
e?.toString()?.includes('.ProgressBarFieldStatus},'),
|
2024-05-27 13:19:11 -04:00
|
|
|
) as FC<ProgressBarWithInfoProps>;
|
2024-05-12 15:45:26 -04:00
|
|
|
|
2024-05-12 15:48:13 -04:00
|
|
|
export const ProgressBarItem = findModuleExport((e: Export) =>
|
|
|
|
|
e?.toString()?.includes('"indeterminate","nTransitionSec"'),
|
2024-05-27 13:19:11 -04:00
|
|
|
) as FC<ProgressBarItemProps>;
|