UNPKG

@react-spectrum/s2

Version:
72 lines (64 loc) 2.97 kB
import "./LinkOut.css"; import $1e6ac76633d3918d$export$2e2bcd8739ae039 from "./S2_LinkOutSize200.mjs"; import $3a6f6b5d395042df$export$2e2bcd8739ae039 from "./S2_LinkOutSize100.mjs"; import $c1512f1df9c6d976$export$2e2bcd8739ae039 from "./S2_LinkOutSize300.mjs"; import $77729bea0e58bdda$export$2e2bcd8739ae039 from "./S2_LinkOutSize400.mjs"; import {jsx as $hX5t2$jsx} from "react/jsx-runtime"; /* * Copyright 2024 Adobe. All rights reserved. * This file is licensed to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ let $d9f847a2895a93dc$var$styles = function anonymous(props) { let rules = " "; if (props.size === "XXL") rules += ' Zu1'; else if (props.size === "XL") rules += ' Zk1'; else if (props.size === "L") rules += ' Zj1'; else if (props.size === "M") rules += ' Zi1'; if (props.size === "XXL") rules += ' Ft1'; else if (props.size === "XL") rules += ' Fl1'; else if (props.size === "L") rules += ' Fk1'; else if (props.size === "M") rules += ' Fj1'; return rules; }; function $d9f847a2895a93dc$export$2e2bcd8739ae039(props) { let { size: size = 'M', ...otherProps } = props; switch(size){ case 'M': return /*#__PURE__*/ (0, $hX5t2$jsx)((0, $3a6f6b5d395042df$export$2e2bcd8739ae039), { ...otherProps, className: (otherProps.className || '') + $d9f847a2895a93dc$var$styles({ size: size }) }); case 'L': return /*#__PURE__*/ (0, $hX5t2$jsx)((0, $1e6ac76633d3918d$export$2e2bcd8739ae039), { ...otherProps, className: (otherProps.className || '') + $d9f847a2895a93dc$var$styles({ size: size }) }); case 'XL': return /*#__PURE__*/ (0, $hX5t2$jsx)((0, $c1512f1df9c6d976$export$2e2bcd8739ae039), { ...otherProps, className: (otherProps.className || '') + $d9f847a2895a93dc$var$styles({ size: size }) }); case 'XXL': return /*#__PURE__*/ (0, $hX5t2$jsx)((0, $77729bea0e58bdda$export$2e2bcd8739ae039), { ...otherProps, className: (otherProps.className || '') + $d9f847a2895a93dc$var$styles({ size: size }) }); } } export {$d9f847a2895a93dc$export$2e2bcd8739ae039 as default}; //# sourceMappingURL=LinkOut.mjs.map