@datarecce/ui 1.52.0-nightly.20260604 → 1.52.0-nightly.20260607
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/{RouteConfigContext-CF2ynFu6.d.ts → RouteConfigContext-Dhffxg0a.d.ts} +1 -1
- package/dist/{RouteConfigContext-CF2ynFu6.d.ts.map → RouteConfigContext-Dhffxg0a.d.ts.map} +1 -1
- package/dist/{ScreenshotDataGrid-CFWyhxE7.d.ts → ScreenshotDataGrid-5EwaZxMk.d.ts} +1 -1
- package/dist/{ScreenshotDataGrid-CFWyhxE7.d.ts.map → ScreenshotDataGrid-5EwaZxMk.d.ts.map} +1 -1
- package/dist/advanced.d.ts +9 -9
- package/dist/advanced.js +1 -1
- package/dist/{api-D50B0UMd.js → api-D7m6D3R5.js} +2 -2
- package/dist/api-D7m6D3R5.js.map +1 -0
- package/dist/{api-CVXkhvDl.d.ts → api-DZymTKh4.d.ts} +2 -2
- package/dist/{api-CVXkhvDl.d.ts.map → api-DZymTKh4.d.ts.map} +1 -1
- package/dist/api.d.ts +3 -3
- package/dist/api.js +1 -1
- package/dist/{chartTheme-D_J0wCs9.d.ts → chartTheme-CzJoXHE8.d.ts} +1 -1
- package/dist/{chartTheme-D_J0wCs9.d.ts.map → chartTheme-CzJoXHE8.d.ts.map} +1 -1
- package/dist/components-run.d.ts +2 -3
- package/dist/components-run.js +1 -1
- package/dist/components.d.ts +6 -8
- package/dist/components.js +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/contexts.d.ts +4 -4
- package/dist/hooks-DxNrS1mN.js +7 -0
- package/dist/hooks-DxNrS1mN.js.map +1 -0
- package/dist/hooks.d.ts +2 -2
- package/dist/hooks.js +1 -1
- package/dist/{index-ebgKX4Gr.d.ts → index--3nbLBO3.d.ts} +56 -4
- package/dist/index--3nbLBO3.d.ts.map +1 -0
- package/dist/{index-C_rwHada.d.ts → index-BwwK0z1-.d.ts} +3 -3
- package/dist/index-BwwK0z1-.d.ts.map +1 -0
- package/dist/{index-CBfydi66.d.ts → index-CHGw3r8p.d.ts} +2 -2
- package/dist/{index-CBfydi66.d.ts.map → index-CHGw3r8p.d.ts.map} +1 -1
- package/dist/{index-C-vMzkvF.d.ts → index-CcjcKQNp.d.ts} +1 -1
- package/dist/index-CcjcKQNp.d.ts.map +1 -0
- package/dist/{index-Zui-8enI.d.ts → index-DbZc6tFS.d.ts} +3 -3
- package/dist/{index-Zui-8enI.d.ts.map → index-DbZc6tFS.d.ts.map} +1 -1
- package/dist/{index-CitmP9e7.d.ts → index-DiylGzO1.d.ts} +4 -4
- package/dist/{index-CitmP9e7.d.ts.map → index-DiylGzO1.d.ts.map} +1 -1
- package/dist/{index-_QtUThVd.d.ts → index-ljGk0vtJ.d.ts} +1 -1
- package/dist/{index-_QtUThVd.d.ts.map → index-ljGk0vtJ.d.ts.map} +1 -1
- package/dist/{index-CDG2V3lk.d.ts → index-tycbfWRA.d.ts} +6 -6
- package/dist/{index-CDG2V3lk.d.ts.map → index-tycbfWRA.d.ts.map} +1 -1
- package/dist/{index-D8FcsCIF.d.ts → index-yom8qvXO.d.ts} +3 -3
- package/dist/index-yom8qvXO.d.ts.map +1 -0
- package/dist/index.d.ts +15 -16
- package/dist/index.js +1 -1
- package/dist/{instanceInfo-DZJ47qaP.d.ts → instanceInfo-Cxe3cNOM.d.ts} +13 -3
- package/dist/instanceInfo-Cxe3cNOM.d.ts.map +1 -0
- package/dist/lib/api/track.d.ts +23 -1
- package/dist/lib/api/track.d.ts.map +1 -1
- package/dist/lib/api/track.js +1 -1
- package/dist/lib/api/track.js.map +1 -1
- package/dist/{lineage-D_TBiJDk.d.ts → lineage-Ba_RtC68.d.ts} +12 -75
- package/dist/lineage-Ba_RtC68.d.ts.map +1 -0
- package/dist/primitives-CH-N_7Xw.d.ts +3057 -0
- package/dist/primitives-CH-N_7Xw.d.ts.map +1 -0
- package/dist/primitives.d.ts +7 -9
- package/dist/primitives.js +1 -1
- package/dist/result.d.ts +1 -1
- package/dist/result.js +1 -1
- package/dist/src-0N-BnDdU.js +12 -0
- package/dist/src-0N-BnDdU.js.map +1 -0
- package/dist/style.css +46 -0
- package/dist/theme.d.ts +2 -2
- package/dist/{RunProgress-DMnOxPYv.d.ts → types-B3DXJzwE.d.ts} +258 -4
- package/dist/types-B3DXJzwE.d.ts.map +1 -0
- package/dist/{types-CxqTcNx7.d.ts → types-Dmemk4LS.d.ts} +2 -2
- package/dist/{types-CxqTcNx7.d.ts.map → types-Dmemk4LS.d.ts.map} +1 -1
- package/dist/types.d.ts +9 -9
- package/dist/{useThemeColors-Ds1thBNy.d.ts → useThemeColors-C-siKolp.d.ts} +1 -1
- package/dist/{useThemeColors-Ds1thBNy.d.ts.map → useThemeColors-C-siKolp.d.ts.map} +1 -1
- package/dist/utils-D1p-E_Ng.js +6 -0
- package/dist/utils-D1p-E_Ng.js.map +1 -0
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/dist/RunProgress-DMnOxPYv.d.ts.map +0 -1
- package/dist/SplitPane-DKjK6eiV.d.ts +0 -1623
- package/dist/SplitPane-DKjK6eiV.d.ts.map +0 -1
- package/dist/api-D50B0UMd.js.map +0 -1
- package/dist/hooks-D15-EL7C.js +0 -7
- package/dist/hooks-D15-EL7C.js.map +0 -1
- package/dist/index-C-vMzkvF.d.ts.map +0 -1
- package/dist/index-C_rwHada.d.ts.map +0 -1
- package/dist/index-D8FcsCIF.d.ts.map +0 -1
- package/dist/index-ebgKX4Gr.d.ts.map +0 -1
- package/dist/instanceInfo-DZJ47qaP.d.ts.map +0 -1
- package/dist/lineage-D_TBiJDk.d.ts.map +0 -1
- package/dist/primitives-CJIlGlsM.d.ts +0 -1279
- package/dist/primitives-CJIlGlsM.d.ts.map +0 -1
- package/dist/src-D3Oco6am.js +0 -12
- package/dist/src-D3Oco6am.js.map +0 -1
- package/dist/types-3N6OUHk6.d.ts +0 -260
- package/dist/types-3N6OUHk6.d.ts.map +0 -1
- package/dist/utils-DV3twX_X.js +0 -6
- package/dist/utils-DV3twX_X.js.map +0 -1
|
@@ -1,1279 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
import { BoxProps } from "@mui/material/Box";
|
|
4
|
-
import { SxProps, Theme } from "@mui/material/styles";
|
|
5
|
-
import { SplitProps } from "react-split";
|
|
6
|
-
|
|
7
|
-
//#region src/components/check/CheckBreadcrumb.d.ts
|
|
8
|
-
/**
|
|
9
|
-
* Props for the CheckBreadcrumb component
|
|
10
|
-
*/
|
|
11
|
-
interface CheckBreadcrumbProps {
|
|
12
|
-
/** Current name value */
|
|
13
|
-
name: string;
|
|
14
|
-
/** Callback when name is saved */
|
|
15
|
-
onNameChange?: (name: string) => void;
|
|
16
|
-
/** Placeholder text when empty */
|
|
17
|
-
placeholder?: string;
|
|
18
|
-
/** Whether editing is disabled */
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
/** Optional CSS class name */
|
|
21
|
-
className?: string;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* CheckBreadcrumb Component
|
|
25
|
-
*
|
|
26
|
-
* A pure presentation component for displaying and editing a check name inline.
|
|
27
|
-
* Supports click-to-edit behavior with Enter to save and Escape to cancel.
|
|
28
|
-
* Also commits changes when clicking outside the input.
|
|
29
|
-
*
|
|
30
|
-
* @example Basic usage
|
|
31
|
-
* ```tsx
|
|
32
|
-
* import { CheckBreadcrumb } from '@datarecce/ui/primitives';
|
|
33
|
-
*
|
|
34
|
-
* function CheckHeader({ check }) {
|
|
35
|
-
* return (
|
|
36
|
-
* <CheckBreadcrumb
|
|
37
|
-
* name={check.name}
|
|
38
|
-
* onNameChange={(name) => updateCheck(check.id, { name })}
|
|
39
|
-
* />
|
|
40
|
-
* );
|
|
41
|
-
* }
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* @example Disabled state
|
|
45
|
-
* ```tsx
|
|
46
|
-
* <CheckBreadcrumb
|
|
47
|
-
* name={check.name}
|
|
48
|
-
* disabled
|
|
49
|
-
* placeholder="Unnamed check"
|
|
50
|
-
* />
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* @example With placeholder
|
|
54
|
-
* ```tsx
|
|
55
|
-
* <CheckBreadcrumb
|
|
56
|
-
* name=""
|
|
57
|
-
* placeholder="Enter check name..."
|
|
58
|
-
* onNameChange={(name) => updateCheck(check.id, { name })}
|
|
59
|
-
* />
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
declare function CheckBreadcrumbComponent({
|
|
63
|
-
name,
|
|
64
|
-
onNameChange,
|
|
65
|
-
placeholder,
|
|
66
|
-
disabled,
|
|
67
|
-
className
|
|
68
|
-
}: CheckBreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
69
|
-
declare const CheckBreadcrumb: import("react").MemoExoticComponent<typeof CheckBreadcrumbComponent>;
|
|
70
|
-
//#endregion
|
|
71
|
-
//#region src/components/check/PresetCheckTemplateView.d.ts
|
|
72
|
-
/**
|
|
73
|
-
* Props for generating a preset check template
|
|
74
|
-
*/
|
|
75
|
-
interface GenerateCheckTemplateOptions {
|
|
76
|
-
/** Check name */
|
|
77
|
-
name: string;
|
|
78
|
-
/** Check description */
|
|
79
|
-
description: string;
|
|
80
|
-
/** Check type (e.g., "row_count_diff", "schema_diff") */
|
|
81
|
-
type: string;
|
|
82
|
-
/** Check parameters */
|
|
83
|
-
params: Record<string, unknown>;
|
|
84
|
-
/** View options (optional) */
|
|
85
|
-
viewOptions?: Record<string, unknown>;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Generates a YAML template for a preset check configuration.
|
|
89
|
-
* This can be used to export checks to recce.yml.
|
|
90
|
-
*
|
|
91
|
-
* @example
|
|
92
|
-
* ```ts
|
|
93
|
-
* const template = generateCheckTemplate({
|
|
94
|
-
* name: "Schema Check",
|
|
95
|
-
* description: "Check for schema changes",
|
|
96
|
-
* type: "schema_diff",
|
|
97
|
-
* params: { select: "state:modified" },
|
|
98
|
-
* });
|
|
99
|
-
* // Returns:
|
|
100
|
-
* // checks:
|
|
101
|
-
* // - name: Schema Check
|
|
102
|
-
* // description: Check for schema changes
|
|
103
|
-
* // type: schema_diff
|
|
104
|
-
* // params:
|
|
105
|
-
* // select: state:modified
|
|
106
|
-
* ```
|
|
107
|
-
*/
|
|
108
|
-
declare function generateCheckTemplate({
|
|
109
|
-
name,
|
|
110
|
-
description,
|
|
111
|
-
type,
|
|
112
|
-
params,
|
|
113
|
-
viewOptions
|
|
114
|
-
}: GenerateCheckTemplateOptions): string;
|
|
115
|
-
/**
|
|
116
|
-
* Props for the PresetCheckTemplateView component
|
|
117
|
-
*/
|
|
118
|
-
interface PresetCheckTemplateViewProps {
|
|
119
|
-
/** The YAML template string to display */
|
|
120
|
-
yamlTemplate: string;
|
|
121
|
-
/** Optional height for the editor */
|
|
122
|
-
height?: string;
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* PresetCheckTemplateView Component
|
|
126
|
-
*
|
|
127
|
-
* A presentation component for displaying a preset check YAML template
|
|
128
|
-
* in a read-only code editor. Used in modals to show users how to
|
|
129
|
-
* add checks to their recce.yml file.
|
|
130
|
-
*
|
|
131
|
-
* @example Basic usage
|
|
132
|
-
* ```tsx
|
|
133
|
-
* import { PresetCheckTemplateView, generateCheckTemplate } from '@datarecce/ui/primitives';
|
|
134
|
-
*
|
|
135
|
-
* function CheckTemplateDialog({ check }) {
|
|
136
|
-
* const template = generateCheckTemplate({
|
|
137
|
-
* name: check.name,
|
|
138
|
-
* description: check.description,
|
|
139
|
-
* type: check.type,
|
|
140
|
-
* params: check.params,
|
|
141
|
-
* });
|
|
142
|
-
*
|
|
143
|
-
* return (
|
|
144
|
-
* <Dialog open>
|
|
145
|
-
* <DialogContent>
|
|
146
|
-
* <PresetCheckTemplateView yamlTemplate={template} />
|
|
147
|
-
* </DialogContent>
|
|
148
|
-
* </Dialog>
|
|
149
|
-
* );
|
|
150
|
-
* }
|
|
151
|
-
* ```
|
|
152
|
-
*/
|
|
153
|
-
declare function PresetCheckTemplateViewComponent({
|
|
154
|
-
yamlTemplate,
|
|
155
|
-
height
|
|
156
|
-
}: PresetCheckTemplateViewProps): import("react/jsx-runtime").JSX.Element;
|
|
157
|
-
declare const PresetCheckTemplateView: import("react").MemoExoticComponent<typeof PresetCheckTemplateViewComponent>;
|
|
158
|
-
//#endregion
|
|
159
|
-
//#region src/components/lineage/tags/NodeTag.d.ts
|
|
160
|
-
interface NodeTagProps {
|
|
161
|
-
resourceType?: string;
|
|
162
|
-
materialized?: string;
|
|
163
|
-
"data-testid"?: string;
|
|
164
|
-
}
|
|
165
|
-
declare function NodeTagComponent({
|
|
166
|
-
resourceType,
|
|
167
|
-
materialized,
|
|
168
|
-
"data-testid": testId
|
|
169
|
-
}: NodeTagProps): import("react/jsx-runtime").JSX.Element;
|
|
170
|
-
declare const NodeTag: import("react").MemoExoticComponent<typeof NodeTagComponent>;
|
|
171
|
-
//#endregion
|
|
172
|
-
//#region src/components/check/timeline/CommentInput.d.ts
|
|
173
|
-
/**
|
|
174
|
-
* Props for the CommentInput component
|
|
175
|
-
*/
|
|
176
|
-
interface CommentInputProps {
|
|
177
|
-
/** Callback when comment is submitted */
|
|
178
|
-
onSubmit: (content: string) => void;
|
|
179
|
-
/** Whether submission is in progress */
|
|
180
|
-
isSubmitting?: boolean;
|
|
181
|
-
/** Placeholder text for the input */
|
|
182
|
-
placeholder?: string;
|
|
183
|
-
/** Button text (defaults to "Comment") */
|
|
184
|
-
submitLabel?: string;
|
|
185
|
-
/** Submitting button text (defaults to "Submitting...") */
|
|
186
|
-
submittingLabel?: string;
|
|
187
|
-
/** Optional CSS class name */
|
|
188
|
-
className?: string;
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* CommentInput Component
|
|
192
|
-
*
|
|
193
|
-
* A pure presentation component for adding comments to a timeline.
|
|
194
|
-
* Supports Cmd+Enter (Mac) or Ctrl+Enter (Windows) keyboard shortcut to submit.
|
|
195
|
-
*
|
|
196
|
-
* @example Basic usage
|
|
197
|
-
* ```tsx
|
|
198
|
-
* import { CommentInput } from '@datarecce/ui/primitives';
|
|
199
|
-
*
|
|
200
|
-
* function CheckTimeline({ checkId }) {
|
|
201
|
-
* const [isSubmitting, setIsSubmitting] = useState(false);
|
|
202
|
-
*
|
|
203
|
-
* const handleSubmit = async (content: string) => {
|
|
204
|
-
* setIsSubmitting(true);
|
|
205
|
-
* await addComment(checkId, content);
|
|
206
|
-
* setIsSubmitting(false);
|
|
207
|
-
* };
|
|
208
|
-
*
|
|
209
|
-
* return (
|
|
210
|
-
* <CommentInput
|
|
211
|
-
* onSubmit={handleSubmit}
|
|
212
|
-
* isSubmitting={isSubmitting}
|
|
213
|
-
* />
|
|
214
|
-
* );
|
|
215
|
-
* }
|
|
216
|
-
* ```
|
|
217
|
-
*
|
|
218
|
-
* @example Custom labels
|
|
219
|
-
* ```tsx
|
|
220
|
-
* <CommentInput
|
|
221
|
-
* onSubmit={handleSubmit}
|
|
222
|
-
* placeholder="Leave feedback..."
|
|
223
|
-
* submitLabel="Send"
|
|
224
|
-
* submittingLabel="Sending..."
|
|
225
|
-
* />
|
|
226
|
-
* ```
|
|
227
|
-
*/
|
|
228
|
-
declare function CommentInputComponent({
|
|
229
|
-
onSubmit,
|
|
230
|
-
isSubmitting,
|
|
231
|
-
placeholder,
|
|
232
|
-
submitLabel,
|
|
233
|
-
submittingLabel,
|
|
234
|
-
className
|
|
235
|
-
}: CommentInputProps): import("react/jsx-runtime").JSX.Element;
|
|
236
|
-
declare const CommentInput: import("react").MemoExoticComponent<typeof CommentInputComponent>;
|
|
237
|
-
//#endregion
|
|
238
|
-
//#region src/components/check/timeline/TimelineEvent.d.ts
|
|
239
|
-
/**
|
|
240
|
-
* Actor information for timeline events
|
|
241
|
-
*/
|
|
242
|
-
interface TimelineActor {
|
|
243
|
-
/** User ID */
|
|
244
|
-
user_id?: string | number;
|
|
245
|
-
/** Full name of the actor */
|
|
246
|
-
fullname?: string;
|
|
247
|
-
/** Login/username of the actor */
|
|
248
|
-
login?: string;
|
|
249
|
-
/** Avatar URL (props-driven, consumer provides) */
|
|
250
|
-
avatarUrl?: string;
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* Event types supported by the timeline
|
|
254
|
-
*/
|
|
255
|
-
type TimelineEventType = "check_created" | "comment" | "approval_change" | "description_change" | "name_change" | "preset_applied";
|
|
256
|
-
/**
|
|
257
|
-
* Timeline event data structure
|
|
258
|
-
*/
|
|
259
|
-
interface TimelineEventData {
|
|
260
|
-
/** Unique event ID */
|
|
261
|
-
id: string;
|
|
262
|
-
/** Type of event */
|
|
263
|
-
event_type: TimelineEventType;
|
|
264
|
-
/** Actor who performed the event */
|
|
265
|
-
actor: TimelineActor;
|
|
266
|
-
/** Event creation timestamp (ISO string) */
|
|
267
|
-
created_at: string;
|
|
268
|
-
/** Event content (for comments) */
|
|
269
|
-
content?: string;
|
|
270
|
-
/** New value (for change events) */
|
|
271
|
-
new_value?: string;
|
|
272
|
-
/** Whether the event was edited */
|
|
273
|
-
is_edited?: boolean;
|
|
274
|
-
/** Whether the event was deleted */
|
|
275
|
-
is_deleted?: boolean;
|
|
276
|
-
}
|
|
277
|
-
/**
|
|
278
|
-
* Props for the TimelineEvent component
|
|
279
|
-
*/
|
|
280
|
-
interface TimelineEventProps {
|
|
281
|
-
/** Event data to render */
|
|
282
|
-
event: TimelineEventData;
|
|
283
|
-
/** Current user ID (to show edit/delete for own comments) */
|
|
284
|
-
currentUserId?: string;
|
|
285
|
-
/** Callback when editing a comment */
|
|
286
|
-
onEdit?: (eventId: string, content: string) => Promise<void>;
|
|
287
|
-
/** Callback when deleting a comment */
|
|
288
|
-
onDelete?: (eventId: string) => Promise<void>;
|
|
289
|
-
/** Optional markdown renderer component */
|
|
290
|
-
markdownRenderer?: React.ComponentType<{
|
|
291
|
-
content: string;
|
|
292
|
-
}>;
|
|
293
|
-
/** Optional CSS class name */
|
|
294
|
-
className?: string;
|
|
295
|
-
}
|
|
296
|
-
/**
|
|
297
|
-
* TimelineEvent Component
|
|
298
|
-
*
|
|
299
|
-
* A pure presentation component for rendering timeline events.
|
|
300
|
-
* Supports different event types including comments with edit/delete functionality.
|
|
301
|
-
*
|
|
302
|
-
* @example Basic usage with state change events
|
|
303
|
-
* ```tsx
|
|
304
|
-
* import { TimelineEvent } from '@datarecce/ui/primitives';
|
|
305
|
-
*
|
|
306
|
-
* function CheckTimeline({ events }) {
|
|
307
|
-
* return (
|
|
308
|
-
* <div>
|
|
309
|
-
* {events.map(event => (
|
|
310
|
-
* <TimelineEvent key={event.id} event={event} />
|
|
311
|
-
* ))}
|
|
312
|
-
* </div>
|
|
313
|
-
* );
|
|
314
|
-
* }
|
|
315
|
-
* ```
|
|
316
|
-
*
|
|
317
|
-
* @example With comment editing
|
|
318
|
-
* ```tsx
|
|
319
|
-
* <TimelineEvent
|
|
320
|
-
* event={commentEvent}
|
|
321
|
-
* currentUserId={currentUser.id}
|
|
322
|
-
* onEdit={async (eventId, content) => {
|
|
323
|
-
* await updateComment(eventId, content);
|
|
324
|
-
* }}
|
|
325
|
-
* onDelete={async (eventId) => {
|
|
326
|
-
* await deleteComment(eventId);
|
|
327
|
-
* }}
|
|
328
|
-
* />
|
|
329
|
-
* ```
|
|
330
|
-
*
|
|
331
|
-
* @example With custom markdown renderer
|
|
332
|
-
* ```tsx
|
|
333
|
-
* import { MarkdownContent } from '@/components/ui/markdown/MarkdownContent';
|
|
334
|
-
*
|
|
335
|
-
* <TimelineEvent
|
|
336
|
-
* event={event}
|
|
337
|
-
* markdownRenderer={({ content }) => (
|
|
338
|
-
* <MarkdownContent content={content} fontSize="sm" />
|
|
339
|
-
* )}
|
|
340
|
-
* />
|
|
341
|
-
* ```
|
|
342
|
-
*/
|
|
343
|
-
declare function TimelineEventComponent({
|
|
344
|
-
event,
|
|
345
|
-
currentUserId,
|
|
346
|
-
onEdit,
|
|
347
|
-
onDelete,
|
|
348
|
-
markdownRenderer,
|
|
349
|
-
className
|
|
350
|
-
}: TimelineEventProps): import("react/jsx-runtime").JSX.Element;
|
|
351
|
-
declare const TimelineEvent: import("react").MemoExoticComponent<typeof TimelineEventComponent>;
|
|
352
|
-
//#endregion
|
|
353
|
-
//#region src/components/check/utils.d.ts
|
|
354
|
-
/**
|
|
355
|
-
* Utility functions for check components
|
|
356
|
-
*/
|
|
357
|
-
/**
|
|
358
|
-
* Build a title string for a check with optional approval indicator
|
|
359
|
-
*
|
|
360
|
-
* @example
|
|
361
|
-
* ```ts
|
|
362
|
-
* const title = buildCheckTitle({ name: "Schema check", isChecked: true });
|
|
363
|
-
* // Returns: "✅ Schema check"
|
|
364
|
-
* ```
|
|
365
|
-
*/
|
|
366
|
-
declare function buildCheckTitle({
|
|
367
|
-
name,
|
|
368
|
-
isChecked
|
|
369
|
-
}: {
|
|
370
|
-
name: string;
|
|
371
|
-
isChecked?: boolean;
|
|
372
|
-
}): string;
|
|
373
|
-
/**
|
|
374
|
-
* Build a description string with fallback for empty descriptions
|
|
375
|
-
*
|
|
376
|
-
* @example
|
|
377
|
-
* ```ts
|
|
378
|
-
* const desc = buildCheckDescription({ description: "" });
|
|
379
|
-
* // Returns: "_(no description)_"
|
|
380
|
-
* ```
|
|
381
|
-
*/
|
|
382
|
-
declare function buildCheckDescription({
|
|
383
|
-
description,
|
|
384
|
-
fallback
|
|
385
|
-
}: {
|
|
386
|
-
description?: string | null;
|
|
387
|
-
fallback?: string;
|
|
388
|
-
}): string;
|
|
389
|
-
/**
|
|
390
|
-
* Check if a run result is missing or has an error
|
|
391
|
-
*
|
|
392
|
-
* Certain check types (schema_diff, lineage_diff) don't require results
|
|
393
|
-
* to enable approval functionality.
|
|
394
|
-
*
|
|
395
|
-
* @example
|
|
396
|
-
* ```ts
|
|
397
|
-
* const disabled = isDisabledByNoResult({
|
|
398
|
-
* type: "row_count_diff",
|
|
399
|
-
* hasResult: false,
|
|
400
|
-
* hasError: false,
|
|
401
|
-
* });
|
|
402
|
-
* // Returns: true
|
|
403
|
-
*
|
|
404
|
-
* const enabled = isDisabledByNoResult({
|
|
405
|
-
* type: "schema_diff",
|
|
406
|
-
* hasResult: false,
|
|
407
|
-
* hasError: false,
|
|
408
|
-
* });
|
|
409
|
-
* // Returns: false (schema_diff doesn't require results)
|
|
410
|
-
* ```
|
|
411
|
-
*/
|
|
412
|
-
declare function isDisabledByNoResult({
|
|
413
|
-
type,
|
|
414
|
-
hasResult,
|
|
415
|
-
hasError
|
|
416
|
-
}: {
|
|
417
|
-
type: string;
|
|
418
|
-
hasResult: boolean;
|
|
419
|
-
hasError: boolean;
|
|
420
|
-
}): boolean;
|
|
421
|
-
/**
|
|
422
|
-
* Format SQL as a markdown code block
|
|
423
|
-
*
|
|
424
|
-
* @example
|
|
425
|
-
* ```ts
|
|
426
|
-
* const markdown = formatSqlAsMarkdown({ sql: "SELECT * FROM users" });
|
|
427
|
-
* // Returns:
|
|
428
|
-
* // **SQL**
|
|
429
|
-
* // ```sql
|
|
430
|
-
* // SELECT * FROM users
|
|
431
|
-
* // ```
|
|
432
|
-
* ```
|
|
433
|
-
*/
|
|
434
|
-
declare function formatSqlAsMarkdown({
|
|
435
|
-
sql,
|
|
436
|
-
label
|
|
437
|
-
}: {
|
|
438
|
-
sql: string;
|
|
439
|
-
label?: string;
|
|
440
|
-
}): string;
|
|
441
|
-
//#endregion
|
|
442
|
-
//#region src/components/data/PairedHistogramContinuous.d.ts
|
|
443
|
-
/**
|
|
444
|
-
* Small continuous paired-bar chart for high-cardinality quantitative data
|
|
445
|
-
* (order amounts, latency, file sizes) using **constant-area** rendering.
|
|
446
|
-
*
|
|
447
|
-
* This is the GA replacement for the prototype `PairedHistogramContinuousCell`,
|
|
448
|
-
* rewritten for the quantile-bin payload shipped by PR 2. The visual
|
|
449
|
-
* vocabulary is preserved (agreement zone + differential), but bar
|
|
450
|
-
* **width** now varies with the bin's quantile
|
|
451
|
-
* span and bar **height** with density, so the **area** of each bar reads
|
|
452
|
-
* directly as the proportion of rows in that bin.
|
|
453
|
-
*
|
|
454
|
-
* Per-env edges, merged x-grid: base and current are binned on their own
|
|
455
|
-
* quantile edges (that's the only way each stays constant-area — see the
|
|
456
|
-
* PR #1398 discussion). They generally don't line up. Rather than force
|
|
457
|
-
* one env onto the other's edges (which destroys the equal-area property
|
|
458
|
-
* and, in the backend, collapses the two densities into one), we overlay
|
|
459
|
-
* both edge sets onto a **shared value axis** and draw a bar at every
|
|
460
|
-
* segment of the *merged* edge set. Each merged segment falls entirely
|
|
461
|
-
* within one base bin and one current bin, so both densities are constant
|
|
462
|
-
* across it — which lets the original agreement-zone + differential
|
|
463
|
-
* renderer run unchanged on the skinnier segments.
|
|
464
|
-
*
|
|
465
|
-
* Why constant-area: with quantile bins, equal-row-count slots have
|
|
466
|
-
* different widths. Uniform-width rendering would overweight wide,
|
|
467
|
-
* sparse bins. Area = density × span gives every bar the same row-share
|
|
468
|
-
* meaning regardless of bin width.
|
|
469
|
-
*
|
|
470
|
-
* Why not reuse `HistogramChart`: HistogramChart unconditionally renders
|
|
471
|
-
* a title row + legend (~50 px overhead). At cell density (h≈28) there
|
|
472
|
-
* is no room left for the bars. HistogramChart still belongs on popover
|
|
473
|
-
* and detail surfaces where its title/legend/tooltip machinery is welcome —
|
|
474
|
-
* just not in a 140×28 grid cell.
|
|
475
|
-
*
|
|
476
|
-
* Bar palette + theme colors come from `getChartBarColors` /
|
|
477
|
-
* `getChartThemeColors` (canonical in `@datarecce/ui/theme`), so all
|
|
478
|
-
* chart surfaces stay in lockstep.
|
|
479
|
-
*/
|
|
480
|
-
/**
|
|
481
|
-
* Payload for the continuous cell. Matches `ProfileDistributionHistogramPayload`
|
|
482
|
-
* from the run API (snake_case wire format) so callers can pass results
|
|
483
|
-
* through with minimal adapting.
|
|
484
|
-
*/
|
|
485
|
-
interface PairedHistogramContinuousData {
|
|
486
|
-
/** Length 12 — base quantile-bin edges. */
|
|
487
|
-
baseBinEdges: number[];
|
|
488
|
-
/** Length 12 — current quantile-bin edges (independent of base's). */
|
|
489
|
-
currentBinEdges: number[];
|
|
490
|
-
/** Length 11 — base density per base bin (count / total / span). */
|
|
491
|
-
baseDensity: number[];
|
|
492
|
-
/** Length 11 — current density per current bin. */
|
|
493
|
-
currentDensity: number[];
|
|
494
|
-
baseTotal: number;
|
|
495
|
-
currentTotal: number;
|
|
496
|
-
}
|
|
497
|
-
interface PairedHistogramContinuousProps {
|
|
498
|
-
data: PairedHistogramContinuousData;
|
|
499
|
-
/** Override default tooltip-range formatter. Default: 1.2K-style abbreviation. */
|
|
500
|
-
formatValue?: (v: number) => string;
|
|
501
|
-
/** Optional CSS class. */
|
|
502
|
-
className?: string;
|
|
503
|
-
}
|
|
504
|
-
/**
|
|
505
|
-
* PairedHistogramContinuous — constant-area paired-bar chart, fixed
|
|
506
|
-
* `CELL_WIDTH × CELL_HEIGHT` (140×28) for SchemaView cell density.
|
|
507
|
-
*
|
|
508
|
-
* @example
|
|
509
|
-
* ```tsx
|
|
510
|
-
* <PairedHistogramContinuous data={distribution} />
|
|
511
|
-
* ```
|
|
512
|
-
*/
|
|
513
|
-
declare function PairedHistogramContinuous({
|
|
514
|
-
data,
|
|
515
|
-
formatValue,
|
|
516
|
-
className
|
|
517
|
-
}: PairedHistogramContinuousProps): import("react/jsx-runtime").JSX.Element;
|
|
518
|
-
//#endregion
|
|
519
|
-
//#region src/components/data/PairedHistogramDiscrete.d.ts
|
|
520
|
-
/**
|
|
521
|
-
* Small categorical paired-bar chart for top-K low-cardinality data —
|
|
522
|
-
* both string-valued (country codes) and numeric-as-label (HTTP status
|
|
523
|
-
* codes). Cell-density sibling of `HistogramChart`/`TopKBarChart`; those
|
|
524
|
-
* keep their place on detail/popover surfaces where title + legend fit.
|
|
525
|
-
*
|
|
526
|
-
* This is the GA replacement for the prototype `PairedHistogramDiscreteCell`,
|
|
527
|
-
* rewritten for the top-K payload shipped by PR 2.
|
|
528
|
-
*
|
|
529
|
-
* Visual: paired bars per category slot. When one side's count is 0
|
|
530
|
-
* (value absent on that side), that bar simply doesn't render, leaving
|
|
531
|
-
* a visible gap that reads as "category absent on this side." This is
|
|
532
|
-
* the **gap-on-absent** semantic locked in DRC-3390.
|
|
533
|
-
*
|
|
534
|
-
* Two rendering modes share the same slot/bar layout:
|
|
535
|
-
*
|
|
536
|
-
* - **counts** (default) — bars sized by per-side proportion. Used when
|
|
537
|
-
* the backend can return both values and counts (e.g. DuckDB
|
|
538
|
-
* `approx_top_k_counts`, Snowflake `APPROX_TOP_K`).
|
|
539
|
-
* - **ranks** — bars sized by rank position only, with
|
|
540
|
-
* `height = (k - rank + 1) / k * chartHeight`. Used when the engine
|
|
541
|
-
* only returns top-K values without counts (DuckDB `approx_top_k`).
|
|
542
|
-
* Stable case reads as two side-by-side descending staircases; an
|
|
543
|
-
* order shift makes current bars zig-zag against base's clean descent.
|
|
544
|
-
*
|
|
545
|
-
* Stage B's wire contract guarantees both sides use the same algorithm —
|
|
546
|
-
* if either side has no counts, both are returned as rank-only. The cell
|
|
547
|
-
* never has to mix counts on one side with ranks on the other.
|
|
548
|
-
*
|
|
549
|
-
* Bar palette + theme colors come from `getChartBarColors` /
|
|
550
|
-
* `getChartThemeColors` (canonical in `@datarecce/ui/theme`).
|
|
551
|
-
*/
|
|
552
|
-
/**
|
|
553
|
-
* Counts-mode payload. Matches `ProfileDistributionTopKPayload`
|
|
554
|
-
* from the run API (snake_case wire format) so callers can pass results
|
|
555
|
-
* through with minimal adapting.
|
|
556
|
-
*/
|
|
557
|
-
interface PairedHistogramDiscreteCountsData {
|
|
558
|
-
/** Optional discriminator — absent or `"counts"` selects this mode. */
|
|
559
|
-
mode?: "counts";
|
|
560
|
-
/** Display order = union(baseTopK, currentTopK), backend-chosen.
|
|
561
|
-
* Caller may pre-sort (e.g. frequency-desc) for cell density.
|
|
562
|
-
*
|
|
563
|
-
* Element type is `unknown` to match Stage B's wire contract — values
|
|
564
|
-
* may arrive as strings, numbers, booleans, dates, NULL, etc. The
|
|
565
|
-
* renderer routes each value through `formatValue` to produce its
|
|
566
|
-
* display string. */
|
|
567
|
-
values: unknown[];
|
|
568
|
-
baseCounts: number[];
|
|
569
|
-
currentCounts: number[];
|
|
570
|
-
/** Denominator for per-slot proportions. Convention is the **column-wide**
|
|
571
|
-
* row count, not `sum(baseCounts)` — so a trimmed top-K renders bars
|
|
572
|
-
* whose proportions sum to <1 (the missing mass is the long tail). When
|
|
573
|
-
* trimmed is false (or absent), column total and sum-of-shown coincide.
|
|
574
|
-
* Stage B owns the wire-format contract; cells just consume what's passed. */
|
|
575
|
-
baseTotal: number;
|
|
576
|
-
currentTotal: number;
|
|
577
|
-
/** True when the original distribution had more values than K — caller
|
|
578
|
-
* passes this through from the payload's `trimmed` field. */
|
|
579
|
-
trimmed?: boolean;
|
|
580
|
-
}
|
|
581
|
-
/**
|
|
582
|
-
* Ranks-mode payload — used when the backend cannot return counts (the
|
|
583
|
-
* DuckDB `approx_top_k` path). Bar heights encode rank position only.
|
|
584
|
-
*
|
|
585
|
-
* Slot order is **baked in by the caller**: base's top-K in base-rank
|
|
586
|
-
* order, then values that appear only in current's top-K appended on the
|
|
587
|
-
* right (sorted by current rank ascending). The component renders the
|
|
588
|
-
* `values` array straight through — it does not re-sort.
|
|
589
|
-
*/
|
|
590
|
-
interface PairedHistogramDiscreteRanksData {
|
|
591
|
-
/** Discriminator — selects rank-only rendering. */
|
|
592
|
-
mode: "ranks";
|
|
593
|
-
/** Display order = base's top-K in base-rank order, then values
|
|
594
|
-
* in current's top-K but not base's, sorted by current rank.
|
|
595
|
-
*
|
|
596
|
-
* Element type is `unknown` to match Stage B's wire contract — values
|
|
597
|
-
* may arrive as strings, numbers, booleans, dates, NULL, etc. The
|
|
598
|
-
* renderer routes each value through `formatValue` to produce its
|
|
599
|
-
* display string. */
|
|
600
|
-
values: unknown[];
|
|
601
|
-
/** Per-value rank in base's top-K, 1-indexed. `null` = value not in
|
|
602
|
-
* base's top-K (no base bar drawn for that slot). */
|
|
603
|
-
baseRanks: (number | null)[];
|
|
604
|
-
/** Per-value rank in current's top-K, 1-indexed. `null` = value not
|
|
605
|
-
* in current's top-K (no current bar drawn for that slot). */
|
|
606
|
-
currentRanks: (number | null)[];
|
|
607
|
-
/** Max rank in top-K (e.g. 12). Drives bar-height scaling. */
|
|
608
|
-
k: number;
|
|
609
|
-
/** True when the original distribution had more values than K. */
|
|
610
|
-
trimmed?: boolean;
|
|
611
|
-
}
|
|
612
|
-
/**
|
|
613
|
-
* Discriminated union of the two supported payload shapes. Counts mode
|
|
614
|
-
* sizes bars by per-side proportion; ranks mode sizes by rank position.
|
|
615
|
-
*/
|
|
616
|
-
type PairedHistogramDiscreteData = PairedHistogramDiscreteCountsData | PairedHistogramDiscreteRanksData;
|
|
617
|
-
interface PairedHistogramDiscreteProps {
|
|
618
|
-
data: PairedHistogramDiscreteData;
|
|
619
|
-
/**
|
|
620
|
-
* Convert each raw value to its display string. Default: `String(v)`.
|
|
621
|
-
* Override to handle NULL nicely, abbreviate large numbers, format
|
|
622
|
-
* dates, etc.
|
|
623
|
-
*
|
|
624
|
-
* Stage B's payload contract types `values` as `unknown[]`; this hook
|
|
625
|
-
* is the cell's single seam for turning heterogeneous raw values into
|
|
626
|
-
* something legible. Stage C will dispatch on column type and pass the
|
|
627
|
-
* right formatter; the cell itself stays type-blind.
|
|
628
|
-
*/
|
|
629
|
-
formatValue?: (v: unknown) => string;
|
|
630
|
-
/** Optional CSS class. */
|
|
631
|
-
className?: string;
|
|
632
|
-
}
|
|
633
|
-
/**
|
|
634
|
-
* PairedHistogramDiscrete — paired-bar top-K chart with gap-on-absent
|
|
635
|
-
* semantics, fixed `CELL_WIDTH × CELL_HEIGHT` (140×28) for SchemaView
|
|
636
|
-
* cell density. Supports counts mode (proportion-sized bars) and ranks
|
|
637
|
-
* mode (rank-position-sized bars).
|
|
638
|
-
*
|
|
639
|
-
* @example
|
|
640
|
-
* ```tsx
|
|
641
|
-
* <PairedHistogramDiscrete data={topK} />
|
|
642
|
-
* ```
|
|
643
|
-
*/
|
|
644
|
-
declare function PairedHistogramDiscrete({
|
|
645
|
-
data,
|
|
646
|
-
formatValue,
|
|
647
|
-
className
|
|
648
|
-
}: PairedHistogramDiscreteProps): import("react/jsx-runtime").JSX.Element;
|
|
649
|
-
//#endregion
|
|
650
|
-
//#region src/components/data/ProfileDistributionUnsupportedBanner.d.ts
|
|
651
|
-
/**
|
|
652
|
-
* One-time banner shown when the dbt adapter can't run the paired-
|
|
653
|
-
* distribution feature at all (e.g. Postgres, MySQL, SQLite,
|
|
654
|
-
* SQL Server < 2022). The backend signals this with a single
|
|
655
|
-
* `{status: "unsupported", reason: ...}` envelope rather than a per-
|
|
656
|
-
* column payload. DRC-3390 PR 3.
|
|
657
|
-
*
|
|
658
|
-
* The banner is intentionally low-key (MUI Alert "info" severity, dense
|
|
659
|
-
* padding) so it doesn't dominate the schema view when the feature is
|
|
660
|
-
* flag-enabled but unavailable on this warehouse. It carries the
|
|
661
|
-
* backend's `reason` string so users know *why* — usually "adapter
|
|
662
|
-
* lacks native HLL / approx_percentile / approx_top_k".
|
|
663
|
-
*/
|
|
664
|
-
interface ProfileDistributionUnsupportedBannerProps {
|
|
665
|
-
/** Backend-provided explanation. Falls back to a generic message. */
|
|
666
|
-
reason?: string;
|
|
667
|
-
/** Optional adapter-type for a more specific message (e.g. "postgres"). */
|
|
668
|
-
adapterType?: string;
|
|
669
|
-
/** Optional CSS class override. */
|
|
670
|
-
className?: string;
|
|
671
|
-
}
|
|
672
|
-
declare function ProfileDistributionUnsupportedBanner({
|
|
673
|
-
reason,
|
|
674
|
-
adapterType,
|
|
675
|
-
className
|
|
676
|
-
}: ProfileDistributionUnsupportedBannerProps): import("react/jsx-runtime").JSX.Element;
|
|
677
|
-
//#endregion
|
|
678
|
-
//#region src/components/editor/CodeEditor.d.ts
|
|
679
|
-
/**
|
|
680
|
-
* Supported languages for the code editor
|
|
681
|
-
*/
|
|
682
|
-
type CodeEditorLanguage = "sql" | "yaml" | "text";
|
|
683
|
-
/**
|
|
684
|
-
* Theme options for the code editor
|
|
685
|
-
*/
|
|
686
|
-
type CodeEditorTheme = "light" | "dark";
|
|
687
|
-
/**
|
|
688
|
-
* Props for the CodeEditor component
|
|
689
|
-
*/
|
|
690
|
-
interface CodeEditorProps {
|
|
691
|
-
/** The code content to display */
|
|
692
|
-
value: string;
|
|
693
|
-
/** Callback when content changes */
|
|
694
|
-
onChange?: (value: string) => void;
|
|
695
|
-
/** Language for syntax highlighting */
|
|
696
|
-
language?: CodeEditorLanguage;
|
|
697
|
-
/** Whether editor is read-only */
|
|
698
|
-
readOnly?: boolean;
|
|
699
|
-
/** Show line numbers */
|
|
700
|
-
lineNumbers?: boolean;
|
|
701
|
-
/** Enable word wrap */
|
|
702
|
-
wordWrap?: boolean;
|
|
703
|
-
/** Font size in pixels */
|
|
704
|
-
fontSize?: number;
|
|
705
|
-
/** Editor height */
|
|
706
|
-
height?: string;
|
|
707
|
-
/** Optional CSS class */
|
|
708
|
-
className?: string;
|
|
709
|
-
/** Theme mode */
|
|
710
|
-
theme?: CodeEditorTheme;
|
|
711
|
-
/** Custom keyboard shortcuts */
|
|
712
|
-
keyBindings?: Array<{
|
|
713
|
-
key: string;
|
|
714
|
-
run: () => boolean;
|
|
715
|
-
}>;
|
|
716
|
-
}
|
|
717
|
-
/**
|
|
718
|
-
* CodeEditor Component
|
|
719
|
-
*
|
|
720
|
-
* A code editor component using CodeMirror with React integration.
|
|
721
|
-
* Supports SQL and YAML syntax highlighting with customizable theming.
|
|
722
|
-
*
|
|
723
|
-
* @example Basic usage
|
|
724
|
-
* ```tsx
|
|
725
|
-
* import { CodeEditor } from '@datarecce/ui/primitives';
|
|
726
|
-
*
|
|
727
|
-
* function SqlEditor({ sql, onSqlChange }) {
|
|
728
|
-
* return (
|
|
729
|
-
* <CodeEditor
|
|
730
|
-
* value={sql}
|
|
731
|
-
* onChange={onSqlChange}
|
|
732
|
-
* language="sql"
|
|
733
|
-
* />
|
|
734
|
-
* );
|
|
735
|
-
* }
|
|
736
|
-
* ```
|
|
737
|
-
*
|
|
738
|
-
* @example Read-only with dark theme
|
|
739
|
-
* ```tsx
|
|
740
|
-
* <CodeEditor
|
|
741
|
-
* value={yamlContent}
|
|
742
|
-
* language="yaml"
|
|
743
|
-
* readOnly
|
|
744
|
-
* theme="dark"
|
|
745
|
-
* height="300px"
|
|
746
|
-
* />
|
|
747
|
-
* ```
|
|
748
|
-
*
|
|
749
|
-
* @example With custom key bindings
|
|
750
|
-
* ```tsx
|
|
751
|
-
* const keyBindings = [
|
|
752
|
-
* { key: "Mod-Enter", run: () => { handleSubmit(); return true; } }
|
|
753
|
-
* ];
|
|
754
|
-
*
|
|
755
|
-
* <CodeEditor
|
|
756
|
-
* value={sql}
|
|
757
|
-
* onChange={setSql}
|
|
758
|
-
* language="sql"
|
|
759
|
-
* keyBindings={keyBindings}
|
|
760
|
-
* />
|
|
761
|
-
* ```
|
|
762
|
-
*/
|
|
763
|
-
declare function CodeEditor({
|
|
764
|
-
value,
|
|
765
|
-
onChange,
|
|
766
|
-
language,
|
|
767
|
-
readOnly,
|
|
768
|
-
lineNumbers,
|
|
769
|
-
wordWrap,
|
|
770
|
-
fontSize,
|
|
771
|
-
height,
|
|
772
|
-
className,
|
|
773
|
-
theme,
|
|
774
|
-
keyBindings
|
|
775
|
-
}: CodeEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
776
|
-
//#endregion
|
|
777
|
-
//#region src/components/ui/ChangedOnlyCheckbox.d.ts
|
|
778
|
-
interface ChangedOnlyCheckboxProps {
|
|
779
|
-
/** Whether the changed-only filter is enabled */
|
|
780
|
-
changedOnly?: boolean;
|
|
781
|
-
/** Callback when the checkbox state changes */
|
|
782
|
-
onChange: () => void;
|
|
783
|
-
}
|
|
784
|
-
/**
|
|
785
|
-
* A checkbox component for filtering diff results to show only changed rows.
|
|
786
|
-
*
|
|
787
|
-
* @example
|
|
788
|
-
* ```tsx
|
|
789
|
-
* <ChangedOnlyCheckbox
|
|
790
|
-
* changedOnly={viewOptions.changed_only}
|
|
791
|
-
* onChange={() => setChangedOnly(!viewOptions.changed_only)}
|
|
792
|
-
* />
|
|
793
|
-
* ```
|
|
794
|
-
*/
|
|
795
|
-
declare function ChangedOnlyCheckbox({
|
|
796
|
-
changedOnly,
|
|
797
|
-
onChange
|
|
798
|
-
}: ChangedOnlyCheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
799
|
-
//#endregion
|
|
800
|
-
//#region src/components/ui/DiffDisplayModeSwitch.d.ts
|
|
801
|
-
type DiffDisplayMode = "inline" | "side_by_side";
|
|
802
|
-
interface DiffDisplayModeSwitchProps {
|
|
803
|
-
/** Current display mode */
|
|
804
|
-
displayMode: DiffDisplayMode;
|
|
805
|
-
/** Callback when display mode changes */
|
|
806
|
-
onDisplayModeChanged: (displayMode: DiffDisplayMode) => void;
|
|
807
|
-
}
|
|
808
|
-
/**
|
|
809
|
-
* A switch component for toggling between inline and side-by-side diff display modes.
|
|
810
|
-
*
|
|
811
|
-
* When in inline mode, also shows color legend (Base = red, Current = green).
|
|
812
|
-
*
|
|
813
|
-
* @example
|
|
814
|
-
* ```tsx
|
|
815
|
-
* <DiffDisplayModeSwitch
|
|
816
|
-
* displayMode="inline"
|
|
817
|
-
* onDisplayModeChanged={(mode) => setDisplayMode(mode)}
|
|
818
|
-
* />
|
|
819
|
-
* ```
|
|
820
|
-
*/
|
|
821
|
-
declare function DiffDisplayModeSwitch({
|
|
822
|
-
displayMode,
|
|
823
|
-
onDisplayModeChanged
|
|
824
|
-
}: DiffDisplayModeSwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
825
|
-
//#endregion
|
|
826
|
-
//#region src/components/ui/DiffText.d.ts
|
|
827
|
-
/**
|
|
828
|
-
* Props for the DiffText component
|
|
829
|
-
*/
|
|
830
|
-
interface DiffTextProps {
|
|
831
|
-
/** The text value to display */
|
|
832
|
-
value: string;
|
|
833
|
-
/** Color palette for the diff indicator */
|
|
834
|
-
colorPalette: "red" | "green";
|
|
835
|
-
/** Whether to gray out the text (for null/missing values) */
|
|
836
|
-
grayOut?: boolean;
|
|
837
|
-
/** Hide the copy button */
|
|
838
|
-
noCopy?: boolean;
|
|
839
|
-
/** Custom font size */
|
|
840
|
-
fontSize?: string;
|
|
841
|
-
/**
|
|
842
|
-
* Callback when copy button is clicked.
|
|
843
|
-
* If provided, the component will use this for copy functionality.
|
|
844
|
-
* If not provided, uses navigator.clipboard.writeText.
|
|
845
|
-
*/
|
|
846
|
-
onCopy?: (value: string) => void;
|
|
847
|
-
}
|
|
848
|
-
/**
|
|
849
|
-
* DiffText Component
|
|
850
|
-
*
|
|
851
|
-
* Displays a text value with diff styling (red for removed, green for added).
|
|
852
|
-
* Includes an optional copy-to-clipboard button on hover.
|
|
853
|
-
*
|
|
854
|
-
* @example Basic usage
|
|
855
|
-
* ```tsx
|
|
856
|
-
* import { DiffText } from '@datarecce/ui';
|
|
857
|
-
*
|
|
858
|
-
* // Show a value that was added (green)
|
|
859
|
-
* <DiffText value="new_value" colorPalette="green" />
|
|
860
|
-
*
|
|
861
|
-
* // Show a value that was removed (red)
|
|
862
|
-
* <DiffText value="old_value" colorPalette="red" />
|
|
863
|
-
* ```
|
|
864
|
-
*
|
|
865
|
-
* @example With custom copy callback
|
|
866
|
-
* ```tsx
|
|
867
|
-
* <DiffText
|
|
868
|
-
* value="copy_me"
|
|
869
|
-
* colorPalette="green"
|
|
870
|
-
* onCopy={(value) => {
|
|
871
|
-
* navigator.clipboard.writeText(value);
|
|
872
|
-
* showToast(`${value} copied!`);
|
|
873
|
-
* }}
|
|
874
|
-
* />
|
|
875
|
-
* ```
|
|
876
|
-
*
|
|
877
|
-
* @example Grayed out (null value)
|
|
878
|
-
* ```tsx
|
|
879
|
-
* <DiffText value="null" colorPalette="red" grayOut />
|
|
880
|
-
* ```
|
|
881
|
-
*/
|
|
882
|
-
declare function DiffText({
|
|
883
|
-
value,
|
|
884
|
-
colorPalette,
|
|
885
|
-
grayOut,
|
|
886
|
-
noCopy,
|
|
887
|
-
fontSize,
|
|
888
|
-
onCopy
|
|
889
|
-
}: DiffTextProps): import("react/jsx-runtime").JSX.Element;
|
|
890
|
-
//#endregion
|
|
891
|
-
//#region src/components/ui/DiffTextWithToast.d.ts
|
|
892
|
-
type DiffTextWithToastProps = Omit<DiffTextProps, "onCopy">;
|
|
893
|
-
/**
|
|
894
|
-
* DiffText component with automatic copy-to-clipboard toast notifications.
|
|
895
|
-
*
|
|
896
|
-
* This is a convenience wrapper around the base DiffText component that adds
|
|
897
|
-
* the toast notification behavior. Use this when you want the "batteries included"
|
|
898
|
-
* experience with copy feedback.
|
|
899
|
-
*
|
|
900
|
-
* @example
|
|
901
|
-
* ```tsx
|
|
902
|
-
* // Shows toast when user clicks copy icon
|
|
903
|
-
* <DiffTextWithToast base="old value" current="new value" />
|
|
904
|
-
* ```
|
|
905
|
-
*/
|
|
906
|
-
declare function DiffTextWithToast(props: DiffTextWithToastProps): import("react/jsx-runtime").JSX.Element;
|
|
907
|
-
//#endregion
|
|
908
|
-
//#region src/components/ui/DropdownValuesInput.d.ts
|
|
909
|
-
/**
|
|
910
|
-
* @file DropdownValuesInput.tsx
|
|
911
|
-
* @description Multi-select dropdown input component with filtering and custom value support
|
|
912
|
-
*
|
|
913
|
-
* Features:
|
|
914
|
-
* - Dropdown menu with suggestion list
|
|
915
|
-
* - Filter/search functionality (case-insensitive)
|
|
916
|
-
* - Chip-based value display with removal
|
|
917
|
-
* - Keyboard navigation (Enter, comma, Backspace)
|
|
918
|
-
* - Custom value addition
|
|
919
|
-
* - Configurable size variants
|
|
920
|
-
*/
|
|
921
|
-
/**
|
|
922
|
-
* Size variants for the dropdown input
|
|
923
|
-
*/
|
|
924
|
-
type DropdownValuesInputSize = "2xs" | "xs" | "sm" | "md" | "lg";
|
|
925
|
-
/**
|
|
926
|
-
* Props for the DropdownValuesInput component
|
|
927
|
-
*/
|
|
928
|
-
interface DropdownValuesInputProps {
|
|
929
|
-
/** Unit name for pluralization in "X {unitName}s selected" display */
|
|
930
|
-
unitName: string;
|
|
931
|
-
/** List of suggested values to show in dropdown */
|
|
932
|
-
suggestionList?: string[];
|
|
933
|
-
/** Initial selected values */
|
|
934
|
-
defaultValues?: string[];
|
|
935
|
-
/** Callback when selected values change */
|
|
936
|
-
onValuesChange: (values: string[]) => void;
|
|
937
|
-
/** Optional CSS class name */
|
|
938
|
-
className?: string;
|
|
939
|
-
/** Size variant for the input */
|
|
940
|
-
size?: DropdownValuesInputSize;
|
|
941
|
-
/** Width of the input (CSS value or number in pixels) */
|
|
942
|
-
width?: string | number;
|
|
943
|
-
/** Placeholder text when no values are selected */
|
|
944
|
-
placeholder?: string;
|
|
945
|
-
/** Whether the input is disabled */
|
|
946
|
-
disabled?: boolean;
|
|
947
|
-
}
|
|
948
|
-
/**
|
|
949
|
-
* A multi-select dropdown input component for selecting multiple values.
|
|
950
|
-
*
|
|
951
|
-
* Provides a dropdown menu with suggestion list, filtering, and the ability
|
|
952
|
-
* to add custom values. Selected values are displayed as chips that can be
|
|
953
|
-
* removed individually.
|
|
954
|
-
*
|
|
955
|
-
* @example
|
|
956
|
-
* ```tsx
|
|
957
|
-
* <DropdownValuesInput
|
|
958
|
-
* unitName="key"
|
|
959
|
-
* suggestionList={["id", "name", "email"]}
|
|
960
|
-
* defaultValues={["id"]}
|
|
961
|
-
* onValuesChange={(values) => console.log(values)}
|
|
962
|
-
* placeholder="Select or type to add keys"
|
|
963
|
-
* size="sm"
|
|
964
|
-
* width={240}
|
|
965
|
-
* />
|
|
966
|
-
* ```
|
|
967
|
-
*/
|
|
968
|
-
declare const DropdownValuesInput: (props: DropdownValuesInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
969
|
-
//#endregion
|
|
970
|
-
//#region src/components/ui/ExternalLinkConfirmDialog.d.ts
|
|
971
|
-
/**
|
|
972
|
-
* Props for ExternalLinkConfirmDialog
|
|
973
|
-
*/
|
|
974
|
-
interface ExternalLinkConfirmDialogProps {
|
|
975
|
-
/** Whether the dialog is open */
|
|
976
|
-
isOpen: boolean;
|
|
977
|
-
/** The external URL the user is trying to navigate to */
|
|
978
|
-
url: string;
|
|
979
|
-
/** Callback when user confirms navigation */
|
|
980
|
-
onConfirm: () => void;
|
|
981
|
-
/** Callback when user cancels navigation */
|
|
982
|
-
onCancel: () => void;
|
|
983
|
-
}
|
|
984
|
-
/**
|
|
985
|
-
* Truncate a URL for display, keeping the domain visible
|
|
986
|
-
*/
|
|
987
|
-
declare function truncateUrl(url: string, maxLength?: number): string;
|
|
988
|
-
/**
|
|
989
|
-
* ExternalLinkConfirmDialog Component
|
|
990
|
-
*
|
|
991
|
-
* A dialog that asks users to confirm before navigating to external URLs.
|
|
992
|
-
*
|
|
993
|
-
* @example Basic usage
|
|
994
|
-
* ```tsx
|
|
995
|
-
* import { ExternalLinkConfirmDialog } from '@datarecce/ui/primitives';
|
|
996
|
-
*
|
|
997
|
-
* function MyComponent() {
|
|
998
|
-
* const [isOpen, setIsOpen] = useState(false);
|
|
999
|
-
* const [pendingUrl, setPendingUrl] = useState('');
|
|
1000
|
-
*
|
|
1001
|
-
* return (
|
|
1002
|
-
* <ExternalLinkConfirmDialog
|
|
1003
|
-
* isOpen={isOpen}
|
|
1004
|
-
* url={pendingUrl}
|
|
1005
|
-
* onConfirm={() => {
|
|
1006
|
-
* window.open(pendingUrl, '_blank');
|
|
1007
|
-
* setIsOpen(false);
|
|
1008
|
-
* }}
|
|
1009
|
-
* onCancel={() => setIsOpen(false)}
|
|
1010
|
-
* />
|
|
1011
|
-
* );
|
|
1012
|
-
* }
|
|
1013
|
-
* ```
|
|
1014
|
-
*/
|
|
1015
|
-
declare function ExternalLinkConfirmDialog({
|
|
1016
|
-
isOpen,
|
|
1017
|
-
url,
|
|
1018
|
-
onConfirm,
|
|
1019
|
-
onCancel
|
|
1020
|
-
}: ExternalLinkConfirmDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
1021
|
-
//#endregion
|
|
1022
|
-
//#region src/components/ui/MarkdownContent.d.ts
|
|
1023
|
-
/**
|
|
1024
|
-
* Props for MarkdownContent component
|
|
1025
|
-
*/
|
|
1026
|
-
interface MarkdownContentProps {
|
|
1027
|
-
/** The markdown content to render */
|
|
1028
|
-
content: string;
|
|
1029
|
-
/** Font size for the rendered content */
|
|
1030
|
-
fontSize?: string;
|
|
1031
|
-
/** Additional domains to treat as internal (not showing confirmation) */
|
|
1032
|
-
internalDomains?: string[];
|
|
1033
|
-
}
|
|
1034
|
-
/**
|
|
1035
|
-
* MarkdownContent Component
|
|
1036
|
-
*
|
|
1037
|
-
* A component for rendering GitHub-flavored Markdown with syntax highlighting
|
|
1038
|
-
* and external link confirmation.
|
|
1039
|
-
*
|
|
1040
|
-
* @example Basic usage
|
|
1041
|
-
* ```tsx
|
|
1042
|
-
* import { MarkdownContent } from '@datarecce/ui/primitives';
|
|
1043
|
-
*
|
|
1044
|
-
* function Description({ text }) {
|
|
1045
|
-
* return <MarkdownContent content={text} />;
|
|
1046
|
-
* }
|
|
1047
|
-
* ```
|
|
1048
|
-
*
|
|
1049
|
-
* @example With custom font size
|
|
1050
|
-
* ```tsx
|
|
1051
|
-
* <MarkdownContent content={markdown} fontSize="1rem" />
|
|
1052
|
-
* ```
|
|
1053
|
-
*
|
|
1054
|
-
* @example With additional internal domains
|
|
1055
|
-
* ```tsx
|
|
1056
|
-
* <MarkdownContent
|
|
1057
|
-
* content={markdown}
|
|
1058
|
-
* internalDomains={['company.com', 'docs.company.com']}
|
|
1059
|
-
* />
|
|
1060
|
-
* ```
|
|
1061
|
-
*/
|
|
1062
|
-
declare function MarkdownContent({
|
|
1063
|
-
content,
|
|
1064
|
-
fontSize,
|
|
1065
|
-
internalDomains
|
|
1066
|
-
}: MarkdownContentProps): import("react/jsx-runtime").JSX.Element;
|
|
1067
|
-
//#endregion
|
|
1068
|
-
//#region src/components/ui/ScreenshotBox.d.ts
|
|
1069
|
-
interface ScreenshotBoxProps extends BoxProps {
|
|
1070
|
-
/** Background color for the screenshot area */
|
|
1071
|
-
backgroundColor?: string;
|
|
1072
|
-
/** Block size (height in block direction) */
|
|
1073
|
-
blockSize?: string;
|
|
1074
|
-
/** Content to render inside the screenshot area */
|
|
1075
|
-
children?: React.ReactNode;
|
|
1076
|
-
}
|
|
1077
|
-
/**
|
|
1078
|
-
* A container component that can be captured as a screenshot.
|
|
1079
|
-
*
|
|
1080
|
-
* The component forwards its ref to the outer container, allowing parent
|
|
1081
|
-
* components to capture the element using snapdom or similar libraries.
|
|
1082
|
-
*
|
|
1083
|
-
* @example
|
|
1084
|
-
* ```tsx
|
|
1085
|
-
* const ref = useRef<HTMLDivElement>(null);
|
|
1086
|
-
*
|
|
1087
|
-
* const captureScreenshot = async () => {
|
|
1088
|
-
* if (ref.current) {
|
|
1089
|
-
* const dataUrl = await toPng(ref.current);
|
|
1090
|
-
* // Use dataUrl...
|
|
1091
|
-
* }
|
|
1092
|
-
* };
|
|
1093
|
-
*
|
|
1094
|
-
* return (
|
|
1095
|
-
* <ScreenshotBox ref={ref} backgroundColor="white">
|
|
1096
|
-
* <Chart data={data} />
|
|
1097
|
-
* </ScreenshotBox>
|
|
1098
|
-
* );
|
|
1099
|
-
* ```
|
|
1100
|
-
*/
|
|
1101
|
-
declare const ScreenshotBox: import("react").ForwardRefExoticComponent<Omit<ScreenshotBoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
1102
|
-
//#endregion
|
|
1103
|
-
//#region src/components/ui/Split.d.ts
|
|
1104
|
-
/**
|
|
1105
|
-
* Props for HSplit and VSplit components
|
|
1106
|
-
*
|
|
1107
|
-
* These components provide backward-compatible wrappers around SplitPane,
|
|
1108
|
-
* accepting the same props as react-split's SplitProps.
|
|
1109
|
-
*/
|
|
1110
|
-
type SplitProps$1 = SplitProps;
|
|
1111
|
-
/**
|
|
1112
|
-
* Horizontal Split Component
|
|
1113
|
-
*
|
|
1114
|
-
* A convenience wrapper around SplitPane that creates a horizontal (left-right) split.
|
|
1115
|
-
* Maintains backward compatibility with react-split's SplitProps interface.
|
|
1116
|
-
*
|
|
1117
|
-
* @example Basic horizontal split
|
|
1118
|
-
* ```tsx
|
|
1119
|
-
* import { HSplit } from '@datarecce/ui';
|
|
1120
|
-
*
|
|
1121
|
-
* function TwoColumnLayout() {
|
|
1122
|
-
* return (
|
|
1123
|
-
* <HSplit sizes={[30, 70]} minSize={100}>
|
|
1124
|
-
* <div>Left Panel</div>
|
|
1125
|
-
* <div>Right Panel</div>
|
|
1126
|
-
* </HSplit>
|
|
1127
|
-
* );
|
|
1128
|
-
* }
|
|
1129
|
-
* ```
|
|
1130
|
-
*
|
|
1131
|
-
* @example With custom styling
|
|
1132
|
-
* ```tsx
|
|
1133
|
-
* <HSplit
|
|
1134
|
-
* sizes={[20, 80]}
|
|
1135
|
-
* minSize={50}
|
|
1136
|
-
* style={{ height: "100%" }}
|
|
1137
|
-
* >
|
|
1138
|
-
* <nav>Navigation</nav>
|
|
1139
|
-
* <main>Content</main>
|
|
1140
|
-
* </HSplit>
|
|
1141
|
-
* ```
|
|
1142
|
-
*/
|
|
1143
|
-
declare function HSplit(props: SplitProps$1): import("react/jsx-runtime").JSX.Element;
|
|
1144
|
-
/**
|
|
1145
|
-
* Vertical Split Component
|
|
1146
|
-
*
|
|
1147
|
-
* A convenience wrapper around SplitPane that creates a vertical (top-bottom) split.
|
|
1148
|
-
* Maintains backward compatibility with react-split's SplitProps interface.
|
|
1149
|
-
*
|
|
1150
|
-
* @example Basic vertical split
|
|
1151
|
-
* ```tsx
|
|
1152
|
-
* import { VSplit } from '@datarecce/ui';
|
|
1153
|
-
*
|
|
1154
|
-
* function TwoRowLayout() {
|
|
1155
|
-
* return (
|
|
1156
|
-
* <VSplit sizes={[60, 40]} minSize={100}>
|
|
1157
|
-
* <div>Top Panel</div>
|
|
1158
|
-
* <div>Bottom Panel</div>
|
|
1159
|
-
* </VSplit>
|
|
1160
|
-
* );
|
|
1161
|
-
* }
|
|
1162
|
-
* ```
|
|
1163
|
-
*
|
|
1164
|
-
* @example Nested splits
|
|
1165
|
-
* ```tsx
|
|
1166
|
-
* <HSplit sizes={[30, 70]}>
|
|
1167
|
-
* <div>Sidebar</div>
|
|
1168
|
-
* <VSplit sizes={[70, 30]}>
|
|
1169
|
-
* <div>Main Content</div>
|
|
1170
|
-
* <div>Footer</div>
|
|
1171
|
-
* </VSplit>
|
|
1172
|
-
* </HSplit>
|
|
1173
|
-
* ```
|
|
1174
|
-
*/
|
|
1175
|
-
declare function VSplit(props: SplitProps$1): import("react/jsx-runtime").JSX.Element;
|
|
1176
|
-
//#endregion
|
|
1177
|
-
//#region src/components/ui/Toaster.d.ts
|
|
1178
|
-
/**
|
|
1179
|
-
* Toast types and interfaces
|
|
1180
|
-
*/
|
|
1181
|
-
interface ToastOptions {
|
|
1182
|
-
id?: string;
|
|
1183
|
-
title?: string;
|
|
1184
|
-
description?: ReactNode;
|
|
1185
|
-
type?: "success" | "error" | "warning" | "info" | "loading";
|
|
1186
|
-
duration?: number;
|
|
1187
|
-
closable?: boolean;
|
|
1188
|
-
action?: {
|
|
1189
|
-
label: string;
|
|
1190
|
-
onClick: () => void;
|
|
1191
|
-
};
|
|
1192
|
-
}
|
|
1193
|
-
interface ToasterContextValue {
|
|
1194
|
-
toast: (options: ToastOptions) => string;
|
|
1195
|
-
success: (options: Omit<ToastOptions, "type">) => string;
|
|
1196
|
-
error: (options: Omit<ToastOptions, "type">) => string;
|
|
1197
|
-
warning: (options: Omit<ToastOptions, "type">) => string;
|
|
1198
|
-
info: (options: Omit<ToastOptions, "type">) => string;
|
|
1199
|
-
loading: (options: Omit<ToastOptions, "type">) => string;
|
|
1200
|
-
dismiss: (id: string) => void;
|
|
1201
|
-
update: (id: string, options: Partial<ToastOptions>) => void;
|
|
1202
|
-
}
|
|
1203
|
-
/**
|
|
1204
|
-
* Simple toaster implementation using MUI Snackbar
|
|
1205
|
-
*/
|
|
1206
|
-
declare function ToasterProvider({
|
|
1207
|
-
children
|
|
1208
|
-
}: {
|
|
1209
|
-
children: ReactNode;
|
|
1210
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
1211
|
-
/**
|
|
1212
|
-
* Hook to use the toaster
|
|
1213
|
-
*/
|
|
1214
|
-
declare function useToaster(): ToasterContextValue;
|
|
1215
|
-
/**
|
|
1216
|
-
* Standalone toaster instance for use outside React context
|
|
1217
|
-
* Uses a simple event-based system
|
|
1218
|
-
*/
|
|
1219
|
-
interface ToastEvent {
|
|
1220
|
-
type: "create" | "dismiss" | "update";
|
|
1221
|
-
options?: ToastOptions;
|
|
1222
|
-
id?: string;
|
|
1223
|
-
}
|
|
1224
|
-
declare const toaster: {
|
|
1225
|
-
create: (options: ToastOptions) => string;
|
|
1226
|
-
success: (options: Omit<ToastOptions, "type">) => string;
|
|
1227
|
-
error: (options: Omit<ToastOptions, "type">) => string;
|
|
1228
|
-
warning: (options: Omit<ToastOptions, "type">) => string;
|
|
1229
|
-
info: (options: Omit<ToastOptions, "type">) => string;
|
|
1230
|
-
loading: (options: Omit<ToastOptions, "type">) => string;
|
|
1231
|
-
dismiss: (id: string) => void;
|
|
1232
|
-
remove: (id: string) => void;
|
|
1233
|
-
update: (id: string, options: Partial<ToastOptions>) => void;
|
|
1234
|
-
subscribe: (listener: (event: ToastEvent) => void) => () => boolean;
|
|
1235
|
-
};
|
|
1236
|
-
/**
|
|
1237
|
-
* Toaster component that renders toasts from the standalone toaster
|
|
1238
|
-
*/
|
|
1239
|
-
declare function Toaster(): import("react/jsx-runtime").JSX.Element;
|
|
1240
|
-
//#endregion
|
|
1241
|
-
//#region src/components/ui/ToggleSwitch.d.ts
|
|
1242
|
-
interface ToggleSwitchProps {
|
|
1243
|
-
/** Current toggle state */
|
|
1244
|
-
value: boolean;
|
|
1245
|
-
/** Callback when toggle state changes */
|
|
1246
|
-
onChange: (value: boolean) => void;
|
|
1247
|
-
/** Label for the "on" state */
|
|
1248
|
-
textOn?: string;
|
|
1249
|
-
/** Label for the "off" state */
|
|
1250
|
-
textOff?: string;
|
|
1251
|
-
}
|
|
1252
|
-
/**
|
|
1253
|
-
* A toggle switch component that allows switching between two values.
|
|
1254
|
-
*
|
|
1255
|
-
* @example
|
|
1256
|
-
* ```tsx
|
|
1257
|
-
* <ToggleSwitch
|
|
1258
|
-
* value={isEnabled}
|
|
1259
|
-
* onChange={setIsEnabled}
|
|
1260
|
-
* textOff="Inline"
|
|
1261
|
-
* textOn="Side by side"
|
|
1262
|
-
* />
|
|
1263
|
-
* ```
|
|
1264
|
-
*/
|
|
1265
|
-
declare function ToggleSwitch({
|
|
1266
|
-
value,
|
|
1267
|
-
onChange,
|
|
1268
|
-
textOn,
|
|
1269
|
-
textOff
|
|
1270
|
-
}: ToggleSwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
1271
|
-
//#endregion
|
|
1272
|
-
//#region src/primitives.d.ts
|
|
1273
|
-
/**
|
|
1274
|
-
* Version marker for the primitives surface.
|
|
1275
|
-
*/
|
|
1276
|
-
declare const PRIMITIVES_API_VERSION = "0.1.0";
|
|
1277
|
-
//#endregion
|
|
1278
|
-
export { TimelineEventType as $, ChangedOnlyCheckboxProps as A, PairedHistogramDiscreteProps as B, DiffTextWithToastProps as C, DiffDisplayModeSwitch as D, DiffDisplayMode as E, ProfileDistributionUnsupportedBanner as F, buildCheckDescription as G, PairedHistogramContinuous as H, ProfileDistributionUnsupportedBannerProps as I, isDisabledByNoResult as J, buildCheckTitle as K, PairedHistogramDiscrete as L, CodeEditorLanguage as M, CodeEditorProps as N, DiffDisplayModeSwitchProps as O, CodeEditorTheme as P, TimelineEventProps as Q, PairedHistogramDiscreteCountsData as R, DiffTextWithToast as S, DiffTextProps as T, PairedHistogramContinuousData as U, PairedHistogramDiscreteRanksData as V, PairedHistogramContinuousProps as W, TimelineEvent as X, TimelineActor as Y, TimelineEventData as Z, ExternalLinkConfirmDialogProps as _, Toaster as a, PresetCheckTemplateView as at, DropdownValuesInputProps as b, useToaster as c, CheckBreadcrumb as ct, VSplit as d, CommentInput as et, ScreenshotBox as f, ExternalLinkConfirmDialog as g, MarkdownContentProps as h, ToastOptions as i, GenerateCheckTemplateOptions as it, CodeEditor as j, ChangedOnlyCheckbox as k, HSplit as l, CheckBreadcrumbProps as lt, MarkdownContent as m, ToggleSwitch as n, NodeTag as nt, ToasterProvider as o, PresetCheckTemplateViewProps as ot, ScreenshotBoxProps as p, formatSqlAsMarkdown as q, ToggleSwitchProps as r, NodeTagProps as rt, toaster as s, generateCheckTemplate as st, PRIMITIVES_API_VERSION as t, CommentInputProps as tt, SplitProps$1 as u, truncateUrl as v, DiffText as w, DropdownValuesInputSize as x, DropdownValuesInput as y, PairedHistogramDiscreteData as z };
|
|
1279
|
-
//# sourceMappingURL=primitives-CJIlGlsM.d.ts.map
|