@react-spectrum/s2
Version:
Spectrum 2 UI components in React
83 lines (74 loc) • 3.43 kB
JavaScript
import "./Add.css";
import $4d258b231a7c4c0f$export$2e2bcd8739ae039 from "./S2_AddSize200.mjs";
import $ae45ad1f32cde709$export$2e2bcd8739ae039 from "./S2_AddSize100.mjs";
import $e6bfcbe2b11ecc28$export$2e2bcd8739ae039 from "./S2_AddSize75.mjs";
import $0c52c3ab073c7a30$export$2e2bcd8739ae039 from "./S2_AddSize300.mjs";
import $143edde2df19579a$export$2e2bcd8739ae039 from "./S2_AddSize50.mjs";
import {jsx as $e5O6h$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 $053de6aaf5f9b7bd$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 $053de6aaf5f9b7bd$export$2e2bcd8739ae039(props) {
let { size: size = 'M', ...otherProps } = props;
switch(size){
case 'M':
return /*#__PURE__*/ (0, $e5O6h$jsx)((0, $ae45ad1f32cde709$export$2e2bcd8739ae039), {
...otherProps,
className: (otherProps.className || '') + $053de6aaf5f9b7bd$var$styles({
size: size
})
});
case 'L':
return /*#__PURE__*/ (0, $e5O6h$jsx)((0, $4d258b231a7c4c0f$export$2e2bcd8739ae039), {
...otherProps,
className: (otherProps.className || '') + $053de6aaf5f9b7bd$var$styles({
size: size
})
});
case 'XL':
return /*#__PURE__*/ (0, $e5O6h$jsx)((0, $0c52c3ab073c7a30$export$2e2bcd8739ae039), {
...otherProps,
className: (otherProps.className || '') + $053de6aaf5f9b7bd$var$styles({
size: size
})
});
case 'XS':
return /*#__PURE__*/ (0, $e5O6h$jsx)((0, $143edde2df19579a$export$2e2bcd8739ae039), {
...otherProps,
className: (otherProps.className || '') + $053de6aaf5f9b7bd$var$styles({
size: size
})
});
case 'S':
return /*#__PURE__*/ (0, $e5O6h$jsx)((0, $e6bfcbe2b11ecc28$export$2e2bcd8739ae039), {
...otherProps,
className: (otherProps.className || '') + $053de6aaf5f9b7bd$var$styles({
size: size
})
});
}
}
export {$053de6aaf5f9b7bd$export$2e2bcd8739ae039 as default};
//# sourceMappingURL=Add.mjs.map