@react-spectrum/s2
Version:
Spectrum 2 UI components in React
88 lines (77 loc) • 3.58 kB
JavaScript
require("./Dash.css");
var $73e28fde3691b366$exports = require("./S2_DashSize200.cjs");
var $bb6cd4a502966b37$exports = require("./S2_DashSize100.cjs");
var $3e1a22a2da9e75e7$exports = require("./S2_DashSize75.cjs");
var $ff5457fc54cc0b10$exports = require("./S2_DashSize300.cjs");
var $3f43666fc8573d57$exports = require("./S2_DashSize50.cjs");
var $cQR7m$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", () => $84c37b7bd5c1374e$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 $84c37b7bd5c1374e$var$styles = function anonymous(props) {
let rules = " ";
if (props.size === "S") rules += ' Zh1';
else if (props.size === "XS") rules += ' Zh1';
else if (props.size === "XL") rules += ' Zj1';
else if (props.size === "L") rules += ' Zj1';
else if (props.size === "M") rules += ' Zi1';
if (props.size === "S") rules += ' Fi1';
else if (props.size === "XS") rules += ' Fi1';
else if (props.size === "XL") rules += ' Fk1';
else if (props.size === "L") rules += ' Fk1';
else if (props.size === "M") rules += ' Fj1';
return rules;
};
function $84c37b7bd5c1374e$export$2e2bcd8739ae039(props) {
let { size: size = 'M', ...otherProps } = props;
switch(size){
case 'M':
return /*#__PURE__*/ (0, $cQR7m$reactjsxruntime.jsx)((0, $bb6cd4a502966b37$exports.default), {
...otherProps,
className: (otherProps.className || '') + $84c37b7bd5c1374e$var$styles({
size: size
})
});
case 'L':
return /*#__PURE__*/ (0, $cQR7m$reactjsxruntime.jsx)((0, $73e28fde3691b366$exports.default), {
...otherProps,
className: (otherProps.className || '') + $84c37b7bd5c1374e$var$styles({
size: size
})
});
case 'XL':
return /*#__PURE__*/ (0, $cQR7m$reactjsxruntime.jsx)((0, $ff5457fc54cc0b10$exports.default), {
...otherProps,
className: (otherProps.className || '') + $84c37b7bd5c1374e$var$styles({
size: size
})
});
case 'XS':
return /*#__PURE__*/ (0, $cQR7m$reactjsxruntime.jsx)((0, $3f43666fc8573d57$exports.default), {
...otherProps,
className: (otherProps.className || '') + $84c37b7bd5c1374e$var$styles({
size: size
})
});
case 'S':
return /*#__PURE__*/ (0, $cQR7m$reactjsxruntime.jsx)((0, $3e1a22a2da9e75e7$exports.default), {
...otherProps,
className: (otherProps.className || '') + $84c37b7bd5c1374e$var$styles({
size: size
})
});
}
}
//# sourceMappingURL=Dash.cjs.map