@plaisolutions/react 0.7.0 → 0.7.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/components/index.js +3 -3
- package/dist/components/index.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
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", className),
|
|
2157
|
+
className: joinClasses("text-sm text-neutral-600 dark:text-neutral-300", 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", hasContent ? "cursor-pointer hover:text-neutral-900" : "cursor-default"),
|
|
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 dark:focus-visible:outline-neutral-100", hasContent ? "cursor-pointer hover:text-neutral-900 dark:hover:text-neutral-100" : "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 dark:border-neutral-700 dark:text-neutral-300",
|
|
2192
2192
|
children: part.thinking
|
|
2193
2193
|
}) : null
|
|
2194
2194
|
]
|