UNPKG

@react-spectrum/s2

Version:
1 lines 2.87 kB
{"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;AAUD,IAAI;;;;;;;;;;;;;;AAqBW,kDAAc,KAAuE;IAClG,IAAI,QAAC,OAAO,KAAK,GAAG,YAAW,GAAG;IAClC,OAAQ;QACN,KAAK;YACH,qBAAO,gCAAC,CAAA,GAAA,iCAAK;gBAAG,GAAG,UAAU;gBAAE,WAAW,AAAC,CAAA,WAAW,SAAS,IAAI,EAAC,IAAK,6BAAO;0BAAC;gBAAI;;QACvF,KAAK;YACH,qBAAO,gCAAC,CAAA,GAAA,iCAAK;gBAAG,GAAG,UAAU;gBAAE,WAAW,AAAC,CAAA,WAAW,SAAS,IAAI,EAAC,IAAK,6BAAO;0BAAC;gBAAI;;QACvF,KAAK;YACH,qBAAO,gCAAC,CAAA,GAAA,iCAAM;gBAAG,GAAG,UAAU;gBAAE,WAAW,AAAC,CAAA,WAAW,SAAS,IAAI,EAAC,IAAK,6BAAO;0BAAC;gBAAI;;QACxF,KAAK;YACH,qBAAO,gCAAC,CAAA,GAAA,iCAAM;gBAAG,GAAG,UAAU;gBAAE,WAAW,AAAC,CAAA,WAAW,SAAS,IAAI,EAAC,IAAK,6BAAO;0BAAC;gBAAI;;QACxF,KAAK;YACH,qBAAO,gCAAC,CAAA,GAAA,iCAAK;gBAAG,GAAG,UAAU;gBAAE,WAAW,AAAC,CAAA,WAAW,SAAS,IAAI,EAAC,IAAK,6BAAO;0BAAC;gBAAI;;IACzF;AACF","sources":["packages/@react-spectrum/s2/ui-icons/Dash.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 Dash_L from './S2_DashSize200.svg';\nimport Dash_M from './S2_DashSize100.svg';\nimport Dash_S from './S2_DashSize75.svg';\nimport Dash_XL from './S2_DashSize300.svg';\nimport Dash_XS from './S2_DashSize50.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: 12,\n XS: 8,\n S: 8\n }\n },\n height: {\n size: {\n M: 10,\n L: 12,\n XL: 12,\n XS: 8,\n S: 8\n }\n }\n});\n\nexport default function Dash(props: SVGProps<SVGSVGElement> & {size?: 'M' | 'L' | 'XL' | 'XS' | 'S'}): ReactNode {\n let {size = 'M', ...otherProps} = props;\n switch (size) {\n case 'M':\n return <Dash_M {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n case 'L':\n return <Dash_L {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n case 'XL':\n return <Dash_XL {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n case 'XS':\n return <Dash_XS {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n case 'S':\n return <Dash_S {...otherProps} className={(otherProps.className || '') + styles({size})} />;\n }\n}\n"],"names":[],"version":3,"file":"Dash.cjs.map"}