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

79
frontend/node_modules/@mui/material/Step/Step.d.ts generated vendored Normal file
View File

@@ -0,0 +1,79 @@
import * as React from 'react';
import { SxProps } from '@mui/system';
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
import { Theme } from '../styles';
import { StepClasses } from './stepClasses';
export interface StepOwnProps {
/**
* Sets the step as active. Is passed to child components.
*/
active?: boolean;
/**
* Should be `Step` sub-components such as `StepLabel`, `StepContent`.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<StepClasses>;
/**
* Mark the step as completed. Is passed to child components.
*/
completed?: boolean;
/**
* If `true`, the step is disabled, will also disable the button if
* `StepButton` is a child of `Step`. Is passed to child components.
*/
disabled?: boolean;
/**
* Expand the step.
* @default false
*/
expanded?: boolean;
/**
* The position of the step.
* The prop defaults to the value inherited from the parent Stepper component.
*/
index?: number;
/**
* If `true`, the Step is displayed as rendered last.
* The prop defaults to the value inherited from the parent Stepper component.
*/
last?: boolean;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
}
export interface StepTypeMap<
AdditionalProps = {},
RootComponent extends React.ElementType = 'div',
> {
props: AdditionalProps & StepOwnProps;
defaultComponent: RootComponent;
}
export type StepProps<
RootComponent extends React.ElementType = StepTypeMap['defaultComponent'],
AdditionalProps = { component?: React.ElementType },
> = OverrideProps<StepTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
component?: React.ElementType;
};
export type StepClasskey = keyof NonNullable<StepProps['classes']>;
/**
*
* Demos:
*
* - [Stepper](https://mui.com/material-ui/react-stepper/)
*
* API:
*
* - [Step API](https://mui.com/material-ui/api/step/)
*/
declare const Step: OverridableComponent<StepTypeMap>;
export default Step;

169
frontend/node_modules/@mui/material/Step/Step.js generated vendored Normal file
View File

@@ -0,0 +1,169 @@
'use client';
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
const _excluded = ["active", "children", "className", "component", "completed", "disabled", "expanded", "index", "last"];
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import integerPropType from '@mui/utils/integerPropType';
import composeClasses from '@mui/utils/composeClasses';
import StepperContext from '../Stepper/StepperContext';
import StepContext from './StepContext';
import { useDefaultProps } from '../DefaultPropsProvider';
import styled from '../styles/styled';
import { getStepUtilityClass } from './stepClasses';
import { jsxs as _jsxs } from "react/jsx-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
const useUtilityClasses = ownerState => {
const {
classes,
orientation,
alternativeLabel,
completed
} = ownerState;
const slots = {
root: ['root', orientation, alternativeLabel && 'alternativeLabel', completed && 'completed']
};
return composeClasses(slots, getStepUtilityClass, classes);
};
const StepRoot = styled('div', {
name: 'MuiStep',
slot: 'Root',
overridesResolver: (props, styles) => {
const {
ownerState
} = props;
return [styles.root, styles[ownerState.orientation], ownerState.alternativeLabel && styles.alternativeLabel, ownerState.completed && styles.completed];
}
})(({
ownerState
}) => _extends({}, ownerState.orientation === 'horizontal' && {
paddingLeft: 8,
paddingRight: 8
}, ownerState.alternativeLabel && {
flex: 1,
position: 'relative'
}));
const Step = /*#__PURE__*/React.forwardRef(function Step(inProps, ref) {
const props = useDefaultProps({
props: inProps,
name: 'MuiStep'
});
const {
active: activeProp,
children,
className,
component = 'div',
completed: completedProp,
disabled: disabledProp,
expanded = false,
index,
last
} = props,
other = _objectWithoutPropertiesLoose(props, _excluded);
const {
activeStep,
connector,
alternativeLabel,
orientation,
nonLinear
} = React.useContext(StepperContext);
let [active = false, completed = false, disabled = false] = [activeProp, completedProp, disabledProp];
if (activeStep === index) {
active = activeProp !== undefined ? activeProp : true;
} else if (!nonLinear && activeStep > index) {
completed = completedProp !== undefined ? completedProp : true;
} else if (!nonLinear && activeStep < index) {
disabled = disabledProp !== undefined ? disabledProp : true;
}
const contextValue = React.useMemo(() => ({
index,
last,
expanded,
icon: index + 1,
active,
completed,
disabled
}), [index, last, expanded, active, completed, disabled]);
const ownerState = _extends({}, props, {
active,
orientation,
alternativeLabel,
completed,
disabled,
expanded,
component
});
const classes = useUtilityClasses(ownerState);
const newChildren = /*#__PURE__*/_jsxs(StepRoot, _extends({
as: component,
className: clsx(classes.root, className),
ref: ref,
ownerState: ownerState
}, other, {
children: [connector && alternativeLabel && index !== 0 ? connector : null, children]
}));
return /*#__PURE__*/_jsx(StepContext.Provider, {
value: contextValue,
children: connector && !alternativeLabel && index !== 0 ? /*#__PURE__*/_jsxs(React.Fragment, {
children: [connector, newChildren]
}) : newChildren
});
});
process.env.NODE_ENV !== "production" ? Step.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`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* Sets the step as active. Is passed to child components.
*/
active: PropTypes.bool,
/**
* Should be `Step` sub-components such as `StepLabel`, `StepContent`.
*/
children: PropTypes.node,
/**
* 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.
*/
completed: PropTypes.bool,
/**
* The component used for the root node.
* Either a string to use a HTML element or a component.
*/
component: PropTypes.elementType,
/**
* If `true`, the step is disabled, will also disable the button if
* `StepButton` is a child of `Step`. Is passed to child components.
*/
disabled: PropTypes.bool,
/**
* Expand the step.
* @default false
*/
expanded: PropTypes.bool,
/**
* The position of the step.
* The prop defaults to the value inherited from the parent Stepper component.
*/
index: integerPropType,
/**
* If `true`, the Step is displayed as rendered last.
* The prop defaults to the value inherited from the parent Stepper component.
*/
last: PropTypes.bool,
/**
* 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 Step;

View File

@@ -0,0 +1,20 @@
import * as React from 'react';
export interface StepContextType {
index: number;
last: boolean;
expanded: boolean;
icon: React.ReactNode;
active: boolean;
completed: boolean;
disabled: boolean;
}
/**
* Provides information about the current step in Stepper.
*/
declare const StepContext: React.Context<{} | StepContextType>;
/**
* Returns the current StepContext or an empty object if no StepContext
* has been defined in the component tree.
*/
export declare function useStepContext(): StepContextType | {};
export default StepContext;

View File

@@ -0,0 +1,17 @@
import * as React from 'react';
/**
* Provides information about the current step in Stepper.
*/
const StepContext = /*#__PURE__*/React.createContext({});
if (process.env.NODE_ENV !== 'production') {
StepContext.displayName = 'StepContext';
}
/**
* Returns the current StepContext or an empty object if no StepContext
* has been defined in the component tree.
*/
export function useStepContext() {
return React.useContext(StepContext);
}
export default StepContext;

8
frontend/node_modules/@mui/material/Step/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,8 @@
export { default } from './Step';
export * from './Step';
export { default as stepClasses } from './stepClasses';
export * from './stepClasses';
export { default as StepContext } from './StepContext';
export * from './StepContext';

7
frontend/node_modules/@mui/material/Step/index.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
'use client';
export { default } from './Step';
export { default as stepClasses } from './stepClasses';
export * from './stepClasses';
export { default as StepContext } from './StepContext';
export * from './StepContext';

View File

@@ -0,0 +1,6 @@
{
"sideEffects": false,
"module": "./index.js",
"main": "../node/Step/index.js",
"types": "./index.d.ts"
}

View File

@@ -0,0 +1,16 @@
export interface StepClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if `orientation="horizontal"`. */
horizontal: string;
/** Styles applied to the root element if `orientation="vertical"`. */
vertical: string;
/** Styles applied to the root element if `alternativeLabel={true}`. */
alternativeLabel: string;
/** State class applied to the root element if `completed={true}`. */
completed: string;
}
export type StepClassKey = keyof StepClasses;
export declare function getStepUtilityClass(slot: string): string;
declare const stepClasses: StepClasses;
export default stepClasses;

View File

@@ -0,0 +1,7 @@
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
import generateUtilityClass from '@mui/utils/generateUtilityClass';
export function getStepUtilityClass(slot) {
return generateUtilityClass('MuiStep', slot);
}
const stepClasses = generateUtilityClasses('MuiStep', ['root', 'horizontal', 'vertical', 'alternativeLabel', 'completed']);
export default stepClasses;