@zerodev/react-ui 0.0.4 → 0.0.5
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/_types/components/DataRow/index.d.ts +5 -1
- package/dist/_types/components/DataRow/index.d.ts.map +1 -1
- package/dist/_types/components/InfoCard/index.d.ts +17 -0
- package/dist/_types/components/InfoCard/index.d.ts.map +1 -0
- package/dist/_types/components/Section/MessageDetails/index.d.ts +5 -0
- package/dist/_types/components/Section/MessageDetails/index.d.ts.map +1 -0
- package/dist/_types/components/Section/index.d.ts +11 -0
- package/dist/_types/components/Section/index.d.ts.map +1 -0
- package/dist/_types/components/Tooltip/index.d.ts +43 -0
- package/dist/_types/components/Tooltip/index.d.ts.map +1 -0
- package/dist/_types/index.d.ts +5 -1
- package/dist/_types/index.d.ts.map +1 -1
- package/dist/_types/utils/common.d.ts +4 -0
- package/dist/_types/utils/common.d.ts.map +1 -1
- package/dist/index.cjs +16 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2392 -1886
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/DataRow/index.tsx +53 -27
- package/src/components/InfoCard/index.tsx +104 -0
- package/src/components/Section/MessageDetails/index.tsx +19 -0
- package/src/components/Section/index.tsx +50 -0
- package/src/components/Tooltip/index.tsx +94 -0
- package/src/index.ts +21 -1
- package/src/utils/common.ts +15 -0
- package/tailwind.config.ts +8 -0
|
@@ -11,6 +11,10 @@ export interface DataRowProps {
|
|
|
11
11
|
/** Handler for the info icon; when supplied, the icon becomes a keyboard-
|
|
12
12
|
* accessible button. Requires `info` to be true. */
|
|
13
13
|
onInfoClick?: () => void;
|
|
14
|
+
/** Tooltip text shown on hover / focus over the info icon. Rendered via
|
|
15
|
+
* `Tooltip` (Radix), so it collides / portals correctly. Ignored when
|
|
16
|
+
* `info` is false. */
|
|
17
|
+
infoTooltip?: string;
|
|
14
18
|
/** Content rendered inside the value group, before the value. Typically a
|
|
15
19
|
* small decorative or status icon (e.g. warning). */
|
|
16
20
|
leading?: ReactNode;
|
|
@@ -22,7 +26,7 @@ export interface DataRowProps {
|
|
|
22
26
|
variant?: 'default' | 'warning';
|
|
23
27
|
className?: string;
|
|
24
28
|
}
|
|
25
|
-
export declare function DataRow({ label, value, info, onInfoClick, leading, trailing, variant, className, }: DataRowProps): import("react").JSX.Element;
|
|
29
|
+
export declare function DataRow({ label, value, info, onInfoClick, infoTooltip, leading, trailing, variant, className, }: DataRowProps): import("react").JSX.Element;
|
|
26
30
|
export interface DataRowSkeletonProps {
|
|
27
31
|
/** Optional label to render as-is on the left; when omitted a pulse
|
|
28
32
|
* placeholder is drawn in its place. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DataRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DataRow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOtC,MAAM,WAAW,YAAY;IAC3B,yDAAyD;IACzD,KAAK,EAAE,MAAM,CAAA;IACb;kDAC8C;IAC9C,KAAK,EAAE,SAAS,CAAA;IAChB;oBACgB;IAChB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd;wDACoD;IACpD,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB;;0BAEsB;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;yDACqD;IACrD,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB;mCAC+B;IAC/B,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;mDAC+C;IAC/C,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,KAAK,EACL,IAAI,EACJ,WAAW,EACX,WAAW,EACX,OAAO,EACP,QAAQ,EACR,OAAmB,EACnB,SAAS,GACV,EAAE,YAAY,+BA+Fd;AAED,MAAM,WAAW,oBAAoB;IACnC;4CACwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,oBAAoB,+BAgBzE"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/** `'contained'` wraps the image in a white 44px tile; `'filled'` renders the
|
|
3
|
+
* image directly at 44px (no wrapper). */
|
|
4
|
+
export type InfoCardImageStyle = 'contained' | 'filled';
|
|
5
|
+
export interface InfoCardProps {
|
|
6
|
+
title: string;
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
imageSource?: string;
|
|
9
|
+
/** Optional small chain-badge overlay on the token icon (bottom-right).
|
|
10
|
+
* Follows the same pattern as `TxnItem`'s pair-mark. */
|
|
11
|
+
chainIconUrl?: string;
|
|
12
|
+
rightElement?: ReactNode;
|
|
13
|
+
imageStyle?: InfoCardImageStyle;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function InfoCard({ title, subtitle, imageSource, chainIconUrl, imageStyle, rightElement, className, }: InfoCardProps): import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/InfoCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC;2CAC2C;AAC3C,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,QAAQ,CAAA;AAEvD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;4DACwD;IACxD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,UAAU,CAAC,EAAE,kBAAkB,CAAA;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,UAAwB,EACxB,YAAY,EACZ,SAAS,GACV,EAAE,aAAa,+BAwBf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Section/MessageDetails/index.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAChC;AAED,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE,mBAAmB,+BAU9D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type IconName } from '../Icon';
|
|
3
|
+
export interface SectionProps {
|
|
4
|
+
title: string;
|
|
5
|
+
/** Optional leading icon (solarOrange tint). Omit for a plain title row. */
|
|
6
|
+
iconName?: IconName;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
collapsible?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function Section({ title, iconName, collapsible, children, }: SectionProps): import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Section/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAA;AAChD,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAA;AAI7C,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,QAAQ,EAAE,SAAS,CAAA;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,QAAQ,EACR,WAAW,EACX,QAAQ,GACT,EAAE,YAAY,+BA+Bd"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Tooltip as TooltipPrimitive } from 'radix-ui';
|
|
2
|
+
import type { ComponentProps, ReactNode, Ref } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Floating tooltip wrapping the Radix primitive with our token palette.
|
|
5
|
+
*
|
|
6
|
+
* The primitive is unopinionated about presentation — this file adds:
|
|
7
|
+
* - default styling (dark ink bg, white text, 8px offset, subtle shadow)
|
|
8
|
+
* - a bundled `Provider` so the common case (a single tooltip in a row)
|
|
9
|
+
* doesn't require the consumer to remember to wrap the tree
|
|
10
|
+
* - a Portal render so tooltips escape overflow-hidden ancestors
|
|
11
|
+
*
|
|
12
|
+
* For dense trees where mount overhead matters, use `TooltipProvider` at
|
|
13
|
+
* the app root and drop the internal Provider by importing `TooltipRoot`
|
|
14
|
+
* / `TooltipTrigger` / `TooltipContent` directly.
|
|
15
|
+
*/
|
|
16
|
+
export declare const TooltipProvider: import("react").FC<TooltipPrimitive.TooltipProviderProps>;
|
|
17
|
+
export declare const TooltipRoot: import("react").FC<TooltipPrimitive.TooltipProps>;
|
|
18
|
+
export declare const TooltipTrigger: import("react").ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
export declare const TooltipPortal: import("react").FC<TooltipPrimitive.TooltipPortalProps>;
|
|
20
|
+
export interface TooltipContentProps extends ComponentProps<typeof TooltipPrimitive.Content> {
|
|
21
|
+
ref?: Ref<HTMLDivElement>;
|
|
22
|
+
}
|
|
23
|
+
/** Styled content surface — dark chip, ~11.5px semibold copy, arrow-less. */
|
|
24
|
+
export declare function TooltipContent({ ref, className, sideOffset, ...props }: TooltipContentProps): import("react").JSX.Element;
|
|
25
|
+
export interface TooltipProps {
|
|
26
|
+
/** Trigger element — receives Radix's ref + event handlers via `asChild`. */
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
/** Tooltip copy. When omitted, the trigger renders without a tooltip. */
|
|
29
|
+
content?: ReactNode;
|
|
30
|
+
/** Delay before the tooltip appears on hover. Defaults to 200ms. */
|
|
31
|
+
delayDuration?: number;
|
|
32
|
+
/** Side to render on. Defaults to `top`. */
|
|
33
|
+
side?: ComponentProps<typeof TooltipPrimitive.Content>['side'];
|
|
34
|
+
/** Alignment along `side`. Defaults to `center`. */
|
|
35
|
+
align?: ComponentProps<typeof TooltipPrimitive.Content>['align'];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Opinionated one-shot tooltip. Wraps its child in a Radix Trigger and mounts
|
|
39
|
+
* a portalled content surface; no-op when `content` is empty so callers can
|
|
40
|
+
* pass an optional string without conditional rendering.
|
|
41
|
+
*/
|
|
42
|
+
export declare function Tooltip({ children, content, delayDuration, side, align, }: TooltipProps): import("react").JSX.Element;
|
|
43
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Tooltip/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,UAAU,CAAA;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAI3D;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,eAAe,2DAA4B,CAAA;AACxD,eAAO,MAAM,WAAW,mDAAwB,CAAA;AAChD,eAAO,MAAM,cAAc,oIAA2B,CAAA;AACtD,eAAO,MAAM,aAAa,yDAA0B,CAAA;AAEpD,MAAM,WAAW,mBACf,SAAQ,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC;IACvD,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;CAC1B;AAED,6EAA6E;AAC7E,wBAAgB,cAAc,CAAC,EAC7B,GAAG,EACH,SAAS,EACT,UAAc,EACd,GAAG,KAAK,EACT,EAAE,mBAAmB,+BAkBrB;AAED,MAAM,WAAW,YAAY;IAC3B,6EAA6E;IAC7E,QAAQ,EAAE,SAAS,CAAA;IACnB,yEAAyE;IACzE,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,oEAAoE;IACpE,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAA;IAC9D,oDAAoD;IACpD,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAA;CACjE;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,EACtB,QAAQ,EACR,OAAO,EACP,aAAmB,EACnB,IAAY,EACZ,KAAgB,GACjB,EAAE,YAAY,+BAcd"}
|
package/dist/_types/index.d.ts
CHANGED
|
@@ -10,18 +10,22 @@ export { Callout, type CalloutProps } from './components/Callout';
|
|
|
10
10
|
export { DataRow, type DataRowProps, DataRowSkeleton, type DataRowSkeletonProps, } from './components/DataRow';
|
|
11
11
|
export { Icon, type IconName, type IconProps, icons, } from './components/Icon';
|
|
12
12
|
export { IconButton, type IconButtonProps } from './components/IconButton';
|
|
13
|
+
export { InfoCard, type InfoCardImageStyle, type InfoCardProps, } from './components/InfoCard';
|
|
13
14
|
export { Input, type InputProps } from './components/Input';
|
|
14
15
|
export { ListItem, ListItemChevron, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemSkeleton, } from './components/ListItem';
|
|
15
16
|
export { Pill, type PillProps, PillSkeleton, } from './components/Pill';
|
|
16
17
|
export { PoweredBy } from './components/PoweredBy';
|
|
17
18
|
export { Screen } from './components/Screen';
|
|
19
|
+
export { Section, type SectionProps } from './components/Section';
|
|
20
|
+
export { MessageDetails, type MessageDetailsProps, } from './components/Section/MessageDetails';
|
|
18
21
|
export { Select, SelectContent, SelectGroup, SelectIcon, SelectItem, SelectItemText, SelectSeparator, SelectTrigger, SelectValue, } from './components/Select';
|
|
19
22
|
export { Switch, type SwitchProps } from './components/Switch';
|
|
20
23
|
export { Text, type TextProps } from './components/Text';
|
|
21
24
|
export { TokenListItem, type TokenListItemIconVariant, type TokenListItemProps, } from './components/TokenListItem';
|
|
25
|
+
export { Tooltip, TooltipContent, type TooltipContentProps, TooltipPortal, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, } from './components/Tooltip';
|
|
22
26
|
export { TopNav, type TopNavProps } from './components/TopNav';
|
|
23
27
|
export { WrappedPressable, type WrappedPressableProps, } from './components/WrappedPressable';
|
|
24
28
|
export { Wrapper, type WrapperProps, type WrapperVariant, } from './components/Wrapper';
|
|
25
29
|
export { type LockupTone, type MarkTone, ZeroDevLogo, type ZeroDevLogoProps, } from './components/ZeroDevLogo';
|
|
26
|
-
export { cn } from './utils/common';
|
|
30
|
+
export { camelCaseToTitle, cn } from './utils/common';
|
|
27
31
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,EACvB,SAAS,GACV,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,0B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tB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,gBAAgB,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { type ClassValue } from 'clsx';
|
|
2
2
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
3
|
+
/** Turn `"fromAddress"` into `"From Address"`. Leaves strings that already
|
|
4
|
+
* start with uppercase (i.e. already display-cased) untouched, so callers can
|
|
5
|
+
* pass either camelCase keys or human-readable labels through unchanged. */
|
|
6
|
+
export declare function camelCaseToTitle(str: string): string;
|
|
3
7
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/utils/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAA;AAc5C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/utils/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAA;AAc5C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC;AAED;;4EAE4E;AAC5E,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAUpD"}
|