@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/index.js
CHANGED
|
@@ -2200,7 +2200,7 @@ function Thinking({ part, thinkingLabel = "Thinking…", completedLabel = "Thoug
|
|
|
2200
2200
|
previousState.current = part.state;
|
|
2201
2201
|
}, [isStreaming, part.state]);
|
|
2202
2202
|
return /* @__PURE__ */ jsxs("section", {
|
|
2203
|
-
className: joinClasses("text-sm text-neutral-600", className),
|
|
2203
|
+
className: joinClasses("text-sm text-neutral-600 dark:text-neutral-300", className),
|
|
2204
2204
|
"data-thinking-state": part.state,
|
|
2205
2205
|
...props,
|
|
2206
2206
|
children: [
|
|
@@ -2210,7 +2210,7 @@ function Thinking({ part, thinkingLabel = "Thinking…", completedLabel = "Thoug
|
|
|
2210
2210
|
"aria-expanded": hasContent ? isOpen : void 0,
|
|
2211
2211
|
"aria-label": hasContent ? `${isOpen ? "Collapse" : "Expand"} ${label}` : label,
|
|
2212
2212
|
disabled: !hasContent,
|
|
2213
|
-
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"),
|
|
2213
|
+
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"),
|
|
2214
2214
|
onClick: () => setIsOpen((value) => !value),
|
|
2215
2215
|
children: [
|
|
2216
2216
|
isStreaming ? /* @__PURE__ */ jsx(LoaderCircle, {
|
|
@@ -2234,7 +2234,7 @@ function Thinking({ part, thinkingLabel = "Thinking…", completedLabel = "Thoug
|
|
|
2234
2234
|
}),
|
|
2235
2235
|
hasContent && isOpen ? /* @__PURE__ */ jsx("p", {
|
|
2236
2236
|
id: contentId,
|
|
2237
|
-
className: "mt-1 whitespace-pre-wrap border-l-2 border-neutral-200 pl-3 text-sm leading-6 text-neutral-600",
|
|
2237
|
+
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",
|
|
2238
2238
|
children: part.thinking
|
|
2239
2239
|
}) : null
|
|
2240
2240
|
]
|