UNPKG

@dialpad/dialtone-icons

Version:
1 lines 2.69 kB
{"version":3,"file":"gif-filled.cjs","names":[],"sources":["../../../../src/icons/gif-filled.vue"],"sourcesContent":["<template>\n <svg :aria-label=\"ariaLabel\" :class=\"iconSizeClass\" :data-qa=\"dataQA\" :aria-hidden=\"ariaHidden\" role=\"img\" data-name=\"Gif Filled\" class=\"d-icon d-icon--gif-filled\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2.5 1.063c-.794 0-1.437.644-1.437 1.437v7c0 .794.643 1.438 1.437 1.438h7c.794 0 1.438-.644 1.438-1.438v-7c0-.793-.644-1.437-1.438-1.437h-7ZM4 4.313c-.794 0-1.437.644-1.437 1.437v.5c0 .794.643 1.438 1.437 1.438h.5a.437.437 0 0 0 .438-.438V6a.437.437 0 0 0-.438-.437h-.25a.437.437 0 0 0-.187.833v.417H4a.563.563 0 0 1-.562-.563v-.5c0-.31.252-.562.562-.562h.5a.437.437 0 1 0 0-.875H4Zm2.438.437a.437.437 0 1 0-.875 0v2.5a.438.438 0 0 0 .875 0v-2.5ZM7.5 4.313a.437.437 0 0 0-.437.437v2.5a.438.438 0 0 0 .875 0v-.812H8.5a.437.437 0 1 0 0-.875h-.562v-.375H9a.437.437 0 1 0 0-.875H7.5Z\" fill=\"currentColor\"/></svg>\n</template>\n\n<script>\nimport { ICON_SIZE_MODIFIERS } from '@/src/constants';\n\nexport default {\n name: 'DtIconGifFilled',\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"],"mappings":"+HAOA,IAAK,EAAU,CACb,KAAM,kBAEN,MAAO,CAKL,KAAM,CACJ,KAAM,OACN,QAAS,MACT,UAAY,GAAM,OAAO,KAAK,EAAA,EAAoB,CAAC,SAAS,EAAE,CAC/D,CAKD,UAAW,CACT,KAAM,OACN,QAAS,IAAA,GACV,CACF,CAMD,MAAO,CAAC,SAAS,CAEjB,SAAU,CACR,eAAiB,CACf,OAAO,EAAA,EAAoB,KAAK,OAGlC,YAAc,CACZ,OAAQ,KAAK,UAAqB,QAAT,QAG3B,QAAU,CACR,OAAO,KAAK,OAAO,YAAc,WAEpC,CAED,SAAW,CACT,KAAK,MAAM,SAAS,EAEvB,mHApD62B,MAAA,CAAt2B,aAAY,EAAA,UAAY,OAAA,EAAA,EAAA,gBAAK,CAAE,EAAA,cAAmG,4BAA2B,CAAA,CAA9G,UAAS,EAAA,OAAS,cAAa,EAAA,WAAY,KAAK,MAAM,YAAU,aAA+C,QAAQ,YAAY,MAAM,wEAAwqB,OAAA,CAAroB,YAAU,UAAU,YAAU,UAAU,EAAE,skBAAskB,KAAK"}