@dialpad/dialtone-icons
Version:
Dialtone icon library
1 lines • 3.27 kB
Source Map (JSON)
{"version":3,"file":"edit-2.cjs","sources":["../../../src/icons/edit-2.vue"],"sourcesContent":["<template>\n <svg :aria-label=\"ariaLabel\" :class=\"iconSizeClass\" :data-qa=\"dataQA\" :aria-hidden=\"ariaHidden\" role=\"img\" data-name=\"Edit 2\" class=\"d-icon d-icon--edit-2\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg\"><g :clip-path=\"`url(#${uniqueID}a)`\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8.768.732a1.914 1.914 0 0 1 2.086 3.122l-6.75 6.75a.5.5 0 0 1-.222.128l-2.75.75a.5.5 0 0 1-.614-.614l.75-2.75a.5.5 0 0 1 .129-.222l6.75-6.75a1.91 1.91 0 0 1 .62-.414Zm.382.923a.914.914 0 0 1 .997 1.491L4.5 8.793 3.207 7.5l5.647-5.646a.914.914 0 0 1 .296-.199Zm-7.437 8.632.485-1.777.302-.303L3.793 9.5l-.302.303-1.778.484Z\" fill=\"currentColor\"/></g><defs><clipPath :id=\"`${uniqueID}a`\"><path fill=\"#fff\" d=\"M0 0h12v12H0z\"/></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: 'DtIconEdit2',\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","_hoisted_1","_hoisted_2","_createElementVNode","_hoisted_3","_hoisted_5","_hoisted_6","_createElementBlock","$props","_normalizeClass","$options","_ctx","_hoisted_4","_hoisted_7"],"mappings":"qKAQKA,EAAU,CACb,KAAM,cAEN,MAAO,CAKL,KAAM,CACJ,KAAM,OACN,QAAS,MACT,UAAYC,GAAM,OAAO,KAAKC,GAAmB,EAAE,SAASD,CAAC,CAC9D,EAKD,UAAW,CACT,KAAM,OACN,QAAS,MACV,CACF,EAMD,MAAO,CAAC,QAAQ,EAEhB,SAAU,CACR,eAAiB,CACf,OAAOC,EAAmB,EAAC,KAAK,IAAI,CACrC,EAED,YAAc,CACZ,OAAQ,KAAK,UAAqB,QAAT,MAC1B,EAED,QAAU,CACR,OAAO,KAAK,OAAO,SAAS,GAAK,SAClC,CACF,EAED,SAAW,CACT,KAAK,MAAM,QAAQ,EACnB,KAAK,SAAWC,EAAAA,GACjB,CACH,EAvDAC,EAAA,CAAA,aAAA,UAAA,aAAA,EAAAC,EAAA,CAAA,WAAA,IAC0PC,EAA2Y,mBAAA,OAAA,CAArY,YAAU,UAAU,YAAU,UAAU,EAAE,sUAAsU,KAAK,4BAA3XC,GAD1PC,EAAA,CAAA,IAAA,IAC8qBF,EAAqC,mBAAA,OAAA,CAA/B,KAAK,OAAO,EAAE,6BAApBG,gDAA5qBC,EAAyuB,mBAAA,MAAA,CAAnuB,aAAYC,EAAS,UAAG,MADhCC,EAAAA,eAAA,CACuCC,EAAa,cAAkF,uBAAuB,CAAA,EAAtG,UAASA,EAAM,OAAG,cAAaA,EAAU,WAAE,KAAK,MAAM,YAAU,SAAuC,QAAQ,YAAY,MAAM,+BAA6BP,EAAAA,mBAAob,IAAA,CAAhb,oBAAmBQ,EAAQ,QAAA,MADpPC,EAAA,EAAAV,CAAA,EACyoBC,EAA4F,mBAAA,OAAA,KAAA,CAAtFA,EAAAA,mBAA+E,WAAA,CAApE,MAAOQ,EAAQ,QAAA,KADzqBE,EAAA,EAAAR,CAAA,GAAA,EAAA,GAAAJ,CAAA"}