@react-spectrum/s2
Version:
Spectrum 2 UI components in React
77 lines (67 loc) • 3.13 kB
JavaScript
require("./LinkOut.css");
var $43a66a162c53fe99$exports = require("./S2_LinkOutSize200.cjs");
var $2d1bc78ca251fea1$exports = require("./S2_LinkOutSize100.cjs");
var $8dc6b34e8f726343$exports = require("./S2_LinkOutSize300.cjs");
var $496181c04f34774a$exports = require("./S2_LinkOutSize400.cjs");
var $ca2c7$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", () => $377d9a1b51957cfd$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 $377d9a1b51957cfd$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 $377d9a1b51957cfd$export$2e2bcd8739ae039(props) {
let { size: size = 'M', ...otherProps } = props;
switch(size){
case 'M':
return /*#__PURE__*/ (0, $ca2c7$reactjsxruntime.jsx)((0, $2d1bc78ca251fea1$exports.default), {
...otherProps,
className: (otherProps.className || '') + $377d9a1b51957cfd$var$styles({
size: size
})
});
case 'L':
return /*#__PURE__*/ (0, $ca2c7$reactjsxruntime.jsx)((0, $43a66a162c53fe99$exports.default), {
...otherProps,
className: (otherProps.className || '') + $377d9a1b51957cfd$var$styles({
size: size
})
});
case 'XL':
return /*#__PURE__*/ (0, $ca2c7$reactjsxruntime.jsx)((0, $8dc6b34e8f726343$exports.default), {
...otherProps,
className: (otherProps.className || '') + $377d9a1b51957cfd$var$styles({
size: size
})
});
case 'XXL':
return /*#__PURE__*/ (0, $ca2c7$reactjsxruntime.jsx)((0, $496181c04f34774a$exports.default), {
...otherProps,
className: (otherProps.className || '') + $377d9a1b51957cfd$var$styles({
size: size
})
});
}
}
//# sourceMappingURL=LinkOut.cjs.map