Initial commit: Crypto trader application

This commit is contained in:
2025-12-25 20:20:40 -05:00
commit 07a04c1bb8
47895 changed files with 2042266 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
import * as React from 'react';
import { SxProps } from '@mui/system';
import { InternalStandardProps as StandardProps } from '..';
import { Theme } from '../styles';
import { StepIconClasses } from './stepIconClasses';
export interface StepIconProps
extends StandardProps<React.HTMLAttributes<HTMLDivElement>, 'children'> {
/**
* Whether this step is active.
* @default false
*/
active?: boolean;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<StepIconClasses>;
/**
* Mark the step as completed. Is passed to child components.
* @default false
*/
completed?: boolean;
/**
* If `true`, the step is marked as failed.
* @default false
*/
error?: boolean;
/**
* The label displayed in the step icon.
*/
icon: React.ReactNode;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
}
export type StepIconClasskey = keyof NonNullable<StepIconProps['classes']>;
/**
*
* Demos:
*
* - [Stepper](https://mui.com/material-ui/react-stepper/)
*
* API:
*
* - [StepIcon API](https://mui.com/material-ui/api/step-icon/)
*/
export default function StepIcon(props: StepIconProps): React.JSX.Element;
+161
View File
@@ -0,0 +1,161 @@
'use client';
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
var _circle;
const _excluded = ["active", "className", "completed", "error", "icon"];
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import composeClasses from '@mui/utils/composeClasses';
import styled from '../styles/styled';
import { useDefaultProps } from '../DefaultPropsProvider';
import CheckCircle from '../internal/svg-icons/CheckCircle';
import Warning from '../internal/svg-icons/Warning';
import SvgIcon from '../SvgIcon';
import stepIconClasses, { getStepIconUtilityClass } from './stepIconClasses';
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
const useUtilityClasses = ownerState => {
const {
classes,
active,
completed,
error
} = ownerState;
const slots = {
root: ['root', active && 'active', completed && 'completed', error && 'error'],
text: ['text']
};
return composeClasses(slots, getStepIconUtilityClass, classes);
};
const StepIconRoot = styled(SvgIcon, {
name: 'MuiStepIcon',
slot: 'Root',
overridesResolver: (props, styles) => styles.root
})(({
theme
}) => ({
display: 'block',
transition: theme.transitions.create('color', {
duration: theme.transitions.duration.shortest
}),
color: (theme.vars || theme).palette.text.disabled,
[`&.${stepIconClasses.completed}`]: {
color: (theme.vars || theme).palette.primary.main
},
[`&.${stepIconClasses.active}`]: {
color: (theme.vars || theme).palette.primary.main
},
[`&.${stepIconClasses.error}`]: {
color: (theme.vars || theme).palette.error.main
}
}));
const StepIconText = styled('text', {
name: 'MuiStepIcon',
slot: 'Text',
overridesResolver: (props, styles) => styles.text
})(({
theme
}) => ({
fill: (theme.vars || theme).palette.primary.contrastText,
fontSize: theme.typography.caption.fontSize,
fontFamily: theme.typography.fontFamily
}));
const StepIcon = /*#__PURE__*/React.forwardRef(function StepIcon(inProps, ref) {
const props = useDefaultProps({
props: inProps,
name: 'MuiStepIcon'
});
const {
active = false,
className: classNameProp,
completed = false,
error = false,
icon
} = props,
other = _objectWithoutPropertiesLoose(props, _excluded);
const ownerState = _extends({}, props, {
active,
completed,
error
});
const classes = useUtilityClasses(ownerState);
if (typeof icon === 'number' || typeof icon === 'string') {
const className = clsx(classNameProp, classes.root);
if (error) {
return /*#__PURE__*/_jsx(StepIconRoot, _extends({
as: Warning,
className: className,
ref: ref,
ownerState: ownerState
}, other));
}
if (completed) {
return /*#__PURE__*/_jsx(StepIconRoot, _extends({
as: CheckCircle,
className: className,
ref: ref,
ownerState: ownerState
}, other));
}
return /*#__PURE__*/_jsxs(StepIconRoot, _extends({
className: className,
ref: ref,
ownerState: ownerState
}, other, {
children: [_circle || (_circle = /*#__PURE__*/_jsx("circle", {
cx: "12",
cy: "12",
r: "12"
})), /*#__PURE__*/_jsx(StepIconText, {
className: classes.text,
x: "12",
y: "12",
textAnchor: "middle",
dominantBaseline: "central",
ownerState: ownerState,
children: icon
})]
}));
}
return icon;
});
process.env.NODE_ENV !== "production" ? StepIcon.propTypes /* remove-proptypes */ = {
// ┌────────────────────────────── Warning ──────────────────────────────┐
// │ These PropTypes are generated from the TypeScript type definitions. │
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* Whether this step is active.
* @default false
*/
active: PropTypes.bool,
/**
* Override or extend the styles applied to the component.
*/
classes: PropTypes.object,
/**
* @ignore
*/
className: PropTypes.string,
/**
* Mark the step as completed. Is passed to child components.
* @default false
*/
completed: PropTypes.bool,
/**
* If `true`, the step is marked as failed.
* @default false
*/
error: PropTypes.bool,
/**
* The label displayed in the step icon.
*/
icon: PropTypes.node,
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
} : void 0;
export default StepIcon;
+5
View File
@@ -0,0 +1,5 @@
export { default } from './StepIcon';
export * from './StepIcon';
export { default as stepIconClasses } from './stepIconClasses';
export * from './stepIconClasses';
+5
View File
@@ -0,0 +1,5 @@
'use client';
export { default } from './StepIcon';
export { default as stepIconClasses } from './stepIconClasses';
export * from './stepIconClasses';
+6
View File
@@ -0,0 +1,6 @@
{
"sideEffects": false,
"module": "./index.js",
"main": "../node/StepIcon/index.js",
"types": "./index.d.ts"
}
+16
View File
@@ -0,0 +1,16 @@
export interface StepIconClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the SVG text element. */
text: string;
/** State class applied to the root element if `active={true}`. */
active: string;
/** State class applied to the root element if `completed={true}`. */
completed: string;
/** State class applied to the root element if `error={true}`. */
error: string;
}
export type StepIconClassKey = keyof StepIconClasses;
export declare function getStepIconUtilityClass(slot: string): string;
declare const stepIconClasses: StepIconClasses;
export default stepIconClasses;
+7
View File
@@ -0,0 +1,7 @@
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
import generateUtilityClass from '@mui/utils/generateUtilityClass';
export function getStepIconUtilityClass(slot) {
return generateUtilityClass('MuiStepIcon', slot);
}
const stepIconClasses = generateUtilityClasses('MuiStepIcon', ['root', 'active', 'completed', 'error', 'text']);
export default stepIconClasses;