import { a as __rest, _ as __assign } from '../tslib.es6-faad35dc.js';
import { jsx } from 'react/jsx-runtime';
import MuiInputAdornment from '@mui/material/InputAdornment';
import Icon from '../components/Icon.js';
import Input from '../components/Input.js';
import { inputArgTypes } from './utils/formControlStories.js';
import { getAdornmentIconProps } from './utils/adornmentStories.js';
import '@mui/material/styles';
import '../icons/ArrowLeft.js';
import '../icons/ArrowRight.js';
import '../icons/CloseCircle.js';
import '../icons/InfoCircle.js';
import '../icons/ErrorCircle.js';
import '../icons/Attention.js';
import '../icons/HelpCircle.js';
import '../icons/Document.js';
import '../icons/DocumentText.js';
import '../icons/Lock.js';
import '../icons/Delete.js';
import '../icons/Users.js';
import '../icons/Stakefish.js';
import '../icons/Sound.js';
import '../icons/Beacon.js';
import '../icons/TriangleRight.js';
import '../icons/TriangleLeft.js';
import '../icons/TriangleUp.js';
import '../icons/TriangleDown.js';
import '../icons/Sent.js';
import '../icons/Download.js';
import '../icons/Faster.js';
import '../icons/Slower.js';
import '../icons/Usb.js';
import '../icons/Key.js';
import '../icons/Edit.js';
import '../icons/Expand.js';
import '../icons/Collapse.js';
import '../icons/Success.js';
import '../icons/SuccessCircle.js';
import '../icons/Fail.js';
import '../icons/Desktop.js';
import '../icons/Mobile.js';
import '../icons/Loading.js';
import '../icons/Upload.js';
import '../icons/Check.js';
import '../icons/ChevronLeft.js';
import '../icons/ChevronRight.js';
import '../icons/Plus.js';
import '../icons/Minus.js';
import '../icons/Globe.js';
import '../icons/Link.js';
import '../icons/Copy.js';
import '../icons/Medium.js';
import '../icons/Twitter.js';
import '../icons/Telegram.js';
import '../icons/Eth.js';
import '../icons/Sort.js';
import '../icons/Close.js';
import '../icons/DollarSign.js';
import '../icons/Search.js';
import '../icons/Range.js';
import '../icons/Instagram.js';
import '../icons/LinkedIn.js';
import '../icons/Reddit.js';
import '../icons/YouTube.js';
import '../icons/Chrome.js';
import '../icons/CloudConnect.js';
import '../icons/Update.js';
import '../icons/Menu.js';
import '../icons/Settings.js';
import 'react';
import '@mui/material/Input';
import '../components/EndAdornment.js';
import '@mui/material/Box';
import '../components/Button.js';
import '../clsx.m-6243b874.js';
import '@mui/material/Button';
import '../theme/colors.js';
import './utils/iconStories.js';

var Template = function (args) {
    var startAdornmentIconProps = getAdornmentIconProps(args, "start");
    var endAdornmentIconProps = getAdornmentIconProps(args, "end");
    args.startAdornmentKey; args.startAdornmentColor; args.startAdornmentRotation; args.startAdornmentSize; args.endAdornmentKey; args.endAdornmentColor; args.endAdornmentRotation; args.endAdornmentSize; var actionButton = args.actionButton, inputProps = __rest(args, ["startAdornmentKey", "startAdornmentColor", "startAdornmentRotation", "startAdornmentSize", "endAdornmentKey", "endAdornmentColor", "endAdornmentRotation", "endAdornmentSize", "actionButton"]);
    return (jsx(Input, __assign({}, inputProps, { actionButtonProps: actionButton
            ? {
                disabled: inputProps.disabled,
                color: "inverse",
                children: "Click",
                onClick: function () { return console.log("clicked"); }
            }
            : undefined, startAdornment: startAdornmentIconProps ? (jsx(MuiInputAdornment, __assign({ position: "start" }, { children: jsx(Icon, __assign({}, startAdornmentIconProps), void 0) }), void 0)) : undefined, endAdornment: endAdornmentIconProps ? (jsx(MuiInputAdornment, __assign({ position: "end" }, { children: jsx(Icon, __assign({}, endAdornmentIconProps), void 0) }), void 0)) : undefined }), void 0));
};
var Default = Template.bind({});
var Input_stories = {
    title: "Form Controls/Input",
    component: Input,
    argTypes: inputArgTypes
};

export { Default, Input_stories as default };
