UNPKG

@dialpad/dialtone-icons

Version:

Dialtone icon library

1 lines 3.12 kB
{"version":3,"file":"thread.cjs","sources":["../../../src/icons/thread.vue"],"sourcesContent":["<template>\n <svg :aria-label=\"ariaLabel\" :class=\"iconSizeClass\" :data-qa=\"dataQA\" :aria-hidden=\"ariaHidden\" role=\"img\" data-name=\"Thread\" class=\"d-icon d-icon--thread\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 12 12\"><path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M2.833 3.837a.5.5 0 0 1 .5-.5h5.334a.5.5 0 1 1 0 1H3.333a.5.5 0 0 1-.5-.5Zm0 1.667a.5.5 0 0 1 .5-.5h3.334a.5.5 0 0 1 0 1H3.333a.5.5 0 0 1-.5-.5Zm0 1.666a.5.5 0 0 1 .5-.5h1.334a.5.5 0 0 1 0 1H3.333a.5.5 0 0 1-.5-.5Z\" clip-rule=\"evenodd\"/><path fill=\"currentColor\" d=\"M2.394 2.522c-.162.03-.296.087-.374.165-.077.077-.134.211-.164.374-.014.074-.02.142-.022.19v4.417a.52.52 0 0 1-.001.021v.062c.003.047.008.114.022.188.03.16.086.295.165.374.08.08.214.136.374.166.074.013.141.019.189.02.023.002.04.002.051.002l.033-.001H8.46L7.313 7.354a.5.5 0 1 1 .707-.708l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.707-.707L8.46 9.5H2.541a2.37 2.37 0 0 1-.328-.037c-.249-.046-.614-.156-.9-.442-.286-.286-.396-.651-.442-.9a2.371 2.371 0 0 1-.038-.461V3.307c0-.025 0-.06.002-.102.004-.083.014-.197.038-.327.046-.248.156-.614.44-.898.285-.285.65-.395.898-.44a2.404 2.404 0 0 1 .43-.04.51.51 0 0 1 .026 0h6.667a1.572 1.572 0 0 1 .133.003c.083.004.197.015.327.04.245.046.611.155.893.437.281.281.39.648.437.893a2.494 2.494 0 0 1 .043.46V6a.5.5 0 0 1-1 0V3.317v.002-.01c0-.012 0-.03-.002-.055a1.473 1.473 0 0 0-.023-.195c-.032-.166-.09-.3-.162-.372-.073-.073-.206-.13-.373-.162a1.492 1.492 0 0 0-.249-.025h-.01.001-6.765a1.405 1.405 0 0 0-.19.022Z\"/></svg>\n</template>\n\n<script>\nimport { ICON_SIZE_MODIFIERS } from '@/src/constants';\n\nexport default {\n name: 'DtIconThread',\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,eAEA,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"}