UNPKG

@dialpad/dialtone-icons

Version:

Dialtone icon library

1 lines 2.73 kB
{"version":3,"file":"cloud-cog.cjs","sources":["../../../src/icons/cloud-cog.vue"],"sourcesContent":["<template>\n <svg :aria-label=\"ariaLabel\" :class=\"iconSizeClass\" :data-qa=\"dataQA\" :aria-hidden=\"ariaHidden\" role=\"img\" data-name=\"Cloud Cog\" class=\"d-icon d-icon--cloud-cog\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M4.179 1.007A4 4 0 0 1 8.205 3.5h.552a2.75 2.75 0 0 1 1.527 5.011.5.5 0 1 1-.569-.822A1.75 1.75 0 0 0 8.746 4.5H7.85a.5.5 0 0 1-.48-.358A3 3 0 1 0 2.357 7.1a.5.5 0 1 1-.712.702A4 4 0 0 1 4.18 1.008Z\" fill=\"currentColor\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M6 6a.5.5 0 0 1 .5.5v.063c.184.047.357.12.516.214l.13-.13a.5.5 0 1 1 .708.707l-.13.13c.093.16.166.332.213.516H8a.5.5 0 0 1 0 1h-.063c-.047.184-.12.357-.214.516l.13.13a.5.5 0 0 1-.707.708l-.13-.13a2.02 2.02 0 0 1-.516.213v.063a.5.5 0 1 1-1 0v-.063a1.988 1.988 0 0 1-.516-.214l-.13.13a.5.5 0 0 1-.708-.707l.13-.13A1.988 1.988 0 0 1 4.064 9H4a.5.5 0 0 1 0-1h.063c.047-.184.12-.357.214-.516l-.02-.02-.11-.11a.5.5 0 0 1 .707-.708l.13.13a2.02 2.02 0 0 1 .516-.213V6.5A.5.5 0 0 1 6 6ZM5 8.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z\" fill=\"currentColor\"/></svg>\n</template>\n\n<script>\nimport { ICON_SIZE_MODIFIERS } from '@/src/constants';\n\nexport default {\n name: 'DtIconCloudCog',\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"],"mappings":"+GAOAA,EAAA,CACA,KAAA,iBAEA,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,CACA,CACA"}