@dialpad/dialtone-icons
Version:
Dialtone icon library
1 lines • 4.37 kB
Source Map (JSON)
{"version":3,"file":"office-365.cjs","sources":["../../../../src/icons/office-365.vue"],"sourcesContent":["<template>\n <svg :aria-label=\"ariaLabel\" :class=\"iconSizeClass\" :data-qa=\"dataQA\" :aria-hidden=\"ariaHidden\" role=\"img\" data-name=\"Office 365\" class=\"d-icon d-icon--office-365\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m12.571 2.069 1.366 3.597v12.297l-1.333 3.97 5.902-1.639a1.904 1.904 0 0 0 1.393-1.834V5.542a1.903 1.903 0 0 0-1.396-1.835L12.571 2.07z\" :fill=\"`url(#${uniqueID}a)`\"/><path d=\"m7.239 16.878-1.757.96A1.001 1.001 0 0 1 4 16.96V7.45a1.9 1.9 0 0 1 .954-1.65l6.192-3.553a1.869 1.869 0 0 1 1.642-.107 1.86 1.86 0 0 1 1.15 1.724v1.8L8.904 7.5a1.415 1.415 0 0 0-.93 1.33v6.807a1.415 1.415 0 0 1-.736 1.24z\" :fill=\"`url(#${uniqueID}b)`\"/><path d=\"M13.937 17.963v2.214a1.82 1.82 0 0 1-2.713 1.59l-3.88-2.174a.87.87 0 0 1 .425-1.63h6.168z\" :fill=\"`url(#${uniqueID}c)`\"/><path d=\"m7.239 16.878-1.757.96A1.001 1.001 0 0 1 4 16.96V7.45a1.9 1.9 0 0 1 .954-1.65l6.192-3.553a1.869 1.869 0 0 1 1.642-.107 1.86 1.86 0 0 1 1.15 1.724v1.8L8.904 7.5a1.415 1.415 0 0 0-.93 1.33v6.807a1.415 1.415 0 0 1-.736 1.24z\" :fill=\"`url(#${uniqueID}d)`\"/><path d=\"M13.937 17.963v2.214a1.82 1.82 0 0 1-2.713 1.59l-3.88-2.174a.87.87 0 0 1 .425-1.63h6.168z\" :fill=\"`url(#${uniqueID}e)`\"/><defs><linearGradient :id=\"`${uniqueID}a`\" x1=\"16.235\" y1=\".94\" x2=\"16.235\" y2=\"20.54\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#FFB900\"/><stop offset=\".166\" stop-color=\"#EF8400\"/><stop offset=\".313\" stop-color=\"#E25C01\"/><stop offset=\".429\" stop-color=\"#DB4401\"/><stop offset=\".5\" stop-color=\"#D83B01\"/></linearGradient><linearGradient :id=\"`${uniqueID}b`\" x1=\"12.782\" y1=\"1.762\" x2=\"2.29\" y2=\"16.747\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#800600\"/><stop offset=\".6\" stop-color=\"#C72127\"/><stop offset=\".728\" stop-color=\"#C13959\"/><stop offset=\".847\" stop-color=\"#BC4B81\"/><stop offset=\".942\" stop-color=\"#B95799\"/><stop offset=\"1\" stop-color=\"#B85BA2\"/></linearGradient><linearGradient :id=\"`${uniqueID}c`\" x1=\"7.462\" y1=\"19.982\" x2=\"20.393\" y2=\"19.982\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#F32B44\"/><stop offset=\".6\" stop-color=\"#A4070A\"/></linearGradient><linearGradient :id=\"`${uniqueID}d`\" x1=\"12.997\" y1=\"1.455\" x2=\"10.775\" y2=\"4.629\" gradientUnits=\"userSpaceOnUse\"><stop stop-opacity=\".4\"/><stop offset=\"1\" stop-opacity=\"0\"/></linearGradient><linearGradient :id=\"`${uniqueID}e`\" x1=\"16.26\" y1=\"20.268\" x2=\"10.46\" y2=\"19.761\" gradientUnits=\"userSpaceOnUse\"><stop stop-opacity=\".4\"/><stop offset=\"1\" stop-opacity=\"0\"/></linearGradient></defs></svg>\n</template>\n\n<script>\nimport { getUniqueString } from '@/src/utils';\nimport { ICON_SIZE_MODIFIERS } from '@/src/constants';\n\nexport default {\n name: 'DtIconOffice365',\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"],"names":["_sfc_main","s","ICON_SIZE_MODIFIERS","getUniqueString"],"mappings":"2JAQAA,EAAA,CACA,KAAA,kBAEA,MAAA,CAKA,KAAA,CACA,KAAA,OACA,QAAA,MACA,UAAAC,GAAA,OAAA,KAAAC,GAAA,EAAA,SAAAD,CAAA,CACA,EAKA,UAAA,CACA,KAAA,OACA,QAAA,MACA,CACA,EAMA,MAAA,CAAA,QAAA,EAEA,SAAA,CACA,eAAA,CACA,OAAAC,EAAA,EAAA,KAAA,IAAA,CACA,EAEA,YAAA,CACA,OAAA,KAAA,UAAA,QAAA,MACA,EAEA,QAAA,CACA,OAAA,KAAA,OAAA,SAAA,GAAA,SACA,CACA,EAEA,SAAA,CACA,KAAA,MAAA,QAAA,EACA,KAAA,SAAAC,EAAAA,GACA,CACA"}