PluginProbe
Extendify / 3.2.1
Extendify v3.2.1
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / AutoLaunch / components / Progress.jsx

Progress.jsx in Extendify 3.2.1, at src/AutoLaunch/components/Progress.jsx

40 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { loaderSiteCreation } from '@auto-launch/icons';
2 import { AnimatePresence, motion } from 'framer-motion';
3
4 export const StatusMessage = ({ message }) => (
5 <div className="overflow-hidden [height:calc(var(--ext-ui-status-size,0.875rem)*1.5)]">
6 <AnimatePresence mode="wait">
7 {message ? (
8 <motion.p
9 key={message}
10 initial={{ opacity: 0, y: 8 }}
11 animate={{ opacity: 1, y: 0 }}
12 exit={{ opacity: 0 }}
13 transition={{ duration: 0.25 }}
14 className="m-0 text-ui-status font-ui-status text-center status-animation"
15 >
16 {message}
17 </motion.p>
18 ) : null}
19 </AnimatePresence>
20 </div>
21 );
22
23 export const LoaderGraphic = ({ src }) => {
24 if (src) {
25 return (
26 <img
27 src={src}
28 alt=""
29 className="h-ui-loader w-auto max-w-full rounded-ui-loader object-contain"
30 />
31 );
32 }
33
34 return (
35 <div className="h-ui-loader overflow-hidden rounded-ui-loader [color:var(--ext-ui-loader-color,var(--color-ui-action))] [&>svg]:h-full [&>svg]:w-auto">
36 {loaderSiteCreation}
37 </div>
38 );
39 };
40