@arkyn/templates 3.0.11 → 3.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -91,6 +91,23 @@ const brazilianOptions = countries.filter((country) => country.code === "+55");
|
|
|
91
91
|
|
|
92
92
|
Used internally by `@arkyn/components`' `PhoneInput` to render the country selector and apply the correct input mask.
|
|
93
93
|
|
|
94
|
+
> **`flag` is an external CDN URL, not a vendored asset.** Every `flag` value points at
|
|
95
|
+
> [`cdn.kcak11.com/CountryFlags`](https://cdn.kcak11.com/CountryFlags) (e.g.
|
|
96
|
+
> `https://cdn.kcak11.com/CountryFlags/countries/br.svg`) — the 245 SVG flag icons are
|
|
97
|
+
> **not** bundled into this package or `@arkyn/components`. This keeps package size small,
|
|
98
|
+
> but means:
|
|
99
|
+
> - Rendering a flag (e.g. in `PhoneInput`'s country selector) requires the end user's
|
|
100
|
+
> browser to have network access to that CDN. If it's unreachable — offline, blocked by
|
|
101
|
+
> a firewall/CSP, or the CDN itself is down — the `<img>` fails to load and the flag is
|
|
102
|
+
> shown broken/blank; the rest of `PhoneInput` (typing, masking, submission) is
|
|
103
|
+
> unaffected.
|
|
104
|
+
> - If your app enforces a `Content-Security-Policy`, add `cdn.kcak11.com` to `img-src` (or
|
|
105
|
+
> `default-src`) or flags won't render.
|
|
106
|
+
> - **Customization:** `PhoneInput` does not currently accept a `countries` prop or a
|
|
107
|
+
> flag-rendering override — `flag` always comes from this package's `countries` array.
|
|
108
|
+
> To use different flag assets (e.g. self-hosted, for strict offline/CSP requirements),
|
|
109
|
+
> fork or post-process `countries` yourself; there's no supported override hook today.
|
|
110
|
+
|
|
94
111
|
### 🇧🇷 `brazilianStates`
|
|
95
112
|
|
|
96
113
|
An array of the 26 Brazilian states plus the Federal District:
|