@dialpad/dialtone-icons
Version:
Dialtone icon library
1 lines • 3.5 kB
Source Map (JSON)
{"version":3,"file":"mastercard.cjs","sources":["../../../src/icons/mastercard.vue"],"sourcesContent":["<template>\n <svg :aria-label=\"ariaLabel\" :class=\"iconSizeClass\" :data-qa=\"dataQA\" :aria-hidden=\"ariaHidden\" role=\"img\" data-name=\"Mastercard\" class=\"d-icon d-icon--mastercard\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><rect x=\".25\" y=\"3.75\" width=\"23.5\" height=\"16.5\" rx=\"1.75\" fill=\"#fff\" stroke=\"#E3E5E8\" stroke-width=\".5\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 15.694a4.867 4.867 0 0 1-3.148 1.145C6.172 16.84 4 14.693 4 12.045 4 9.397 6.173 7.25 8.852 7.25c1.201 0 2.3.431 3.148 1.145a4.868 4.868 0 0 1 3.148-1.145c2.68 0 4.852 2.147 4.852 4.795s-2.172 4.794-4.852 4.794c-1.201 0-2.3-.43-3.148-1.145Z\" fill=\"#ED0006\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 15.694a4.761 4.761 0 0 0 1.705-3.65c0-1.46-.662-2.77-1.705-3.649a4.868 4.868 0 0 1 3.148-1.145c2.68 0 4.852 2.147 4.852 4.795s-2.172 4.794-4.852 4.794c-1.201 0-2.3-.43-3.148-1.145Z\" fill=\"#F9A000\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 15.694a4.761 4.761 0 0 0 1.705-3.65c0-1.46-.662-2.77-1.705-3.649a4.761 4.761 0 0 0-1.705 3.65c0 1.461.662 2.77 1.705 3.649Z\" fill=\"#FF5E00\"/></svg>\n</template>\n\n<script>\nimport { ICON_SIZE_MODIFIERS } from '@/src/constants';\n\nexport default {\n name: 'DtIconMastercard',\n\n props: {\n /**\n * The size of the icon.\n * @values 100, 200, 300, 400, 500, 600, 700, 800\n */\n size: {\n type: String,\n default: '500',\n validator: (s) => Object.keys(ICON_SIZE_MODIFIERS).includes(s),\n },\n\n /**\n * The label of the icon as read out by a screenreader. Leave this unset if your icon is purely presentational\n */\n ariaLabel: {\n type: String,\n default: undefined,\n },\n },\n\n /**\n * @TODO: Remove this emit once the icons migration is complete,\n * they will no longer need this event.\n * */\n emits: ['loaded'],\n\n computed: {\n iconSizeClass () {\n return ICON_SIZE_MODIFIERS[this.size];\n },\n\n ariaHidden () {\n return !this.ariaLabel ? 'true' : 'false';\n },\n\n dataQA () {\n return this.$attrs['data-qa'] ?? 'dt-icon';\n },\n },\n\n created () {\n this.$emit('loaded');\n },\n};\n</script>\n"],"names":["_sfc_main","s","ICON_SIZE_MODIFIERS","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_createElementBlock","$props","_normalizeClass","$options","_hoisted_6"],"mappings":"kIAOKA,EAAU,CACb,KAAM,mBAEN,MAAO,CAKL,KAAM,CACJ,KAAM,OACN,QAAS,MACT,UAAYC,GAAM,OAAO,KAAKC,GAAmB,EAAE,SAASD,CAAC,CAC9D,EAKD,UAAW,CACT,KAAM,OACN,QAAS,MACV,CACF,EAMD,MAAO,CAAC,QAAQ,EAEhB,SAAU,CACR,eAAiB,CACf,OAAOC,EAAmB,EAAC,KAAK,IAAI,CACrC,EAED,YAAc,CACZ,OAAQ,KAAK,UAAqB,QAAT,MAC1B,EAED,QAAU,CACR,OAAO,KAAK,OAAO,SAAS,GAAK,SAClC,CACF,EAED,SAAW,CACT,KAAK,MAAM,QAAQ,CACpB,CACH,EArDAC,EAAA,CAAA,aAAA,UAAA,aAAA,IAC6NC,EAA4G,mBAAA,OAAA,CAAtG,EAAE,MAAM,EAAE,OAAO,MAAM,OAAO,OAAO,OAAO,GAAG,OAAO,KAAK,OAAO,OAAO,UAAU,eAAa,iBAAMA,EAAuT,mBAAA,OAAA,CAAjT,YAAU,UAAU,YAAU,UAAU,EAAE,uPAAuP,KAAK,sBAAWA,EAA2P,mBAAA,OAAA,CAArP,YAAU,UAAU,YAAU,UAAU,EAAE,2LAA2L,KAAK,sBAAWA,EAAkM,mBAAA,OAAA,CAA5L,YAAU,UAAU,YAAU,UAAU,EAAE,kIAAkI,KAAK,uBAAr1BC,EAA4GC,EAAuTC,EAA2PC,gDAAz3BC,EAAikC,mBAAA,MAAA,CAA3jC,aAAYC,EAAS,UAAG,MADhCC,EAAAA,eAAA,CACuCC,EAAa,cAAsF,2BAA2B,CAAA,EAA9G,UAASA,EAAM,OAAG,cAAaA,EAAU,WAAE,KAAK,MAAM,YAAU,aAA+C,QAAQ,YAAY,MAAM,8BADhMC,EAAA,GAAAV,CAAA"}