UNPKG

@react-spectrum/s2

Version:
1 lines 1.96 kB
{"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;AAQc,kDAAmB,KAA2C;IAC3E,CAAC,MAAM,GAAG,CAAA,GAAA,0CAAc,EAAE,OAAO,MAAM,CAAA,GAAA,6CAAkB;IACzD,IAAI,QAAC,OAAO,KAAK,GAAG,YAAW,GAAG;IAClC,OAAQ;QACN,KAAK;YACH,qBAAO,gCAAC,CAAA,GAAA,iCAAU;gBAAG,GAAG,UAAU;;QACpC,KAAK;YACH,qBAAO,gCAAC,CAAA,GAAA,iCAAU;gBAAG,GAAG,UAAU;;QACpC,KAAK;YACH,qBAAO,gCAAC,CAAA,GAAA,iCAAU;gBAAG,GAAG,UAAU;;IACtC;AACF","sources":["packages/@react-spectrum/s2/spectrum-illustrations/gradient/generic2/PiggyBank.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 {IconProps, IllustrationContext} from '../../../src/Icon';\nimport PiggyBank_L from 'illustration:./S2_fill_piggyBank_generic2_160.svg';\nimport PiggyBank_M from 'illustration:./S2_fill_piggyBank_generic2_96.svg';\nimport PiggyBank_S from 'illustration:./S2_fill_piggyBank_generic2_48.svg';\nimport {useContextProps} from 'react-aria-components';\n\nexport default function PiggyBank(props: IconProps & {size?: 'L' | 'S' | 'M'}) {\n [props] = useContextProps(props, null, IllustrationContext);\n let {size = 'M', ...otherProps} = props;\n switch (size) {\n case 'L':\n return <PiggyBank_L {...otherProps} />;\n case 'S':\n return <PiggyBank_S {...otherProps} />;\n case 'M':\n return <PiggyBank_M {...otherProps} />;\n }\n}\n"],"names":[],"version":3,"file":"PiggyBank.cjs.map"}