@particle-academy/react-fancy 4.4.0 → 4.4.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.cjs +13 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2518,9 +2518,14 @@ var Button = forwardRef(
|
|
|
2518
2518
|
{
|
|
2519
2519
|
"data-react-fancy-button-label": "",
|
|
2520
2520
|
className: cn(
|
|
2521
|
-
//
|
|
2522
|
-
//
|
|
2523
|
-
|
|
2521
|
+
// A button label must stay on one line. When a host flex layout
|
|
2522
|
+
// squeezes the button, `whitespace-nowrap` keeps the label and any
|
|
2523
|
+
// trailing icon/arrow together instead of wrapping and stacking the
|
|
2524
|
+
// icon below it (the classic "send" over "→" break). `min-w-0` keeps
|
|
2525
|
+
// the span shrinkable so `truncate`/ellipsis still works; multi-line
|
|
2526
|
+
// wrapping is opt-in via `labelClassName` ("whitespace-normal") or
|
|
2527
|
+
// the `responsive` prop.
|
|
2528
|
+
"min-w-0 whitespace-nowrap",
|
|
2524
2529
|
// `responsive` collapses to icon-only when squeezed, while keeping
|
|
2525
2530
|
// the label readable to screen readers.
|
|
2526
2531
|
responsive && "sr-only sm:not-sr-only",
|
|
@@ -12893,13 +12898,14 @@ function PromptInput({
|
|
|
12893
12898
|
{
|
|
12894
12899
|
variant: "ghost",
|
|
12895
12900
|
size: "sm",
|
|
12901
|
+
className: "shrink-0",
|
|
12896
12902
|
onClick: () => {
|
|
12897
12903
|
},
|
|
12898
12904
|
children: "\u{1F4CE} attach"
|
|
12899
12905
|
}
|
|
12900
12906
|
) }),
|
|
12901
|
-
/* @__PURE__ */ jsxs("div", { className: "ml-2 flex items-center gap-1.5", children: [
|
|
12902
|
-
/* @__PURE__ */ jsx("div", { className: "h-1.5 w-24 overflow-hidden rounded-full bg-zinc-200 dark:bg-zinc-700", children: /* @__PURE__ */ jsx(
|
|
12907
|
+
/* @__PURE__ */ jsxs("div", { className: "ml-2 flex min-w-0 items-center gap-1.5 overflow-hidden", children: [
|
|
12908
|
+
/* @__PURE__ */ jsx("div", { className: "h-1.5 w-24 shrink overflow-hidden rounded-full bg-zinc-200 dark:bg-zinc-700", children: /* @__PURE__ */ jsx(
|
|
12903
12909
|
"div",
|
|
12904
12910
|
{
|
|
12905
12911
|
className: "h-full rounded-full transition-all",
|
|
@@ -12912,7 +12918,7 @@ function PromptInput({
|
|
|
12912
12918
|
fmtTokens(budgetTokens)
|
|
12913
12919
|
] })
|
|
12914
12920
|
] }),
|
|
12915
|
-
/* @__PURE__ */ jsxs("div", { className: "ml-auto flex items-center gap-2", children: [
|
|
12921
|
+
/* @__PURE__ */ jsxs("div", { className: "ml-auto flex shrink-0 items-center gap-2", children: [
|
|
12916
12922
|
showHint && /* @__PURE__ */ jsxs("span", { className: "hidden text-[10px] text-zinc-500 sm:inline", children: [
|
|
12917
12923
|
/* @__PURE__ */ jsx("kbd", { className: "rounded border border-zinc-300 bg-zinc-50 px-1 py-0.5 font-mono text-[9px] text-zinc-700 dark:border-zinc-700 dark:bg-zinc-800 dark:text-zinc-300", children: "\u2318" }),
|
|
12918
12924
|
" ",
|
|
@@ -12922,7 +12928,7 @@ function PromptInput({
|
|
|
12922
12928
|
" ",
|
|
12923
12929
|
"to send"
|
|
12924
12930
|
] }),
|
|
12925
|
-
/* @__PURE__ */ jsx(Button, { color: "violet", size: "sm", onClick: submit, children: "send \u2192" })
|
|
12931
|
+
/* @__PURE__ */ jsx(Button, { color: "violet", size: "sm", className: "shrink-0", onClick: submit, children: "send \u2192" })
|
|
12926
12932
|
] })
|
|
12927
12933
|
] })
|
|
12928
12934
|
]
|