UNPKG

vue-circle-flags

Version:

A vue component with a collection of 400+ circular SVG country flags. Wrapper of HatScripts/circle-flags

1 lines 4.56 kB
{"version":3,"file":"zw-D9FaEq4Q.cjs","names":[],"sources":["../src/components/flags/zw.vue","../src/components/flags/zw.vue"],"sourcesContent":["<template>\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n class=\"svg-circle-flags\"\r\n :viewBox=\"`${viewBoxOrigin} ${viewBoxOrigin} ${svgSize} ${svgSize}`\"\r\n >\r\n <mask id=\"aebc1ef4-29d5-473a-8b0d-ff22abe23866\">\r\n <circle cx=\"256\" cy=\"256\" r=\"256\" fill=\"#fff\" />\r\n </mask>\r\n <g mask=\"url(#aebc1ef4-29d5-473a-8b0d-ff22abe23866)\">\r\n <title v-if=\"props.flagName\">{{ props.flagName }}</title>\r\n <path fill=\"#6da544\" d=\"M31.4 0H512v512H31.4z\" />\r\n <path\r\n fill=\"#ffda44\"\r\n d=\"M57.8 73.3H512v73.3l-65.1 110 65.1 110v73.3H57.8z\"\r\n />\r\n <path fill=\"#d80027\" d=\"M132 146.6h380v73.3l-27 36 27 37.3v73.3H132z\" />\r\n <path fill=\"#eee\" d=\"M0 0v512l279.8-256z\" />\r\n <path\r\n fill=\"#d80027\"\r\n d=\"m103 189.2 16.5 51h53.6l-43.4 31.6 16.6 51-43.4-31.5-43.4 31.5 16.6-51-43.4-31.6h53.6z\"\r\n />\r\n <path\r\n fill=\"#ffda44\"\r\n d=\"m148.5 260.2-43.2-15.3-3.4-31a16.7 16.7 0 1 0-32.5 7.6l-12 12.1h21.5c0 22.4-16.7 22.4-16.7 44.7l9.2 22.2h55.7l9.3-22.2a22.2 22.2 0 0 0 1.7-6.6c8-3.2 10.4-11.5 10.4-11.5z\"\r\n />\r\n <path\r\n fill=\"#333\"\r\n d=\"m31.4 0 220 220H512v73.2H250.2L31.4 512H0l256-256L0 0z\"\r\n />\r\n </g>\r\n <g fill=\"none\">\r\n <circle\r\n cx=\"256\"\r\n cy=\"256\"\r\n :r=\"circleStroke\"\r\n fill=\"none\"\r\n :style=\"{ stroke: props.strokeColor, strokeWidth: props.strokeWidth }\"\r\n />\r\n </g>\r\n </svg>\r\n</template>\r\n<script setup lang=\"ts\">\r\n import { computed } from 'vue';\r\n\r\n const props = withDefaults(\r\n defineProps<{\r\n flagName: string | undefined;\r\n strokeColor?: string;\r\n strokeWidth?: number;\r\n }>(),\r\n {\r\n strokeColor: '#000',\r\n strokeWidth: 0\r\n }\r\n );\r\n\r\n const svgSize = computed(() => 512 + 2 * props.strokeWidth),\r\n viewBoxOrigin = computed(() => -props.strokeWidth),\r\n circleStroke = computed(() => 256 + props.strokeWidth / 2);\r\n</script>\r\n","<template>\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n class=\"svg-circle-flags\"\r\n :viewBox=\"`${viewBoxOrigin} ${viewBoxOrigin} ${svgSize} ${svgSize}`\"\r\n >\r\n <mask id=\"aebc1ef4-29d5-473a-8b0d-ff22abe23866\">\r\n <circle cx=\"256\" cy=\"256\" r=\"256\" fill=\"#fff\" />\r\n </mask>\r\n <g mask=\"url(#aebc1ef4-29d5-473a-8b0d-ff22abe23866)\">\r\n <title v-if=\"props.flagName\">{{ props.flagName }}</title>\r\n <path fill=\"#6da544\" d=\"M31.4 0H512v512H31.4z\" />\r\n <path\r\n fill=\"#ffda44\"\r\n d=\"M57.8 73.3H512v73.3l-65.1 110 65.1 110v73.3H57.8z\"\r\n />\r\n <path fill=\"#d80027\" d=\"M132 146.6h380v73.3l-27 36 27 37.3v73.3H132z\" />\r\n <path fill=\"#eee\" d=\"M0 0v512l279.8-256z\" />\r\n <path\r\n fill=\"#d80027\"\r\n d=\"m103 189.2 16.5 51h53.6l-43.4 31.6 16.6 51-43.4-31.5-43.4 31.5 16.6-51-43.4-31.6h53.6z\"\r\n />\r\n <path\r\n fill=\"#ffda44\"\r\n d=\"m148.5 260.2-43.2-15.3-3.4-31a16.7 16.7 0 1 0-32.5 7.6l-12 12.1h21.5c0 22.4-16.7 22.4-16.7 44.7l9.2 22.2h55.7l9.3-22.2a22.2 22.2 0 0 0 1.7-6.6c8-3.2 10.4-11.5 10.4-11.5z\"\r\n />\r\n <path\r\n fill=\"#333\"\r\n d=\"m31.4 0 220 220H512v73.2H250.2L31.4 512H0l256-256L0 0z\"\r\n />\r\n </g>\r\n <g fill=\"none\">\r\n <circle\r\n cx=\"256\"\r\n cy=\"256\"\r\n :r=\"circleStroke\"\r\n fill=\"none\"\r\n :style=\"{ stroke: props.strokeColor, strokeWidth: props.strokeWidth }\"\r\n />\r\n </g>\r\n </svg>\r\n</template>\r\n<script setup lang=\"ts\">\r\n import { computed } from 'vue';\r\n\r\n const props = withDefaults(\r\n defineProps<{\r\n flagName: string | undefined;\r\n strokeColor?: string;\r\n strokeWidth?: number;\r\n }>(),\r\n {\r\n strokeColor: '#000',\r\n strokeWidth: 0\r\n }\r\n );\r\n\r\n const svgSize = computed(() => 512 + 2 * props.strokeWidth),\r\n viewBoxOrigin = computed(() => -props.strokeWidth),\r\n circleStroke = computed(() => 256 + props.strokeWidth / 2);\r\n</script>\r\n"],"mappings":"wlCAyDQ,GAAA,EAAA,EAAA,cAAyB,IAAM,EAAI,EAAM,WAAW,EACxD,GAAA,EAAA,EAAA,cAA+B,CAAC,EAAM,WAAW,EACjD,GAAA,EAAA,EAAA,cAA8B,IAAM,EAAM,YAAc,CAAC"}