@yourbright/emdash-analytics-plugin 0.1.4 → 0.1.5
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/dist/admin.js +23 -13
- package/package.json +1 -1
package/dist/admin.js
CHANGED
|
@@ -187,19 +187,29 @@ function AnalyticsTabs({
|
|
|
187
187
|
{ key: "pages", label: "Pages" },
|
|
188
188
|
{ key: "settings", label: "Settings" }
|
|
189
189
|
];
|
|
190
|
-
return /* @__PURE__ */ jsx(
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
"
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
190
|
+
return /* @__PURE__ */ jsx(
|
|
191
|
+
"div",
|
|
192
|
+
{
|
|
193
|
+
role: "tablist",
|
|
194
|
+
"aria-label": "Analytics sections",
|
|
195
|
+
className: "inline-flex flex-wrap items-center gap-1 rounded-xl border border-border bg-accent/60 p-1 shadow-sm",
|
|
196
|
+
children: tabs.map((tab) => {
|
|
197
|
+
const active = tab.key === section;
|
|
198
|
+
return /* @__PURE__ */ jsx(
|
|
199
|
+
"button",
|
|
200
|
+
{
|
|
201
|
+
type: "button",
|
|
202
|
+
role: "tab",
|
|
203
|
+
"aria-selected": active,
|
|
204
|
+
onClick: () => onChange(tab.key),
|
|
205
|
+
className: `min-h-10 rounded-lg px-4 py-2 text-sm font-semibold transition focus:outline-none focus:ring-2 focus:ring-foreground/20 ${active ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:bg-background/80 hover:text-foreground"}`,
|
|
206
|
+
children: tab.label
|
|
207
|
+
},
|
|
208
|
+
tab.key
|
|
209
|
+
);
|
|
210
|
+
})
|
|
211
|
+
}
|
|
212
|
+
);
|
|
203
213
|
}
|
|
204
214
|
function ErrorBanner({ message }) {
|
|
205
215
|
if (!message) return null;
|