@l3mpire/ui 3.5.1 → 4.0.0
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/USAGE.md +92 -123
- package/dist/index.d.mts +240 -131
- package/dist/index.d.ts +240 -131
- package/dist/index.js +4906 -4239
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3672 -3011
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/styles/globals.css +44 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
3
|
import * as React from 'react';
|
|
3
|
-
import * as
|
|
4
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
5
5
|
import * as _l3mpire_icons from '@l3mpire/icons';
|
|
6
6
|
import { IconDefinition } from '@l3mpire/icons';
|
|
7
|
-
import * as
|
|
8
|
-
import
|
|
7
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
8
|
+
import { VariantProps } from 'class-variance-authority';
|
|
9
9
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
10
10
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
11
11
|
import * as ToastPrimitive from '@radix-ui/react-toast';
|
|
@@ -32,129 +32,6 @@ interface TagColor {
|
|
|
32
32
|
declare function tagColorAt(index: number): TagColor;
|
|
33
33
|
declare function tagColorFor(value: string, list: readonly string[]): TagColor;
|
|
34
34
|
|
|
35
|
-
type AICellState = {
|
|
36
|
-
status: "pending";
|
|
37
|
-
} | {
|
|
38
|
-
status: "running";
|
|
39
|
-
} | {
|
|
40
|
-
status: "done";
|
|
41
|
-
value: string;
|
|
42
|
-
citations?: string[];
|
|
43
|
-
} | {
|
|
44
|
-
status: "error";
|
|
45
|
-
message: string;
|
|
46
|
-
};
|
|
47
|
-
declare const AI_RUNNING_VERBS: readonly ["Thinking", "Researching", "Generating", "Extracting", "Analyzing"];
|
|
48
|
-
type AIRunningVerb = (typeof AI_RUNNING_VERBS)[number];
|
|
49
|
-
declare function pickRunningVerb(seed?: string): AIRunningVerb;
|
|
50
|
-
interface AICellProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
51
|
-
state: AICellState | undefined;
|
|
52
|
-
/** Stable per-cell seed so the running verb is consistent across re-renders. */
|
|
53
|
-
seed?: string;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* AICell renders the four states (pending → running → done | error) inside a
|
|
57
|
-
* single stable <span> shell. Children swap in place — no unmount between
|
|
58
|
-
* states — which is why there is no perceptible blank frame between running
|
|
59
|
-
* and done. Error has its own shell because it is not wrapped in a tooltip.
|
|
60
|
-
*/
|
|
61
|
-
declare const AICell: React.ForwardRefExoticComponent<AICellProps & React.RefAttributes<HTMLSpanElement>>;
|
|
62
|
-
|
|
63
|
-
declare const badgeVariants: (props?: ({
|
|
64
|
-
variant?: "solid" | "light" | "outlined" | null | undefined;
|
|
65
|
-
type?: "primary" | "success" | "critical" | "warning" | "neutral" | null | undefined;
|
|
66
|
-
tone?: "indigo" | "rose" | "lime" | "violet" | "cyan" | "orange" | "emerald" | "fuchsia" | "amber" | "slate" | "teal" | "sky" | "purple" | "pink" | null | undefined;
|
|
67
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
68
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
69
|
-
interface BadgeProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "type">, VariantProps<typeof badgeVariants> {
|
|
70
|
-
icon?: IconDefinition;
|
|
71
|
-
}
|
|
72
|
-
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
73
|
-
|
|
74
|
-
interface AIBadgeProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "type"> {
|
|
75
|
-
/** Hide the leading stars icon. */
|
|
76
|
-
iconHidden?: boolean;
|
|
77
|
-
/** Override the default `lg` size to match a denser cell row. */
|
|
78
|
-
size?: BadgeProps["size"];
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Marker that flags a value or column as AI-driven. Renders as a regular
|
|
82
|
-
* `<Badge variant="light" type="primary" size="lg" />` (same grammar as
|
|
83
|
-
* `StatusCell`) with the stars glyph as a leading icon.
|
|
84
|
-
*/
|
|
85
|
-
declare const AIBadge: React.ForwardRefExoticComponent<AIBadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
86
|
-
|
|
87
|
-
interface AIColumnHeaderBarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
88
|
-
label: string;
|
|
89
|
-
/** Fires when the user clicks the "run on all rows" button. */
|
|
90
|
-
onRun?: () => void;
|
|
91
|
-
/** Localized tooltip for the run button. */
|
|
92
|
-
runLabel?: string;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Header bar tailored for AI columns. The Play button only appears when the
|
|
96
|
-
* header is hovered (use the `group/aih` named group, scoped to this bar).
|
|
97
|
-
*/
|
|
98
|
-
declare const AIColumnHeaderBar: React.ForwardRefExoticComponent<AIColumnHeaderBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
99
|
-
|
|
100
|
-
interface AISuggestionDotProps extends Omit<React.HTMLAttributes<HTMLButtonElement>, "onClick"> {
|
|
101
|
-
/** Short explanation surfaced inside the popover. */
|
|
102
|
-
reason?: string;
|
|
103
|
-
/** Current value the AI wants to replace (left side of the arrow). */
|
|
104
|
-
from?: React.ReactNode;
|
|
105
|
-
/** Suggested value (right side of the arrow). */
|
|
106
|
-
to: React.ReactNode;
|
|
107
|
-
onApply: () => void;
|
|
108
|
-
onDismiss: () => void;
|
|
109
|
-
/** Popover anchoring side. Defaults to bottom. */
|
|
110
|
-
side?: "top" | "right" | "bottom" | "left";
|
|
111
|
-
/** Localized labels. */
|
|
112
|
-
title?: string;
|
|
113
|
-
applyLabel?: string;
|
|
114
|
-
dismissLabel?: string;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* A pulsing violet dot anchored next to a cell value. Clicking it opens a
|
|
118
|
-
* popover with the AI's suggestion plus Apply / Dismiss actions.
|
|
119
|
-
*/
|
|
120
|
-
declare const AISuggestionDot: React.ForwardRefExoticComponent<AISuggestionDotProps & React.RefAttributes<HTMLButtonElement>>;
|
|
121
|
-
|
|
122
|
-
type AIColumnOutputFormat = "text" | "number" | "boolean" | "select" | "date";
|
|
123
|
-
interface AIColumnConfig {
|
|
124
|
-
name: string;
|
|
125
|
-
prompt: string;
|
|
126
|
-
outputFormat: AIColumnOutputFormat;
|
|
127
|
-
/** Optional consumer-defined slots (model, sources, timeframe…). */
|
|
128
|
-
extras?: Record<string, unknown>;
|
|
129
|
-
}
|
|
130
|
-
interface AIColumnSidePanelProps {
|
|
131
|
-
/** Controlled open state. If omitted, behaves uncontrolled via trigger. */
|
|
132
|
-
open?: boolean;
|
|
133
|
-
onOpenChange?: (open: boolean) => void;
|
|
134
|
-
/** Initial config when creating or editing an existing column. */
|
|
135
|
-
initialConfig?: Partial<AIColumnConfig>;
|
|
136
|
-
/** Fired with the assembled config when the user saves. */
|
|
137
|
-
onSave: (config: AIColumnConfig) => void;
|
|
138
|
-
/** Optional trigger that opens the side panel (uncontrolled mode). */
|
|
139
|
-
trigger?: React.ReactNode;
|
|
140
|
-
/** Render slot for model picker, sources, timeframe etc. */
|
|
141
|
-
extrasSlot?: (extras: AIColumnConfig["extras"], setExtras: (next: AIColumnConfig["extras"]) => void) => React.ReactNode;
|
|
142
|
-
/** Submit label. Defaults to "Save". */
|
|
143
|
-
saveLabel?: string;
|
|
144
|
-
/** Title of the panel. Defaults to "AI column". */
|
|
145
|
-
title?: string;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Side panel scaffold for creating or editing an AI column. The shell
|
|
149
|
-
* (header, body sections, footer) is opinionated; product-specific
|
|
150
|
-
* controls (model picker, sources picker, timeframe) plug in through
|
|
151
|
-
* `extrasSlot`.
|
|
152
|
-
*/
|
|
153
|
-
declare function AIColumnSidePanel({ open, onOpenChange, initialConfig, onSave, trigger, extrasSlot, saveLabel, title, }: AIColumnSidePanelProps): react_jsx_runtime.JSX.Element;
|
|
154
|
-
declare namespace AIColumnSidePanel {
|
|
155
|
-
var displayName: string;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
35
|
interface HoverCardProps {
|
|
159
36
|
/** Delay in ms before the card opens after the trigger is hovered. */
|
|
160
37
|
openDelay?: number;
|
|
@@ -237,6 +114,17 @@ interface EntityCellProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
237
114
|
*/
|
|
238
115
|
declare const EntityCell: React.ForwardRefExoticComponent<EntityCellProps & React.RefAttributes<HTMLDivElement>>;
|
|
239
116
|
|
|
117
|
+
declare const badgeVariants: (props?: ({
|
|
118
|
+
variant?: "solid" | "light" | "outlined" | null | undefined;
|
|
119
|
+
type?: "primary" | "success" | "critical" | "warning" | "neutral" | null | undefined;
|
|
120
|
+
tone?: "indigo" | "rose" | "lime" | "violet" | "cyan" | "orange" | "emerald" | "fuchsia" | "amber" | "slate" | "teal" | "sky" | "purple" | "pink" | "ai" | null | undefined;
|
|
121
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
122
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
123
|
+
interface BadgeProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "type">, VariantProps<typeof badgeVariants> {
|
|
124
|
+
icon?: IconDefinition;
|
|
125
|
+
}
|
|
126
|
+
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
127
|
+
|
|
240
128
|
interface StatusOption {
|
|
241
129
|
id: string;
|
|
242
130
|
label: string;
|
|
@@ -489,7 +377,7 @@ declare const BrowserTab: React.ForwardRefExoticComponent<BrowserTabProps & Reac
|
|
|
489
377
|
|
|
490
378
|
declare const buttonVariants: (props?: ({
|
|
491
379
|
appearance?: "solid" | "outlined" | "ghost" | null | undefined;
|
|
492
|
-
intent?: "alert" | "brand" | null | undefined;
|
|
380
|
+
intent?: "alert" | "ai" | "brand" | null | undefined;
|
|
493
381
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
494
382
|
iconOnly?: boolean | null | undefined;
|
|
495
383
|
fullWidth?: boolean | null | undefined;
|
|
@@ -652,7 +540,7 @@ interface InputLabelProps extends React.ComponentPropsWithoutRef<typeof LabelPri
|
|
|
652
540
|
declare const InputLabel: React.ForwardRefExoticComponent<InputLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
653
541
|
|
|
654
542
|
declare const infoMessageVariants: (props?: ({
|
|
655
|
-
type?: "alert" | "success" | "warning" | "
|
|
543
|
+
type?: "alert" | "success" | "warning" | "ai" | "info" | "empty" | null | undefined;
|
|
656
544
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
657
545
|
interface InfoMessageProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title">, VariantProps<typeof infoMessageVariants> {
|
|
658
546
|
title: React.ReactNode;
|
|
@@ -1119,6 +1007,34 @@ interface RowActionsProps {
|
|
|
1119
1007
|
className?: string;
|
|
1120
1008
|
}
|
|
1121
1009
|
declare const RowActions: React.FC<RowActionsProps>;
|
|
1010
|
+
/** The four states an AI-generated cell moves through. */
|
|
1011
|
+
type AICellState = {
|
|
1012
|
+
status: "pending";
|
|
1013
|
+
} | {
|
|
1014
|
+
status: "running";
|
|
1015
|
+
} | {
|
|
1016
|
+
status: "done";
|
|
1017
|
+
value: string;
|
|
1018
|
+
citations?: string[];
|
|
1019
|
+
} | {
|
|
1020
|
+
status: "error";
|
|
1021
|
+
message: string;
|
|
1022
|
+
};
|
|
1023
|
+
/** Verb pool shown while an AI cell is running. */
|
|
1024
|
+
declare const AI_RUNNING_VERBS: readonly ["Thinking", "Researching", "Generating", "Extracting", "Analyzing"];
|
|
1025
|
+
type AIRunningVerb = (typeof AI_RUNNING_VERBS)[number];
|
|
1026
|
+
/** Stable verb pick keyed by seed so a cell keeps the same verb across re-renders. */
|
|
1027
|
+
declare function pickRunningVerb(seed?: string): AIRunningVerb;
|
|
1028
|
+
interface AICellProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
1029
|
+
state: AICellState | undefined;
|
|
1030
|
+
/** Stable per-cell seed so the running verb is consistent across re-renders. */
|
|
1031
|
+
seed?: string;
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
* Renders the four states of an AI-generated cell in one stable shell so children
|
|
1035
|
+
* swap in place without blank frames between transitions.
|
|
1036
|
+
*/
|
|
1037
|
+
declare const AICell: React.ForwardRefExoticComponent<AICellProps & React.RefAttributes<HTMLSpanElement>>;
|
|
1122
1038
|
|
|
1123
1039
|
type AnyColumnDef = ColumnDef<any, any>;
|
|
1124
1040
|
interface DataTableSettingsModalProps {
|
|
@@ -1233,6 +1149,13 @@ declare module "@tanstack/react-table" {
|
|
|
1233
1149
|
enableDrag?: boolean;
|
|
1234
1150
|
filterType?: "string" | "number" | "date" | "select";
|
|
1235
1151
|
filterOptions?: string[];
|
|
1152
|
+
/**
|
|
1153
|
+
* AI columns: fires when the user clicks the hover-revealed "run on all rows"
|
|
1154
|
+
* Play button in the column header. Omit to hide the button.
|
|
1155
|
+
*/
|
|
1156
|
+
onRunColumn?: () => void;
|
|
1157
|
+
/** Localized tooltip/aria-label for the run button (default "Run on all rows"). */
|
|
1158
|
+
runColumnLabel?: string;
|
|
1236
1159
|
}
|
|
1237
1160
|
}
|
|
1238
1161
|
type FilterOperator = "contains" | "does_not_contain" | "is" | "is_not" | "starts_with" | "ends_with" | "is_empty" | "is_not_empty" | "equals" | "not_equals" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "between" | "is_before" | "is_after" | "is_between" | "is_any_of" | "is_none_of";
|
|
@@ -1279,7 +1202,7 @@ interface SidePanelContentProps extends React.ComponentPropsWithoutRef<typeof Di
|
|
|
1279
1202
|
declare const SidePanelContent: React.ForwardRefExoticComponent<SidePanelContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
1280
1203
|
|
|
1281
1204
|
declare const filterChipSegmentVariants: (props?: ({
|
|
1282
|
-
type?: "
|
|
1205
|
+
type?: "property" | "button" | "value" | "operator" | "placeholder" | null | undefined;
|
|
1283
1206
|
hasBorder?: boolean | null | undefined;
|
|
1284
1207
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1285
1208
|
interface FilterChipSegmentProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "type">, VariantProps<typeof filterChipSegmentVariants> {
|
|
@@ -1722,4 +1645,190 @@ declare const DatePickerTrigger: React.ForwardRefExoticComponent<PopoverPrimitiv
|
|
|
1722
1645
|
declare const DatePickerPopover: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1723
1646
|
declare function getDefaultSuggestions(referenceDate?: Date): DatePickerSuggestion[];
|
|
1724
1647
|
|
|
1725
|
-
|
|
1648
|
+
type InlineEditReveal = "subtle" | "pen" | "outline";
|
|
1649
|
+
type InlineEditOverlayStyle = "inplace" | "bordered";
|
|
1650
|
+
type InlineEditLabelLayout = "inline" | "stacked" | "none";
|
|
1651
|
+
/** Matches the DS input scale: `sm` = 32px, `md` = 40px. */
|
|
1652
|
+
type InlineEditSize = "sm" | "md";
|
|
1653
|
+
/** `replace` floats the editor over the value (text-like); `popover` keeps the
|
|
1654
|
+
* value visible and floats a menu beneath it (select / date / tags). */
|
|
1655
|
+
type InlineEditOverlayMode = "replace" | "popover";
|
|
1656
|
+
/** Hover affordance: `pen` shows the edit pencil; `none` for actionable values
|
|
1657
|
+
* (link/email — they carry their own open-external icon) and toggles. */
|
|
1658
|
+
type InlineEditAffordance = "pen" | "none";
|
|
1659
|
+
interface InlineEditRenderApi {
|
|
1660
|
+
/** Exit the editor as a successful commit. Pass the result of an async write
|
|
1661
|
+
* (a Promise) to show the saving spinner until it settles. */
|
|
1662
|
+
commit: (pending?: void | Promise<unknown>) => void;
|
|
1663
|
+
/** Exit the editor discarding changes. */
|
|
1664
|
+
cancel: () => void;
|
|
1665
|
+
}
|
|
1666
|
+
interface InlineEditProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "onChange"> {
|
|
1667
|
+
/** Field label. Hidden when `labelLayout` is `none`. */
|
|
1668
|
+
label?: string;
|
|
1669
|
+
labelType?: InputLabelProps["type"];
|
|
1670
|
+
labelLayout?: InlineEditLabelLayout;
|
|
1671
|
+
reveal?: InlineEditReveal;
|
|
1672
|
+
size?: InlineEditSize;
|
|
1673
|
+
/** Locked value — no hover affordance, no editing; shows a lock glyph. */
|
|
1674
|
+
readOnly?: boolean;
|
|
1675
|
+
disabled?: boolean;
|
|
1676
|
+
error?: boolean;
|
|
1677
|
+
errorMessage?: string;
|
|
1678
|
+
/** Renders the resting value in the muted/placeholder colour. */
|
|
1679
|
+
empty?: boolean;
|
|
1680
|
+
/** Accessible prompt for an empty field (used as `aria-label` fallback). */
|
|
1681
|
+
placeholder?: string;
|
|
1682
|
+
affordance?: InlineEditAffordance;
|
|
1683
|
+
overlayMode?: InlineEditOverlayMode;
|
|
1684
|
+
/** Width of a `replace` overlay editor (px number or CSS length). */
|
|
1685
|
+
overlayWidth?: number | string;
|
|
1686
|
+
/** Resting display (the read view). */
|
|
1687
|
+
display: React.ReactNode;
|
|
1688
|
+
/** Editor render-prop. Omit for display-only fields (toggle / read-only). */
|
|
1689
|
+
editView?: (api: InlineEditRenderApi) => React.ReactNode;
|
|
1690
|
+
/** Called when the engine enters the editing state. */
|
|
1691
|
+
onEditStart?: () => void;
|
|
1692
|
+
/** Called when the popover backdrop is clicked. Defaults to `cancel`. */
|
|
1693
|
+
onOutsidePointerDown?: (api: InlineEditRenderApi) => void;
|
|
1694
|
+
}
|
|
1695
|
+
declare const InlineEdit: React.ForwardRefExoticComponent<InlineEditProps & React.RefAttributes<HTMLDivElement>>;
|
|
1696
|
+
/** A borderless input/textarea for `replace` overlays — the engine supplies the
|
|
1697
|
+
* frame, so editors stay minimal ("discreet" form of the base control). */
|
|
1698
|
+
declare const inlineEditInputClass = "w-full border-none bg-transparent p-0 outline-none text-sm leading-sm font-medium text-inline-field-value-text placeholder:text-inline-field-value-muted";
|
|
1699
|
+
/** Axis + meta props every `Discreet*` field forwards to the engine. Mirrors the
|
|
1700
|
+
* prop surface of the base controls (size, label, error…) plus the discreet axes. */
|
|
1701
|
+
interface DiscreetCommonProps {
|
|
1702
|
+
label?: string;
|
|
1703
|
+
labelType?: InputLabelProps["type"];
|
|
1704
|
+
labelLayout?: InlineEditLabelLayout;
|
|
1705
|
+
reveal?: InlineEditReveal;
|
|
1706
|
+
size?: InlineEditSize;
|
|
1707
|
+
placeholder?: string;
|
|
1708
|
+
readOnly?: boolean;
|
|
1709
|
+
disabled?: boolean;
|
|
1710
|
+
error?: boolean;
|
|
1711
|
+
errorMessage?: string;
|
|
1712
|
+
className?: string;
|
|
1713
|
+
}
|
|
1714
|
+
/** Controlled-or-uncontrolled value. When `controlled` is provided the consumer
|
|
1715
|
+
* owns the value (commit it in `onCommit`); otherwise the field self-manages. */
|
|
1716
|
+
declare function useControllable<T>(controlled: T | undefined, defaultValue: T): readonly [T, (v: T) => void];
|
|
1717
|
+
|
|
1718
|
+
type DiscreetInputType = "text" | "tel" | "email" | "url" | "search" | "password";
|
|
1719
|
+
interface DiscreetTextInputProps extends DiscreetCommonProps {
|
|
1720
|
+
value?: string;
|
|
1721
|
+
defaultValue?: string;
|
|
1722
|
+
/** Async write hook — return a Promise to show the saving spinner. */
|
|
1723
|
+
onCommit?: (value: string) => void | Promise<unknown>;
|
|
1724
|
+
/** Reuses `TextInput`'s type (e.g. `tel` → phone keyboard, `email`…). */
|
|
1725
|
+
type?: DiscreetInputType;
|
|
1726
|
+
/** Truncate the resting value with an ellipsis instead of wrapping. */
|
|
1727
|
+
nowrap?: boolean;
|
|
1728
|
+
overlayWidth?: number | string;
|
|
1729
|
+
}
|
|
1730
|
+
declare const DiscreetTextInput: React.ForwardRefExoticComponent<DiscreetTextInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
1731
|
+
interface DiscreetLinkProps extends DiscreetCommonProps {
|
|
1732
|
+
value?: string;
|
|
1733
|
+
defaultValue?: string;
|
|
1734
|
+
onCommit?: (value: string) => void | Promise<unknown>;
|
|
1735
|
+
overlayWidth?: number | string;
|
|
1736
|
+
}
|
|
1737
|
+
declare const DiscreetLink: React.ForwardRefExoticComponent<DiscreetLinkProps & React.RefAttributes<HTMLDivElement>>;
|
|
1738
|
+
|
|
1739
|
+
interface DiscreetNumberInputProps extends DiscreetCommonProps {
|
|
1740
|
+
value?: number | "";
|
|
1741
|
+
defaultValue?: number | "";
|
|
1742
|
+
onCommit?: (value: number | "") => void | Promise<unknown>;
|
|
1743
|
+
/** Currency/unit prefix shown in the resting value. */
|
|
1744
|
+
prefix?: string;
|
|
1745
|
+
/** Intl locale used for grouping. */
|
|
1746
|
+
locale?: string;
|
|
1747
|
+
overlayWidth?: number | string;
|
|
1748
|
+
}
|
|
1749
|
+
declare const DiscreetNumberInput: React.ForwardRefExoticComponent<DiscreetNumberInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
1750
|
+
|
|
1751
|
+
interface DiscreetTextareaProps extends DiscreetCommonProps {
|
|
1752
|
+
value?: string;
|
|
1753
|
+
defaultValue?: string;
|
|
1754
|
+
onCommit?: (value: string) => void | Promise<unknown>;
|
|
1755
|
+
overlayWidth?: number | string;
|
|
1756
|
+
}
|
|
1757
|
+
declare const DiscreetTextarea: React.ForwardRefExoticComponent<DiscreetTextareaProps & React.RefAttributes<HTMLDivElement>>;
|
|
1758
|
+
|
|
1759
|
+
interface DiscreetChipInputProps extends DiscreetCommonProps {
|
|
1760
|
+
value?: string[];
|
|
1761
|
+
defaultValue?: string[];
|
|
1762
|
+
onCommit?: (value: string[]) => void | Promise<unknown>;
|
|
1763
|
+
/** Validate a typed entry before it becomes a chip. Defaults to an email check. */
|
|
1764
|
+
validate?: (entry: string) => boolean;
|
|
1765
|
+
/** href for a chip's open-external action. Defaults to `mailto:`. */
|
|
1766
|
+
hrefOf?: (chip: string) => string;
|
|
1767
|
+
invalidMessage?: string;
|
|
1768
|
+
overlayWidth?: number | string;
|
|
1769
|
+
}
|
|
1770
|
+
declare const DiscreetChipInput: React.ForwardRefExoticComponent<DiscreetChipInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
1771
|
+
|
|
1772
|
+
interface DiscreetSelectOption {
|
|
1773
|
+
value: string;
|
|
1774
|
+
label?: string;
|
|
1775
|
+
/** Leading status dot colour (raw colour value from your data). */
|
|
1776
|
+
color?: string;
|
|
1777
|
+
}
|
|
1778
|
+
interface DiscreetSelectProps extends DiscreetCommonProps {
|
|
1779
|
+
value?: string;
|
|
1780
|
+
defaultValue?: string;
|
|
1781
|
+
options: DiscreetSelectOption[];
|
|
1782
|
+
onCommit?: (value: string) => void | Promise<unknown>;
|
|
1783
|
+
menuWidth?: number | string;
|
|
1784
|
+
}
|
|
1785
|
+
declare const DiscreetSelect: React.ForwardRefExoticComponent<DiscreetSelectProps & React.RefAttributes<HTMLDivElement>>;
|
|
1786
|
+
|
|
1787
|
+
interface DiscreetOwnerOption {
|
|
1788
|
+
value: string;
|
|
1789
|
+
label?: string;
|
|
1790
|
+
initials?: string;
|
|
1791
|
+
src?: string;
|
|
1792
|
+
/** Avatar background (raw colour from your data). */
|
|
1793
|
+
color?: string;
|
|
1794
|
+
}
|
|
1795
|
+
interface DiscreetOwnerProps extends DiscreetCommonProps {
|
|
1796
|
+
value?: string;
|
|
1797
|
+
defaultValue?: string;
|
|
1798
|
+
options: DiscreetOwnerOption[];
|
|
1799
|
+
onCommit?: (value: string) => void | Promise<unknown>;
|
|
1800
|
+
menuWidth?: number | string;
|
|
1801
|
+
}
|
|
1802
|
+
declare const DiscreetOwner: React.ForwardRefExoticComponent<DiscreetOwnerProps & React.RefAttributes<HTMLDivElement>>;
|
|
1803
|
+
|
|
1804
|
+
type DiscreetTagOption = string | {
|
|
1805
|
+
value: string;
|
|
1806
|
+
tone?: TagColorName;
|
|
1807
|
+
};
|
|
1808
|
+
interface DiscreetTagsProps extends DiscreetCommonProps {
|
|
1809
|
+
value?: string[];
|
|
1810
|
+
defaultValue?: string[];
|
|
1811
|
+
options: DiscreetTagOption[];
|
|
1812
|
+
onCommit?: (value: string[]) => void | Promise<unknown>;
|
|
1813
|
+
menuWidth?: number | string;
|
|
1814
|
+
}
|
|
1815
|
+
declare const DiscreetTags: React.ForwardRefExoticComponent<DiscreetTagsProps & React.RefAttributes<HTMLDivElement>>;
|
|
1816
|
+
|
|
1817
|
+
interface DiscreetDateProps extends DiscreetCommonProps {
|
|
1818
|
+
/** ISO date string, `YYYY-MM-DD`. */
|
|
1819
|
+
value?: string;
|
|
1820
|
+
defaultValue?: string;
|
|
1821
|
+
onCommit?: (value: string) => void | Promise<unknown>;
|
|
1822
|
+
}
|
|
1823
|
+
declare const DiscreetDate: React.ForwardRefExoticComponent<DiscreetDateProps & React.RefAttributes<HTMLDivElement>>;
|
|
1824
|
+
|
|
1825
|
+
interface DiscreetSwitchProps extends Omit<DiscreetCommonProps, "placeholder"> {
|
|
1826
|
+
value?: boolean;
|
|
1827
|
+
defaultValue?: boolean;
|
|
1828
|
+
onCommit?: (value: boolean) => void | Promise<unknown>;
|
|
1829
|
+
onLabel?: string;
|
|
1830
|
+
offLabel?: string;
|
|
1831
|
+
}
|
|
1832
|
+
declare const DiscreetSwitch: React.ForwardRefExoticComponent<DiscreetSwitchProps & React.RefAttributes<HTMLDivElement>>;
|
|
1833
|
+
|
|
1834
|
+
export { AICell, type AICellProps, type AICellState, type AIColumnRef, type AIRunningVerb, AI_RUNNING_VERBS, type AddColumnKind, AdvancedChip, type AdvancedChipProps, AdvancedPopover, type AdvancedPopoverProps, AdvancedRow, type AdvancedRowProps, Avatar, AvatarCell, type AvatarCellProps, type AvatarProps, Badge, type BadgeProps, type BooleanOperator, type BrowsableColumn, BrowserTab, BrowserTabItem, type BrowserTabItemProps, type BrowserTabProps, BulkAction, type BulkActionItem, type BulkActionProps, Button, ButtonCell, type ButtonCellProps, type ButtonProps, Checkbox, type CheckboxProps, ChipInput, type ChipInputProps, ColumnHeaderMenu, type ColumnHeaderMenuProps, type ColumnKind, type ColumnManagerItem, ColumnManagerPopover, type ColumnManagerPopoverProps, ColumnManagerTrigger, ColumnTypeBadge, type ColumnTypeBadgeProps, CreateFieldColumnPanel, type CreateFieldColumnPanelProps, CreateScoreColumnPanel, type CreateScoreColumnPanelProps, DEFAULT_OPERATOR_BY_TYPE, DataTable, DataTablePagination, type DataTablePaginationProps, type DataTableProps, DataTableSettingsModal, type DataTableSettingsModalProps, type DataType, DateCell, type DateCellProps, type DateOperator, DatePicker, DatePickerCalendar, type DatePickerCalendarProps, DatePickerFooter, type DatePickerFooterProps, type DatePickerMode, DatePickerPanel, type DatePickerPanelProps, DatePickerPopover, type DatePickerProps, DatePickerRoot, DatePickerSelects, type DatePickerSelectsProps, type DatePickerSuggestion, DatePickerSuggestions, type DatePickerSuggestionsProps, DatePickerTrigger, type DateRange, type DbColumn, Dialog, type DialogProps, DiscreetChipInput, type DiscreetChipInputProps, type DiscreetCommonProps, DiscreetDate, type DiscreetDateProps, DiscreetLink, type DiscreetLinkProps, DiscreetNumberInput, type DiscreetNumberInputProps, DiscreetOwner, type DiscreetOwnerOption, type DiscreetOwnerProps, DiscreetSelect, type DiscreetSelectOption, type DiscreetSelectProps, DiscreetSwitch, type DiscreetSwitchProps, type DiscreetTagOption, DiscreetTags, type DiscreetTagsProps, DiscreetTextInput, type DiscreetTextInputProps, DiscreetTextarea, type DiscreetTextareaProps, DropdownMenu, DropdownMenuClear, type DropdownMenuClearProps, DropdownMenuContent, DropdownMenuHeading, type DropdownMenuHeadingProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuList, type DropdownMenuListProps, type DropdownMenuProps, DropdownMenuRadixItem, type DropdownMenuRadixItemProps, DropdownMenuRoot, DropdownMenuTrigger, EditableCell, type EditableCellProps, EmailCell, type EmailCellProps, EmojiPicker, type EmojiPickerLocale, EmojiPickerPopover, type EmojiPickerPopoverProps, type EmojiPickerProps, type EmojiSelection, EmptyState, type EmptyStateProps, EntityCell, type EntityCellProps, type EnumOperator, type FieldColumn, type FieldType, FilterBar, FilterBarButton, type FilterBarButtonProps, FilterBarLeft, type FilterBarLeftProps, type FilterBarMode, type FilterBarProps, FilterBarRight, type FilterBarRightProps, FilterChip, type FilterChipProps, FilterChipSegment, type FilterChipSegmentProps, type FilterCondition, FilterEditor, type FilterEditorProps, type FilterOperator, type FilterState, FilterSystem, type FilterSystemProps, type FilterValue, type HeaderColumnApi, HoverCard, HoverCardContent, type HoverCardContentProps, type HoverCardProps, HoverCardTrigger, type HoverCardTriggerProps, InfoMessage, type InfoMessageProps, InlineEdit, type InlineEditAffordance, type InlineEditLabelLayout, type InlineEditOverlayMode, type InlineEditOverlayStyle, type InlineEditProps, type InlineEditRenderApi, type InlineEditReveal, type InlineEditSize, InputLabel, type InputLabelProps, InteractiveFilterChip, type InteractiveFilterChipProps, KebabMenu, type KebabMenuProps, Link, LinkCell, type LinkCellProps, type LinkProps, Modal, ModalBody, ModalClose, ModalContent, type ModalContentProps, ModalDescription, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, ModalOverlay, ModalTitle, ModalTrigger, NumberCell, type NumberCellProps, NumberInput, type NumberInputProps, type NumberOperator, OPERATORS_BY_TYPE, OperatorList, type OperatorListProps, OperatorSelector, type OperatorSelectorProps, type OperatorType, type Product, ProductLogo, type ProductLogoProps, type PropertyDefinition, PropertySelector, type PropertySelectorProps, RadioCard, RadioCardGroup, type RadioCardGroupProps, type RadioCardProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type RelationOperator, RowActions, type RowActionsProps, type RowQuickAction, RowQuickActions, type RowQuickActionsProps, SCORE_OPERATORS_BY_TYPE, SCORE_OPERATOR_LABELS, SaveViewButton, type SaveViewButtonProps, type ScorableField, ScoreBadge, type ScoreBadgeProps, type ScoreColumn, type ScoreOperator, type ScorePreviewRow, type ScoreResult, type ScoreRule, SearchBar, type SearchBarProps, Select, type SelectProps, SidePanel, SidePanelClose, SidePanelContent, type SidePanelContentProps, SidePanelTrigger, Sidebar, SidebarFooter, type SidebarFooterProps, SidebarHeader, SidebarHeadingItem, type SidebarHeadingItemProps, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, SortButton, type SortButtonProps, type SortField, StatusCell, type StatusCellProps, type StatusOption, StatusPickerCell, type StatusPickerCellProps, SummaryChip, type SummaryChipProps, Switch, SwitchCard, type SwitchCardProps, type SwitchProps, TAG_PALETTE, TabContent, type TabContentProps, TabList, type TabListProps, TabTrigger, type TabTriggerProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, type TableProps, TableRow, type TableScrollContainer, Tabs, type TabsProps, Tag, type TagColor, type TagColorName, type TagProps, type TagsOperator, TextArea, type TextAreaProps, TextCell, type TextCellProps, TextInput, type TextInputProps, type TextOperator, Toast, type ToastProps, ToastProvider, ToastViewport, Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger, TruncatedText, type TruncatedTextProps, Typography, type TypographyProps, UserMenu, UserMenuInfoRow, type UserMenuInfoRowProps, type UserMenuProps, UserMenuSection, type UserMenuSectionProps, ValueInput, type ValueInputProps, avatarVariants, badgeVariants, buttonVariants, chipInputVariants, cn, computeScore, createFilterWithDefaults, emptyStateVariants, filterChipSegmentVariants, getDefaultOperator, getDefaultSuggestions, getValueInputType, infoMessageVariants, inlineEditInputClass, isNoValueOperator, linkVariants, modalVariants, pickRunningVerb, productLogoVariants, searchBarVariants, selectVariants, sidebarItemVariants, tagColorAt, tagColorFor, tagVariants, textInputVariants, toastVariants, tooltipContentVariants, typographyVariants, useControllable, useFilterBarMode, useSidebarContext };
|