@particle-academy/react-fancy 4.4.1 → 4.4.2
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/README.md +2 -0
- package/dist/index.cjs +13 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -9
- package/dist/index.d.ts +13 -9
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @particle-academy/react-fancy
|
|
2
2
|
|
|
3
|
+
[](https://particle.academy)
|
|
4
|
+
|
|
3
5
|
React UI component library for **Human+ UX** — controlled, agent-bridgeable primitives that humans and agents share. Every component exposes `value` / `onChange`, stable handles, and JSON-friendly props so MCP bridges can drive the UI without DOM scraping.
|
|
4
6
|
|
|
5
7
|
## Inertia.js integration
|
package/dist/index.cjs
CHANGED
|
@@ -5524,7 +5524,7 @@ function TableRow({
|
|
|
5524
5524
|
hasTray && expanded && /* @__PURE__ */ jsxRuntime.jsx("tr", { className: "bg-zinc-50/50 dark:bg-zinc-800/30", children: /* @__PURE__ */ jsxRuntime.jsx("td", { colSpan: 999, children: tray }) })
|
|
5525
5525
|
] });
|
|
5526
5526
|
}
|
|
5527
|
-
function TableCell({ children, className, header }) {
|
|
5527
|
+
function TableCell({ children, className, header, ...rest }) {
|
|
5528
5528
|
const Tag = header ? "th" : "td";
|
|
5529
5529
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5530
5530
|
Tag,
|
|
@@ -5535,6 +5535,7 @@ function TableCell({ children, className, header }) {
|
|
|
5535
5535
|
header && "text-left font-medium text-zinc-500 dark:text-zinc-400",
|
|
5536
5536
|
className
|
|
5537
5537
|
),
|
|
5538
|
+
...rest,
|
|
5538
5539
|
children
|
|
5539
5540
|
}
|
|
5540
5541
|
);
|
|
@@ -7930,7 +7931,8 @@ function ModalRoot({
|
|
|
7930
7931
|
open,
|
|
7931
7932
|
onClose,
|
|
7932
7933
|
size = "md",
|
|
7933
|
-
className
|
|
7934
|
+
className,
|
|
7935
|
+
...rest
|
|
7934
7936
|
}) {
|
|
7935
7937
|
const panelRef = react.useRef(null);
|
|
7936
7938
|
const close = react.useCallback(() => onClose(), [onClose]);
|
|
@@ -7971,6 +7973,7 @@ function ModalRoot({
|
|
|
7971
7973
|
"data-react-fancy-modal": "",
|
|
7972
7974
|
role: "dialog",
|
|
7973
7975
|
"aria-modal": "true",
|
|
7976
|
+
...rest,
|
|
7974
7977
|
className: cn(
|
|
7975
7978
|
"relative flex w-full flex-col overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-xl dark:border-zinc-700 dark:bg-zinc-900",
|
|
7976
7979
|
SIZE_MAP[size],
|
|
@@ -8338,7 +8341,9 @@ function TabsTab({
|
|
|
8338
8341
|
children,
|
|
8339
8342
|
value,
|
|
8340
8343
|
disabled = false,
|
|
8341
|
-
className
|
|
8344
|
+
className,
|
|
8345
|
+
onClick,
|
|
8346
|
+
...rest
|
|
8342
8347
|
}) {
|
|
8343
8348
|
const { activeTab, setActiveTab, variant } = useTabs();
|
|
8344
8349
|
const isActive = activeTab === value;
|
|
@@ -8351,7 +8356,11 @@ function TabsTab({
|
|
|
8351
8356
|
disabled,
|
|
8352
8357
|
"aria-selected": isActive,
|
|
8353
8358
|
tabIndex: isActive ? 0 : -1,
|
|
8354
|
-
onClick: () =>
|
|
8359
|
+
onClick: (e) => {
|
|
8360
|
+
if (!disabled) setActiveTab(value);
|
|
8361
|
+
onClick?.(e);
|
|
8362
|
+
},
|
|
8363
|
+
...rest,
|
|
8355
8364
|
className: cn(
|
|
8356
8365
|
"text-sm font-medium transition-colors",
|
|
8357
8366
|
disabled && "cursor-not-allowed opacity-50",
|