@dialpad/dialtone-icons
Version:
Dialtone icon library
1 lines • 2.93 kB
Source Map (JSON)
{"version":3,"file":"front.cjs","sources":["../../../src/icons/front.vue"],"sourcesContent":["<template>\n <svg :aria-label=\"ariaLabel\" :class=\"iconSizeClass\" :data-qa=\"dataQA\" :aria-hidden=\"ariaHidden\" role=\"img\" data-name=\"Front\" class=\"d-icon d-icon--front\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.223 5.45a3.302 3.302 0 0 1 3.302-3.302h10.59v4.7a1.65 1.65 0 0 1-1.65 1.651h-4.33a1.588 1.588 0 0 0-1.561 1.566v10.279c0 .912-.74 1.65-1.651 1.65h-4.7V5.452z\" fill=\"#001B38\"/><path d=\"M8.914 10.127a4.287 4.287 0 1 0 8.574 0 4.287 4.287 0 0 0-8.574 0z\" :fill=\"`url(#${uniqueID}a)`\"/><path opacity=\".5\" d=\"M8.914 10.127a4.287 4.287 0 1 0 8.574 0 4.287 4.287 0 0 0-8.574 0z\" :fill=\"`url(#${uniqueID}b)`\"/><defs><linearGradient :id=\"`${uniqueID}a`\" x1=\"10.182\" y1=\"6.913\" x2=\"16.629\" y2=\"13.404\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#FF0057\" stop-opacity=\".16\"/><stop offset=\".861\" stop-color=\"#FF0057\"/></linearGradient><linearGradient :id=\"`${uniqueID}b`\" x1=\"10.182\" y1=\"6.913\" x2=\"16.629\" y2=\"13.404\" gradientUnits=\"userSpaceOnUse\"><stop stop-color=\"#FF0057\" stop-opacity=\".16\"/><stop offset=\".861\" stop-color=\"#FF0057\"/></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: 'DtIconFront',\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":"kJAQAA,EAAA,CACA,KAAA,cAEA,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"}