@react-spectrum/s2
Version:
Spectrum 2 UI components in React
46 lines (37 loc) • 1.95 kB
JavaScript
import $befc6768d4457eea$export$2e2bcd8739ae039 from "./internal/S2_lin_gift_160.mjs";
import $5a8df2fb4d2ecd00$export$2e2bcd8739ae039 from "./internal/S2_lin_gift_96.mjs";
import $99a89b2f852b969c$export$2e2bcd8739ae039 from "./internal/S2_lin_gift_48.mjs";
import {IllustrationContext as $ac8c32e6775ddd1f$export$207c7561471de4bd} from "../../icons/Icon.mjs";
import {jsx as $9xqeP$jsx} from "react/jsx-runtime";
import {useContextProps as $9xqeP$useContextProps} from "react-aria-components";
/*
* 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.
*/
function $42554287769ddfac$export$2e2bcd8739ae039(props) {
[props] = (0, $9xqeP$useContextProps)(props, null, (0, $ac8c32e6775ddd1f$export$207c7561471de4bd));
let { size: size = 'M', ...otherProps } = props;
switch(size){
case 'L':
return /*#__PURE__*/ (0, $9xqeP$jsx)((0, $befc6768d4457eea$export$2e2bcd8739ae039), {
...otherProps
});
case 'S':
return /*#__PURE__*/ (0, $9xqeP$jsx)((0, $99a89b2f852b969c$export$2e2bcd8739ae039), {
...otherProps
});
case 'M':
return /*#__PURE__*/ (0, $9xqeP$jsx)((0, $5a8df2fb4d2ecd00$export$2e2bcd8739ae039), {
...otherProps
});
}
}
export {$42554287769ddfac$export$2e2bcd8739ae039 as default};
//# sourceMappingURL=Gift.mjs.map