@kwiz/fluentui
Version:
KWIZ common controls for FluentUI
16 lines • 952 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { Field, ProgressBar } from '@fluentui/react-components';
import { isFunction } from '@kwiz/common';
import { Prompter } from './prompt';
export const PleaseWait = (props) => {
const field = _jsx(Field, { validationMessage: props.label || "please wait...", validationState: "none", children: _jsx(ProgressBar, { value: props.step, max: props.max }) });
return (props.contentOnly
? field
: _jsx(Prompter, { hideOk: true, hideCancel: !isFunction(props.onCancel), cancelButtonText: props.cancelText || 'cancel', onCancel: props.onCancel, children: field }));
};
export const PleaseWaitPrompt = (props) => ({
//title: 'please wait...',
hideOk: true, hideCancel: true,
children: _jsx(Field, { validationMessage: props.message, validationState: "none", children: _jsx(ProgressBar, { value: props.step, max: props.max }) })
});
//# sourceMappingURL=please-wait.js.map