sunpeak 0.5.13 → 0.5.15
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/chatgpt/globals.css +5 -0
- package/dist/index.cjs +17 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -25
- package/dist/index.js.map +1 -1
- package/dist/style.css +10 -0
- package/package.json +1 -1
- package/template/dist/chatgpt/albums.js +1 -1
- package/template/dist/chatgpt/carousel.js +1 -1
- package/template/dist/chatgpt/counter.js +1 -1
- package/template/node_modules/.vite/deps/_metadata.json +17 -17
- package/template/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7359,8 +7359,8 @@ const Segment = ({ children, ...restProps }) => {
|
|
|
7359
7359
|
SegmentedControl.Option = Segment;
|
|
7360
7360
|
function SimpleSidebar({ children, controls }) {
|
|
7361
7361
|
return /* @__PURE__ */ jsxs("div", { className: "flex h-screen w-full overflow-hidden", children: [
|
|
7362
|
-
/* @__PURE__ */ jsx("aside", { className: "hidden md:flex w-56 flex-col border-r border-subtle bg-
|
|
7363
|
-
/* @__PURE__ */ jsx("h2", { className: "text-xs font-semibold sticky top-0 bg-
|
|
7362
|
+
/* @__PURE__ */ jsx("aside", { className: "max-md:hidden md:flex w-56 flex-col border-r border-subtle bg-sidebar h-screen overflow-y-auto", children: /* @__PURE__ */ jsx("div", { className: "p-3", children: /* @__PURE__ */ jsx("div", { className: "space-y-3", children: /* @__PURE__ */ jsxs("div", { children: [
|
|
7363
|
+
/* @__PURE__ */ jsx("h2", { className: "text-xs font-semibold sticky top-0 bg-sidebar z-10", children: "Controls" }),
|
|
7364
7364
|
controls
|
|
7365
7365
|
] }) }) }) }),
|
|
7366
7366
|
/* @__PURE__ */ jsx("main", { className: "flex-1 overflow-auto h-screen", children })
|
|
@@ -10517,7 +10517,7 @@ function Conversation({
|
|
|
10517
10517
|
{
|
|
10518
10518
|
onClick: handleClose,
|
|
10519
10519
|
"aria-label": "Close",
|
|
10520
|
-
className: "h-7 w-7 flex items-center justify-center hover:bg-subtle rounded-md transition-colors",
|
|
10520
|
+
className: "h-7 w-7 flex items-center justify-center hover:bg-subtle rounded-md transition-colors text-primary",
|
|
10521
10521
|
type: "button",
|
|
10522
10522
|
children: /* @__PURE__ */ jsx(
|
|
10523
10523
|
"svg",
|
|
@@ -10532,7 +10532,7 @@ function Conversation({
|
|
|
10532
10532
|
)
|
|
10533
10533
|
}
|
|
10534
10534
|
) }),
|
|
10535
|
-
/* @__PURE__ */ jsx("div", { className: "text-
|
|
10535
|
+
/* @__PURE__ */ jsx("div", { className: "text-primary flex items-center justify-center text-base", children: appName }),
|
|
10536
10536
|
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-end" })
|
|
10537
10537
|
] }),
|
|
10538
10538
|
/* @__PURE__ */ jsx("div", { className: "relative overflow-hidden flex-1", children: /* @__PURE__ */ jsx("div", { className: "h-full w-full max-w-full overflow-auto", children }) }),
|
|
@@ -10549,7 +10549,7 @@ function Conversation({
|
|
|
10549
10549
|
] });
|
|
10550
10550
|
}
|
|
10551
10551
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col bg-surface w-full h-full flex-1", children: [
|
|
10552
|
-
/* @__PURE__ */ jsx("header", { className: "h-12 border-b border-subtle bg-surface flex items-center px-4 text-lg", children: /* @__PURE__ */ jsx("span", { className: "text-
|
|
10552
|
+
/* @__PURE__ */ jsx("header", { className: "h-12 border-b border-subtle bg-surface flex items-center px-4 text-lg", children: /* @__PURE__ */ jsx("span", { className: "text-primary", children: "SimGPT" }) }),
|
|
10553
10553
|
/* @__PURE__ */ jsxs(
|
|
10554
10554
|
"div",
|
|
10555
10555
|
{
|
|
@@ -10557,29 +10557,21 @@ function Conversation({
|
|
|
10557
10557
|
style: { maxWidth: containerWidth },
|
|
10558
10558
|
children: [
|
|
10559
10559
|
/* @__PURE__ */ jsxs("main", { className: "flex-1 overflow-y-auto overflow-x-hidden", children: [
|
|
10560
|
+
/* @__PURE__ */ jsxs("article", { className: "text-primary w-full focus:outline-none", dir: "auto", "data-turn": "user", children: [
|
|
10561
|
+
/* @__PURE__ */ jsx("h5", { className: "sr-only", children: "You said:" }),
|
|
10562
|
+
/* @__PURE__ */ jsx("div", { className: "text-base my-auto mx-auto pt-12 px-4", children: /* @__PURE__ */ jsx("div", { className: "max-w-[48rem] mx-auto flex-1 relative flex w-full min-w-0 flex-col", children: /* @__PURE__ */ jsx("div", { className: "flex max-w-full flex-col grow", children: /* @__PURE__ */ jsx(
|
|
10563
|
+
"div",
|
|
10564
|
+
{
|
|
10565
|
+
"data-message-author-role": "user",
|
|
10566
|
+
className: "min-h-8 relative flex w-full flex-col items-end gap-2 text-start break-words whitespace-normal",
|
|
10567
|
+
children: /* @__PURE__ */ jsx("div", { className: "flex w-full flex-col gap-1 empty:hidden items-end", children: /* @__PURE__ */ jsx("div", { className: "bg-[var(--color-background-primary-soft)] relative rounded-[18px] px-4 py-3 max-w-[70%]", children: /* @__PURE__ */ jsx("div", { className: "whitespace-pre-wrap", children: userMessage }) }) })
|
|
10568
|
+
}
|
|
10569
|
+
) }) }) })
|
|
10570
|
+
] }),
|
|
10560
10571
|
/* @__PURE__ */ jsxs(
|
|
10561
10572
|
"article",
|
|
10562
10573
|
{
|
|
10563
|
-
className: "text-
|
|
10564
|
-
dir: "auto",
|
|
10565
|
-
"data-turn": "user",
|
|
10566
|
-
children: [
|
|
10567
|
-
/* @__PURE__ */ jsx("h5", { className: "sr-only", children: "You said:" }),
|
|
10568
|
-
/* @__PURE__ */ jsx("div", { className: "text-base my-auto mx-auto pt-12 px-4", children: /* @__PURE__ */ jsx("div", { className: "max-w-[48rem] mx-auto flex-1 relative flex w-full min-w-0 flex-col", children: /* @__PURE__ */ jsx("div", { className: "flex max-w-full flex-col grow", children: /* @__PURE__ */ jsx(
|
|
10569
|
-
"div",
|
|
10570
|
-
{
|
|
10571
|
-
"data-message-author-role": "user",
|
|
10572
|
-
className: "min-h-8 relative flex w-full flex-col items-end gap-2 text-start break-words whitespace-normal",
|
|
10573
|
-
children: /* @__PURE__ */ jsx("div", { className: "flex w-full flex-col gap-1 empty:hidden items-end", children: /* @__PURE__ */ jsx("div", { className: "bg-[var(--color-background-primary-soft)] relative rounded-[18px] px-4 py-3 max-w-[70%]", children: /* @__PURE__ */ jsx("div", { className: "whitespace-pre-wrap", children: userMessage }) }) })
|
|
10574
|
-
}
|
|
10575
|
-
) }) }) })
|
|
10576
|
-
]
|
|
10577
|
-
}
|
|
10578
|
-
),
|
|
10579
|
-
/* @__PURE__ */ jsxs(
|
|
10580
|
-
"article",
|
|
10581
|
-
{
|
|
10582
|
-
className: "text-foreground w-full focus:outline-none",
|
|
10574
|
+
className: "text-primary w-full focus:outline-none",
|
|
10583
10575
|
dir: "auto",
|
|
10584
10576
|
"data-turn": "assistant",
|
|
10585
10577
|
children: [
|