UNPKG

@react-spectrum/s2

Version:
99 lines (87 loc) 4.09 kB
require("./Chevron.css"); var $1895c28190a0d28f$exports = require("./S2_ChevronSize200.cjs"); var $19581fa9d976e2fa$exports = require("./S2_ChevronSize100.cjs"); var $42363d0d1791d305$exports = require("./S2_ChevronSize75.cjs"); var $1fd70c1eb5a91c40$exports = require("./S2_ChevronSize300.cjs"); var $52c835d539d7937f$exports = require("./S2_ChevronSize50.cjs"); var $946db7c00f8c14ae$exports = require("./S2_ChevronSize400.cjs"); var $3pFeU$reactjsxruntime = require("react/jsx-runtime"); function $parcel$export(e, n, v, s) { Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true}); } $parcel$export(module.exports, "default", () => $1df9f1c9262ce5df$export$2e2bcd8739ae039); /* * 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 $1df9f1c9262ce5df$var$styles = function anonymous(props) { let rules = " "; if (props.size === "S") rules += ' Zi1'; else if (props.size === "XS") rules += ' Zg1'; else 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 === "S") rules += ' Fj1'; else if (props.size === "XS") rules += ' Fg1'; else 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 $1df9f1c9262ce5df$export$2e2bcd8739ae039(props) { let { size: size = 'M', ...otherProps } = props; switch(size){ case 'M': return /*#__PURE__*/ (0, $3pFeU$reactjsxruntime.jsx)((0, $19581fa9d976e2fa$exports.default), { ...otherProps, className: (otherProps.className || '') + $1df9f1c9262ce5df$var$styles({ size: size }) }); case 'L': return /*#__PURE__*/ (0, $3pFeU$reactjsxruntime.jsx)((0, $1895c28190a0d28f$exports.default), { ...otherProps, className: (otherProps.className || '') + $1df9f1c9262ce5df$var$styles({ size: size }) }); case 'XL': return /*#__PURE__*/ (0, $3pFeU$reactjsxruntime.jsx)((0, $1fd70c1eb5a91c40$exports.default), { ...otherProps, className: (otherProps.className || '') + $1df9f1c9262ce5df$var$styles({ size: size }) }); case 'XXL': return /*#__PURE__*/ (0, $3pFeU$reactjsxruntime.jsx)((0, $946db7c00f8c14ae$exports.default), { ...otherProps, className: (otherProps.className || '') + $1df9f1c9262ce5df$var$styles({ size: size }) }); case 'XS': return /*#__PURE__*/ (0, $3pFeU$reactjsxruntime.jsx)((0, $52c835d539d7937f$exports.default), { ...otherProps, className: (otherProps.className || '') + $1df9f1c9262ce5df$var$styles({ size: size }) }); case 'S': return /*#__PURE__*/ (0, $3pFeU$reactjsxruntime.jsx)((0, $42363d0d1791d305$exports.default), { ...otherProps, className: (otherProps.className || '') + $1df9f1c9262ce5df$var$styles({ size: size }) }); } } //# sourceMappingURL=Chevron.cjs.map