@dialpad/dialtone-icons
Version:
Dialtone icon library
1 lines • 2.26 kB
Source Map (JSON)
{"version":3,"file":"zoom-logo.cjs","names":[],"sources":["../../../../src/icons/zoom-logo.vue"],"sourcesContent":["<template>\n <svg :aria-label=\"ariaLabel\" :class=\"iconSizeClass\" :data-qa=\"dataQA\" :aria-hidden=\"ariaHidden\" role=\"img\" data-name=\"Zoom Logo\" class=\"d-icon d-icon--zoom-logo\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 12 12\"><path fill=\"currentColor\" d=\"M2 3.5a.5.5 0 0 0-.5.5v3.222a1.5 1.5 0 0 0 1.5 1.5h4.646a.5.5 0 0 0 .5-.5V5a1.5 1.5 0 0 0-1.5-1.5H2Zm6.796 1.298a.5.5 0 0 0-.175.38V7.28a.5.5 0 0 0 .175.38l1.255 1.07a.5.5 0 0 0 .824-.38V4.11a.5.5 0 0 0-.824-.38L8.796 4.8Z\"/></svg>\n</template>\n\n<script>\nimport { ICON_SIZE_MODIFIERS } from '@/src/constants';\n\nexport default {\n name: 'DtIconZoomLogo',\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"],"mappings":"+HAOA,IAAK,EAAU,CACb,KAAM,iBAEN,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,EAEvB,mHApD8d,MAAA,CAAvd,aAAY,EAAA,UAAY,OAAA,EAAA,EAAA,gBAAK,CAAE,EAAA,cAAkG,2BAA0B,CAAA,CAA5G,UAAS,EAAA,OAAS,cAAa,EAAA,WAAY,KAAK,MAAM,YAAU,YAA6C,MAAM,6BAA6B,QAAQ,uDAA0Q,OAAA,CAAxP,KAAK,eAAe,EAAE"}