UNPKG

shipthis

Version:

ShipThis manages building and uploading your Godot games to the App Store and Google Play.

17 lines (14 loc) 838 B
import { jsx, Fragment, jsxs } from 'react/jsx-runtime'; import { ProgressBar } from '@inkjs/ui'; import { Box, Text } from 'ink'; import Spinner from 'ink-spinner'; const ProgressSpinner = ({ boxProps, label, labelProps, progress, spinnerType }) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Box, { flexDirection: "column", gap: 1, ...boxProps, children: /* @__PURE__ */ jsxs(Box, { flexDirection: "row", gap: 1, children: [ label && label !== "" && /* @__PURE__ */ jsx(Text, { ...labelProps, children: label }), /* @__PURE__ */ jsx(ProgressBar, { value: progress || 0 }), /* @__PURE__ */ jsx(Box, { width: 4, children: /* @__PURE__ */ jsxs(Text, { children: [ Math.floor(progress || 0), "%" ] }) }), /* @__PURE__ */ jsx(Spinner, { type: spinnerType }) ] }) }) }); export { ProgressSpinner as P };