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

View File

@@ -0,0 +1,78 @@
import * as React from 'react';
import { SxProps } from '@mui/system';
import { SlotComponentProps } from '../utils/types';
import { ButtonBaseProps } from '../ButtonBase';
import { SvgIcon, Theme } from '..';
import { TabScrollButtonClasses } from './tabScrollButtonClasses';
export interface TabScrollButtonStartIconSlotPropsOverrides {}
export interface TabScrollButtonEndIconSlotPropsOverrides {}
export interface TabScrollButtonOwnerState extends TabScrollButtonProps {
isRtl: boolean;
}
export interface TabScrollButtonProps extends ButtonBaseProps {
/**
* The content of the component.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<TabScrollButtonClasses>;
/**
* The components used for each slot inside.
* @default {}
*/
slots?: {
StartScrollButtonIcon?: React.ElementType;
EndScrollButtonIcon?: React.ElementType;
};
/**
* The extra props for the slot components.
* You can override the existing props or add new ones.
* @default {}
*/
slotProps?: {
startScrollButtonIcon?: SlotComponentProps<
typeof SvgIcon,
TabScrollButtonStartIconSlotPropsOverrides,
TabScrollButtonOwnerState
>;
endScrollButtonIcon?: SlotComponentProps<
typeof SvgIcon,
TabScrollButtonEndIconSlotPropsOverrides,
TabScrollButtonOwnerState
>;
};
/**
* The direction the button should indicate.
*/
direction: 'left' | 'right';
/**
* If `true`, the component is disabled.
* @default false
*/
disabled?: boolean;
/**
* The component orientation (layout flow direction).
*/
orientation: 'horizontal' | 'vertical';
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
}
/**
*
* Demos:
*
* - [Tabs](https://mui.com/material-ui/react-tabs/)
*
* API:
*
* - [TabScrollButton API](https://mui.com/material-ui/api/tab-scroll-button/)
*/
export default function TabScrollButton(props: TabScrollButtonProps): React.JSX.Element;

View File

@@ -0,0 +1,155 @@
'use client';
/* eslint-disable jsx-a11y/aria-role */
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
const _excluded = ["className", "slots", "slotProps", "direction", "orientation", "disabled"];
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import composeClasses from '@mui/utils/composeClasses';
import { useRtl } from '@mui/system/RtlProvider';
import useSlotProps from '@mui/utils/useSlotProps';
import KeyboardArrowLeft from '../internal/svg-icons/KeyboardArrowLeft';
import KeyboardArrowRight from '../internal/svg-icons/KeyboardArrowRight';
import ButtonBase from '../ButtonBase';
import { useDefaultProps } from '../DefaultPropsProvider';
import styled from '../styles/styled';
import tabScrollButtonClasses, { getTabScrollButtonUtilityClass } from './tabScrollButtonClasses';
import { jsx as _jsx } from "react/jsx-runtime";
const useUtilityClasses = ownerState => {
const {
classes,
orientation,
disabled
} = ownerState;
const slots = {
root: ['root', orientation, disabled && 'disabled']
};
return composeClasses(slots, getTabScrollButtonUtilityClass, classes);
};
const TabScrollButtonRoot = styled(ButtonBase, {
name: 'MuiTabScrollButton',
slot: 'Root',
overridesResolver: (props, styles) => {
const {
ownerState
} = props;
return [styles.root, ownerState.orientation && styles[ownerState.orientation]];
}
})(({
ownerState
}) => _extends({
width: 40,
flexShrink: 0,
opacity: 0.8,
[`&.${tabScrollButtonClasses.disabled}`]: {
opacity: 0
}
}, ownerState.orientation === 'vertical' && {
width: '100%',
height: 40,
'& svg': {
transform: `rotate(${ownerState.isRtl ? -90 : 90}deg)`
}
}));
const TabScrollButton = /*#__PURE__*/React.forwardRef(function TabScrollButton(inProps, ref) {
var _slots$StartScrollBut, _slots$EndScrollButto;
const props = useDefaultProps({
props: inProps,
name: 'MuiTabScrollButton'
});
const {
className,
slots = {},
slotProps = {},
direction
} = props,
other = _objectWithoutPropertiesLoose(props, _excluded);
const isRtl = useRtl();
const ownerState = _extends({
isRtl
}, props);
const classes = useUtilityClasses(ownerState);
const StartButtonIcon = (_slots$StartScrollBut = slots.StartScrollButtonIcon) != null ? _slots$StartScrollBut : KeyboardArrowLeft;
const EndButtonIcon = (_slots$EndScrollButto = slots.EndScrollButtonIcon) != null ? _slots$EndScrollButto : KeyboardArrowRight;
const startButtonIconProps = useSlotProps({
elementType: StartButtonIcon,
externalSlotProps: slotProps.startScrollButtonIcon,
additionalProps: {
fontSize: 'small'
},
ownerState
});
const endButtonIconProps = useSlotProps({
elementType: EndButtonIcon,
externalSlotProps: slotProps.endScrollButtonIcon,
additionalProps: {
fontSize: 'small'
},
ownerState
});
return /*#__PURE__*/_jsx(TabScrollButtonRoot, _extends({
component: "div",
className: clsx(classes.root, className),
ref: ref,
role: null,
ownerState: ownerState,
tabIndex: null
}, other, {
children: direction === 'left' ? /*#__PURE__*/_jsx(StartButtonIcon, _extends({}, startButtonIconProps)) : /*#__PURE__*/_jsx(EndButtonIcon, _extends({}, endButtonIconProps))
}));
});
process.env.NODE_ENV !== "production" ? TabScrollButton.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`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* The content of the component.
*/
children: PropTypes.node,
/**
* Override or extend the styles applied to the component.
*/
classes: PropTypes.object,
/**
* @ignore
*/
className: PropTypes.string,
/**
* The direction the button should indicate.
*/
direction: PropTypes.oneOf(['left', 'right']).isRequired,
/**
* If `true`, the component is disabled.
* @default false
*/
disabled: PropTypes.bool,
/**
* The component orientation (layout flow direction).
*/
orientation: PropTypes.oneOf(['horizontal', 'vertical']).isRequired,
/**
* The extra props for the slot components.
* You can override the existing props or add new ones.
* @default {}
*/
slotProps: PropTypes.shape({
endScrollButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
startScrollButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
}),
/**
* The components used for each slot inside.
* @default {}
*/
slots: PropTypes.shape({
EndScrollButtonIcon: PropTypes.elementType,
StartScrollButtonIcon: PropTypes.elementType
}),
/**
* 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 TabScrollButton;

View File

@@ -0,0 +1,5 @@
export { default } from './TabScrollButton';
export * from './TabScrollButton';
export { default as tabScrollButtonClasses } from './tabScrollButtonClasses';
export * from './tabScrollButtonClasses';

View File

@@ -0,0 +1,5 @@
'use client';
export { default } from './TabScrollButton';
export { default as tabScrollButtonClasses } from './tabScrollButtonClasses';
export * from './tabScrollButtonClasses';

View File

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

View File

@@ -0,0 +1,12 @@
export interface TabScrollButtonClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if `orientation="vertical"`. */
vertical: string;
/** State class applied to the root element if `disabled={true}`. */
disabled: string;
}
export type TabScrollButtonClassKey = keyof TabScrollButtonClasses;
export declare function getTabScrollButtonUtilityClass(slot: string): string;
declare const tabScrollButtonClasses: TabScrollButtonClasses;
export default tabScrollButtonClasses;

View File

@@ -0,0 +1,7 @@
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
import generateUtilityClass from '@mui/utils/generateUtilityClass';
export function getTabScrollButtonUtilityClass(slot) {
return generateUtilityClass('MuiTabScrollButton', slot);
}
const tabScrollButtonClasses = generateUtilityClasses('MuiTabScrollButton', ['root', 'vertical', 'horizontal', 'disabled']);
export default tabScrollButtonClasses;