@exponential_app/eui-react 0.0.0-stage → 0.2.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/LICENSE +201 -0
- package/NOTICE +54 -0
- package/README.md +360 -2
- package/dist/chunks/index-5yzzfez5.js +126 -0
- package/dist/chunks/index-5yzzfez5.js.map +11 -0
- package/dist/exponential-ui-react.css +2 -0
- package/dist/index.js +7700 -0
- package/dist/index.js.map +46 -0
- package/dist/primitives/index.js +3154 -0
- package/dist/primitives/index.js.map +59 -0
- package/dist/types/context.d.ts +96 -0
- package/dist/types/extensions.d.ts +25 -0
- package/dist/types/form.d.ts +65 -0
- package/dist/types/host-surface.d.ts +32 -0
- package/dist/types/host.d.ts +37 -0
- package/dist/types/icons.d.ts +31 -0
- package/dist/types/index.d.ts +37 -0
- package/dist/types/inputs.d.ts +25 -0
- package/dist/types/list.d.ts +31 -0
- package/dist/types/live.d.ts +18 -0
- package/dist/types/markdown.d.ts +9 -0
- package/dist/types/media.d.ts +15 -0
- package/dist/types/natives/actions.d.ts +10 -0
- package/dist/types/natives/bound.d.ts +2 -0
- package/dist/types/natives/chart.d.ts +2 -0
- package/dist/types/natives/chips.d.ts +5 -0
- package/dist/types/natives/choice-tiles.d.ts +2 -0
- package/dist/types/natives/code.d.ts +2 -0
- package/dist/types/natives/dates.d.ts +29 -0
- package/dist/types/natives/feedback.d.ts +29 -0
- package/dist/types/natives/index.d.ts +4 -0
- package/dist/types/natives/inputs.d.ts +19 -0
- package/dist/types/natives/layout.d.ts +15 -0
- package/dist/types/natives/listbox.d.ts +15 -0
- package/dist/types/natives/media.d.ts +13 -0
- package/dist/types/natives/nav.d.ts +17 -0
- package/dist/types/natives/overlays.d.ts +17 -0
- package/dist/types/natives/qr.d.ts +3 -0
- package/dist/types/natives/resizable.d.ts +2 -0
- package/dist/types/natives/search.d.ts +46 -0
- package/dist/types/natives/select.d.ts +8 -0
- package/dist/types/natives/shared.d.ts +35 -0
- package/dist/types/natives/table.d.ts +5 -0
- package/dist/types/natives/text.d.ts +4 -0
- package/dist/types/node-view.d.ts +73 -0
- package/dist/types/platform.d.ts +12 -0
- package/dist/types/primitives/alert-dialog.d.ts +14 -0
- package/dist/types/primitives/alert.d.ts +7 -0
- package/dist/types/primitives/avatar-color.d.ts +1 -0
- package/dist/types/primitives/avatar.d.ts +8 -0
- package/dist/types/primitives/badge.d.ts +8 -0
- package/dist/types/primitives/breadcrumb.d.ts +11 -0
- package/dist/types/primitives/button.d.ts +7 -0
- package/dist/types/primitives/calendar.d.ts +8 -0
- package/dist/types/primitives/card.d.ts +9 -0
- package/dist/types/primitives/checkbox.d.ts +4 -0
- package/dist/types/primitives/choice-tiles.d.ts +60 -0
- package/dist/types/primitives/cn.d.ts +1 -0
- package/dist/types/primitives/code-block.d.ts +32 -0
- package/dist/types/primitives/collapsible.d.ts +6 -0
- package/dist/types/primitives/command.d.ts +49 -0
- package/dist/types/primitives/context-ring.d.ts +15 -0
- package/dist/types/primitives/dialog-arms.d.ts +2 -0
- package/dist/types/primitives/dialog.d.ts +32 -0
- package/dist/types/primitives/disclosure-header.d.ts +7 -0
- package/dist/types/primitives/dock-card.d.ts +43 -0
- package/dist/types/primitives/dropdown-menu.d.ts +26 -0
- package/dist/types/primitives/empty-state.d.ts +19 -0
- package/dist/types/primitives/glass-card.d.ts +3 -0
- package/dist/types/primitives/hover-card.d.ts +6 -0
- package/dist/types/primitives/icon-disc.d.ts +10 -0
- package/dist/types/primitives/index.d.ts +52 -0
- package/dist/types/primitives/input.d.ts +4 -0
- package/dist/types/primitives/kbd.d.ts +4 -0
- package/dist/types/primitives/label.d.ts +4 -0
- package/dist/types/primitives/menu-surface.d.ts +1 -0
- package/dist/types/primitives/meter.d.ts +10 -0
- package/dist/types/primitives/popover.d.ts +7 -0
- package/dist/types/primitives/progress-ring.d.ts +12 -0
- package/dist/types/primitives/progress.d.ts +4 -0
- package/dist/types/primitives/scroll-area.d.ts +5 -0
- package/dist/types/primitives/segmented-control.d.ts +25 -0
- package/dist/types/primitives/select.d.ts +15 -0
- package/dist/types/primitives/separator.d.ts +4 -0
- package/dist/types/primitives/sheet-chrome.d.ts +13 -0
- package/dist/types/primitives/sheet.d.ts +18 -0
- package/dist/types/primitives/skeleton.d.ts +3 -0
- package/dist/types/primitives/spinner.d.ts +8 -0
- package/dist/types/primitives/switch.d.ts +6 -0
- package/dist/types/primitives/table.d.ts +11 -0
- package/dist/types/primitives/tabs.d.ts +8 -0
- package/dist/types/primitives/textarea.d.ts +3 -0
- package/dist/types/primitives/toast.d.ts +16 -0
- package/dist/types/primitives/tooltip.d.ts +7 -0
- package/dist/types/primitives/truncate.d.ts +1 -0
- package/dist/types/primitives/use-media-query.d.ts +3 -0
- package/dist/types/primitives/use-mobile.d.ts +1 -0
- package/dist/types/primitives/use-sheet-drag.d.ts +20 -0
- package/dist/types/primitives/voice-wave.d.ts +22 -0
- package/dist/types/surface.d.ts +117 -0
- package/dist/types/use-surface.d.ts +57 -0
- package/package.json +60 -4
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { arr, bool, builtinIconName, failingCheck, failingChecks, formatFileSize, num, objects, phrase, str } from "@exponential_app/eui/web";
|
|
3
|
+
import type { UiNode } from "@exponential_app/eui";
|
|
4
|
+
export type Attrs = Record<string, unknown>;
|
|
5
|
+
export { str, num, bool, arr, objects, phrase, formatFileSize, failingChecks, failingCheck, builtinIconName };
|
|
6
|
+
export type PartFn = ((name: string, ...states: (string | false | undefined | null)[]) => Attrs) & {
|
|
7
|
+
/** The same with part-level recipe props (`{kind: "keyword"}`). */
|
|
8
|
+
with: (name: string, extra: Record<string, unknown>, ...states: (string | false | undefined | null)[]) => Attrs;
|
|
9
|
+
/** A PER-ITEM placed part (round 2 §6): `data-xui-id="<id>.<part>.<item>"`
|
|
10
|
+
* (`item` = an index or a row key: `tab.1`, `cell.alice.0`). */
|
|
11
|
+
at: (name: string, item: string | number, ...states: (string | false | undefined | null)[]) => Attrs;
|
|
12
|
+
/** `at` with part-level recipe props. */
|
|
13
|
+
atWith: (name: string, item: string | number, extra: Record<string, unknown>, ...states: (string | false | undefined | null)[]) => Attrs;
|
|
14
|
+
/** The painted id of the node (`<id><instance suffix>`). */
|
|
15
|
+
domId: string;
|
|
16
|
+
};
|
|
17
|
+
/** `part(name, …states)` → the attributes of one part element of `node`. */
|
|
18
|
+
export declare function useParts(node: UiNode, props: Record<string, unknown>): PartFn;
|
|
19
|
+
export declare function TextPart({ part, text, as: Tag, id, htmlFor }: {
|
|
20
|
+
part: Attrs;
|
|
21
|
+
text: unknown;
|
|
22
|
+
as?: `span` | `label` | `div` | `p`;
|
|
23
|
+
id?: string;
|
|
24
|
+
htmlFor?: string;
|
|
25
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
26
|
+
export declare function Hidden({ children }: {
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
/** The glyph of an owned part (`CodeBlock.copy`, `Table.sortIcon.asc`),
|
|
30
|
+
* through the host's registry first, then the renderer's fallbacks. */
|
|
31
|
+
export declare function BuiltinIcon({ slot, className, size }: {
|
|
32
|
+
slot: string;
|
|
33
|
+
className?: string;
|
|
34
|
+
size?: number;
|
|
35
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type NativeProps } from "../node-view.js";
|
|
2
|
+
import { sortRows, type TableColumn } from "@exponential_app/eui/web";
|
|
3
|
+
export { sortRows };
|
|
4
|
+
export type { TableColumn };
|
|
5
|
+
export declare function TableNative({ node, props, rootProps, emit, scope, domId }: NativeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NativeProps } from "../node-view.js";
|
|
2
|
+
export declare function TextNative({ props, rootProps }: NativeProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function MarkdownNative({ props, rootProps }: NativeProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function IconNative({ props, rootProps }: NativeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Fragment, type CSSProperties } from "react";
|
|
2
|
+
import type { UiNode } from "@exponential_app/eui";
|
|
3
|
+
import { type SurfaceContextValue } from "./context.js";
|
|
4
|
+
import type { ExtensionComponentProps } from "./host.js";
|
|
5
|
+
export interface NativeProps extends ExtensionComponentProps {
|
|
6
|
+
/** The data scope (template item) this node renders under. */
|
|
7
|
+
scope: string;
|
|
8
|
+
/** The node's id as painted (`data-xui-id`): its id + the template
|
|
9
|
+
* instance suffix. DOM ids derive from it (`<id>.error`). */
|
|
10
|
+
domId: string;
|
|
11
|
+
}
|
|
12
|
+
/** The id a node's style rules are keyed by. */
|
|
13
|
+
export declare function styleIdOf(node: UiNode): string;
|
|
14
|
+
/** The attributes every painted root carries. */
|
|
15
|
+
export declare function useRootProps(node: UiNode, props: Record<string, unknown>, domId?: string, recipeProps?: Record<string, unknown>, style?: CSSProperties): Record<string, unknown>;
|
|
16
|
+
/** `className` on top of the renderer's own. */
|
|
17
|
+
export declare function withClass(rootProps: Record<string, unknown>, ...extra: (string | false | undefined | null)[]): Record<string, unknown>;
|
|
18
|
+
/** A painter's own inline style merged over the root's (the dynamic style
|
|
19
|
+
* variables live there and must survive). */
|
|
20
|
+
export declare function mergeStyle(rootProps: Record<string, unknown>, style: CSSProperties | undefined): CSSProperties | undefined;
|
|
21
|
+
/** Forced states on a part element (`data-xs`). */
|
|
22
|
+
export declare function forced(states: readonly string[], ...extra: (string | false | undefined)[]): string | undefined;
|
|
23
|
+
/** Run one of a node's actions (round-1 contract §1 `runAction`): the
|
|
24
|
+
* function args AND the event context resolve against the data WITH the
|
|
25
|
+
* component's own write applied (round 4 `withOwnWrites`: `own` = what
|
|
26
|
+
* the component just wrote, by prop, so the context of an Input's
|
|
27
|
+
* `change` reads the text just typed, even before React has re-rendered
|
|
28
|
+
* the write), then `set` writes (relative paths against the node's scope), any other
|
|
29
|
+
* function runs, then the event reaches the host with the component's
|
|
30
|
+
* payload merged OVER the author's context (the payload wins a clashing
|
|
31
|
+
* key, like the Rust core's `fire`: the author's context was resolved
|
|
32
|
+
* before the write, the payload carries the value just written). */
|
|
33
|
+
export declare function runNodeAction(ctx: SurfaceContextValue, node: UiNode, domId: string, scope: string, event: string, payload?: Record<string, unknown>, own?: Record<string, unknown>): Promise<void> | void;
|
|
34
|
+
export declare function useEmitter(node: UiNode, scope: string, domId?: string): (event: string, payload?: Record<string, unknown>, own?: Record<string, unknown>) => Promise<void> | void;
|
|
35
|
+
/** A node, or nothing when its `visible` resolves falsy (no layout, not in
|
|
36
|
+
* the a11y tree). Memoized on the node: a parent re-render does not cascade;
|
|
37
|
+
* a context change (theme, locale…) still reaches every node, a data,
|
|
38
|
+
* breakpoint or `data-xq` change only the nodes that read the new value
|
|
39
|
+
* (`useLive`, VAPP-141). */
|
|
40
|
+
export declare const NodeView: import("react").NamedExoticComponent<{
|
|
41
|
+
node: UiNode;
|
|
42
|
+
}>;
|
|
43
|
+
/** A node's own style `direction` (round 2 §2: any node, inherited),
|
|
44
|
+
* matching `@media` blocks included (`nodeDirections` is the reference). */
|
|
45
|
+
export declare function ownDirection(node: UiNode, ctx?: Pick<SurfaceContextValue, `theme` | `xq`>): `ltr` | `rtl` | undefined;
|
|
46
|
+
export interface TemplateItem {
|
|
47
|
+
/** The item's instance key (its React key; escaped, its id suffix): the
|
|
48
|
+
* `template.key` value; the index when the template has no key; `#<index>`
|
|
49
|
+
* when the key is missing, null, empty or a DUPLICATE of an earlier item
|
|
50
|
+
* (so ids stay unique). */
|
|
51
|
+
key: string;
|
|
52
|
+
/** The item's data pointer (its scope). */
|
|
53
|
+
path: string;
|
|
54
|
+
index: number;
|
|
55
|
+
}
|
|
56
|
+
/** The items of a node's data template (`template.key` = a pointer relative
|
|
57
|
+
* to each item whose value identifies it). Instance ids ACCUMULATE: an
|
|
58
|
+
* item's nodes are `<id><outer suffixes>.<key>`, so a nested template's
|
|
59
|
+
* items stay unique across the outer items (`cell.a.0`, `cell.b.0`). */
|
|
60
|
+
export declare function templateItems(ctx: SurfaceContextValue, node: UiNode, scope: string): {
|
|
61
|
+
items: TemplateItem[];
|
|
62
|
+
tpl: UiNode;
|
|
63
|
+
} | null;
|
|
64
|
+
/** A template item's instance suffix: the enclosing one + `.<key>`, the
|
|
65
|
+
* key escaped (`instanceSegment`: `.` → `~1`, `~` → `~0`) as the core's
|
|
66
|
+
* `templateInstances`, so `a.b` never reads as two levels. */
|
|
67
|
+
export declare const itemInstance: (instance: string, key: string) => string;
|
|
68
|
+
/** One template item: its scope + instance suffix around the node. */
|
|
69
|
+
export declare function TemplateItemView({ tpl, item }: {
|
|
70
|
+
tpl: UiNode;
|
|
71
|
+
item: TemplateItem;
|
|
72
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
73
|
+
export { Fragment };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** `matchMedia(query).matches`, live; `fallback` without `matchMedia`
|
|
2
|
+
* (SSR, jsdom). */
|
|
3
|
+
export declare function useMediaQuery(query: string, fallback?: boolean): boolean;
|
|
4
|
+
export interface BoxSize {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
/** False until the first measurement. */
|
|
8
|
+
measured: boolean;
|
|
9
|
+
}
|
|
10
|
+
/** An element's border box in layout px (NEW-82: unzoomed, untransformed;
|
|
11
|
+
* `layoutSize`), live (ResizeObserver, disconnected on unmount). */
|
|
12
|
+
export declare function useElementSize(el: HTMLElement | null, initialWidth?: number): BoxSize;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { AlertDialog as AlertDialogPrimitive } from "radix-ui";
|
|
3
|
+
declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<`div`>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<`div`>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { VariantProps } from "class-variance-authority";
|
|
3
|
+
import { alertVariants } from "@exponential_app/eui/web/primitives";
|
|
4
|
+
declare function Alert({ className, variant, ...props }: React.ComponentProps<`div`> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function AlertTitle({ className, ...props }: React.ComponentProps<`div`>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function AlertDescription({ className, ...props }: React.ComponentProps<`div`>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Alert, AlertTitle, AlertDescription, alertVariants };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AVATAR_HUE_COUNT, avatarHueIndex } from "@exponential_app/eui/web/primitives";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Avatar as AvatarPrimitive } from "radix-ui";
|
|
3
|
+
declare function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function AvatarFallback({ className, userId, style, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback> & {
|
|
6
|
+
userId?: string | null;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type BadgeTone } from "@exponential_app/eui/web/primitives";
|
|
3
|
+
export declare function Badge({ count, max, tone, className, ...props }: Omit<React.ComponentProps<`span`>, `children`> & {
|
|
4
|
+
count: number;
|
|
5
|
+
/** Past this the badge reads `${max}+`. */
|
|
6
|
+
max?: number;
|
|
7
|
+
tone?: BadgeTone;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare function Breadcrumb({ ...props }: React.ComponentProps<`nav`>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function BreadcrumbList({ className, ...props }: React.ComponentProps<`ol`>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<`li`>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function BreadcrumbLink({ asChild, className, ...props }: React.ComponentProps<`a`> & {
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<`span`>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<`li`>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<`span`>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { VariantProps } from "class-variance-authority";
|
|
3
|
+
import { buttonVariants } from "@exponential_app/eui/web/primitives";
|
|
4
|
+
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<`button`> & VariantProps<typeof buttonVariants> & {
|
|
5
|
+
asChild?: boolean;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DayPicker, type DayButton } from "react-day-picker";
|
|
3
|
+
import { Button } from "./button.js";
|
|
4
|
+
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
5
|
+
buttonVariant?: React.ComponentProps<typeof Button>[`variant`];
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { Calendar, CalendarDayButton };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare function Card({ className, ...props }: React.ComponentProps<`div`>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function CardHeader({ className, ...props }: React.ComponentProps<`div`>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function CardTitle({ className, ...props }: React.ComponentProps<`div`>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CardDescription({ className, ...props }: React.ComponentProps<`div`>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function CardAction({ className, ...props }: React.ComponentProps<`div`>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function CardContent({ className, ...props }: React.ComponentProps<`div`>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function CardFooter({ className, ...props }: React.ComponentProps<`div`>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type ChoiceTileOption, type TileState } from "@exponential_app/eui/web/primitives";
|
|
3
|
+
export { choiceColumns, choiceToggle, choiceValues } from "@exponential_app/eui/web/primitives";
|
|
4
|
+
export type { ChoiceTileOption, TileState } from "@exponential_app/eui/web/primitives";
|
|
5
|
+
type Attrs = Record<string, unknown>;
|
|
6
|
+
export interface ChoiceTilesFrameProps {
|
|
7
|
+
options: readonly ChoiceTileOption[];
|
|
8
|
+
/** The picked values. */
|
|
9
|
+
picked: readonly string[];
|
|
10
|
+
multiple: boolean;
|
|
11
|
+
columns: number;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
invalid?: boolean;
|
|
14
|
+
dir?: `ltr` | `rtl`;
|
|
15
|
+
/** A pick (already toggled for `multiple`): the next picked values. */
|
|
16
|
+
onPick: (next: string[], value: string) => void;
|
|
17
|
+
rootProps?: Attrs;
|
|
18
|
+
tileProps: (state: TileState) => Attrs;
|
|
19
|
+
pictureProps: (state: TileState) => Attrs;
|
|
20
|
+
labelProps: (state: TileState) => Attrs;
|
|
21
|
+
descriptionProps: (state: TileState) => Attrs;
|
|
22
|
+
/** The picture's content (the frame keeps the box; a missing picture gets
|
|
23
|
+
* the placeholder). */
|
|
24
|
+
renderPicture: (src: string | null, state: TileState) => React.ReactNode;
|
|
25
|
+
/** Under the tiles (the field's errors), spanning every column. */
|
|
26
|
+
after?: React.ReactNode;
|
|
27
|
+
rootRef?: React.Ref<HTMLDivElement>;
|
|
28
|
+
}
|
|
29
|
+
/** The headless tiles: a `radiogroup` of `radio` buttons (single) or a
|
|
30
|
+
* `group` of `checkbox` buttons (multiple). The picked tile (else the
|
|
31
|
+
* first enabled one) is the tab stop; arrows move focus with wrap (a single
|
|
32
|
+
* pick follows focus); Space/Enter toggle (the button's own click). Every
|
|
33
|
+
* tile has a picture box once ANY option has an image, so a row keeps one
|
|
34
|
+
* height. */
|
|
35
|
+
export declare function ChoiceTilesFrame({ options, picked, multiple, columns, disabled, invalid, dir, onPick, rootProps, tileProps, pictureProps, labelProps, descriptionProps, renderPicture, after, rootRef }: ChoiceTilesFrameProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export interface ChoiceTilesProps {
|
|
37
|
+
options: readonly ChoiceTileOption[];
|
|
38
|
+
/** The pick: a string (single) or the picked values (multiple). */
|
|
39
|
+
value: string | readonly string[] | null | undefined;
|
|
40
|
+
multiple?: boolean;
|
|
41
|
+
/** Tiles per row, 1–4 (default 2). */
|
|
42
|
+
columns?: number;
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
/** Paints the destructive border (a required answer missing). */
|
|
45
|
+
invalid?: boolean;
|
|
46
|
+
/** The next value: a string for a single pick, the values for `multiple`. */
|
|
47
|
+
onChange?: (value: string | string[]) => void;
|
|
48
|
+
/** The picture element (the app passes an authorised <img> for
|
|
49
|
+
* `/api/attachments/{id}`); default a plain lazy <img>. */
|
|
50
|
+
renderImage?: (src: string, alt: string) => React.ReactNode;
|
|
51
|
+
className?: string;
|
|
52
|
+
"aria-label"?: string;
|
|
53
|
+
"aria-labelledby"?: string;
|
|
54
|
+
"data-testid"?: string;
|
|
55
|
+
dir?: `ltr` | `rtl`;
|
|
56
|
+
}
|
|
57
|
+
/** THE picture choice (EXP-1280): the plan card's question blocks and the
|
|
58
|
+
* standalone ask, at the eUI `ChoiceTiles` look. */
|
|
59
|
+
declare function ChoiceTiles({ options, value, multiple, columns, disabled, invalid, onChange, renderImage, className, dir, ...rest }: ChoiceTilesProps): import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
export { ChoiceTiles };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cn, getInitials } from "@exponential_app/eui/web/primitives";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { VariantProps } from "class-variance-authority";
|
|
3
|
+
import { CODE_TOKEN_CLASS, codeBlockLineVariants, codeBlockVariants } from "@exponential_app/eui/web/primitives";
|
|
4
|
+
import { Button } from "./button.js";
|
|
5
|
+
declare function CodeBlock({ className, variant, size, ...props }: React.ComponentProps<`div`> & VariantProps<typeof codeBlockVariants> & {
|
|
6
|
+
size?: `default` | `sm`;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function CodeBlockHeader({ className, ...props }: React.ComponentProps<`div`>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function CodeBlockTitle({ className, ...props }: React.ComponentProps<`div`>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function CodeBlockActions({ className, ...props }: React.ComponentProps<`div`>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
/** The copy action: ui-copy → ui-check for 2s, announced politely. A copy
|
|
12
|
+
* that did not happen (no clipboard, a refusal) changes nothing. */
|
|
13
|
+
declare function CodeBlockCopyButton({ value, variant, size, className, onClick, labels, ...props }: React.ComponentProps<typeof Button> & {
|
|
14
|
+
value: string;
|
|
15
|
+
labels?: {
|
|
16
|
+
copy: string;
|
|
17
|
+
copied: string;
|
|
18
|
+
};
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function CodeBlockContent({ className, children, style, wrap, lineNumbers, startLine, language, maxLines, ...props }: React.ComponentProps<`pre`> & {
|
|
21
|
+
wrap?: boolean;
|
|
22
|
+
lineNumbers?: boolean;
|
|
23
|
+
startLine?: number;
|
|
24
|
+
/** A catalog language (`ts`, `json`, `ansi`…): string children are
|
|
25
|
+
* tokenized and coloured per token kind. */
|
|
26
|
+
language?: string;
|
|
27
|
+
/** Lines shown before the block scrolls; 0 = unbounded. */
|
|
28
|
+
maxLines?: number;
|
|
29
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare function CodeBlockLine({ className, variant, children, ...props }: React.ComponentProps<`span`> & VariantProps<typeof codeBlockLineVariants>): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
declare function CodeBlockFooter({ className, ...props }: React.ComponentProps<`div`>): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export { CodeBlock, CodeBlockHeader, CodeBlockTitle, CodeBlockActions, CodeBlockCopyButton, CodeBlockContent, CodeBlockLine, CodeBlockFooter, CODE_TOKEN_CLASS, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Collapsible as CollapsiblePrimitive } from "radix-ui";
|
|
3
|
+
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type CommandFilter } from "@exponential_app/eui/web/primitives";
|
|
3
|
+
type CommandProps = Omit<React.ComponentProps<`div`>, `onChange` | `defaultValue`> & {
|
|
4
|
+
/** The selected item's value (controlled). */
|
|
5
|
+
value?: string;
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
onValueChange?: (value: string) => void;
|
|
8
|
+
/** Score an item against the query (0 hides it); default `commandScore`. */
|
|
9
|
+
filter?: CommandFilter;
|
|
10
|
+
/** `false` = the host filters: every item shows, in its own order. */
|
|
11
|
+
shouldFilter?: boolean;
|
|
12
|
+
/** Arrow keys wrap around. */
|
|
13
|
+
loop?: boolean;
|
|
14
|
+
/** The accessible label (a visually hidden <label> for the input). */
|
|
15
|
+
label?: string;
|
|
16
|
+
};
|
|
17
|
+
declare function Command({ className, value, defaultValue, onValueChange, filter, shouldFilter, loop, label, children, onKeyDown, ...props }: CommandProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
type CommandInputProps = Omit<React.ComponentProps<`input`>, `value` | `defaultValue` | `onChange` | `type`> & {
|
|
19
|
+
/** The query (controlled). */
|
|
20
|
+
value?: string;
|
|
21
|
+
defaultValue?: string;
|
|
22
|
+
onValueChange?: (query: string) => void;
|
|
23
|
+
/** The clear button's accessible name. */
|
|
24
|
+
clearLabel?: string;
|
|
25
|
+
};
|
|
26
|
+
declare function CommandInput({ className, value, defaultValue, onValueChange, clearLabel, ref, ...props }: CommandInputProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare function CommandList({ className, children, "aria-label": ariaLabel, ...props }: React.ComponentProps<`div`>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare function CommandEmpty({ className, ...props }: React.ComponentProps<`div`>): import("react/jsx-runtime").JSX.Element | null;
|
|
29
|
+
declare function CommandGroup({ className, heading, value, forceMount, children, ...props }: Omit<React.ComponentProps<`div`>, `value`> & {
|
|
30
|
+
heading?: React.ReactNode;
|
|
31
|
+
value?: string;
|
|
32
|
+
forceMount?: boolean;
|
|
33
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
type CommandItemProps = Omit<React.ComponentProps<`div`>, `value` | `onSelect`> & {
|
|
35
|
+
/** The value it filters and selects by (default: its text, trimmed). */
|
|
36
|
+
value?: string;
|
|
37
|
+
keywords?: string[];
|
|
38
|
+
onSelect?: (value: string) => void;
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
/** Always rendered, whatever the query. */
|
|
41
|
+
forceMount?: boolean;
|
|
42
|
+
};
|
|
43
|
+
declare function CommandItem({ className, value, keywords, onSelect, disabled, forceMount, children, ...props }: CommandItemProps): import("react/jsx-runtime").JSX.Element | null;
|
|
44
|
+
declare function CommandSeparator({ className, alwaysRender, ...props }: React.ComponentProps<`div`> & {
|
|
45
|
+
alwaysRender?: boolean;
|
|
46
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
47
|
+
declare function CommandShortcut({ className, ...props }: React.ComponentProps<`span`>): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandSeparator, CommandShortcut };
|
|
49
|
+
export type { CommandProps, CommandInputProps, CommandItemProps };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ComponentProps } from "react";
|
|
2
|
+
import { type RingTone } from "@exponential_app/eui/web/primitives";
|
|
3
|
+
import { Button } from "./button.js";
|
|
4
|
+
export { RING_RADIUS, RING_SIZE, RING_STROKE, RING_TONE_CLASS, ringGeometry } from "@exponential_app/eui/web/primitives";
|
|
5
|
+
export type { RingGeometry, RingTone } from "@exponential_app/eui/web/primitives";
|
|
6
|
+
interface ContextRingProps extends ComponentProps<typeof Button> {
|
|
7
|
+
/** How full the context window is — null while nothing measured it. */
|
|
8
|
+
percent: number | null | undefined;
|
|
9
|
+
/** Which of the three tones to paint. Default: `normal`. */
|
|
10
|
+
tone?: RingTone;
|
|
11
|
+
/** Draw the empty track anyway (the run has other usage worth opening).
|
|
12
|
+
* Without it, a run with no context window renders NOTHING. */
|
|
13
|
+
showEmpty?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const ContextRing: import("react").ForwardRefExoticComponent<Omit<ContextRingProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Dialog as DialogPrimitive } from "radix-ui";
|
|
3
|
+
import { Button } from "./button.js";
|
|
4
|
+
import { type DialogMobileArm } from "./dialog-arms.js";
|
|
5
|
+
declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
/** The `< sm` presentation of the enclosing dialog, for chrome that differs
|
|
11
|
+
* per arm (the ✕, DialogCancel). `null` outside a DialogContent. */
|
|
12
|
+
declare const DialogPresentationContext: React.Context<DialogMobileArm | null>;
|
|
13
|
+
declare function DialogContent({ className, children, showCloseButton, mobile, ref, onInteractOutside, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
14
|
+
showCloseButton?: boolean;
|
|
15
|
+
/** How the dialog presents below `sm` (EXP-687). Defaults to the bottom
|
|
16
|
+
* `sheet`; the `sm:` presentation is identical for every arm. See
|
|
17
|
+
* ui/dialog-arms.ts for what each one means. */
|
|
18
|
+
mobile?: DialogMobileArm;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<`div`>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare function DialogBody({ className, ...props }: React.ComponentProps<`div`>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function DialogFooter({ className, ...props }: React.ComponentProps<`div`>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
/**
|
|
24
|
+
* The Cancel of a dialog footer (EXP-687). Hidden on a phone for the sheet
|
|
25
|
+
* arms — a sheet is dismissed by dragging it down or tapping outside, so a
|
|
26
|
+
* Cancel button is redundant chrome — and visible for `alert`/`page`, where
|
|
27
|
+
* native platforms keep it. Desktop is unchanged: a ghost button.
|
|
28
|
+
*/
|
|
29
|
+
declare function DialogCancel({ className, children, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export { Dialog, DialogBody, DialogCancel, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogPresentationContext, DialogTitle, DialogTrigger, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare function DisclosureHeader({ open, onToggle, chevron, className, children, ...props }: Omit<React.ComponentProps<`button`>, `onClick` | `type` | `aria-expanded` | `children`> & {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onToggle: () => void;
|
|
5
|
+
chevron?: `leading` | `trailing`;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type DockCardTint } from "@exponential_app/eui/web/primitives";
|
|
3
|
+
type Glyph = React.ComponentType<{
|
|
4
|
+
className?: string;
|
|
5
|
+
"data-slot"?: string;
|
|
6
|
+
"aria-hidden"?: boolean;
|
|
7
|
+
}>;
|
|
8
|
+
export type DockCardProps = Omit<React.ComponentProps<`div`>, `title` | `children`> & {
|
|
9
|
+
tint?: DockCardTint;
|
|
10
|
+
/** The kind glyph (a component; the card sizes and tints it). */
|
|
11
|
+
icon?: Glyph;
|
|
12
|
+
label: React.ReactNode;
|
|
13
|
+
caption?: React.ReactNode;
|
|
14
|
+
meta?: React.ReactNode;
|
|
15
|
+
title: React.ReactNode;
|
|
16
|
+
/** The card opens: the trailing chevron, a button role, Enter / Space. */
|
|
17
|
+
onOpen?: () => void;
|
|
18
|
+
/** Without `onOpen`: a trailing node (a banner's action). */
|
|
19
|
+
trailing?: React.ReactNode;
|
|
20
|
+
/** A card behind the front one while piled: its chrome peeks, its words do not. */
|
|
21
|
+
hidden?: boolean;
|
|
22
|
+
/** The accessible name of a card that opens (default: no override). */
|
|
23
|
+
openLabel?: string;
|
|
24
|
+
};
|
|
25
|
+
export declare function DockCard({ tint, icon: Icon, label, caption, meta, title, onOpen, trailing, hidden, openLabel, className, onKeyDown, ...props }: DockCardProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export interface DockPileItem {
|
|
27
|
+
id: string;
|
|
28
|
+
/** The card (a `DockCard`; pass `hidden` for the ones behind the front). */
|
|
29
|
+
node: React.ReactNode;
|
|
30
|
+
/** A known height (px) instead of the measured one (specimens, tests). */
|
|
31
|
+
height?: number;
|
|
32
|
+
}
|
|
33
|
+
export type DockPileProps = Omit<React.ComponentProps<`div`>, `children`> & {
|
|
34
|
+
/** Oldest first: the LAST item is the front card. */
|
|
35
|
+
items: readonly DockPileItem[];
|
|
36
|
+
/** Fanned: every card at full size, `gap` apart. */
|
|
37
|
+
expanded: boolean;
|
|
38
|
+
/** A pointer entering/leaving the pile or the focus moving in/out of it. */
|
|
39
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
40
|
+
};
|
|
41
|
+
export declare function DockPile({ items, expanded, onExpandedChange, className, style, ...props }: DockPileProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export { DOCK_CARD_CLASSES, DOCK_PILE_CLASSES, DOCK_PILE_CONSTANTS, dockPileGeometry } from "@exponential_app/eui/web/primitives";
|
|
43
|
+
export type { DockCardTint } from "@exponential_app/eui/web/primitives";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
|
|
3
|
+
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
9
|
+
inset?: boolean;
|
|
10
|
+
variant?: `default` | `destructive`;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
16
|
+
inset?: boolean;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<`span`>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
22
|
+
inset?: boolean;
|
|
23
|
+
variant?: `default` | `destructive`;
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
import type { LucideIcon } from "lucide-react";
|
|
3
|
+
import { type EmptyStateSize } from "@exponential_app/eui/web/primitives";
|
|
4
|
+
export { EMPTY_STATE_SIZES } from "@exponential_app/eui/web/primitives";
|
|
5
|
+
export type { EmptyStateSize } from "@exponential_app/eui/web/primitives";
|
|
6
|
+
export declare function EmptyState({ icon: Icon, title, description, size, className, children, }: {
|
|
7
|
+
icon?: LucideIcon;
|
|
8
|
+
title: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
size?: EmptyStateSize;
|
|
11
|
+
className?: string;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function ListEmpty({ className, children, ...props }: Omit<ComponentProps<`p`>, `title`>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function EmptyCta({ icon: Icon, title, description, className, type, ...props }: Omit<ComponentProps<`button`>, `children` | `title`> & {
|
|
16
|
+
icon: LucideIcon;
|
|
17
|
+
title: string;
|
|
18
|
+
description: string;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { HoverCard as HoverCardPrimitive } from "radix-ui";
|
|
3
|
+
declare function HoverCard({ openDelay, closeDelay, ...props }: React.ComponentProps<typeof HoverCardPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function HoverCardTrigger({ ...props }: React.ComponentProps<typeof HoverCardPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function HoverCardContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof HoverCardPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { HoverCard, HoverCardTrigger, HoverCardContent };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { LucideIcon } from "lucide-react";
|
|
2
|
+
import { type IconDiscTone } from "@exponential_app/eui/web/primitives";
|
|
3
|
+
export { ICON_DISC_TONES } from "@exponential_app/eui/web/primitives";
|
|
4
|
+
export type { IconDiscTone } from "@exponential_app/eui/web/primitives";
|
|
5
|
+
export declare function IconDisc({ icon: Icon, tone, strokeWidth, className, }: {
|
|
6
|
+
icon: LucideIcon;
|
|
7
|
+
tone?: IconDiscTone;
|
|
8
|
+
strokeWidth?: number;
|
|
9
|
+
className?: string;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|