@react-spectrum/s2
Version:
Spectrum 2 UI components in React
83 lines (74 loc) • 3.44 kB
JavaScript
import "./Dash.css";
import $9fd3031c2a375e46$export$2e2bcd8739ae039 from "./S2_DashSize200.mjs";
import $d5753fd4179867a9$export$2e2bcd8739ae039 from "./S2_DashSize100.mjs";
import $a754b887682adb0c$export$2e2bcd8739ae039 from "./S2_DashSize75.mjs";
import $05ef56ae100d2cfa$export$2e2bcd8739ae039 from "./S2_DashSize300.mjs";
import $b7a07c0db3879898$export$2e2bcd8739ae039 from "./S2_DashSize50.mjs";
import {jsx as $cAamo$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 $f17037051ff08dc2$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 $f17037051ff08dc2$export$2e2bcd8739ae039(props) {
let { size: size = 'M', ...otherProps } = props;
switch(size){
case 'M':
return /*#__PURE__*/ (0, $cAamo$jsx)((0, $d5753fd4179867a9$export$2e2bcd8739ae039), {
...otherProps,
className: (otherProps.className || '') + $f17037051ff08dc2$var$styles({
size: size
})
});
case 'L':
return /*#__PURE__*/ (0, $cAamo$jsx)((0, $9fd3031c2a375e46$export$2e2bcd8739ae039), {
...otherProps,
className: (otherProps.className || '') + $f17037051ff08dc2$var$styles({
size: size
})
});
case 'XL':
return /*#__PURE__*/ (0, $cAamo$jsx)((0, $05ef56ae100d2cfa$export$2e2bcd8739ae039), {
...otherProps,
className: (otherProps.className || '') + $f17037051ff08dc2$var$styles({
size: size
})
});
case 'XS':
return /*#__PURE__*/ (0, $cAamo$jsx)((0, $b7a07c0db3879898$export$2e2bcd8739ae039), {
...otherProps,
className: (otherProps.className || '') + $f17037051ff08dc2$var$styles({
size: size
})
});
case 'S':
return /*#__PURE__*/ (0, $cAamo$jsx)((0, $a754b887682adb0c$export$2e2bcd8739ae039), {
...otherProps,
className: (otherProps.className || '') + $f17037051ff08dc2$var$styles({
size: size
})
});
}
}
export {$f17037051ff08dc2$export$2e2bcd8739ae039 as default};
//# sourceMappingURL=Dash.mjs.map