import { _ as __assign } from '../../tslib.es6-20a2a300.js';
import { iconArgTypes } from './iconStories.js';
import '../../theme/colors.js';
import '../../components/Icon.js';
import 'react/jsx-runtime';
import '../../icons/ArrowRight.js';
import '../../icons/ArrowRightCircle.js';
import '../../icons/Check.js';
import '../../icons/CheckCircle.js';
import '../../icons/ChevronRight.js';
import '../../icons/CrossCircle.js';
import '../../icons/DollarSign.js';
import '../../icons/InfoCircle.js';
import '../../icons/Link.js';
import '../../icons/TriangleUp.js';
import '../../icons/TriangleDown.js';
import '../../icons/TriangleLeft.js';
import '../../icons/Copy.js';
import '../../icons/SortUp.js';
import '../../icons/Cross.js';
import '../../icons/Search.js';
import '../../icons/Range.js';
import '../../makeStyles-c9a99c7a.js';
import '../../defaultTheme-49a26576.js';
import 'react';

var adornmentStoryControls = {
    /**
     * startAdornment controls
     */
    startAdornmentProps: { table: { disable: true } },
    startAdornmentKey: __assign(__assign({}, iconArgTypes.iconKey), { defaultValue: undefined, table: { category: "Start Adornment" } }),
    startAdornmentColor: __assign(__assign({}, iconArgTypes.color), { table: { category: "Start Adornment" } }),
    startAdornmentRotation: __assign(__assign({}, iconArgTypes.rotate), { table: { category: "Start Adornment" } }),
    /**
     * endAdornment controls
     */
    endAdornmentProps: { table: { disable: true } },
    endAdornmentKey: __assign(__assign({}, iconArgTypes.iconKey), { defaultValue: undefined, table: { category: "End Adornment" } }),
    endAdornmentColor: __assign(__assign({}, iconArgTypes.color), { table: { category: "End Adornment" } }),
    endAdornmentRotation: __assign(__assign({}, iconArgTypes.rotate), { table: { category: "End Adornment" } })
};
var getAdornmentIconProps = function (args, type) {
    if ((type === "start" && !args.startAdornmentKey) || (type === "end" && !args.endAdornmentKey))
        return undefined;
    var argIconProps = type === "start"
        ? {
            iconKey: args.startAdornmentKey,
            color: args.startAdornmentColor,
            rotate: args.startAdornmentRotation,
            onClick: args.startAdornmentOnClick
        }
        : {
            iconKey: args.endAdornmentKey,
            color: args.endAdornmentColor,
            rotate: args.endAdornmentRotation,
            onClick: args.endAdornmentOnClick
        };
    return {
        iconProps: {
            iconKey: argIconProps.iconKey,
            color: argIconProps.color,
            rotate: argIconProps.rotate
        },
        onClick: argIconProps.onClick
    };
};

export { adornmentStoryControls, getAdornmentIconProps };
