UNPKG

@react-spectrum/s2

Version:
88 lines (77 loc) 3.58 kB
require("./Add.css"); var $b51f0c0e80ec4a84$exports = require("./S2_AddSize200.cjs"); var $3404a88866fa78e3$exports = require("./S2_AddSize100.cjs"); var $32063e2fc9899d6e$exports = require("./S2_AddSize75.cjs"); var $4bc7bc4f8b1dcb92$exports = require("./S2_AddSize300.cjs"); var $085c75b5306c56ad$exports = require("./S2_AddSize50.cjs"); var $l38RQ$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", () => $54686c7c3f031ee2$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 $54686c7c3f031ee2$var$styles = function anonymous(props) { let rules = " "; if (props.size === "S") rules += ' Zh91'; else if (props.size === "XS") rules += ' Zh91'; else if (props.size === "XL") rules += ' Zj91'; else if (props.size === "L") rules += ' Zj91'; else if (props.size === "M") rules += ' Zi91'; if (props.size === "S") rules += ' Fi91'; else if (props.size === "XS") rules += ' Fi91'; else if (props.size === "XL") rules += ' Fk91'; else if (props.size === "L") rules += ' Fk91'; else if (props.size === "M") rules += ' Fj91'; return rules; }; function $54686c7c3f031ee2$export$2e2bcd8739ae039(props) { let { size: size = 'M', ...otherProps } = props; switch(size){ case 'M': return /*#__PURE__*/ (0, $l38RQ$reactjsxruntime.jsx)((0, $3404a88866fa78e3$exports.default), { ...otherProps, className: (otherProps.className || '') + $54686c7c3f031ee2$var$styles({ size: size }) }); case 'L': return /*#__PURE__*/ (0, $l38RQ$reactjsxruntime.jsx)((0, $b51f0c0e80ec4a84$exports.default), { ...otherProps, className: (otherProps.className || '') + $54686c7c3f031ee2$var$styles({ size: size }) }); case 'XL': return /*#__PURE__*/ (0, $l38RQ$reactjsxruntime.jsx)((0, $4bc7bc4f8b1dcb92$exports.default), { ...otherProps, className: (otherProps.className || '') + $54686c7c3f031ee2$var$styles({ size: size }) }); case 'XS': return /*#__PURE__*/ (0, $l38RQ$reactjsxruntime.jsx)((0, $085c75b5306c56ad$exports.default), { ...otherProps, className: (otherProps.className || '') + $54686c7c3f031ee2$var$styles({ size: size }) }); case 'S': return /*#__PURE__*/ (0, $l38RQ$reactjsxruntime.jsx)((0, $32063e2fc9899d6e$exports.default), { ...otherProps, className: (otherProps.className || '') + $54686c7c3f031ee2$var$styles({ size: size }) }); } } //# sourceMappingURL=Add.cjs.map