@react-spectrum/s2
Version:
Spectrum 2 UI components in React
1 lines • 2.27 kB
Source Map (JSON)
{"mappings":";;;;;;AAAA;;;;;;;;;;CAUC;;;;AAQD,IAAI;;;;;;;;;;AAiBW,kDAAkB,KAA0D;IACzF,IAAI,QAAC,OAAO,KAAK,GAAG,YAAW,GAAG;IAClC,OAAQ;QACN,KAAK;YACH,qBAAO,gBAAC,CAAA,GAAA,wCAAS;gBAAG,GAAG,UAAU;gBAAE,WAAW,AAAC,CAAA,WAAW,SAAS,IAAI,EAAC,IAAK,6BAAO;0BAAC;gBAAI;;QAC3F,KAAK;YACH,qBAAO,gBAAC,CAAA,GAAA,wCAAS;gBAAG,GAAG,UAAU;gBAAE,WAAW,AAAC,CAAA,WAAW,SAAS,IAAI,EAAC,IAAK,6BAAO;0BAAC;gBAAI;;QAC3F,KAAK;YACH,qBAAO,gBAAC,CAAA,GAAA,wCAAU;gBAAG,GAAG,UAAU;gBAAE,WAAW,AAAC,CAAA,WAAW,SAAS,IAAI,EAAC,IAAK,6BAAO;0BAAC;gBAAI;;IAC9F;AACF","sources":["packages/@react-spectrum/s2/ui-icons/Asterisk.tsx"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport Asterisk_L from './S2_AsteriskSize200.svg';\nimport Asterisk_M from './S2_AsteriskSize100.svg';\nimport Asterisk_XL from './S2_AsteriskSize300.svg';\nimport {ReactNode, SVGProps} from 'react';\nimport {style} from '../style' with {type: 'macro'};\n\nlet styles = style({\n width: {\n size: {\n M: 8,\n L: 10,\n XL: 10\n }\n },\n height: {\n size: {\n M: 8,\n L: 10,\n XL: 10\n }\n }\n});\n\nexport default function Asterisk(props: SVGProps<SVGSVGElement> & {size?: 'M' | 'L' | 'XL'}): ReactNode {\n let {size = 'M', ...otherProps} = props;\n switch (size) {\n case 'M':\n return <Asterisk_M {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n case 'L':\n return <Asterisk_L {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n case 'XL':\n return <Asterisk_XL {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n }\n}\n"],"names":[],"version":3,"file":"Asterisk.mjs.map"}