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.71 kB
{"version":3,"file":"kikuyu-BpzGYV5o.cjs","names":[],"sources":["../src/components/flags/kikuyu.vue","../src/components/flags/kikuyu.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=\"686d08f1-4309-4949-8c58-cecedb3a4c2c\">\r\n <circle cx=\"256\" cy=\"256\" r=\"256\" fill=\"#fff\" />\r\n </mask>\r\n <g mask=\"url(#686d08f1-4309-4949-8c58-cecedb3a4c2c)\">\r\n <title v-if=\"props.flagName\">{{ props.flagName }}</title>\r\n <path fill=\"#eee\" d=\"m228 0 32 211-32 211h-32l-32-211L196 0Z\" />\r\n <path fill=\"#496e2d\" d=\"M196 0v450H0V0Z\" />\r\n <path\r\n fill=\"#eee\"\r\n d=\"m178 87-31-14-49 112L49 73 18 87l62 138-62 138 31 14 49-112 49 112 31-14-62-138Z\"\r\n />\r\n <path\r\n fill=\"#eee\"\r\n d=\"M98 80 81 96 65 224l16 130 17 16 17-16 15-131-15-127-17-16Z\"\r\n />\r\n <path\r\n fill=\"#333\"\r\n d=\"m154 148-10 76 10 78a159 159 0 0 0 22-77c0-28-10-54-22-77zm-112 0 9 74-9 80a159 159 0 0 1-22-77c0-28 10-54 22-77z\"\r\n />\r\n <path\r\n fill=\"#a2001d\"\r\n d=\"M42 148v154a269 269 0 0 0 39 52V96c-11 12-26 30-39 52zm112 0a269 269 0 0 0-39-52v258c11-12 26-30 39-52V148Z\"\r\n />\r\n <path fill=\"#d80027\" d=\"M512 0v422H228V0Z\" />\r\n <path fill=\"#333\" d=\"m0 450 86-17 75 8 55-51 41 18 106-56 149 70v90H0Z\" />\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=\"686d08f1-4309-4949-8c58-cecedb3a4c2c\">\r\n <circle cx=\"256\" cy=\"256\" r=\"256\" fill=\"#fff\" />\r\n </mask>\r\n <g mask=\"url(#686d08f1-4309-4949-8c58-cecedb3a4c2c)\">\r\n <title v-if=\"props.flagName\">{{ props.flagName }}</title>\r\n <path fill=\"#eee\" d=\"m228 0 32 211-32 211h-32l-32-211L196 0Z\" />\r\n <path fill=\"#496e2d\" d=\"M196 0v450H0V0Z\" />\r\n <path\r\n fill=\"#eee\"\r\n d=\"m178 87-31-14-49 112L49 73 18 87l62 138-62 138 31 14 49-112 49 112 31-14-62-138Z\"\r\n />\r\n <path\r\n fill=\"#eee\"\r\n d=\"M98 80 81 96 65 224l16 130 17 16 17-16 15-131-15-127-17-16Z\"\r\n />\r\n <path\r\n fill=\"#333\"\r\n d=\"m154 148-10 76 10 78a159 159 0 0 0 22-77c0-28-10-54-22-77zm-112 0 9 74-9 80a159 159 0 0 1-22-77c0-28 10-54 22-77z\"\r\n />\r\n <path\r\n fill=\"#a2001d\"\r\n d=\"M42 148v154a269 269 0 0 0 39 52V96c-11 12-26 30-39 52zm112 0a269 269 0 0 0-39-52v258c11-12 26-30 39-52V148Z\"\r\n />\r\n <path fill=\"#d80027\" d=\"M512 0v422H228V0Z\" />\r\n <path fill=\"#333\" d=\"m0 450 86-17 75 8 55-51 41 18 106-56 149 70v90H0Z\" />\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":"ypCA0DQ,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"}