@texturehq/edges 1.0.0 → 1.0.2
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/components.manifest.json +231 -2
- package/dist/generated/tailwind-tokens-dark.css +2 -1
- package/dist/generated/tailwind-tokens-light.css +2 -1
- package/dist/index.cjs +68 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -854
- package/dist/index.d.ts +30 -854
- package/dist/index.js +68 -5
- package/dist/index.js.map +1 -1
- package/dist/server-DmvMh5XJ.d.cts +933 -0
- package/dist/server-DmvMh5XJ.d.ts +933 -0
- package/dist/server.cjs +66 -0
- package/dist/server.cjs.map +1 -0
- package/dist/server.d.cts +7 -0
- package/dist/server.d.ts +7 -0
- package/dist/server.js +66 -0
- package/dist/server.js.map +1 -0
- package/dist/styles.css +243 -4
- package/package.json +11 -2
- package/scripts/copy-assets.js +48 -0
- package/scripts/validate-tokens.js +1 -0
- package/templates/claude-rules/claude.md +1 -1
- package/templates/cursor-rules/edges-usage.mdc +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,227 +1,23 @@
|
|
|
1
|
+
import { I as Icon, B as BaseDataPoint, Y as YFormatType, T as TooltipData, a as IconName$2 } from './server-DmvMh5XJ.js';
|
|
2
|
+
export { A as ActionItem, c as ActionMenu, b as ActionMenuProps, e as AppShell, d as AppShellProps, g as Avatar, f as AvatarProps, i as Badge, h as BadgeProps, C as Card, Q as ChartContext, V as ChartMargin, m as CodeEditor, j as CodeEditorProps, k as CodeLanguage, l as CodeTheme, n as DateField, D as DateFieldProps, o as FileUpload, F as FileUploadProps, H as Heading, r as InteractiveMap, q as InteractiveMapProps, L as Loader, p as Logo, s as MAPBOX_THEMES, M as MapPoint, v as Meter, u as MeterProps, w as RichTextEditor, R as RichTextEditorProps, y as SegmentOption, z as SegmentedControl, x as SegmentedControlProps, J as SideNav, E as SideNavItem, G as SideNavProps, t as StaticMap, S as StaticMapProps, K as TextLink, P as TooltipSeries, O as TopNav, N as TopNavProps, $ as YFormatSettings, a0 as clearColorCache, a1 as createCategoryColorMap, W as createXScale, X as createYScale, Z as defaultMargin, a2 as getContrastingTextColor, a3 as getDefaultChartColor, a4 as getDefaultColors, a5 as getResolvedColor, a6 as getThemeCategoricalColors, _ as getYFormatSettings, a7 as isLightColor, U as useChartContext } from './server-DmvMh5XJ.js';
|
|
1
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
4
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, {
|
|
4
|
-
import
|
|
5
|
-
import { Key, ValidationResult, BreadcrumbProps, BreadcrumbsProps, ButtonProps as ButtonProps$1, DateValue, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, CheckboxRenderProps, DateFieldProps as DateFieldProps$1, DateRangePickerProps as DateRangePickerProps$1, DialogProps, TextProps, FormProps, ListBoxProps as ListBoxProps$1, ListBoxItemProps, MeterProps as MeterProps$1, NumberFieldProps as NumberFieldProps$1, PopoverProps as PopoverProps$1, ProgressBarProps as ProgressBarProps$1, RadioProps, RadioGroupProps as RadioGroupProps$1, RangeCalendarProps as RangeCalendarProps$1, SelectProps as SelectProps$1, SwitchProps as SwitchProps$1, TabProps as TabProps$1, TabListProps, TabPanelProps, TabsProps, TextFieldProps as TextFieldProps$1, TimeFieldProps as TimeFieldProps$1, TimeValue, TooltipProps as TooltipProps$1 } from 'react-aria-components';
|
|
5
|
+
import React__default, { ComponentProps, ReactNode, ComponentType, Component, ErrorInfo } from 'react';
|
|
6
|
+
import { Key, ValidationResult, BreadcrumbProps, BreadcrumbsProps, ButtonProps as ButtonProps$1, DateValue, CalendarProps as CalendarProps$1, CheckboxProps as CheckboxProps$1, CheckboxRenderProps, CheckboxGroupProps as CheckboxGroupProps$1, DateRangePickerProps as DateRangePickerProps$1, DialogProps, TextProps, FormProps, ListBoxProps as ListBoxProps$1, ListBoxItemProps, NumberFieldProps as NumberFieldProps$1, PopoverProps as PopoverProps$1, ProgressBarProps as ProgressBarProps$1, RadioProps, RadioGroupProps as RadioGroupProps$1, RangeCalendarProps as RangeCalendarProps$1, SelectProps as SelectProps$1, SwitchProps as SwitchProps$1, TabProps as TabProps$1, TabListProps, TabPanelProps, TabsProps, TextFieldProps as TextFieldProps$1, TimeFieldProps as TimeFieldProps$1, TimeValue, TooltipProps as TooltipProps$1 } from 'react-aria-components';
|
|
6
7
|
export { BreadcrumbProps, BreadcrumbsProps } from 'react-aria-components';
|
|
7
|
-
import * as d3_scale from 'd3-scale';
|
|
8
8
|
import { ScaleTime, ScaleLinear } from 'd3-scale';
|
|
9
|
-
import
|
|
9
|
+
import '@phosphor-icons/react';
|
|
10
|
+
import 'react-map-gl';
|
|
10
11
|
|
|
11
12
|
declare function useDebounce<T>(value: T, delay?: number): T;
|
|
12
13
|
|
|
13
|
-
declare const iconMapping: {
|
|
14
|
-
readonly AppWindow: _phosphor_icons_react.Icon;
|
|
15
|
-
readonly ArrowCircleUp: _phosphor_icons_react.Icon;
|
|
16
|
-
readonly ArrowDown: _phosphor_icons_react.Icon;
|
|
17
|
-
readonly ArrowLeft: _phosphor_icons_react.Icon;
|
|
18
|
-
readonly ArrowLineLeft: _phosphor_icons_react.Icon;
|
|
19
|
-
readonly ArrowRight: _phosphor_icons_react.Icon;
|
|
20
|
-
readonly ArrowSquareOut: _phosphor_icons_react.Icon;
|
|
21
|
-
readonly ArrowUp: _phosphor_icons_react.Icon;
|
|
22
|
-
readonly ArrowsClockwise: _phosphor_icons_react.Icon;
|
|
23
|
-
readonly BatteryCharging: _phosphor_icons_react.Icon;
|
|
24
|
-
readonly BatteryEmpty: _phosphor_icons_react.Icon;
|
|
25
|
-
readonly BatteryFull: _phosphor_icons_react.Icon;
|
|
26
|
-
readonly BatteryHigh: _phosphor_icons_react.Icon;
|
|
27
|
-
readonly BatteryLow: _phosphor_icons_react.Icon;
|
|
28
|
-
readonly BatteryMedium: _phosphor_icons_react.Icon;
|
|
29
|
-
readonly BatteryWarning: _phosphor_icons_react.Icon;
|
|
30
|
-
readonly BookOpen: _phosphor_icons_react.Icon;
|
|
31
|
-
readonly BookmarkSimple: _phosphor_icons_react.Icon;
|
|
32
|
-
readonly BracketsCurly: _phosphor_icons_react.Icon;
|
|
33
|
-
readonly Broadcast: _phosphor_icons_react.Icon;
|
|
34
|
-
readonly Buildings: _phosphor_icons_react.Icon;
|
|
35
|
-
readonly CalendarBlank: _phosphor_icons_react.Icon;
|
|
36
|
-
readonly CaretDown: _phosphor_icons_react.Icon;
|
|
37
|
-
readonly CaretLeft: _phosphor_icons_react.Icon;
|
|
38
|
-
readonly CaretRight: _phosphor_icons_react.Icon;
|
|
39
|
-
readonly CaretUp: _phosphor_icons_react.Icon;
|
|
40
|
-
readonly CarSimple: _phosphor_icons_react.Icon;
|
|
41
|
-
readonly ChargingStation: _phosphor_icons_react.Icon;
|
|
42
|
-
readonly ChartBar: _phosphor_icons_react.Icon;
|
|
43
|
-
readonly ChartLine: _phosphor_icons_react.Icon;
|
|
44
|
-
readonly ChartLineUp: _phosphor_icons_react.Icon;
|
|
45
|
-
readonly Check: _phosphor_icons_react.Icon;
|
|
46
|
-
readonly CheckCircle: _phosphor_icons_react.Icon;
|
|
47
|
-
readonly CheckSquare: _phosphor_icons_react.Icon;
|
|
48
|
-
readonly Circle: _phosphor_icons_react.Icon;
|
|
49
|
-
readonly CircleDashed: _phosphor_icons_react.Icon;
|
|
50
|
-
readonly CircleNotch: _phosphor_icons_react.Icon;
|
|
51
|
-
readonly ClipboardText: _phosphor_icons_react.Icon;
|
|
52
|
-
readonly ClockCountdown: _phosphor_icons_react.Icon;
|
|
53
|
-
readonly Cloud: _phosphor_icons_react.Icon;
|
|
54
|
-
readonly CloudArrowDown: _phosphor_icons_react.Icon;
|
|
55
|
-
readonly CloudFog: _phosphor_icons_react.Icon;
|
|
56
|
-
readonly CloudLightning: _phosphor_icons_react.Icon;
|
|
57
|
-
readonly CloudRain: _phosphor_icons_react.Icon;
|
|
58
|
-
readonly CloudSnow: _phosphor_icons_react.Icon;
|
|
59
|
-
readonly CloudSun: _phosphor_icons_react.Icon;
|
|
60
|
-
readonly Code: _phosphor_icons_react.Icon;
|
|
61
|
-
readonly Columns: _phosphor_icons_react.Icon;
|
|
62
|
-
readonly Copy: _phosphor_icons_react.Icon;
|
|
63
|
-
readonly Cursor: _phosphor_icons_react.Icon;
|
|
64
|
-
readonly Database: _phosphor_icons_react.Icon;
|
|
65
|
-
readonly DotsSix: _phosphor_icons_react.Icon;
|
|
66
|
-
readonly DotsThree: _phosphor_icons_react.Icon;
|
|
67
|
-
readonly DownloadSimple: _phosphor_icons_react.Icon;
|
|
68
|
-
readonly EnvelopeSimple: _phosphor_icons_react.Icon;
|
|
69
|
-
readonly Eye: _phosphor_icons_react.Icon;
|
|
70
|
-
readonly EyeClosed: _phosphor_icons_react.Icon;
|
|
71
|
-
readonly EyeSlash: _phosphor_icons_react.Icon;
|
|
72
|
-
readonly Export: _phosphor_icons_react.Icon;
|
|
73
|
-
readonly FireSimple: _phosphor_icons_react.Icon;
|
|
74
|
-
readonly Flag: _phosphor_icons_react.Icon;
|
|
75
|
-
readonly Gauge: _phosphor_icons_react.Icon;
|
|
76
|
-
readonly GearSix: _phosphor_icons_react.Icon;
|
|
77
|
-
readonly GitBranch: _phosphor_icons_react.Icon;
|
|
78
|
-
readonly HandPointing: _phosphor_icons_react.Icon;
|
|
79
|
-
readonly Handshake: _phosphor_icons_react.Icon;
|
|
80
|
-
readonly Info: _phosphor_icons_react.Icon;
|
|
81
|
-
readonly IntersectSquare: _phosphor_icons_react.Icon;
|
|
82
|
-
readonly Lightning: _phosphor_icons_react.Icon;
|
|
83
|
-
readonly LightningSlash: _phosphor_icons_react.Icon;
|
|
84
|
-
readonly List: _phosphor_icons_react.Icon;
|
|
85
|
-
readonly ListBullets: _phosphor_icons_react.Icon;
|
|
86
|
-
readonly ListNumbers: _phosphor_icons_react.Icon;
|
|
87
|
-
readonly Lock: _phosphor_icons_react.Icon;
|
|
88
|
-
readonly MagnifyingGlass: _phosphor_icons_react.Icon;
|
|
89
|
-
readonly MapPin: _phosphor_icons_react.Icon;
|
|
90
|
-
readonly MapPinArea: _phosphor_icons_react.Icon;
|
|
91
|
-
readonly MaskHappy: _phosphor_icons_react.Icon;
|
|
92
|
-
readonly Moon: _phosphor_icons_react.Icon;
|
|
93
|
-
readonly PaperPlaneRight: _phosphor_icons_react.Icon;
|
|
94
|
-
readonly PaperPlaneTilt: _phosphor_icons_react.Icon;
|
|
95
|
-
readonly PaperclipHorizontal: _phosphor_icons_react.Icon;
|
|
96
|
-
readonly PencilSimple: _phosphor_icons_react.Icon;
|
|
97
|
-
readonly Plugs: _phosphor_icons_react.Icon;
|
|
98
|
-
readonly PlugsConnected: _phosphor_icons_react.Icon;
|
|
99
|
-
readonly Plus: _phosphor_icons_react.Icon;
|
|
100
|
-
readonly Power: _phosphor_icons_react.Icon;
|
|
101
|
-
readonly Pulse: _phosphor_icons_react.Icon;
|
|
102
|
-
readonly Question: _phosphor_icons_react.Icon;
|
|
103
|
-
readonly Repeat: _phosphor_icons_react.Icon;
|
|
104
|
-
readonly Rocket: _phosphor_icons_react.Icon;
|
|
105
|
-
readonly ShareNetwork: _phosphor_icons_react.Icon;
|
|
106
|
-
readonly ShieldCheck: _phosphor_icons_react.Icon;
|
|
107
|
-
readonly SignOut: _phosphor_icons_react.Icon;
|
|
108
|
-
readonly SlackLogo: _phosphor_icons_react.Icon;
|
|
109
|
-
readonly Sliders: _phosphor_icons_react.Icon;
|
|
110
|
-
readonly SlidersHorizontal: _phosphor_icons_react.Icon;
|
|
111
|
-
readonly Snowflake: _phosphor_icons_react.Icon;
|
|
112
|
-
readonly SolarPanel: _phosphor_icons_react.Icon;
|
|
113
|
-
readonly Square: _phosphor_icons_react.Icon;
|
|
114
|
-
readonly SquaresFour: _phosphor_icons_react.Icon;
|
|
115
|
-
readonly Stack: _phosphor_icons_react.Icon;
|
|
116
|
-
readonly Sun: _phosphor_icons_react.Icon;
|
|
117
|
-
readonly Terminal: _phosphor_icons_react.Icon;
|
|
118
|
-
readonly ThermometerCold: _phosphor_icons_react.Icon;
|
|
119
|
-
readonly ThermometerHot: _phosphor_icons_react.Icon;
|
|
120
|
-
readonly ThermometerSimple: _phosphor_icons_react.Icon;
|
|
121
|
-
readonly Trash: _phosphor_icons_react.Icon;
|
|
122
|
-
readonly TreeEvergreen: _phosphor_icons_react.Icon;
|
|
123
|
-
readonly User: _phosphor_icons_react.Icon;
|
|
124
|
-
readonly UserCircle: _phosphor_icons_react.Icon;
|
|
125
|
-
readonly UserPlus: _phosphor_icons_react.Icon;
|
|
126
|
-
readonly Users: _phosphor_icons_react.Icon;
|
|
127
|
-
readonly UsersFour: _phosphor_icons_react.Icon;
|
|
128
|
-
readonly Warning: _phosphor_icons_react.Icon;
|
|
129
|
-
readonly WarningCircle: _phosphor_icons_react.Icon;
|
|
130
|
-
readonly WebhooksLogo: _phosphor_icons_react.Icon;
|
|
131
|
-
readonly Wind: _phosphor_icons_react.Icon;
|
|
132
|
-
readonly X: _phosphor_icons_react.Icon;
|
|
133
|
-
readonly TextureMenuLight: () => react_jsx_runtime.JSX.Element;
|
|
134
|
-
readonly TextureMenuDark: () => react_jsx_runtime.JSX.Element;
|
|
135
|
-
readonly WaveSine: _phosphor_icons_react.Icon;
|
|
136
|
-
};
|
|
137
|
-
type IconName$2 = keyof typeof iconMapping;
|
|
138
|
-
type IconVariant = "default" | "container" | "brand";
|
|
139
|
-
interface ExtendedIconProps {
|
|
140
|
-
name: IconName$2;
|
|
141
|
-
size?: number;
|
|
142
|
-
color?: string;
|
|
143
|
-
weight?: "thin" | "light" | "regular" | "bold" | "fill" | "duotone";
|
|
144
|
-
className?: string;
|
|
145
|
-
title?: string;
|
|
146
|
-
ariaLabel?: string;
|
|
147
|
-
grow?: boolean;
|
|
148
|
-
variant?: IconVariant;
|
|
149
|
-
rounded?: boolean;
|
|
150
|
-
bgColor?: string;
|
|
151
|
-
[key: string]: unknown;
|
|
152
|
-
}
|
|
153
|
-
declare const Icon: React$1.MemoExoticComponent<({ name, size, color, weight, className, title, ariaLabel, grow, variant, rounded, bgColor, ...props }: ExtendedIconProps) => react_jsx_runtime.JSX.Element | null>;
|
|
154
|
-
|
|
155
|
-
interface ActionItem {
|
|
156
|
-
/**
|
|
157
|
-
* Unique identifier for the action
|
|
158
|
-
*/
|
|
159
|
-
id: number | string;
|
|
160
|
-
/**
|
|
161
|
-
* Display name for the action
|
|
162
|
-
*/
|
|
163
|
-
name: string;
|
|
164
|
-
/**
|
|
165
|
-
* Visual variant of the action
|
|
166
|
-
*/
|
|
167
|
-
variant?: "default" | "destructive";
|
|
168
|
-
/**
|
|
169
|
-
* Icon to display with the action
|
|
170
|
-
*/
|
|
171
|
-
iconName?: IconName$2;
|
|
172
|
-
/**
|
|
173
|
-
* Whether the action is disabled
|
|
174
|
-
*/
|
|
175
|
-
disabled?: boolean;
|
|
176
|
-
/**
|
|
177
|
-
* Handler for when the action is selected
|
|
178
|
-
*/
|
|
179
|
-
onAction?: () => void;
|
|
180
|
-
/**
|
|
181
|
-
* Test ID for testing
|
|
182
|
-
*/
|
|
183
|
-
testId?: string;
|
|
184
|
-
}
|
|
185
|
-
interface ActionMenuProps {
|
|
186
|
-
/**
|
|
187
|
-
* List of actions to display
|
|
188
|
-
*/
|
|
189
|
-
items: ActionItem[];
|
|
190
|
-
/**
|
|
191
|
-
* Trigger button component
|
|
192
|
-
*/
|
|
193
|
-
children: ReactNode;
|
|
194
|
-
/**
|
|
195
|
-
* Alignment of the popover
|
|
196
|
-
* @default "left"
|
|
197
|
-
*/
|
|
198
|
-
align?: "left" | "right";
|
|
199
|
-
/**
|
|
200
|
-
* Size of menu items
|
|
201
|
-
* @default "md"
|
|
202
|
-
*/
|
|
203
|
-
size?: "sm" | "md";
|
|
204
|
-
/**
|
|
205
|
-
* Text alignment within menu items
|
|
206
|
-
* @default "left"
|
|
207
|
-
*/
|
|
208
|
-
textAlign?: "left" | "right";
|
|
209
|
-
/**
|
|
210
|
-
* Additional CSS classes
|
|
211
|
-
*/
|
|
212
|
-
className?: string;
|
|
213
|
-
/**
|
|
214
|
-
* Global action handler (called if item doesn't have its own onAction)
|
|
215
|
-
*/
|
|
216
|
-
onAction?: (item: ActionItem) => void;
|
|
217
|
-
}
|
|
218
14
|
/**
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
*
|
|
222
|
-
*
|
|
15
|
+
* Hook for managing localStorage values with React state synchronization
|
|
16
|
+
* @param key - The localStorage key
|
|
17
|
+
* @param initialValue - The initial value if nothing is stored
|
|
18
|
+
* @returns [value, setValue, removeValue] - Current value, setter function, and remove function
|
|
223
19
|
*/
|
|
224
|
-
declare function
|
|
20
|
+
declare function useLocalStorage<T>(key: string, initialValue: T): [T, (value: T | ((val: T) => T)) => void, () => void];
|
|
225
21
|
|
|
226
22
|
/**
|
|
227
23
|
* Control-specific style utilities for form elements and interactive components.
|
|
@@ -296,92 +92,6 @@ interface AutocompleteProps {
|
|
|
296
92
|
}
|
|
297
93
|
declare function Autocomplete({ label, staticItems, sections, selectedKey, defaultSelectedKey, onSelectionChange, requestConfig, defaultFilter, placeholder, errorMessage, description, size, tooltip, isRequired, isDisabled, isInvalid, validationResult, showErrors, renderItem, renderLeftIcon, renderSection, autoFocus, }: AutocompleteProps): react_jsx_runtime.JSX.Element;
|
|
298
94
|
|
|
299
|
-
interface AvatarProps {
|
|
300
|
-
/**
|
|
301
|
-
* URL of the avatar image
|
|
302
|
-
*/
|
|
303
|
-
src?: string;
|
|
304
|
-
/**
|
|
305
|
-
* Alternative text for the image
|
|
306
|
-
*/
|
|
307
|
-
alt?: string;
|
|
308
|
-
/**
|
|
309
|
-
* First name for generating initials
|
|
310
|
-
*/
|
|
311
|
-
firstName?: string;
|
|
312
|
-
/**
|
|
313
|
-
* Last name for generating initials
|
|
314
|
-
*/
|
|
315
|
-
lastName?: string;
|
|
316
|
-
/**
|
|
317
|
-
* Full name (used as fallback for alt text)
|
|
318
|
-
*/
|
|
319
|
-
fullName?: string;
|
|
320
|
-
/**
|
|
321
|
-
* Click handler
|
|
322
|
-
*/
|
|
323
|
-
onClick?: () => void;
|
|
324
|
-
/**
|
|
325
|
-
* Size of the avatar
|
|
326
|
-
* @default "md"
|
|
327
|
-
*/
|
|
328
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
329
|
-
/**
|
|
330
|
-
* Shape of the avatar
|
|
331
|
-
* @default "circle"
|
|
332
|
-
*/
|
|
333
|
-
shape?: "circle" | "square";
|
|
334
|
-
/**
|
|
335
|
-
* Visual variant
|
|
336
|
-
* @default "user"
|
|
337
|
-
*/
|
|
338
|
-
variant?: "user" | "team" | "organization";
|
|
339
|
-
/**
|
|
340
|
-
* Additional CSS classes
|
|
341
|
-
*/
|
|
342
|
-
className?: string;
|
|
343
|
-
/**
|
|
344
|
-
* Status indicator
|
|
345
|
-
*/
|
|
346
|
-
status?: "online" | "offline" | "away" | "busy";
|
|
347
|
-
/**
|
|
348
|
-
* Whether to show a border
|
|
349
|
-
* @default false
|
|
350
|
-
*/
|
|
351
|
-
bordered?: boolean;
|
|
352
|
-
}
|
|
353
|
-
/**
|
|
354
|
-
* Avatar
|
|
355
|
-
*
|
|
356
|
-
* Display user, team, or organization avatars with support for images,
|
|
357
|
-
* initials, and fallback icons. Includes optional status indicators.
|
|
358
|
-
*/
|
|
359
|
-
declare function Avatar({ src, alt, firstName, lastName, fullName, onClick, size, shape, variant, className, status, bordered, }: AvatarProps): react_jsx_runtime.JSX.Element;
|
|
360
|
-
|
|
361
|
-
interface BadgeProps {
|
|
362
|
-
/** The content to display inside the badge */
|
|
363
|
-
children: React__default.ReactNode;
|
|
364
|
-
/** Visual variant of the badge */
|
|
365
|
-
variant?: "default" | "success" | "error" | "warning" | "info" | "primary" | "secondary" | "neutral";
|
|
366
|
-
/** Size of the badge */
|
|
367
|
-
size?: "sm" | "md" | "lg";
|
|
368
|
-
/** Shape of the badge */
|
|
369
|
-
shape?: "pill" | "rounded" | "square";
|
|
370
|
-
/** Whether to show a dot indicator */
|
|
371
|
-
dot?: boolean;
|
|
372
|
-
/** Position of the dot */
|
|
373
|
-
dotPosition?: "left" | "right";
|
|
374
|
-
/** Additional CSS classes */
|
|
375
|
-
className?: string;
|
|
376
|
-
}
|
|
377
|
-
/**
|
|
378
|
-
* Badge
|
|
379
|
-
*
|
|
380
|
-
* A non-interactive label for displaying status, counts, or categories.
|
|
381
|
-
* Use for read-only indicators. For interactive elements, use Chip instead.
|
|
382
|
-
*/
|
|
383
|
-
declare function Badge({ children, variant, size, shape, dot, dotPosition, className, }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
384
|
-
|
|
385
95
|
/**
|
|
386
96
|
* Breadcrumbs
|
|
387
97
|
*
|
|
@@ -447,21 +157,16 @@ interface CalendarProps<T extends DateValue> extends Omit<CalendarProps$1<T>, "v
|
|
|
447
157
|
declare function Calendar<T extends DateValue>({ errorMessage, ...props }: CalendarProps<T>): react_jsx_runtime.JSX.Element;
|
|
448
158
|
|
|
449
159
|
/**
|
|
450
|
-
*
|
|
160
|
+
* CheckboxGroup
|
|
451
161
|
*
|
|
452
|
-
*
|
|
162
|
+
* Groups multiple checkboxes with shared label/description.
|
|
453
163
|
*/
|
|
454
|
-
interface
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
children?: React__default.ReactNode;
|
|
460
|
-
className?: string;
|
|
461
|
-
isLoading?: boolean;
|
|
164
|
+
interface CheckboxGroupProps extends Omit<CheckboxGroupProps$1, "children"> {
|
|
165
|
+
label?: string;
|
|
166
|
+
children?: ReactNode;
|
|
167
|
+
description?: string;
|
|
168
|
+
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
462
169
|
}
|
|
463
|
-
declare const Card: React__default.FC<CardProps>;
|
|
464
|
-
|
|
465
170
|
/**
|
|
466
171
|
* Checkbox
|
|
467
172
|
*
|
|
@@ -470,6 +175,7 @@ declare const Card: React__default.FC<CardProps>;
|
|
|
470
175
|
interface CheckboxProps extends Omit<CheckboxProps$1, "children"> {
|
|
471
176
|
children?: ReactNode | ((props: CheckboxRenderProps) => ReactNode);
|
|
472
177
|
}
|
|
178
|
+
declare function CheckboxGroup(props: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
|
|
473
179
|
declare function Checkbox(props: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
474
180
|
|
|
475
181
|
interface ChipProps {
|
|
@@ -498,88 +204,6 @@ interface ChipProps {
|
|
|
498
204
|
*/
|
|
499
205
|
declare function Chip({ children, onRemove, size, variant, isRemovable, isDisabled, className, onClick, }: ChipProps): react_jsx_runtime.JSX.Element;
|
|
500
206
|
|
|
501
|
-
type CodeLanguage = "json" | "javascript" | "typescript" | "html" | "css" | "markdown" | "yaml" | "xml" | "python" | "sql";
|
|
502
|
-
type CodeTheme = "github" | "github_dark";
|
|
503
|
-
interface CodeEditorProps {
|
|
504
|
-
/**
|
|
505
|
-
* The code content to display
|
|
506
|
-
*/
|
|
507
|
-
value: string;
|
|
508
|
-
/**
|
|
509
|
-
* Whether the editor is read-only
|
|
510
|
-
*/
|
|
511
|
-
readOnly?: boolean;
|
|
512
|
-
/**
|
|
513
|
-
* Callback when the content changes
|
|
514
|
-
*/
|
|
515
|
-
onChange?: (value: string) => void;
|
|
516
|
-
/**
|
|
517
|
-
* The programming language mode
|
|
518
|
-
* @default "json"
|
|
519
|
-
*/
|
|
520
|
-
language?: CodeLanguage;
|
|
521
|
-
/**
|
|
522
|
-
* The editor theme
|
|
523
|
-
* @default "github_dark"
|
|
524
|
-
*/
|
|
525
|
-
theme?: CodeTheme;
|
|
526
|
-
/**
|
|
527
|
-
* The height of the editor. If not provided, height will be calculated based on content.
|
|
528
|
-
*/
|
|
529
|
-
height?: string;
|
|
530
|
-
/**
|
|
531
|
-
* The width of the editor
|
|
532
|
-
* @default "100%"
|
|
533
|
-
*/
|
|
534
|
-
width?: string;
|
|
535
|
-
/**
|
|
536
|
-
* Additional className to apply
|
|
537
|
-
*/
|
|
538
|
-
className?: string;
|
|
539
|
-
/**
|
|
540
|
-
* Line height in pixels for auto-height calculation
|
|
541
|
-
* @default 19
|
|
542
|
-
*/
|
|
543
|
-
lineHeight?: number;
|
|
544
|
-
/**
|
|
545
|
-
* Minimum number of lines to show when auto-sizing
|
|
546
|
-
* @default 3
|
|
547
|
-
*/
|
|
548
|
-
minLines?: number;
|
|
549
|
-
/**
|
|
550
|
-
* Maximum number of lines to show when auto-sizing
|
|
551
|
-
* @default 50
|
|
552
|
-
*/
|
|
553
|
-
maxLines?: number;
|
|
554
|
-
/**
|
|
555
|
-
* Whether to show line numbers
|
|
556
|
-
* @default true
|
|
557
|
-
*/
|
|
558
|
-
showLineNumbers?: boolean;
|
|
559
|
-
/**
|
|
560
|
-
* Whether to show the gutter
|
|
561
|
-
* @default true
|
|
562
|
-
*/
|
|
563
|
-
showGutter?: boolean;
|
|
564
|
-
/**
|
|
565
|
-
* Font size for the editor
|
|
566
|
-
* @default 14
|
|
567
|
-
*/
|
|
568
|
-
fontSize?: number;
|
|
569
|
-
/**
|
|
570
|
-
* Whether to wrap long lines
|
|
571
|
-
* @default false
|
|
572
|
-
*/
|
|
573
|
-
wrapEnabled?: boolean;
|
|
574
|
-
}
|
|
575
|
-
/**
|
|
576
|
-
* CodeEditor
|
|
577
|
-
*
|
|
578
|
-
* A code editor component with syntax highlighting and various language support.
|
|
579
|
-
* Built on top of Ace Editor.
|
|
580
|
-
*/
|
|
581
|
-
declare function CodeEditor({ value, readOnly, onChange, language, theme, height, width, className, lineHeight, minLines, maxLines, showLineNumbers, showGutter, fontSize, wrapEnabled, }: CodeEditorProps): react_jsx_runtime.JSX.Element;
|
|
582
|
-
|
|
583
207
|
interface CopyToClipboardProps {
|
|
584
208
|
/**
|
|
585
209
|
* The value to copy to clipboard. If not provided, will use the text content of children
|
|
@@ -600,63 +224,6 @@ interface CopyToClipboardProps {
|
|
|
600
224
|
}
|
|
601
225
|
declare function CopyToClipboard({ value, children, className, size }: CopyToClipboardProps): react_jsx_runtime.JSX.Element;
|
|
602
226
|
|
|
603
|
-
type YFormatType = "number" | "percent" | "kWh" | "kW" | "amperes" | "temperature" | "percentageChange" | "decimal" | "currency" | "scientific" | "integer" | "logarithmic" | "timeDuration" | "compact" | "si" | "bytes" | "rate" | "ordinal" | "date" | "largeCurrency" | "coordinates" | "ranked";
|
|
604
|
-
interface TooltipData {
|
|
605
|
-
xValue: Date;
|
|
606
|
-
series: TooltipSeries[];
|
|
607
|
-
x: number;
|
|
608
|
-
y: number;
|
|
609
|
-
position: "left" | "right";
|
|
610
|
-
}
|
|
611
|
-
interface TooltipSeries {
|
|
612
|
-
label: string;
|
|
613
|
-
value: number;
|
|
614
|
-
color: string;
|
|
615
|
-
type?: "area" | "line" | "bar";
|
|
616
|
-
}
|
|
617
|
-
interface ChartContextType {
|
|
618
|
-
xScale: ScaleTime<number, number>;
|
|
619
|
-
yScale: ScaleLinear<number, number>;
|
|
620
|
-
width: number;
|
|
621
|
-
height: number;
|
|
622
|
-
yFormatType: YFormatType;
|
|
623
|
-
animationSettings: {
|
|
624
|
-
duration: number;
|
|
625
|
-
ease: string;
|
|
626
|
-
};
|
|
627
|
-
tooltip: {
|
|
628
|
-
data: TooltipData | null;
|
|
629
|
-
show: (data: TooltipData) => void;
|
|
630
|
-
hide: () => void;
|
|
631
|
-
};
|
|
632
|
-
}
|
|
633
|
-
declare const ChartContext: React$1.Context<ChartContextType | null>;
|
|
634
|
-
|
|
635
|
-
declare const useChartContext: () => ChartContextType;
|
|
636
|
-
|
|
637
|
-
interface BaseDataPoint {
|
|
638
|
-
xValue: Date;
|
|
639
|
-
yValue: number;
|
|
640
|
-
category?: string;
|
|
641
|
-
}
|
|
642
|
-
interface ChartMargin {
|
|
643
|
-
top: number;
|
|
644
|
-
right: number;
|
|
645
|
-
bottom: number;
|
|
646
|
-
left: number;
|
|
647
|
-
}
|
|
648
|
-
declare const defaultMargin: ChartMargin;
|
|
649
|
-
interface YFormatSettings {
|
|
650
|
-
format: (value: number) => string;
|
|
651
|
-
min?: number;
|
|
652
|
-
max?: number;
|
|
653
|
-
tickInterval?: number;
|
|
654
|
-
tickFormat?: (value: number) => string;
|
|
655
|
-
}
|
|
656
|
-
declare function getYFormatSettings(formatType: YFormatType, currencySymbol?: string): YFormatSettings;
|
|
657
|
-
declare const createXScale: (data: BaseDataPoint[], width: number) => d3_scale.ScaleTime<number, number, never>;
|
|
658
|
-
declare const createYScale: (data: BaseDataPoint[], height: number, formatType: YFormatType) => d3_scale.ScaleLinear<number, number, never>;
|
|
659
|
-
|
|
660
227
|
interface AreaSeriesProps {
|
|
661
228
|
data: BaseDataPoint[];
|
|
662
229
|
color?: string;
|
|
@@ -962,32 +529,6 @@ declare function AutoMobileRenderer<T>({ row, columns, density, isLoading, onCli
|
|
|
962
529
|
*/
|
|
963
530
|
declare function CardMobileRenderer<T>({ row, columns, density, isLoading, onClick, }: MobileRowProps<T>): react_jsx_runtime.JSX.Element;
|
|
964
531
|
|
|
965
|
-
/**
|
|
966
|
-
* DateField
|
|
967
|
-
*
|
|
968
|
-
* Segmented date input with optional calendar popup.
|
|
969
|
-
*/
|
|
970
|
-
interface DateFieldProps<T extends DateValue> extends DateFieldProps$1<T> {
|
|
971
|
-
/**
|
|
972
|
-
* Label for the date field
|
|
973
|
-
*/
|
|
974
|
-
label?: string;
|
|
975
|
-
/**
|
|
976
|
-
* Description text to show below the field
|
|
977
|
-
*/
|
|
978
|
-
description?: string;
|
|
979
|
-
/**
|
|
980
|
-
* Error message to display
|
|
981
|
-
*/
|
|
982
|
-
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
983
|
-
/**
|
|
984
|
-
* Whether to show a calendar button for date selection
|
|
985
|
-
* @default false
|
|
986
|
-
*/
|
|
987
|
-
showCalendar?: boolean;
|
|
988
|
-
}
|
|
989
|
-
declare function DateField<T extends DateValue>({ label, description, errorMessage, showCalendar, ...props }: DateFieldProps<T>): react_jsx_runtime.JSX.Element;
|
|
990
|
-
|
|
991
532
|
/**
|
|
992
533
|
* DateRangePicker
|
|
993
534
|
*
|
|
@@ -1278,56 +819,6 @@ declare function Input({ size, isInvalid, isDisabled, isFocused, transparent, cl
|
|
|
1278
819
|
*/
|
|
1279
820
|
declare function FieldGroup(props: FieldGroupProps): react_jsx_runtime.JSX.Element;
|
|
1280
821
|
|
|
1281
|
-
interface FileUploadProps {
|
|
1282
|
-
/**
|
|
1283
|
-
* Current file URL or preview
|
|
1284
|
-
*/
|
|
1285
|
-
value?: string;
|
|
1286
|
-
/**
|
|
1287
|
-
* Callback when file is selected
|
|
1288
|
-
*/
|
|
1289
|
-
onChange?: (file: File | null, url?: string) => void;
|
|
1290
|
-
/**
|
|
1291
|
-
* Callback when file URL changes (for external upload handlers)
|
|
1292
|
-
*/
|
|
1293
|
-
onUrlChange?: (url: string) => void;
|
|
1294
|
-
/**
|
|
1295
|
-
* Accepted file types
|
|
1296
|
-
*/
|
|
1297
|
-
accept?: string;
|
|
1298
|
-
/**
|
|
1299
|
-
* Maximum file size in bytes
|
|
1300
|
-
*/
|
|
1301
|
-
maxSize?: number;
|
|
1302
|
-
/**
|
|
1303
|
-
* Whether the component is disabled
|
|
1304
|
-
*/
|
|
1305
|
-
isDisabled?: boolean;
|
|
1306
|
-
/**
|
|
1307
|
-
* Custom upload handler (e.g., for cloud storage)
|
|
1308
|
-
*/
|
|
1309
|
-
onUpload?: (file: File) => Promise<string>;
|
|
1310
|
-
/**
|
|
1311
|
-
* Additional CSS classes
|
|
1312
|
-
*/
|
|
1313
|
-
className?: string;
|
|
1314
|
-
/**
|
|
1315
|
-
* Show image preview for image files
|
|
1316
|
-
*/
|
|
1317
|
-
showPreview?: boolean;
|
|
1318
|
-
/**
|
|
1319
|
-
* Placeholder text
|
|
1320
|
-
*/
|
|
1321
|
-
placeholder?: string;
|
|
1322
|
-
}
|
|
1323
|
-
/**
|
|
1324
|
-
* FileUpload
|
|
1325
|
-
*
|
|
1326
|
-
* A file upload component with drag-and-drop support.
|
|
1327
|
-
* Supports image preview, custom upload handlers, and file validation.
|
|
1328
|
-
*/
|
|
1329
|
-
declare function FileUpload({ value, onChange, onUrlChange, accept, maxSize, isDisabled, onUpload, className, showPreview, placeholder, }: FileUploadProps): react_jsx_runtime.JSX.Element;
|
|
1330
|
-
|
|
1331
822
|
/**
|
|
1332
823
|
* Form
|
|
1333
824
|
*
|
|
@@ -1335,32 +826,6 @@ declare function FileUpload({ value, onChange, onUrlChange, accept, maxSize, isD
|
|
|
1335
826
|
*/
|
|
1336
827
|
declare function Form(props: FormProps): react_jsx_runtime.JSX.Element;
|
|
1337
828
|
|
|
1338
|
-
declare const sizeVariants: {
|
|
1339
|
-
readonly xs: "text-lg font-semibold";
|
|
1340
|
-
readonly sm: "text-xl font-semibold";
|
|
1341
|
-
readonly md: "text-2xl font-semibold";
|
|
1342
|
-
readonly lg: "text-3xl font-semibold";
|
|
1343
|
-
readonly xl: "text-4xl font-semibold";
|
|
1344
|
-
};
|
|
1345
|
-
declare const heightVariants: {
|
|
1346
|
-
readonly page: "h-16 leading-[62px]";
|
|
1347
|
-
};
|
|
1348
|
-
type HeadingSize = keyof typeof sizeVariants;
|
|
1349
|
-
type HeadingHeight = keyof typeof heightVariants;
|
|
1350
|
-
/**
|
|
1351
|
-
* Heading
|
|
1352
|
-
*
|
|
1353
|
-
* Typography component for page/section headings with size and height options.
|
|
1354
|
-
*/
|
|
1355
|
-
interface HeadingProps {
|
|
1356
|
-
tag?: keyof JSX.IntrinsicElements;
|
|
1357
|
-
size?: HeadingSize;
|
|
1358
|
-
height?: HeadingHeight;
|
|
1359
|
-
className?: string;
|
|
1360
|
-
children?: React__default.ReactNode;
|
|
1361
|
-
}
|
|
1362
|
-
declare function Heading({ tag: Tag, size, height, className, children, }: HeadingProps): react_jsx_runtime.JSX.Element;
|
|
1363
|
-
|
|
1364
829
|
/**
|
|
1365
830
|
* ListBox
|
|
1366
831
|
*
|
|
@@ -1383,175 +848,6 @@ interface ExtendedListBoxItemProps extends Omit<ListBoxItemProps, "className"> {
|
|
|
1383
848
|
}
|
|
1384
849
|
declare function ListBoxItem({ size, className, ...props }: ExtendedListBoxItemProps): react_jsx_runtime.JSX.Element;
|
|
1385
850
|
|
|
1386
|
-
interface LoaderProps {
|
|
1387
|
-
/**
|
|
1388
|
-
* Optional className for custom styling
|
|
1389
|
-
*/
|
|
1390
|
-
className?: string;
|
|
1391
|
-
/**
|
|
1392
|
-
* Size of the loader in pixels
|
|
1393
|
-
* @default 24
|
|
1394
|
-
*/
|
|
1395
|
-
size?: number;
|
|
1396
|
-
/**
|
|
1397
|
-
* Color of the loader
|
|
1398
|
-
* @default "text-action-primary"
|
|
1399
|
-
*/
|
|
1400
|
-
color?: string;
|
|
1401
|
-
}
|
|
1402
|
-
declare const Loader: ({ className, size, color }: LoaderProps) => react_jsx_runtime.JSX.Element;
|
|
1403
|
-
|
|
1404
|
-
interface LogoProps {
|
|
1405
|
-
className?: string;
|
|
1406
|
-
showWordmark?: boolean;
|
|
1407
|
-
}
|
|
1408
|
-
declare const Logo: ({ className, showWordmark }: LogoProps) => react_jsx_runtime.JSX.Element;
|
|
1409
|
-
|
|
1410
|
-
declare const MAPBOX_THEMES: {
|
|
1411
|
-
dark: string;
|
|
1412
|
-
light: string;
|
|
1413
|
-
streets: string;
|
|
1414
|
-
satellite: string;
|
|
1415
|
-
};
|
|
1416
|
-
interface StaticMapProps {
|
|
1417
|
-
/**
|
|
1418
|
-
* Map width
|
|
1419
|
-
* @default "100%"
|
|
1420
|
-
*/
|
|
1421
|
-
width?: number | string;
|
|
1422
|
-
/**
|
|
1423
|
-
* Map height
|
|
1424
|
-
* @default "100%"
|
|
1425
|
-
*/
|
|
1426
|
-
height?: number | string;
|
|
1427
|
-
/**
|
|
1428
|
-
* Initial viewport configuration
|
|
1429
|
-
*/
|
|
1430
|
-
initialViewState?: {
|
|
1431
|
-
longitude: number;
|
|
1432
|
-
latitude: number;
|
|
1433
|
-
zoom: number;
|
|
1434
|
-
};
|
|
1435
|
-
/**
|
|
1436
|
-
* Show loading skeleton
|
|
1437
|
-
*/
|
|
1438
|
-
isLoading?: boolean;
|
|
1439
|
-
/**
|
|
1440
|
-
* Map theme
|
|
1441
|
-
* @default "streets"
|
|
1442
|
-
*/
|
|
1443
|
-
theme?: keyof typeof MAPBOX_THEMES;
|
|
1444
|
-
/**
|
|
1445
|
-
* Mapbox access token
|
|
1446
|
-
*/
|
|
1447
|
-
mapboxAccessToken?: string;
|
|
1448
|
-
/**
|
|
1449
|
-
* Show marker at center
|
|
1450
|
-
* @default true
|
|
1451
|
-
*/
|
|
1452
|
-
showMarker?: boolean;
|
|
1453
|
-
/**
|
|
1454
|
-
* Additional CSS classes
|
|
1455
|
-
*/
|
|
1456
|
-
className?: string;
|
|
1457
|
-
}
|
|
1458
|
-
/**
|
|
1459
|
-
* StaticMap
|
|
1460
|
-
*
|
|
1461
|
-
* A non-interactive map component for displaying a location.
|
|
1462
|
-
* Perfect for showing addresses, store locations, or any single point of interest.
|
|
1463
|
-
*/
|
|
1464
|
-
declare function StaticMap({ width, height, initialViewState, isLoading, theme, mapboxAccessToken, showMarker, className, }: StaticMapProps): react_jsx_runtime.JSX.Element;
|
|
1465
|
-
|
|
1466
|
-
interface MapPoint {
|
|
1467
|
-
id: string;
|
|
1468
|
-
latitude: number;
|
|
1469
|
-
longitude: number;
|
|
1470
|
-
properties?: Record<string, unknown>;
|
|
1471
|
-
}
|
|
1472
|
-
interface InteractiveMapProps {
|
|
1473
|
-
/**
|
|
1474
|
-
* Array of points to display on the map
|
|
1475
|
-
*/
|
|
1476
|
-
data: MapPoint[];
|
|
1477
|
-
/**
|
|
1478
|
-
* Initial viewport configuration
|
|
1479
|
-
*/
|
|
1480
|
-
initialViewState?: ViewState;
|
|
1481
|
-
/**
|
|
1482
|
-
* Controlled viewport state
|
|
1483
|
-
*/
|
|
1484
|
-
viewState?: ViewState;
|
|
1485
|
-
/**
|
|
1486
|
-
* Callback when viewport changes
|
|
1487
|
-
*/
|
|
1488
|
-
onViewStateChange?: (viewState: ViewState) => void;
|
|
1489
|
-
/**
|
|
1490
|
-
* Callback when a point is clicked
|
|
1491
|
-
*/
|
|
1492
|
-
onPointClick?: (pointId: string) => void;
|
|
1493
|
-
/**
|
|
1494
|
-
* Currently selected point ID
|
|
1495
|
-
*/
|
|
1496
|
-
selectedPointId?: string | null;
|
|
1497
|
-
/**
|
|
1498
|
-
* Enable scroll zoom
|
|
1499
|
-
* @default true
|
|
1500
|
-
*/
|
|
1501
|
-
scrollEnabled?: boolean;
|
|
1502
|
-
/**
|
|
1503
|
-
* Additional CSS classes
|
|
1504
|
-
*/
|
|
1505
|
-
className?: string;
|
|
1506
|
-
/**
|
|
1507
|
-
* Map theme
|
|
1508
|
-
* @default "streets"
|
|
1509
|
-
*/
|
|
1510
|
-
theme?: keyof typeof MAPBOX_THEMES;
|
|
1511
|
-
/**
|
|
1512
|
-
* Mapbox access token
|
|
1513
|
-
*/
|
|
1514
|
-
mapboxAccessToken?: string;
|
|
1515
|
-
/**
|
|
1516
|
-
* Enable clustering for many points
|
|
1517
|
-
* @default true
|
|
1518
|
-
*/
|
|
1519
|
-
enableClustering?: boolean;
|
|
1520
|
-
/**
|
|
1521
|
-
* Custom marker component
|
|
1522
|
-
*/
|
|
1523
|
-
renderMarker?: (point: MapPoint, isSelected: boolean) => React__default.ReactNode;
|
|
1524
|
-
}
|
|
1525
|
-
/**
|
|
1526
|
-
* InteractiveMap
|
|
1527
|
-
*
|
|
1528
|
-
* An interactive map component for displaying multiple locations with clustering support.
|
|
1529
|
-
* Supports point selection, custom markers, and viewport control.
|
|
1530
|
-
*/
|
|
1531
|
-
declare function InteractiveMap({ data, initialViewState, viewState, onViewStateChange, onPointClick, selectedPointId, scrollEnabled, className, theme, mapboxAccessToken, enableClustering, renderMarker, }: InteractiveMapProps): react_jsx_runtime.JSX.Element;
|
|
1532
|
-
|
|
1533
|
-
interface MeterProps extends MeterProps$1 {
|
|
1534
|
-
/** Label displayed above the meter */
|
|
1535
|
-
label?: string;
|
|
1536
|
-
/** Size variant of the meter */
|
|
1537
|
-
size?: "sm" | "md" | "lg";
|
|
1538
|
-
/** Visual variant based on semantic meaning */
|
|
1539
|
-
variant?: "default" | "success" | "warning" | "error" | "info";
|
|
1540
|
-
/** Whether to show warning indicator at high values */
|
|
1541
|
-
showWarningIndicator?: boolean;
|
|
1542
|
-
/** Threshold percentage for showing warning (default: 80) */
|
|
1543
|
-
warningThreshold?: number;
|
|
1544
|
-
/** Additional CSS classes */
|
|
1545
|
-
className?: string;
|
|
1546
|
-
}
|
|
1547
|
-
/**
|
|
1548
|
-
* Meter
|
|
1549
|
-
*
|
|
1550
|
-
* Displays a measurement within a known range, with visual indicators for different value ranges.
|
|
1551
|
-
* Perfect for showing capacity, usage levels, scores, or any bounded measurement.
|
|
1552
|
-
*/
|
|
1553
|
-
declare function Meter({ label, size, variant, showWarningIndicator, warningThreshold, className, ...props }: MeterProps): react_jsx_runtime.JSX.Element;
|
|
1554
|
-
|
|
1555
851
|
type NoticeVariant = "success" | "error" | "warning" | "info";
|
|
1556
852
|
interface NoticeProps {
|
|
1557
853
|
/** Unique identifier for the notice */
|
|
@@ -1774,80 +1070,6 @@ interface RangeCalendarProps<T extends DateValue> extends Omit<RangeCalendarProp
|
|
|
1774
1070
|
}
|
|
1775
1071
|
declare function RangeCalendar<T extends DateValue>({ errorMessage, ...props }: RangeCalendarProps<T>): react_jsx_runtime.JSX.Element;
|
|
1776
1072
|
|
|
1777
|
-
interface RichTextEditorProps {
|
|
1778
|
-
/**
|
|
1779
|
-
* The initial content of the editor
|
|
1780
|
-
*/
|
|
1781
|
-
initialContent?: string;
|
|
1782
|
-
/**
|
|
1783
|
-
* Callback when the content changes
|
|
1784
|
-
*/
|
|
1785
|
-
onChange?: (html: string) => void;
|
|
1786
|
-
/**
|
|
1787
|
-
* Additional className to apply to the editor
|
|
1788
|
-
*/
|
|
1789
|
-
className?: string;
|
|
1790
|
-
/**
|
|
1791
|
-
* Whether the editor is disabled
|
|
1792
|
-
*/
|
|
1793
|
-
isDisabled?: boolean;
|
|
1794
|
-
/**
|
|
1795
|
-
* Placeholder text when editor is empty
|
|
1796
|
-
*/
|
|
1797
|
-
placeholder?: string;
|
|
1798
|
-
}
|
|
1799
|
-
/**
|
|
1800
|
-
* RichTextEditor
|
|
1801
|
-
*
|
|
1802
|
-
* A rich text editor with formatting capabilities including headings, bold, italic, lists, and links.
|
|
1803
|
-
* Built on top of TipTap/ProseMirror.
|
|
1804
|
-
*/
|
|
1805
|
-
declare function RichTextEditor({ initialContent, onChange, className, isDisabled, placeholder, }: RichTextEditorProps): react_jsx_runtime.JSX.Element | null;
|
|
1806
|
-
|
|
1807
|
-
type SegmentOption = {
|
|
1808
|
-
id: string;
|
|
1809
|
-
label: string;
|
|
1810
|
-
icon?: IconName$2;
|
|
1811
|
-
};
|
|
1812
|
-
interface SegmentedControlProps {
|
|
1813
|
-
/**
|
|
1814
|
-
* Array of segment options
|
|
1815
|
-
*/
|
|
1816
|
-
options: SegmentOption[];
|
|
1817
|
-
/**
|
|
1818
|
-
* Currently selected value
|
|
1819
|
-
*/
|
|
1820
|
-
value: string;
|
|
1821
|
-
/**
|
|
1822
|
-
* Callback when selection changes
|
|
1823
|
-
*/
|
|
1824
|
-
onChange: (value: string) => void;
|
|
1825
|
-
/**
|
|
1826
|
-
* Size of the control
|
|
1827
|
-
* @default "md"
|
|
1828
|
-
*/
|
|
1829
|
-
size?: "sm" | "md" | "lg" | "xl";
|
|
1830
|
-
/**
|
|
1831
|
-
* Additional CSS classes
|
|
1832
|
-
*/
|
|
1833
|
-
className?: string;
|
|
1834
|
-
/**
|
|
1835
|
-
* Whether the control is disabled
|
|
1836
|
-
*/
|
|
1837
|
-
isDisabled?: boolean;
|
|
1838
|
-
/**
|
|
1839
|
-
* Aria label for accessibility
|
|
1840
|
-
*/
|
|
1841
|
-
"aria-label"?: string;
|
|
1842
|
-
}
|
|
1843
|
-
/**
|
|
1844
|
-
* SegmentedControl
|
|
1845
|
-
*
|
|
1846
|
-
* A segmented control component for selecting between multiple options.
|
|
1847
|
-
* Similar to a radio group but with a more compact, button-like appearance.
|
|
1848
|
-
*/
|
|
1849
|
-
declare function SegmentedControl({ options, value, onChange, size, className, isDisabled, "aria-label": ariaLabel, }: SegmentedControlProps): react_jsx_runtime.JSX.Element;
|
|
1850
|
-
|
|
1851
1073
|
/**
|
|
1852
1074
|
* Interface defining the shape of items in the Select component
|
|
1853
1075
|
*/
|
|
@@ -2034,20 +1256,6 @@ interface TextFieldProps extends Omit<TextFieldProps$1, "isRequired" | "size" |
|
|
|
2034
1256
|
*/
|
|
2035
1257
|
declare function TextField({ label, description, errorMessage, size, tooltip, isRequired, transparent, showSearchIcon, isClearable, onClear, type, validationResult, ...props }: TextFieldProps): react_jsx_runtime.JSX.Element;
|
|
2036
1258
|
|
|
2037
|
-
interface TextLinkProps {
|
|
2038
|
-
href?: string;
|
|
2039
|
-
children: ReactNode;
|
|
2040
|
-
className?: string;
|
|
2041
|
-
external?: boolean;
|
|
2042
|
-
title?: string;
|
|
2043
|
-
variant?: "default" | "primary" | "muted";
|
|
2044
|
-
onClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
2045
|
-
asButton?: boolean;
|
|
2046
|
-
onPress?: () => void;
|
|
2047
|
-
showArrow?: boolean;
|
|
2048
|
-
}
|
|
2049
|
-
declare const TextLink: ({ href, children, className, external, title, variant, onClick, asButton, onPress, showArrow, }: TextLinkProps) => react_jsx_runtime.JSX.Element;
|
|
2050
|
-
|
|
2051
1259
|
/**
|
|
2052
1260
|
* TimeField
|
|
2053
1261
|
*
|
|
@@ -2107,47 +1315,15 @@ interface TooltipProps extends Omit<TooltipProps$1, "children"> {
|
|
|
2107
1315
|
}
|
|
2108
1316
|
declare function Tooltip({ children, content, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
2109
1317
|
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
*/
|
|
2121
|
-
declare const getResolvedColor: (variableName: string, fallback?: string) => string;
|
|
2122
|
-
/**
|
|
2123
|
-
* Clears the color cache - useful when theme changes
|
|
2124
|
-
*/
|
|
2125
|
-
declare const clearColorCache: () => void;
|
|
2126
|
-
/**
|
|
2127
|
-
* Gets theme colors from CSS variables
|
|
2128
|
-
* Returns an array of resolved color values
|
|
2129
|
-
*/
|
|
2130
|
-
declare const getThemeCategoricalColors: () => string[];
|
|
2131
|
-
/**
|
|
2132
|
-
* Default color palette matching the edges design system
|
|
2133
|
-
*/
|
|
2134
|
-
declare const getDefaultColors: () => string[];
|
|
2135
|
-
/**
|
|
2136
|
-
* Gets the default chart color from theme
|
|
2137
|
-
*/
|
|
2138
|
-
declare const getDefaultChartColor: () => string;
|
|
2139
|
-
/**
|
|
2140
|
-
* Maps categories to colors based on a color scheme
|
|
2141
|
-
*/
|
|
2142
|
-
declare const createCategoryColorMap: (categories: string[], customColors?: Record<string, string>) => Record<string, string>;
|
|
2143
|
-
/**
|
|
2144
|
-
* Determines if a color is light or dark
|
|
2145
|
-
* Useful for determining text color on colored backgrounds
|
|
2146
|
-
*/
|
|
2147
|
-
declare const isLightColor: (color: string) => boolean;
|
|
2148
|
-
/**
|
|
2149
|
-
* Gets contrasting text color for a background
|
|
2150
|
-
*/
|
|
2151
|
-
declare const getContrastingTextColor: (backgroundColor: string) => string;
|
|
1318
|
+
interface ColorModeContextType {
|
|
1319
|
+
colorMode: string;
|
|
1320
|
+
isDarkTheme: boolean;
|
|
1321
|
+
toggleTheme: () => void;
|
|
1322
|
+
}
|
|
1323
|
+
declare const useColorMode: () => ColorModeContextType;
|
|
1324
|
+
interface ColorModeProviderProps {
|
|
1325
|
+
children: React.ReactNode;
|
|
1326
|
+
}
|
|
1327
|
+
declare const ColorModeProvider: React.FC<ColorModeProviderProps>;
|
|
2152
1328
|
|
|
2153
|
-
export { type Action, ActionCell, type ActionCellProps,
|
|
1329
|
+
export { type Action, ActionCell, type ActionCellProps, AreaSeries, AutoMobileRenderer, Autocomplete, BarSeries, BaseDataPoint, type BaseInputProps, type BaseProps, BooleanCell, type BooleanCellProps, Breadcrumb, Breadcrumbs, Button, Calendar, CardMobileRenderer, type CellAlignment, type CellComponent, type CellComponentProps, type CellContext, type CellEmphasis, ChartAxis, ChartBottomBar, ChartContainer, type ChartExportMetadata, ChartTooltip, Checkbox, CheckboxGroup, Chip, ClearButton, ColorModeProvider, type Column, CopyToClipboard, DataTable, type DataTableProps, DateCell, type DateCellProps, DateRangePicker, Description, type DescriptionProps, Dialog, DialogHeader, Drawer, ErrorBoundary, type ExportType, FieldError, type FieldErrorProps, FieldGroup, type FieldGroupProps, Form, Icon, Input, type InputProps, type InputStyleProps, InputWrapper, Label, type LabelProps, LineSeries, type LinkBehavior, ListBox, ListBoxItem, type MobileBreakpoint, type MobileConfig, type MobileRenderer, Notice, NoticeContainer, type NoticeContainerProps, type NoticeOptions, type NoticeProps, NoticeProvider, type NoticeProviderProps, type NoticeVariant, NumberCell, type NumberCellProps, NumberField, PlaceSearch, Popover, ProgressBar, Radio, RadioGroup, RangeCalendar, SKELETON_SIZES, Select, SelectCell, type SelectCellProps, Skeleton, Slider, type SortConfig, type SortDirection, Switch, Tab, TabList, TabPanel, type TableDensity, type TableLayout, type TableWidth, Tabs, TextArea, TextAreaWithChips, TextCell, type TextCellProps, TextField, TimeField, ToggleButton, Tooltip, TooltipData, YFormatType, exportChart, formatEmptyValue, getBadgeClasses, getBooleanBadgeVariant, getCellAlignmentClasses, getCellContainerClasses, getCellTextClasses, getExportFormatName, getFieldGroupStyles, getInputBackgroundStyles, getInputBaseStyles, getInputStateStyles, getNumericColorClasses, getSkeletonSize, isExportSupported, resolveValue, useColorMode, useDebounce, useInputFocus, useLocalStorage, useNotice };
|