@react-spectrum/s2
Version:
Spectrum 2 UI components in React
1 lines • 3.31 kB
Source Map (JSON)
{"mappings":";;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;AAWD,IAAI;;;;;;;;;;;;;;;;AAuBW,kDAAmB,KAA+E;IAC/G,IAAI,QAAC,OAAO,KAAK,GAAG,YAAW,GAAG;IAClC,OAAQ;QACN,KAAK;YACH,qBAAO,gBAAC,CAAA,GAAA,wCAAU;gBAAG,GAAG,UAAU;gBAAE,WAAW,AAAC,CAAA,WAAW,SAAS,IAAI,EAAC,IAAK,6BAAO;0BAAC;gBAAI;;QAC5F,KAAK;YACH,qBAAO,gBAAC,CAAA,GAAA,wCAAU;gBAAG,GAAG,UAAU;gBAAE,WAAW,AAAC,CAAA,WAAW,SAAS,IAAI,EAAC,IAAK,6BAAO;0BAAC;gBAAI;;QAC5F,KAAK;YACH,qBAAO,gBAAC,CAAA,GAAA,wCAAW;gBAAG,GAAG,UAAU;gBAAE,WAAW,AAAC,CAAA,WAAW,SAAS,IAAI,EAAC,IAAK,6BAAO;0BAAC;gBAAI;;QAC7F,KAAK;YACH,qBAAO,gBAAC,CAAA,GAAA,wCAAY;gBAAG,GAAG,UAAU;gBAAE,WAAW,AAAC,CAAA,WAAW,SAAS,IAAI,EAAC,IAAK,6BAAO;0BAAC;gBAAI;;QAC9F,KAAK;YACH,qBAAO,gBAAC,CAAA,GAAA,wCAAW;gBAAG,GAAG,UAAU;gBAAE,WAAW,AAAC,CAAA,WAAW,SAAS,IAAI,EAAC,IAAK,6BAAO;0BAAC;gBAAI;;QAC7F,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/Checkmark.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 Checkmark_L from './S2_CheckmarkSize200.svg';\nimport Checkmark_M from './S2_CheckmarkSize100.svg';\nimport Checkmark_S from './S2_CheckmarkSize75.svg';\nimport Checkmark_XL from './S2_CheckmarkSize300.svg';\nimport Checkmark_XS from './S2_CheckmarkSize50.svg';\nimport Checkmark_XXL from './S2_CheckmarkSize400.svg';\nimport {ReactNode, SVGProps} from 'react';\nimport {style} from '../style' with {type: 'macro'};\n\nlet styles = style({\n width: {\n size: {\n M: 10,\n L: 12,\n XL: 14,\n XXL: 16,\n XS: 10,\n S: 10\n }\n },\n height: {\n size: {\n M: 10,\n L: 12,\n XL: 14,\n XXL: 16,\n XS: 10,\n S: 10\n }\n }\n});\n\nexport default function Checkmark(props: SVGProps<SVGSVGElement> & {size?: 'M' | 'L' | 'XL' | 'XXL' | 'XS' | 'S'}): ReactNode {\n let {size = 'M', ...otherProps} = props;\n switch (size) {\n case 'M':\n return <Checkmark_M {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n case 'L':\n return <Checkmark_L {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n case 'XL':\n return <Checkmark_XL {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n case 'XXL':\n return <Checkmark_XXL {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n case 'XS':\n return <Checkmark_XS {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n case 'S':\n return <Checkmark_S {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n }\n}\n"],"names":[],"version":3,"file":"Checkmark.mjs.map"}