@plaisolutions/react 0.8.1 → 0.8.3
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/components/index.js +4 -4
- package/dist/components/index.js.map +1 -1
- package/dist/index.d.ts +44 -44
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -2154,7 +2154,7 @@ function Thinking({ part, thinkingLabel = "Thinking…", completedLabel = "Thoug
|
|
|
2154
2154
|
previousState.current = part.state;
|
|
2155
2155
|
}, [isStreaming, part.state]);
|
|
2156
2156
|
return /* @__PURE__ */ jsxs("section", {
|
|
2157
|
-
className: joinClasses("text-sm text-neutral-600
|
|
2157
|
+
className: joinClasses("text-sm text-neutral-600", className),
|
|
2158
2158
|
"data-thinking-state": part.state,
|
|
2159
2159
|
...props,
|
|
2160
2160
|
children: [
|
|
@@ -2164,7 +2164,7 @@ function Thinking({ part, thinkingLabel = "Thinking…", completedLabel = "Thoug
|
|
|
2164
2164
|
"aria-expanded": hasContent ? isOpen : void 0,
|
|
2165
2165
|
"aria-label": hasContent ? `${isOpen ? "Collapse" : "Expand"} ${label}` : label,
|
|
2166
2166
|
disabled: !hasContent,
|
|
2167
|
-
className: joinClasses("inline-flex items-center gap-2 rounded-md py-1 text-left font-medium transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-neutral-950
|
|
2167
|
+
className: joinClasses("inline-flex items-center gap-2 rounded-md py-1 text-left font-medium transition-colors focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-neutral-950", hasContent ? "cursor-pointer hover:text-neutral-900" : "cursor-default"),
|
|
2168
2168
|
onClick: () => setIsOpen((value) => !value),
|
|
2169
2169
|
children: [
|
|
2170
2170
|
isStreaming ? /* @__PURE__ */ jsx(LoaderCircle, {
|
|
@@ -2188,7 +2188,7 @@ function Thinking({ part, thinkingLabel = "Thinking…", completedLabel = "Thoug
|
|
|
2188
2188
|
}),
|
|
2189
2189
|
hasContent && isOpen ? /* @__PURE__ */ jsx("p", {
|
|
2190
2190
|
id: contentId,
|
|
2191
|
-
className: "mt-1 whitespace-pre-wrap border-l-2 border-neutral-200 pl-3 text-sm leading-6 text-neutral-600
|
|
2191
|
+
className: "mt-1 whitespace-pre-wrap border-l-2 border-neutral-200 pl-3 text-sm leading-6 text-neutral-600",
|
|
2192
2192
|
children: part.thinking
|
|
2193
2193
|
}) : null
|
|
2194
2194
|
]
|
|
@@ -2481,7 +2481,7 @@ function Reload({ label = "Retry response", className, type = "button",...props
|
|
|
2481
2481
|
return /* @__PURE__ */ jsxs("button", {
|
|
2482
2482
|
type,
|
|
2483
2483
|
"aria-label": label,
|
|
2484
|
-
className: joinClasses("inline-flex size-9 shrink-0 items-center justify-center rounded-lg border border-neutral-200 bg-white text-neutral-700 transition-colors hover:bg-neutral-50 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-neutral-950 disabled:cursor-not-allowed disabled:opacity-40
|
|
2484
|
+
className: joinClasses("inline-flex size-9 shrink-0 items-center justify-center rounded-lg border border-neutral-200 bg-white text-neutral-700 transition-colors hover:bg-neutral-50 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-neutral-950 disabled:cursor-not-allowed disabled:opacity-40", className),
|
|
2485
2485
|
...props,
|
|
2486
2486
|
children: [/* @__PURE__ */ jsx(RotateCcw, {
|
|
2487
2487
|
className: "size-4",
|