@realminc/ui 0.11.0 → 0.11.1
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/index.js +10 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11095,8 +11095,8 @@ function oa_suggest_download_filename(filename, language, override) {
|
|
|
11095
11095
|
return base;
|
|
11096
11096
|
return `${base}.${oa_extension_for_language(language)}`;
|
|
11097
11097
|
}
|
|
11098
|
-
var oa_terminal_chrome_icon_class = "h-
|
|
11099
|
-
var oa_terminal_chrome_icon_size =
|
|
11098
|
+
var oa_terminal_chrome_icon_class = "h-5 w-5 shrink-0";
|
|
11099
|
+
var oa_terminal_chrome_icon_size = 20;
|
|
11100
11100
|
function OaCodeBlock({
|
|
11101
11101
|
code = "",
|
|
11102
11102
|
language = "text",
|
|
@@ -11125,7 +11125,7 @@ function OaCodeBlock({
|
|
|
11125
11125
|
const is_dark = variant === "dark" || variant === "dev-dark";
|
|
11126
11126
|
const is_dev = variant === "dev-dark" || variant === "dev-light";
|
|
11127
11127
|
const uses_terminal_log_colors = terminal && oa_terminal_languages.has(active_language.toLowerCase());
|
|
11128
|
-
const terminal_chrome_button_class = clsx("shrink-0 rounded-md border border-transparent bg-transparent p-
|
|
11128
|
+
const terminal_chrome_button_class = clsx("inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md border border-transparent bg-transparent p-[5px] transition-colors first:-translate-x-1", "focus-visible:outline-none focus-visible:ring-2", is_dark ? "text-white/70 hover:bg-white/10 hover:text-white active:bg-white/[0.16] focus-visible:ring-white/25" : "text-black/55 hover:bg-black/[0.06] hover:text-black active:bg-black/10 focus-visible:ring-black/20");
|
|
11129
11129
|
const handle_copy = async () => {
|
|
11130
11130
|
await navigator.clipboard.writeText(active_code);
|
|
11131
11131
|
set_copied(true);
|
|
@@ -11183,7 +11183,7 @@ function OaCodeBlock({
|
|
|
11183
11183
|
children: [
|
|
11184
11184
|
terminal && /* @__PURE__ */ jsxs7("div", {
|
|
11185
11185
|
"data-oa-codeblock-terminal": "",
|
|
11186
|
-
className: clsx("relative flex min-h-[
|
|
11186
|
+
className: clsx("relative flex min-h-[3.25rem] shrink-0 items-center justify-between pl-3 pr-5 py-2.5 sm:pl-4", is_dev && (is_dark ? "border-b-2 border-white/15" : "border-b-2 border-black/10"), !is_dev && !is_dark && "border-b border-black/[0.06]"),
|
|
11187
11187
|
children: [
|
|
11188
11188
|
/* @__PURE__ */ jsxs7("div", {
|
|
11189
11189
|
className: clsx(terminal_side_base, "justify-start gap-0.5"),
|
|
@@ -11232,7 +11232,7 @@ function OaCodeBlock({
|
|
|
11232
11232
|
on_tab_change?.(tab.id);
|
|
11233
11233
|
set_copied(false);
|
|
11234
11234
|
},
|
|
11235
|
-
className: clsx("rounded px-2.5 py-1 font-sans text-
|
|
11235
|
+
className: clsx("rounded px-2.5 py-1 font-sans text-base leading-6 font-medium transition-colors", is_dark ? is_active ? "bg-white/10 text-white" : "text-white/45 hover:text-white/75" : is_active ? "bg-black/[0.07] text-black" : "text-black/45 hover:text-black/75"),
|
|
11236
11236
|
children: tab.label
|
|
11237
11237
|
}, tab.id);
|
|
11238
11238
|
})
|
|
@@ -11241,16 +11241,17 @@ function OaCodeBlock({
|
|
|
11241
11241
|
children: title_text
|
|
11242
11242
|
}) : null,
|
|
11243
11243
|
/* @__PURE__ */ jsxs7("div", {
|
|
11244
|
-
|
|
11244
|
+
"aria-hidden": "true",
|
|
11245
|
+
className: clsx(terminal_side_base, "justify-end gap-1.5", is_dark ? "text-white/70" : "text-black/55"),
|
|
11245
11246
|
children: [
|
|
11246
11247
|
/* @__PURE__ */ jsx13("div", {
|
|
11247
|
-
className: "h-3 w-3 shrink-0 rounded-full bg-
|
|
11248
|
+
className: "h-3 w-3 shrink-0 rounded-full bg-current"
|
|
11248
11249
|
}),
|
|
11249
11250
|
/* @__PURE__ */ jsx13("div", {
|
|
11250
|
-
className: "h-3 w-3 shrink-0 rounded-full bg-
|
|
11251
|
+
className: "h-3 w-3 shrink-0 rounded-full bg-current"
|
|
11251
11252
|
}),
|
|
11252
11253
|
/* @__PURE__ */ jsx13("div", {
|
|
11253
|
-
className: "h-3 w-3 shrink-0 rounded-full bg-
|
|
11254
|
+
className: "h-3 w-3 shrink-0 rounded-full bg-current"
|
|
11254
11255
|
})
|
|
11255
11256
|
]
|
|
11256
11257
|
})
|