mtxuilib 0.0.552 → 0.0.554

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.
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { Atom } from "jotai";
3
+ export declare const DebugAtomValue: (props: {
4
+ title?: string;
5
+ atom: Atom<unknown>;
6
+ }) => import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ "use client";import{jsx as t,jsxs as o}from"react/jsx-runtime";import{useAtom as r}from"jotai";import{Dialog as n,DialogContent as g,DialogTitle as m,DialogTrigger as s}from"../../ui/dialog";import{MtButton as u}from"../../ui/ui-mt/Button";const v=l=>{const{title:e,atom:i}=l,[a]=r(i);return o(n,{children:[t(s,{asChild:!0,children:t(u,{variant:"outline",children:e||"debug"})}),o(g,{className:"max-h-lvh w-full overflow-scroll bg-red-100",children:[t(m,{children:"atom value viewer"}),t("pre",{className:" text-xs",children:JSON.stringify(a,null,2)})]})]})};export{v as DebugAtomValue};