@dialpad/dialtone-icons
Version:
Dialtone icon library
1 lines • 3.08 kB
Source Map (JSON)
{"version":3,"file":"diners-club.cjs","sources":["../../../../src/icons/diners-club.vue"],"sourcesContent":["<template>\n <svg :aria-label=\"ariaLabel\" :class=\"iconSizeClass\" :data-qa=\"dataQA\" :aria-hidden=\"ariaHidden\" role=\"img\" data-name=\"Diners Club\" class=\"d-icon d-icon--diners-club\" 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=\"M11.18 16.623h1.833c2.86 0 5.14-2.269 5.229-5.072v-.045c-.045-2.848-2.369-5.162-5.23-5.117h-2.055c-2.727.089-4.872 2.403-4.783 5.162 0 2.759 2.235 5.028 5.006 5.072Zm-4.112-5.117c0-2.314 1.922-4.227 4.246-4.227 2.324 0 4.246 1.913 4.246 4.227s-1.922 4.227-4.246 4.227c-2.324 0-4.246-1.913-4.246-4.227Zm4.917 2.848V8.703c1.564.4 2.547 1.958 2.145 3.515a2.904 2.904 0 0 1-2.145 2.136Zm-3.442-3.56a2.924 2.924 0 0 0 2.1 3.56V8.703a2.933 2.933 0 0 0-2.1 2.091Z\" fill=\"#0079BE\"/></svg>\n</template>\n\n<script>\nimport { ICON_SIZE_MODIFIERS } from '@/src/constants';\n\nexport default {\n name: 'DtIconDinersClub',\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","_createElementBlock","$props","_normalizeClass","$options","_hoisted_4"],"mappings":"wIAOKA,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,IAC+NC,EAA4G,mBAAA,OAAA,CAAtG,EAAE,MAAM,EAAE,OAAO,MAAM,OAAO,OAAO,OAAO,GAAG,OAAO,KAAK,OAAO,OAAO,UAAU,eAAa,iBAAMA,EAA2gB,mBAAA,OAAA,CAArgB,YAAU,UAAU,YAAU,UAAU,EAAE,2cAA2c,KAAK,uBAA5mBC,EAA4GC,gDAAzUC,EAA01B,mBAAA,MAAA,CAAp1B,aAAYC,EAAS,UAAG,MADhCC,EAAAA,eAAA,CACuCC,EAAa,cAAuF,4BAA4B,CAAA,EAAhH,UAASA,EAAM,OAAG,cAAaA,EAAU,WAAE,KAAK,MAAM,YAAU,cAAiD,QAAQ,YAAY,MAAM,8BADlMC,EAAA,GAAAR,CAAA"}