@burdenoff/fe-libs 2026.531.3 → 2026.531.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"GeographySwitcher.d.ts","sourceRoot":"","sources":["../../src/chrome/GeographySwitcher.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAIjE,MAAM,WAAW,sBAAsB;IACrC,8BAA8B;IAC9B,SAAS,EAAE,WAAW,EAAE,CAAC;IACzB,sCAAsC;IACtC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,oCAAoC;IACpC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IACjD,4CAA4C;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA0OxD,CAAC"}
1
+ {"version":3,"file":"GeographySwitcher.d.ts","sourceRoot":"","sources":["../../src/chrome/GeographySwitcher.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,MAAM,WAAW,sBAAsB;IACrC,8BAA8B;IAC9B,SAAS,EAAE,WAAW,EAAE,CAAC;IACzB,sCAAsC;IACtC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,oCAAoC;IACpC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IACjD,4CAA4C;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;GAOG;AAEH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAAoB,CAAC"}
@@ -1,162 +1,4 @@
1
- import { useEffect as e, useMemo as t, useRef as n, useState as r } from "react";
2
- import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
3
1
  //#region src/chrome/GeographySwitcher.tsx
4
- var s = [
5
- "Africa",
6
- "Americas",
7
- "Asia",
8
- "Europe",
9
- "Oceania"
10
- ], c = ({ countries: c, currentCountryCode: l, onCountryChange: u, compact: d = !1 }) => {
11
- let [f, p] = r(!1), [m, h] = r(""), g = n(null), _ = n(null), v = c.find((e) => e.code === l) || null;
12
- e(() => {
13
- let e = (e) => {
14
- g.current && !g.current.contains(e.target) && p(!1);
15
- };
16
- if (f) return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
17
- }, [f]), e(() => {
18
- let e = (e) => {
19
- e.key === "Escape" && p(!1);
20
- };
21
- if (f) return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
22
- }, [f]), e(() => {
23
- f ? _.current?.focus() : h("");
24
- }, [f]);
25
- let y = t(() => {
26
- let e = m.trim().toLowerCase(), t = e ? c.filter((t) => t.name.toLowerCase().includes(e) || t.code.toLowerCase().includes(e)) : c, n = {};
27
- for (let e of t) n[e.region] || (n[e.region] = []), n[e.region].push(e);
28
- return s.filter((e) => n[e] && n[e].length > 0).map((e) => ({
29
- region: e,
30
- countries: n[e]
31
- }));
32
- }, [c, m]), b = (e) => {
33
- u && u(e), p(!1);
34
- }, x = y.length > 0;
35
- return /* @__PURE__ */ o("div", {
36
- className: "relative",
37
- ref: g,
38
- children: [/* @__PURE__ */ a("button", {
39
- onClick: () => p(!f),
40
- className: `flex items-center gap-2 px-3 py-2 rounded-button hover:bg-action-ghost-bg-hover transition-colors ${f ? "bg-action-ghost-bg-hover" : ""}`,
41
- "aria-label": "Change country",
42
- "aria-expanded": f,
43
- children: d ? /* @__PURE__ */ a("svg", {
44
- className: "size-5 text-text-primary",
45
- fill: "none",
46
- stroke: "currentColor",
47
- viewBox: "0 0 24 24",
48
- children: /* @__PURE__ */ a("path", {
49
- strokeLinecap: "round",
50
- strokeLinejoin: "round",
51
- strokeWidth: 2,
52
- d: "M3 5h12M9 3v2m1.048 9.5A18.022 18.022 0 016.412 9m6.088 9h7M11 21l5-10 5 10M12.751 5C11.783 10.77 8.07 15.61 3 18.129"
53
- })
54
- }) : /* @__PURE__ */ o(i, { children: [
55
- v && /* @__PURE__ */ a("span", {
56
- className: "text-xl flex-shrink-0",
57
- children: v.flag
58
- }),
59
- /* @__PURE__ */ a("span", {
60
- className: "text-body-sm font-medium text-text-primary uppercase",
61
- children: v?.code ?? "—"
62
- }),
63
- /* @__PURE__ */ a("svg", {
64
- className: `w-4 h-4 text-text-secondary transition-transform ${f ? "rotate-180" : ""}`,
65
- fill: "none",
66
- stroke: "currentColor",
67
- viewBox: "0 0 24 24",
68
- children: /* @__PURE__ */ a("path", {
69
- strokeLinecap: "round",
70
- strokeLinejoin: "round",
71
- strokeWidth: 2,
72
- d: "M19 9l-7 7-7-7"
73
- })
74
- })
75
- ] })
76
- }), f && /* @__PURE__ */ o("div", {
77
- className: "absolute right-0 mt-2 w-[calc(100vw-1.5rem)] sm:w-72 max-w-72 bg-bg-elevated border border-border-default rounded-lg shadow-lg z-50 py-2",
78
- children: [
79
- /* @__PURE__ */ a("div", {
80
- className: "px-4 py-2 border-b border-border-subtle",
81
- children: /* @__PURE__ */ a("p", {
82
- className: "text-body-xs font-semibold text-text-secondary uppercase",
83
- children: "Select Region"
84
- })
85
- }),
86
- /* @__PURE__ */ a("div", {
87
- className: "px-3 py-2 border-b border-border-subtle",
88
- children: /* @__PURE__ */ o("div", {
89
- className: "relative",
90
- children: [/* @__PURE__ */ a("svg", {
91
- className: "absolute left-2.5 top-1/2 -translate-y-1/2 size-4 text-text-secondary pointer-events-none",
92
- fill: "none",
93
- stroke: "currentColor",
94
- viewBox: "0 0 24 24",
95
- children: /* @__PURE__ */ a("path", {
96
- strokeLinecap: "round",
97
- strokeLinejoin: "round",
98
- strokeWidth: 2,
99
- d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
100
- })
101
- }), /* @__PURE__ */ a("input", {
102
- ref: _,
103
- type: "text",
104
- value: m,
105
- onChange: (e) => h(e.target.value),
106
- placeholder: "Search countries...",
107
- className: "w-full pl-8 pr-3 py-1.5 text-body-sm bg-bg-surface border border-border-default rounded-md text-text-primary placeholder:text-text-secondary focus:outline-none focus:ring-1 focus:ring-action-primary-bg"
108
- })]
109
- })
110
- }),
111
- /* @__PURE__ */ a("div", {
112
- className: "py-1 max-h-80 overflow-y-auto",
113
- children: x ? y.map(({ region: e, countries: t }) => /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("div", {
114
- className: "px-4 py-1.5",
115
- children: /* @__PURE__ */ a("p", {
116
- className: "text-body-xs font-semibold text-text-secondary uppercase tracking-wide",
117
- children: e
118
- })
119
- }), t.map((e) => /* @__PURE__ */ o("button", {
120
- onClick: () => b(e),
121
- className: `w-full flex items-center gap-3 px-4 py-2.5 text-body-sm transition-colors ${e.code === l ? "bg-action-ghost-bg-hover text-text-primary font-medium" : "text-text-primary hover:bg-action-ghost-bg-hover"}`,
122
- children: [
123
- /* @__PURE__ */ a("span", {
124
- className: "text-xl flex-shrink-0",
125
- children: e.flag
126
- }),
127
- /* @__PURE__ */ a("div", {
128
- className: "flex-1 text-left min-w-0",
129
- children: /* @__PURE__ */ a("p", {
130
- className: "font-medium truncate",
131
- children: e.name
132
- })
133
- }),
134
- /* @__PURE__ */ a("span", {
135
- className: "text-xs text-text-secondary flex-shrink-0",
136
- children: e.code
137
- }),
138
- e.code === l && /* @__PURE__ */ a("svg", {
139
- className: "size-5 text-action-primary-bg flex-shrink-0",
140
- fill: "currentColor",
141
- viewBox: "0 0 20 20",
142
- children: /* @__PURE__ */ a("path", {
143
- fillRule: "evenodd",
144
- d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
145
- clipRule: "evenodd"
146
- })
147
- })
148
- ]
149
- }, e.code))] }, e)) : /* @__PURE__ */ a("div", {
150
- className: "px-4 py-6 text-center",
151
- children: /* @__PURE__ */ a("p", {
152
- className: "text-body-sm text-text-secondary",
153
- children: "No countries found"
154
- })
155
- })
156
- })
157
- ]
158
- })]
159
- });
160
- };
2
+ var e = (e) => null;
161
3
  //#endregion
162
- export { c as GeographySwitcher };
4
+ export { e as GeographySwitcher };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/fe-libs",
3
- "version": "2026.531.3",
3
+ "version": "2026.531.4",
4
4
  "description": "Burdenoff frontend primitives and domain libraries",
5
5
  "type": "module",
6
6
  "imports": {