UNPKG

@dialpad/dialtone-icons

Version:
1 lines 3.47 kB
{"version":3,"file":"messenger.cjs","names":[],"sources":["../../../../src/icons/messenger.vue"],"sourcesContent":["<template>\n <svg :aria-label=\"ariaLabel\" :class=\"iconSizeClass\" :data-qa=\"dataQA\" :aria-hidden=\"ariaHidden\" role=\"img\" data-name=\"Messenger\" class=\"d-icon d-icon--messenger\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12 2.86c-5.281 0-9.375 3.868-9.375 9.093 0 2.733 1.12 5.095 2.944 6.726a.75.75 0 0 1 .252.535l.051 1.668a.75.75 0 0 0 1.053.663l1.86-.822a.748.748 0 0 1 .501-.037c.855.236 1.765.36 2.714.36 5.281 0 9.375-3.868 9.375-9.093S17.281 2.86 12 2.86Z\" :fill=\"`url(#${uniqueID}a)`\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"m6.37 14.613 2.754-4.37a1.406 1.406 0 0 1 2.034-.375l2.19 1.643c.2.15.477.15.678-.002l2.958-2.245c.394-.3.91.173.646.592l-2.754 4.37a1.406 1.406 0 0 1-2.034.374l-2.19-1.642a.562.562 0 0 0-.678.002l-2.958 2.245c-.395.3-.91-.173-.646-.592Z\" fill=\"#fff\"/><defs><radialGradient :id=\"`${uniqueID}a`\" cx=\"0\" cy=\"0\" r=\"1\" gradientUnits=\"userSpaceOnUse\" gradientTransform=\"translate(6.234 21.51) scale(20.4299)\"><stop stop-color=\"#09F\"/><stop offset=\".61\" stop-color=\"#A033FF\"/><stop offset=\".935\" stop-color=\"#FF5280\"/><stop offset=\"1\" stop-color=\"#FF7061\"/></radialGradient></defs></svg>\n</template>\n\n<script>\nimport { getUniqueString } from '@/src/utils';\nimport { ICON_SIZE_MODIFIERS } from '@/src/constants';\n\nexport default {\n name: 'DtIconMessenger',\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 this.uniqueID = getUniqueString();\n },\n};\n</script>\n"],"mappings":"qKAQA,IAAK,EAAU,CACb,KAAM,kBAEN,MAAO,CAKL,KAAM,CACJ,KAAM,OACN,QAAS,MACT,UAAY,GAAM,OAAO,KAAK,EAAA,EAAoB,CAAC,SAAS,EAAE,CAC/D,CAKD,UAAW,CACT,KAAM,OACN,QAAS,IAAA,GACV,CACF,CAMD,MAAO,CAAC,SAAS,CAEjB,SAAU,CACR,eAAiB,CACf,OAAO,EAAA,EAAoB,KAAK,OAGlC,YAAc,CACZ,OAAQ,KAAK,UAAqB,QAAT,QAG3B,QAAU,CACR,OAAO,KAAK,OAAO,YAAc,WAEpC,CAED,SAAW,CACT,KAAK,MAAM,SAAS,CACpB,KAAK,SAAW,EAAA,GAAiB,EAEpC,uIAtDopC,MAAA,CAA7oC,aAAY,EAAA,UAAY,OAAA,EAAA,EAAA,gBAAK,CAAE,EAAA,cAAkG,2BAA0B,CAAA,CAA5G,UAAS,EAAA,OAAS,cAAa,EAAA,WAAY,KAAK,MAAM,YAAU,YAA6C,QAAQ,YAAY,MAAM,wDAAiW,OAAA,CAA9T,YAAU,UAAU,YAAU,UAAU,EAAE,sPAAuP,KAAI,QAAU,EAAA,SAAQ,oDAAoT,OAAA,CAAvS,YAAU,UAAU,YAAU,UAAU,EAAE,gPAAgP,KAAK,2CAA2U,OAAA,KAAA,EAAA,EAAA,EAAA,oBAAP,iBAAA,CAArS,GAAE,GAAK,EAAA,SAAQ,GAAK,GAAG,IAAI,GAAG,IAAI,EAAE,IAAI,cAAc,iBAAiB,kBAAkB,mFAAiE,OAAA,CAAnB,aAAW,OAAM,CAAA,KAAA,GAAA,0BAA2C,OAAA,CAAnC,OAAO,MAAM,aAAW,6CAAqD,OAAA,CAApC,OAAO,OAAO,aAAW,6CAAkD,OAAA,CAAjC,OAAO,IAAI,aAAW"}