@dialpad/dialtone-icons
Version:
Dialtone icon library
1 lines • 3.62 kB
Source Map (JSON)
{"version":3,"file":"dialbot.cjs","sources":["../../../../src/icons/dialbot.vue"],"sourcesContent":["<template>\n <svg :aria-label=\"ariaLabel\" :class=\"iconSizeClass\" :data-qa=\"dataQA\" :aria-hidden=\"ariaHidden\" role=\"img\" data-name=\"Dialbot\" class=\"d-icon d-icon--dialbot\" viewBox=\"0 0 24 25\" xmlns=\"http://www.w3.org/2000/svg\"><g :clip-path=\"`url(#${uniqueID}a)`\"><path d=\"M12 24.5c6.627 0 12-5.373 12-12S18.627.5 12 .5 0 5.873 0 12.5s5.373 12 12 12Z\" :fill=\"`url(#${uniqueID}b)`\"/><path d=\"M17.8 18.5v.8h1.295l-.58-1.158-.715.358Zm-1.121-2.243-.624-.501-.321.4.23.459.715-.358ZM12 7.3a5.2 5.2 0 0 1 5.2 5.2h1.6A6.8 6.8 0 0 0 12 5.7v1.6Zm-5.2 5.2A5.2 5.2 0 0 1 12 7.3V5.7a6.8 6.8 0 0 0-6.8 6.8h1.6Zm5.2 5.2a5.2 5.2 0 0 1-5.2-5.2H5.2a6.8 6.8 0 0 0 6.8 6.8v-1.6Zm5.8 0H12v1.6h5.8v-1.6Zm-1.837-1.085 1.122 2.243 1.43-.716-1.12-2.243-1.432.716ZM17.2 12.5a5.175 5.175 0 0 1-1.145 3.256l1.247 1.002A6.775 6.775 0 0 0 18.8 12.5h-1.6Zm-2 1.6a4.823 4.823 0 0 1-1.491.886 4.816 4.816 0 0 1-3.418 0A4.822 4.822 0 0 1 8.8 14.1v-.8c.295.178.628.33.999.46a7.59 7.59 0 0 0 1.127.313 5.58 5.58 0 0 0 1.077.114c.338 0 .697-.038 1.078-.114a7.59 7.59 0 0 0 1.127-.313c.371-.13.702-.282.992-.46v.8Z\" fill=\"#fff\"/></g><defs><linearGradient :id=\"`${uniqueID}b`\" x1=\"-3.75\" y1=\"-4.675\" x2=\"24.75\" y2=\"24.5\" gradientUnits=\"userSpaceOnUse\"><stop offset=\".06\" stop-color=\"#10022C\"/><stop offset=\".2\" stop-color=\"#611F93\"/><stop offset=\".29\" stop-color=\"#8223A1\"/><stop offset=\".366\" stop-color=\"#9325A5\"/><stop offset=\".459\" stop-color=\"#C52599\" stop-opacity=\".9\"/><stop offset=\".564\" stop-color=\"#D52C86\"/><stop offset=\".658\" stop-color=\"#EA2F6F\"/><stop offset=\".737\" stop-color=\"#F64850\"/><stop offset=\".896\" stop-color=\"#FD6D2D\"/><stop offset=\".955\" stop-color=\"#FF9E0E\" stop-opacity=\".95\"/></linearGradient><clipPath :id=\"`${uniqueID}a`\"><path fill=\"#fff\" transform=\"translate(0 .5)\" d=\"M0 0h24v24H0z\"/></clipPath></defs></svg>\n</template>\n\n<script>\nimport { getUniqueString } from '@/src/utils';\nimport { ICON_SIZE_MODIFIERS } from '@/src/constants';\n\nexport default {\n name: 'DtIconDialbot',\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,gBAEA,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,EAAAA,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,IAAA,CACA,CACA"}