From fbbac8e0b0f2d947f4b1b2646fa0145b850e21d8 Mon Sep 17 00:00:00 2001 From: Artyom Vancyan Date: Sat, 1 Nov 2025 14:11:21 +0400 Subject: [PATCH 1/2] Add the missing SVG flags for BM and KR --- development/src/phone-hooks/resources/stylesheet.json | 6 ++++++ resources/stylesheet.json | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/development/src/phone-hooks/resources/stylesheet.json b/development/src/phone-hooks/resources/stylesheet.json index c47aad1..c992444 100644 --- a/development/src/phone-hooks/resources/stylesheet.json +++ b/development/src/phone-hooks/resources/stylesheet.json @@ -145,6 +145,9 @@ ".flag.bm:not(.svg)": { "background-position": "-128px -11px" }, + ".flag.bm.svg": { + "background-image": "url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 341.33'%3e%3cpath fill='%23D80027' d='M0 0h512v341.34H0z'/%3e%3cpath fill='%230052B4' d='M0 .1h256v170.6H0z'/%3e%3cpath fill='white' d='M256 0h-22.6L160 48.9V0H96v48.9L22.6 0H0v22.7l46.1 30.7H0v64h46.1L0 148.1v22.6h22.6L96 121.8v48.9h64v-48.9l73.4 48.9H256v-22.6l-46.1-30.7H256v-64h-46.1L256 22.7z'/%3e%3cpath fill='%23D80027' d='M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z'/%3e%3cpath fill='%23D80027' d='M0 170.7v-11l62.5-42.3h22.6L7.3 170.7zM7.3.1l77.8 53.2H62.5L0 11.1V.1zM256 .1v11l-62.5 42.3h-22.6L248.7.1zM248.7 170.7l-77.8-53.3h22.6l62.5 42.3v11z'/%3e%3cg transform='translate(13 5)'%3e%3cpath fill='white' d='M303.9 94.94v99.69c0 59.81 79.75 99.69 79.75 99.69s79.75-39.88 79.75-99.69V94.94H303.9z'/%3e%3cpath fill='%232F8F22' d='M436.37 254.44H330.93c23.13 25.08 52.72 39.88 52.72 39.88s29.59-14.8 52.72-39.88z'/%3e%3ccircle fill='%2365B5D2' cx='383.65' cy='214.56' r='39.88'/%3e%3ccircle fill='%23D80027' cx='343.77' cy='194.63' r='19.94'/%3e%3ccircle fill='%23D80027' cx='423.52' cy='194.63' r='19.94'/%3e%3ccircle fill='%23D80027' cx='383.65' cy='154.75' r='19.94'/%3e%3c/g%3e%3c/svg%3e\")" + }, ".flag.bn:not(.svg)": { "background-position": "-144px -11px" }, @@ -664,6 +667,9 @@ ".flag.kr:not(.svg)": { "background-position": "-208px -66px" }, + ".flag.kr.svg": { + "background-image": "url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 600'%3e%3cpath fill='white' d='M0 0h900v600H0z'/%3e%3cg transform='rotate(-56.31)'%3e%3cg stroke='black' stroke-width='25'%3e%3cpath d='M-75 228.3H75m-150 37.5H75m-150 37.5H75M-75 778.3H75m-150 37.5H75m-150 37.5H75'/%3e%3c/g%3e%3cpath stroke='white' stroke-width='12.5' d='M0 753.3v125'/%3e%3ccircle fill='%23ca163a' cy='540.8' r='150'/%3e%3cpath fill='%230e4896' d='M0 390.8c-41.4 0-75 33.6-75 75s33.6 75 75 75 75 33.6 75 75-33.6 75-75 75c-82.8 0-150-67.2-150-150s67.2-150 150-150z'/%3e%3c/g%3e%3cg stroke='black' stroke-width='25'%3e%3cpath d='M231.56 535.73l-83.205-124.808M262.76 514.928l-83.205-124.807m114.407 104.006l-83.205-124.808M689.187 230.644l-83.205-124.807M720.39 209.843L637.184 85.036m114.407 104.006L668.386 64.234'/%3e%3c/g%3e%3cpath stroke='white' stroke-width='12.5' d='M205.6 462.897l31.202-20.8m389.981-259.989l36.444-24.296m31.202-20.801l31.202-20.801'/%3e%3c/svg%3e\")" + }, ".flag.kw:not(.svg)": { "background-position": "-224px -66px" }, diff --git a/resources/stylesheet.json b/resources/stylesheet.json index c47aad1..c992444 100644 --- a/resources/stylesheet.json +++ b/resources/stylesheet.json @@ -145,6 +145,9 @@ ".flag.bm:not(.svg)": { "background-position": "-128px -11px" }, + ".flag.bm.svg": { + "background-image": "url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 341.33'%3e%3cpath fill='%23D80027' d='M0 0h512v341.34H0z'/%3e%3cpath fill='%230052B4' d='M0 .1h256v170.6H0z'/%3e%3cpath fill='white' d='M256 0h-22.6L160 48.9V0H96v48.9L22.6 0H0v22.7l46.1 30.7H0v64h46.1L0 148.1v22.6h22.6L96 121.8v48.9h64v-48.9l73.4 48.9H256v-22.6l-46.1-30.7H256v-64h-46.1L256 22.7z'/%3e%3cpath fill='%23D80027' d='M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z'/%3e%3cpath fill='%23D80027' d='M0 170.7v-11l62.5-42.3h22.6L7.3 170.7zM7.3.1l77.8 53.2H62.5L0 11.1V.1zM256 .1v11l-62.5 42.3h-22.6L248.7.1zM248.7 170.7l-77.8-53.3h22.6l62.5 42.3v11z'/%3e%3cg transform='translate(13 5)'%3e%3cpath fill='white' d='M303.9 94.94v99.69c0 59.81 79.75 99.69 79.75 99.69s79.75-39.88 79.75-99.69V94.94H303.9z'/%3e%3cpath fill='%232F8F22' d='M436.37 254.44H330.93c23.13 25.08 52.72 39.88 52.72 39.88s29.59-14.8 52.72-39.88z'/%3e%3ccircle fill='%2365B5D2' cx='383.65' cy='214.56' r='39.88'/%3e%3ccircle fill='%23D80027' cx='343.77' cy='194.63' r='19.94'/%3e%3ccircle fill='%23D80027' cx='423.52' cy='194.63' r='19.94'/%3e%3ccircle fill='%23D80027' cx='383.65' cy='154.75' r='19.94'/%3e%3c/g%3e%3c/svg%3e\")" + }, ".flag.bn:not(.svg)": { "background-position": "-144px -11px" }, @@ -664,6 +667,9 @@ ".flag.kr:not(.svg)": { "background-position": "-208px -66px" }, + ".flag.kr.svg": { + "background-image": "url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 600'%3e%3cpath fill='white' d='M0 0h900v600H0z'/%3e%3cg transform='rotate(-56.31)'%3e%3cg stroke='black' stroke-width='25'%3e%3cpath d='M-75 228.3H75m-150 37.5H75m-150 37.5H75M-75 778.3H75m-150 37.5H75m-150 37.5H75'/%3e%3c/g%3e%3cpath stroke='white' stroke-width='12.5' d='M0 753.3v125'/%3e%3ccircle fill='%23ca163a' cy='540.8' r='150'/%3e%3cpath fill='%230e4896' d='M0 390.8c-41.4 0-75 33.6-75 75s33.6 75 75 75 75 33.6 75 75-33.6 75-75 75c-82.8 0-150-67.2-150-150s67.2-150 150-150z'/%3e%3c/g%3e%3cg stroke='black' stroke-width='25'%3e%3cpath d='M231.56 535.73l-83.205-124.808M262.76 514.928l-83.205-124.807m114.407 104.006l-83.205-124.808M689.187 230.644l-83.205-124.807M720.39 209.843L637.184 85.036m114.407 104.006L668.386 64.234'/%3e%3c/g%3e%3cpath stroke='white' stroke-width='12.5' d='M205.6 462.897l31.202-20.8m389.981-259.989l36.444-24.296m31.202-20.801l31.202-20.801'/%3e%3c/svg%3e\")" + }, ".flag.kw:not(.svg)": { "background-position": "-224px -66px" }, From b0e55df2c901be23be3f6227cef66d6db96d9e35 Mon Sep 17 00:00:00 2001 From: Artyom Vancyan Date: Sat, 1 Nov 2025 14:11:34 +0400 Subject: [PATCH 2/2] Upgrade the version to `0.1.18` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4460dff..cc1ec23 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "0.1.17", + "version": "0.1.18", "name": "react-phone-hooks", "description": "React hooks and utility functions for parsing and validating phone numbers.", "keywords": [