@texturehq/edges 1.5.0 → 1.5.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/index.d.cts CHANGED
@@ -1,14 +1,76 @@
1
- import { I as Icon, B as BaseDataPoint, Y as YFormatType, T as TooltipData, a as IconName$2, L as LayerSpec, C as CustomPinsSpec, G as GeoJsonLayerSpec, R as RasterLayerSpec, V as VectorLayerSpec } from './server-BMdETIqh.cjs';
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, l as Card, j as CardProps, k as CardVariant, a4 as ChartContext, a6 as ChartMargin, p as CodeEditor, m as CodeEditorProps, n as CodeLanguage, o as CodeTheme, u as ColorSpec, q as DateField, D as DateFieldProps, r as FileUpload, F as FileUploadProps, H as Heading, z as InteractiveMap, v as InteractiveMapProps, w as LayerFeature, x as LayerStyle, s as Loader, t as Logo, E as MAP_TYPES, M as MapPoint, N as Meter, K as MeterProps, y as RenderType, P as RichTextEditor, O as RichTextEditorProps, U as SegmentOption, W as SegmentedControl, Q as SegmentedControlProps, $ as SideNav, X as SideNavItem, _ as SideNavProps, J as StaticMap, S as StaticMapProps, a0 as TextLink, a3 as TooltipSeries, a2 as TopNav, a1 as TopNavProps, ab as YFormatSettings, Z as ZoomStops, ac as clearColorCache, ad as createCategoryColorMap, a7 as createXScale, a8 as createYScale, a9 as defaultMargin, ae as getContrastingTextColor, af as getDefaultChartColor, ag as getDefaultColors, ah as getResolvedColor, ai as getThemeCategoricalColors, aa as getYFormatSettings, aj as isLightColor, a5 as useChartContext } from './server-BMdETIqh.cjs';
1
+ 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, TextProps, FormProps, ListBoxProps as ListBoxProps$1, ListBoxItemProps, ModalOverlayProps, 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 as TabListProps$1, TabPanelProps, TabsProps as TabsProps$2, TextFieldProps as TextFieldProps$1, TimeFieldProps as TimeFieldProps$1, TimeValue, TooltipProps as TooltipProps$1 } from 'react-aria-components';
2
+ export { BreadcrumbProps, BreadcrumbsProps, DialogTrigger } from 'react-aria-components';
3
+ import { I as Icon, B as BaseDataPoint, Y as YFormatType, T as TooltipData, a as IconName$2, L as LayerSpec, C as CustomPinsSpec, G as GeoJsonLayerSpec, R as RasterLayerSpec, V as VectorLayerSpec } from './server-Cz62pUnv.cjs';
4
+ 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, l as Card, j as CardProps, k as CardVariant, a4 as ChartContext, a6 as ChartMargin, p as CodeEditor, m as CodeEditorProps, n as CodeLanguage, o as CodeTheme, u as ColorSpec, q as DateField, D as DateFieldProps, r as FileUpload, F as FileUploadProps, H as Heading, z as InteractiveMap, v as InteractiveMapProps, w as LayerFeature, x as LayerStyle, s as Loader, t as Logo, E as MAP_TYPES, M as MapPoint, N as Meter, K as MeterProps, y as RenderType, P as RichTextEditor, O as RichTextEditorProps, U as SegmentOption, W as SegmentedControl, Q as SegmentedControlProps, $ as SideNav, X as SideNavItem, _ as SideNavProps, J as StaticMap, S as StaticMapProps, a0 as TextLink, a3 as TooltipSeries, a2 as TopNav, a1 as TopNavProps, ab as YFormatSettings, Z as ZoomStops, ac as clearColorCache, ad as createCategoryColorMap, a7 as createXScale, a8 as createYScale, a9 as defaultMargin, ae as getContrastingTextColor, af as getDefaultChartColor, ag as getDefaultColors, ah as getResolvedColor, ai as getThemeCategoricalColors, aa as getYFormatSettings, aj as isLightColor, a5 as useChartContext } from './server-Cz62pUnv.cjs';
3
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
6
  import * as React$1 from 'react';
5
- import React__default, { ComponentProps, ReactNode, ComponentType, Component, ErrorInfo, CSSProperties } 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 as TabListProps$1, TabPanelProps, TabsProps as TabsProps$2, TextFieldProps as TextFieldProps$1, TimeFieldProps as TimeFieldProps$1, TimeValue, TooltipProps as TooltipProps$1 } from 'react-aria-components';
7
- export { BreadcrumbProps, BreadcrumbsProps } from 'react-aria-components';
7
+ import React__default, { ReactNode, ComponentProps, ComponentType, Component, ErrorInfo, CSSProperties } from 'react';
8
8
  import { ScaleTime, ScaleLinear } from 'd3-scale';
9
9
  import '@phosphor-icons/react';
10
10
  import 'react-map-gl';
11
11
 
12
+ /**
13
+ * Tailwind CSS default breakpoints
14
+ * These match the standard Tailwind breakpoints used in your CSS
15
+ */
16
+ declare const BREAKPOINTS: {
17
+ readonly sm: "640px";
18
+ readonly md: "768px";
19
+ readonly lg: "1024px";
20
+ readonly xl: "1280px";
21
+ readonly "2xl": "1536px";
22
+ };
23
+ type Breakpoint = keyof typeof BREAKPOINTS;
24
+ interface BreakpointState {
25
+ /** Current active breakpoint (highest matching breakpoint) */
26
+ current: Breakpoint | "base";
27
+ /** True if viewport is at least 640px (sm breakpoint or higher) */
28
+ isSm: boolean;
29
+ /** True if viewport is at least 768px (md breakpoint or higher) */
30
+ isMd: boolean;
31
+ /** True if viewport is at least 1024px (lg breakpoint or higher) */
32
+ isLg: boolean;
33
+ /** True if viewport is at least 1280px (xl breakpoint or higher) */
34
+ isXl: boolean;
35
+ /** True if viewport is at least 1536px (2xl breakpoint or higher) */
36
+ is2Xl: boolean;
37
+ /** True if viewport is smaller than 768px (mobile) */
38
+ isMobile: boolean;
39
+ /** True if viewport is 768px or larger (tablet/desktop) */
40
+ isDesktop: boolean;
41
+ }
42
+ /**
43
+ * Public return type alias for useBreakpoint hook
44
+ * Provides a stable public API for barrel re-exports
45
+ */
46
+ type UseBreakpointReturn = BreakpointState;
47
+ /**
48
+ * Hook to detect which Tailwind breakpoint is currently active
49
+ *
50
+ * Returns an object with boolean flags for each breakpoint and convenience helpers.
51
+ * All breakpoints use min-width queries to match Tailwind's mobile-first approach.
52
+ *
53
+ * @param defaultBreakpoint - The breakpoint to assume during SSR or before first render (defaults to "base" for mobile-first)
54
+ * @returns An object containing breakpoint state information
55
+ *
56
+ * @example
57
+ * ```tsx
58
+ * const { isMobile, isDesktop, current } = useBreakpoint();
59
+ *
60
+ * // Conditional rendering based on screen size
61
+ * return isMobile ? <MobileNav /> : <DesktopNav />;
62
+ *
63
+ * // Check specific breakpoint
64
+ * if (isLg) {
65
+ * // Show expanded view on large screens
66
+ * }
67
+ *
68
+ * // Use current breakpoint
69
+ * console.log(`Current breakpoint: ${current}`); // "md", "lg", etc.
70
+ * ```
71
+ */
72
+ declare function useBreakpoint(defaultBreakpoint?: Breakpoint | "base"): BreakpointState;
73
+
12
74
  declare function useDebounce<T>(value: T, delay?: number): T;
13
75
 
14
76
  /**
@@ -19,6 +81,22 @@ declare function useDebounce<T>(value: T, delay?: number): T;
19
81
  */
20
82
  declare function useLocalStorage<T>(key: string, initialValue: T): [T, (value: T | ((val: T) => T)) => void, () => void];
21
83
 
84
+ /**
85
+ * Hook to check if a media query matches the current viewport
86
+ *
87
+ * @param query - A CSS media query string (e.g., "(min-width: 768px)")
88
+ * @param defaultValue - The default value to return during SSR or before the first render
89
+ * @returns A boolean indicating whether the media query matches
90
+ *
91
+ * @example
92
+ * ```tsx
93
+ * const isMobile = useMediaQuery('(max-width: 767px)');
94
+ * const prefersReducedMotion = useMediaQuery('(prefers-reduced-motion: reduce)');
95
+ * const isLandscape = useMediaQuery('(orientation: landscape)');
96
+ * ```
97
+ */
98
+ declare function useMediaQuery(query: string, defaultValue?: boolean): boolean;
99
+
22
100
  /**
23
101
  * Core types for the formatting system
24
102
  */
@@ -816,6 +894,153 @@ declare const createFormat: <T extends FieldFormat["type"]>(type: T, options?: O
816
894
  type: T;
817
895
  }>;
818
896
 
897
+ /**
898
+ * Shared action type for Dialog and Drawer footer buttons
899
+ */
900
+ interface DialogAction {
901
+ label: string;
902
+ onPress: () => void;
903
+ variant?: "default" | "primary" | "secondary" | "destructive" | "icon" | "link" | "unstyled" | "ghost";
904
+ size?: "sm" | "md" | "lg";
905
+ isLoading?: boolean;
906
+ isDisabled?: boolean;
907
+ }
908
+ /**
909
+ * Shared header props for Dialog and Drawer
910
+ */
911
+ interface DialogHeaderConfig {
912
+ /**
913
+ * Title text for the header
914
+ */
915
+ title?: string;
916
+ /**
917
+ * Custom header content (overrides title)
918
+ */
919
+ headerContent?: ReactNode;
920
+ /**
921
+ * Alignment of the title
922
+ * @default "left"
923
+ */
924
+ titleAlign?: "left" | "center";
925
+ /**
926
+ * Whether to hide the close button
927
+ * @default false
928
+ */
929
+ hideCloseIcon?: boolean;
930
+ /**
931
+ * Whether to show a back arrow
932
+ * @default false
933
+ */
934
+ hasBackArrow?: boolean;
935
+ /**
936
+ * Callback when back arrow is clicked (required if hasBackArrow is true)
937
+ */
938
+ onBack?: () => void;
939
+ }
940
+ /**
941
+ * Shared footer props for Dialog and Drawer
942
+ */
943
+ interface DialogFooterConfig {
944
+ /**
945
+ * Primary action button configuration
946
+ */
947
+ primaryAction?: DialogAction;
948
+ /**
949
+ * Secondary action button configuration
950
+ */
951
+ secondaryAction?: DialogAction;
952
+ /**
953
+ * Custom footer content above the action buttons
954
+ */
955
+ footerContent?: ReactNode;
956
+ }
957
+
958
+ interface DialogProps extends DialogHeaderConfig, DialogFooterConfig {
959
+ /**
960
+ * Whether the dialog is open
961
+ */
962
+ isOpen: boolean;
963
+ /**
964
+ * Callback when the dialog is closed
965
+ */
966
+ onClose: () => void;
967
+ /**
968
+ * Dialog content
969
+ */
970
+ children: React__default.ReactNode;
971
+ /**
972
+ * Whether to use a transparent backdrop
973
+ * @default false
974
+ */
975
+ transparentOverlay?: boolean;
976
+ /**
977
+ * Maximum width of the dialog
978
+ * @default "600px"
979
+ */
980
+ maxWidth?: string;
981
+ /**
982
+ * Whether to include padding inside the content area
983
+ * @default true
984
+ */
985
+ contentPadding?: boolean;
986
+ /**
987
+ * Additional CSS classes
988
+ */
989
+ className?: string;
990
+ }
991
+ /**
992
+ * Dialog
993
+ *
994
+ * Responsive modal dialog component with backdrop.
995
+ *
996
+ * **Desktop (≥768px):** Centered modal with scale and fade animation
997
+ * **Mobile (<768px):** Bottom sheet that slides up from bottom
998
+ *
999
+ * Includes optional header with title/back button and footer with action buttons.
1000
+ */
1001
+ declare function Dialog({ isOpen, onClose, title, headerContent, titleAlign, hideCloseIcon, hasBackArrow, onBack, children, primaryAction, secondaryAction, footerContent, transparentOverlay, maxWidth, contentPadding, className, }: DialogProps): react_jsx_runtime.JSX.Element | null;
1002
+
1003
+ interface AlertProps {
1004
+ /**
1005
+ * Whether the alert is open
1006
+ */
1007
+ isOpen: boolean;
1008
+ /**
1009
+ * Callback when the alert is closed
1010
+ */
1011
+ onClose: () => void;
1012
+ /**
1013
+ * Alert title
1014
+ */
1015
+ title: string;
1016
+ /**
1017
+ * Alert message/content
1018
+ */
1019
+ message: React__default.ReactNode;
1020
+ /**
1021
+ * Label for the confirm button
1022
+ * @default "OK"
1023
+ */
1024
+ confirmLabel?: string;
1025
+ /**
1026
+ * Variant for the confirm button
1027
+ * @default "primary"
1028
+ */
1029
+ confirmVariant?: DialogAction["variant"];
1030
+ /**
1031
+ * Maximum width of the alert dialog
1032
+ * @default "400px"
1033
+ */
1034
+ maxWidth?: string;
1035
+ }
1036
+ /**
1037
+ * Alert
1038
+ *
1039
+ * A simple alert dialog with a single action button.
1040
+ * Use for informational messages that require acknowledgment.
1041
+ */
1042
+ declare function Alert({ isOpen, onClose, title, message, confirmLabel, confirmVariant, maxWidth, }: AlertProps): react_jsx_runtime.JSX.Element;
1043
+
819
1044
  /**
820
1045
  * Control-specific style utilities for form elements and interactive components.
821
1046
  * These styles use CSS variables defined in the theme for consistent sizing
@@ -1001,6 +1226,66 @@ interface ChipProps {
1001
1226
  */
1002
1227
  declare function Chip({ children, onRemove, size, variant, isRemovable, isDisabled, className, onClick, }: ChipProps): react_jsx_runtime.JSX.Element;
1003
1228
 
1229
+ interface ConfirmProps {
1230
+ /**
1231
+ * Whether the confirm dialog is open
1232
+ */
1233
+ isOpen: boolean;
1234
+ /**
1235
+ * Callback when the dialog is closed without confirming
1236
+ */
1237
+ onClose: () => void;
1238
+ /**
1239
+ * Callback when the confirm button is pressed
1240
+ */
1241
+ onConfirm: () => void;
1242
+ /**
1243
+ * Dialog title
1244
+ */
1245
+ title: string;
1246
+ /**
1247
+ * Confirmation message/content
1248
+ */
1249
+ message: React__default.ReactNode;
1250
+ /**
1251
+ * Label for the confirm button
1252
+ * @default "Confirm"
1253
+ */
1254
+ confirmLabel?: string;
1255
+ /**
1256
+ * Label for the cancel button
1257
+ * @default "Cancel"
1258
+ */
1259
+ cancelLabel?: string;
1260
+ /**
1261
+ * Variant for the confirm button
1262
+ * @default "primary"
1263
+ */
1264
+ confirmVariant?: DialogAction["variant"];
1265
+ /**
1266
+ * Whether the confirm action is destructive (uses destructive styling)
1267
+ * @default false
1268
+ */
1269
+ isDestructive?: boolean;
1270
+ /**
1271
+ * Whether the confirm button is in a loading state
1272
+ * @default false
1273
+ */
1274
+ isLoading?: boolean;
1275
+ /**
1276
+ * Maximum width of the confirm dialog
1277
+ * @default "500px"
1278
+ */
1279
+ maxWidth?: string;
1280
+ }
1281
+ /**
1282
+ * Confirm
1283
+ *
1284
+ * A confirmation dialog with confirm and cancel actions.
1285
+ * Use for actions that require user confirmation before proceeding.
1286
+ */
1287
+ declare function Confirm({ isOpen, onClose, onConfirm, title, message, confirmLabel, cancelLabel, confirmVariant, isDestructive, isLoading, maxWidth, }: ConfirmProps): react_jsx_runtime.JSX.Element;
1288
+
1004
1289
  interface CopyToClipboardProps {
1005
1290
  /**
1006
1291
  * The value to copy to clipboard. If not provided, will use the text content of children
@@ -1110,7 +1395,7 @@ interface ChartExportMetadata {
1110
1395
  * }, svgRef);
1111
1396
  * ```
1112
1397
  */
1113
- declare function exportChart(type: ExportType, datasets: BaseDataPoint[][] | BaseDataPoint[], metadata: ChartExportMetadata | undefined, svgRef: React__default.RefObject<SVGSVGElement>): Promise<void>;
1398
+ declare function exportChart(type: ExportType, datasets: BaseDataPoint[][] | BaseDataPoint[], metadata: ChartExportMetadata | undefined, svgRef: React__default.RefObject<SVGSVGElement | null>): Promise<void>;
1114
1399
  /**
1115
1400
  * Utility to check if export is supported in the current environment
1116
1401
  */
@@ -1448,67 +1733,53 @@ interface DateRangePickerProps<T extends DateValue> extends DateRangePickerProps
1448
1733
  }
1449
1734
  declare function DateRangePicker<T extends DateValue>({ label, description, errorMessage, ...props }: DateRangePickerProps<T>): react_jsx_runtime.JSX.Element;
1450
1735
 
1451
- /**
1452
- * Dialog
1453
- *
1454
- * Generic modal/dialog surface with Edges defaults.
1455
- */
1456
- declare function Dialog(props: DialogProps): react_jsx_runtime.JSX.Element;
1457
-
1458
- type BaseDialogHeaderProps = {
1459
- title?: string;
1460
- onClose: () => void;
1461
- hideCloseIcon?: boolean;
1462
- titleAlign?: "left" | "center";
1463
- headerContent?: React__default.ReactNode;
1464
- };
1465
- type WithBackArrow = BaseDialogHeaderProps & {
1466
- hasBackArrow: true;
1467
- onBack: () => void;
1468
- };
1469
- type WithoutBackArrow = BaseDialogHeaderProps & {
1470
- hasBackArrow?: false;
1471
- onBack?: never;
1472
- };
1473
- /**
1474
- * DialogHeader
1475
- *
1476
- * Header area for dialogs with optional back arrow.
1477
- */
1478
- type DialogHeaderProps = WithBackArrow | WithoutBackArrow;
1479
- declare const DialogHeader: React__default.FC<DialogHeaderProps>;
1480
-
1481
- interface DrawerAction {
1482
- label: string;
1483
- onPress: () => void;
1484
- variant?: "default" | "primary" | "secondary" | "destructive" | "icon" | "link" | "unstyled" | "ghost";
1485
- size?: "sm" | "md" | "lg";
1486
- isLoading?: boolean;
1487
- isDisabled?: boolean;
1488
- }
1489
- /**
1490
- * Drawer
1491
- *
1492
- * Sliding panel that anchors to screen edges.
1493
- */
1494
- interface DrawerProps {
1495
- title?: string;
1496
- headerContent?: React__default.ReactNode;
1736
+ interface DrawerProps extends DialogHeaderConfig, DialogFooterConfig {
1737
+ /**
1738
+ * Drawer content
1739
+ */
1497
1740
  children?: React__default.ReactNode;
1741
+ /**
1742
+ * Whether the drawer is open
1743
+ */
1498
1744
  isOpen: boolean;
1745
+ /**
1746
+ * Side to slide in from
1747
+ * @default "right"
1748
+ */
1499
1749
  slideInFrom?: "left" | "right";
1750
+ /**
1751
+ * Whether to use a transparent backdrop
1752
+ * @default false
1753
+ */
1500
1754
  transparentOverlay?: boolean;
1755
+ /**
1756
+ * Callback when the drawer is closed
1757
+ */
1501
1758
  onClose?: () => void;
1759
+ /**
1760
+ * Additional CSS classes
1761
+ */
1502
1762
  className?: string;
1503
- primaryAction?: DrawerAction;
1504
- secondaryAction?: DrawerAction;
1505
- footerContent?: React__default.ReactNode;
1506
- /** Whether to include padding inside the content area. Defaults to true. */
1763
+ /**
1764
+ * Whether to include padding inside the content area
1765
+ * @default true
1766
+ */
1507
1767
  contentPadding?: boolean;
1508
- /** Maximum width of the drawer. Defaults to "400px". Can be any valid CSS width value. */
1768
+ /**
1769
+ * Maximum width of the drawer
1770
+ * @default "400px"
1771
+ */
1509
1772
  maxWidth?: string;
1510
1773
  }
1511
- declare const Drawer: React__default.FC<DrawerProps>;
1774
+ /**
1775
+ * Drawer
1776
+ *
1777
+ * Sliding panel that anchors to screen edges.
1778
+ */
1779
+ declare function Drawer({ children, title, headerContent, titleAlign, hideCloseIcon, hasBackArrow, onBack, isOpen, slideInFrom, transparentOverlay, onClose, className, primaryAction, secondaryAction, footerContent, contentPadding, maxWidth, }: DrawerProps): react_jsx_runtime.JSX.Element | null;
1780
+ declare namespace Drawer {
1781
+ var displayName: string;
1782
+ }
1512
1783
 
1513
1784
  interface Props {
1514
1785
  children: ReactNode;
@@ -1530,7 +1801,7 @@ declare class ErrorBoundary extends Component<Props, State> {
1530
1801
  static getDerivedStateFromError(error: Error): State;
1531
1802
  componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
1532
1803
  private handleRetry;
1533
- render(): string | number | boolean | Iterable<ReactNode> | react_jsx_runtime.JSX.Element | null | undefined;
1804
+ render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
1534
1805
  }
1535
1806
 
1536
1807
  interface InputStyleProps {
@@ -1642,7 +1913,7 @@ declare function getInputStateStyles(props: {
1642
1913
  declare function getInputBackgroundStyles(props: {
1643
1914
  transparent?: boolean;
1644
1915
  isDisabled?: boolean;
1645
- }): "bg-background-muted" | "bg-transparent" | "bg-background-input";
1916
+ }): "bg-transparent" | "bg-background-muted" | "bg-background-input";
1646
1917
  /**
1647
1918
  * Generates the complete set of base styles for input components.
1648
1919
  * This includes state styles, background, sizing, and custom classes.
@@ -2084,6 +2355,8 @@ interface ListItemProps {
2084
2355
  disabled?: boolean;
2085
2356
  /** If provided, renders as <a> with proper a11y; otherwise <button> */
2086
2357
  href?: string;
2358
+ /** Size variant affecting title/subtitle text sizes and spacing */
2359
+ size?: "sm" | "md" | "lg" | "xl";
2087
2360
  onClick?: (id: string) => void;
2088
2361
  onMouseEnter?: (id: string) => void;
2089
2362
  onMouseLeave?: (id: string) => void;
@@ -2110,7 +2383,7 @@ interface ListItemProps {
2110
2383
  * />
2111
2384
  * ```
2112
2385
  */
2113
- declare function ListItem({ id, title, subtitle, meta, leading, trailing, isSelected, isHovered, disabled, href, onClick, onMouseEnter, onMouseLeave, className, style, }: ListItemProps): react_jsx_runtime.JSX.Element;
2386
+ declare function ListItem({ id, title, subtitle, meta, leading, trailing, isSelected, isHovered, disabled, href, size, onClick, onMouseEnter, onMouseLeave, className, style, }: ListItemProps): react_jsx_runtime.JSX.Element;
2114
2387
 
2115
2388
  interface ListPaneProps {
2116
2389
  /** Content for the header area (typically ListHeader) */
@@ -2241,6 +2514,25 @@ declare function isCustomPinsLayer(layer: LayerSpec): layer is CustomPinsSpec;
2241
2514
  */
2242
2515
  declare function isRasterLayer(layer: LayerSpec): layer is RasterLayerSpec;
2243
2516
 
2517
+ interface ModalBackdropProps extends ModalOverlayProps {
2518
+ /**
2519
+ * Whether to use a transparent backdrop instead of dark overlay
2520
+ * @default false
2521
+ */
2522
+ transparent?: boolean;
2523
+ /**
2524
+ * Additional CSS classes for the backdrop
2525
+ */
2526
+ className?: string;
2527
+ }
2528
+ /**
2529
+ * ModalBackdrop
2530
+ *
2531
+ * Shared backdrop/overlay component used by Dialog and Drawer.
2532
+ * Wraps React Aria's ModalOverlay with consistent styling and smooth animations.
2533
+ */
2534
+ declare function ModalBackdrop({ transparent, className, children, ...props }: ModalBackdropProps): react_jsx_runtime.JSX.Element;
2535
+
2244
2536
  type NoticeVariant = "success" | "error" | "warning" | "info";
2245
2537
  interface NoticeProps {
2246
2538
  /** Unique identifier for the notice */
@@ -2518,10 +2810,28 @@ declare function PlaceSearch({ label, selectedKey, defaultSelectedKey, onSelecti
2518
2810
  * `react-aria-components` Popover.
2519
2811
  */
2520
2812
  interface PopoverProps extends Omit<PopoverProps$1, "children"> {
2813
+ /**
2814
+ * Whether to show an arrow pointing to the trigger
2815
+ * @default false
2816
+ */
2521
2817
  showArrow?: boolean;
2818
+ /**
2819
+ * Whether to include a backdrop (makes it modal)
2820
+ * @default false
2821
+ */
2822
+ withBackdrop?: boolean;
2823
+ /**
2824
+ * Whether the backdrop/modal can be dismissed by clicking outside
2825
+ * Only applies when withBackdrop is true
2826
+ * @default true
2827
+ */
2828
+ isDismissable?: boolean;
2829
+ /**
2830
+ * Popover content
2831
+ */
2522
2832
  children: React__default.ReactNode;
2523
2833
  }
2524
- declare function Popover({ children, showArrow, className, ...props }: PopoverProps): react_jsx_runtime.JSX.Element;
2834
+ declare function Popover({ children, showArrow, withBackdrop, className, isDismissable, ...props }: PopoverProps): react_jsx_runtime.JSX.Element;
2525
2835
 
2526
2836
  /**
2527
2837
  * ProgressBar
@@ -2697,15 +3007,16 @@ interface SliderProps {
2697
3007
  declare function Slider({ label, description, tooltip, errorMessage, size, className, value, defaultValue, onChange, min, max, step, disabled, showValue, }: SliderProps): react_jsx_runtime.JSX.Element;
2698
3008
 
2699
3009
  /**
2700
- * SplitPane Component — Resizable two-panel layout
3010
+ * SplitPane Component — Two-panel layout with optional resizing
2701
3011
  *
2702
- * A layout primitive for side-by-side content with a draggable divider.
3012
+ * A layout primitive for side-by-side content with an optional draggable divider.
2703
3013
  * Perfect for list/detail views, dashboards with inspectors, or any
2704
- * main/aside layout that benefits from user-controlled sizing.
3014
+ * main/aside layout.
2705
3015
  *
2706
3016
  * Usage:
2707
3017
  * ```tsx
2708
- * <SplitPane defaultSize={0.7} minSize={280} maxSize={480}>
3018
+ * // Simple fixed-width aside
3019
+ * <SplitPane asideWidth={400}>
2709
3020
  * <SplitPane.Main>
2710
3021
  * <DataTable />
2711
3022
  * </SplitPane.Main>
@@ -2713,24 +3024,46 @@ declare function Slider({ label, description, tooltip, errorMessage, size, class
2713
3024
  * <Inspector />
2714
3025
  * </SplitPane.Aside>
2715
3026
  * </SplitPane>
3027
+ *
3028
+ * // Resizable with constraints
3029
+ * <SplitPane
3030
+ * asideWidth={400}
3031
+ * resizable
3032
+ * minAsideWidth={280}
3033
+ * minMainWidth={600}
3034
+ * >
3035
+ * ...
3036
+ * </SplitPane>
2716
3037
  * ```
2717
3038
  */
2718
3039
  type SplitPaneOrientation = "horizontal" | "vertical";
2719
3040
  interface SplitPaneProps {
2720
- /** Initial size of the main panel (0-1 for ratio, or px value) */
2721
- defaultSize?: number;
2722
- /** Minimum size of aside panel in pixels */
2723
- minSize?: number;
2724
- /** Maximum size of aside panel in pixels */
2725
- maxSize?: number;
3041
+ /** Width of aside panel (pixels or percentage string like "30%") */
3042
+ asideWidth?: number | string;
3043
+ /** Height of aside panel for vertical orientation (pixels or percentage) */
3044
+ asideHeight?: number | string;
3045
+ /** Minimum width of aside panel in pixels (only used if resizable=true) */
3046
+ minAsideWidth?: number;
3047
+ /** Minimum height of aside panel in pixels (only used if resizable=true and orientation="vertical") */
3048
+ minAsideHeight?: number;
3049
+ /** Minimum width of main panel in pixels (only used if resizable=true) */
3050
+ minMainWidth?: number;
3051
+ /** Minimum height of main panel in pixels (only used if resizable=true and orientation="vertical") */
3052
+ minMainHeight?: number;
2726
3053
  /** Orientation of the split */
2727
3054
  orientation?: SplitPaneOrientation;
2728
- /** Whether the divider is draggable */
3055
+ /** Whether the divider is draggable (default: false) */
2729
3056
  resizable?: boolean;
2730
- /** Callback when resize occurs */
2731
- onResize?: (size: number) => void;
3057
+ /** Callback when resize occurs (provides new aside size in pixels) */
3058
+ onAsideResize?: (size: number) => void;
3059
+ /** Callback when resize starts */
3060
+ onResizeStart?: () => void;
3061
+ /** Callback when resize ends */
3062
+ onResizeEnd?: () => void;
2732
3063
  /** Additional CSS classes */
2733
3064
  className?: string;
3065
+ /** Additional CSS classes for the divider */
3066
+ dividerClassName?: string;
2734
3067
  /** Child panels */
2735
3068
  children?: React__default.ReactNode;
2736
3069
  }
@@ -2738,7 +3071,7 @@ interface SplitPanePanelProps {
2738
3071
  className?: string;
2739
3072
  children?: React__default.ReactNode;
2740
3073
  }
2741
- declare function SplitPane({ defaultSize, minSize, maxSize, orientation, resizable, onResize, className, children, }: SplitPaneProps): react_jsx_runtime.JSX.Element;
3074
+ declare function SplitPane({ asideWidth, asideHeight, minAsideWidth, minAsideHeight, minMainWidth, minMainHeight, orientation, resizable, onAsideResize, onResizeStart, onResizeEnd, className, dividerClassName, children, }: SplitPaneProps): react_jsx_runtime.JSX.Element;
2742
3075
  declare namespace SplitPane {
2743
3076
  var Main: typeof Main;
2744
3077
  var Aside: typeof Aside;
@@ -3004,4 +3337,4 @@ interface ColorModeProviderProps {
3004
3337
  }
3005
3338
  declare const ColorModeProvider: React.FC<ColorModeProviderProps>;
3006
3339
 
3007
- export { type Action, ActionCell, type ActionCellProps, AreaSeries, AutoMobileRenderer, Autocomplete, BarSeries, BaseDataPoint, type BaseFormat, type BaseInputProps, type BaseProps, BooleanCell, type BooleanCellProps, type BooleanFormat, Breadcrumb, type BreadcrumbItem, 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, type ComponentFormatOptions, type ComponentFormatter, CopyToClipboard, type CurrencyFormat, type CurrentFormat, type CurrentUnit, type CustomFormat, CustomPinsSpec, DataTable, type DataTableProps, DateCell, type DateCellProps, type DateFormat, type DateFormatStyle, DateRangePicker, Description, type DescriptionProps, Dialog, DialogHeader, type DistanceFormat, type DistanceUnit, Drawer, type EnergyFormat, type EnergyUnit, ErrorBoundary, type ExportType, FieldError, type FieldErrorProps, type FieldFormat, FieldGroup, type FieldGroupProps, type FieldValue, type Filter, Form, FormatRegistry, type FormattedValue, type FormatterFunction, GeoJsonLayerSpec, Grid, type GridAlign, type GridCols, type GridFlow, type GridGap, type GridItemProps, type GridJustify, type GridProps, type GridSpan, Icon, Input, type InputProps, type InputStyleProps, InputWrapper, Kpi, KpiGroup, type KpiGroupAlign, type KpiGroupCols, type KpiGroupGap, type KpiGroupProps, type KpiOrientation, type KpiProps, type KpiSize, type KpiStatus, Label, type LabelProps, LayerSpec, LineSeries, type LinkBehavior, List, ListBox, ListBoxItem, ListHeader, type ListHeaderProps, ListItem, type ListItemProps, ListPane, type ListPaneProps, type ListProps, type MobileBreakpoint, type MobileConfig, type MobileRenderer, Notice, NoticeContainer, type NoticeContainerProps, type NoticeOptions, type NoticeProps, NoticeProvider, type NoticeProviderProps, type NoticeVariant, NumberCell, type NumberCellProps, NumberField, type NumberFormat, type PageActionsProps, type PageAsideProps, type PageContentProps, type PageFiltersProps, type PageHeaderProps, PageLayout, type PageLayoutProps, type PhoneFormat, PlaceSearch, Popover, type PowerFormat, type PowerUnit, ProgressBar, Radio, RadioGroup, RangeCalendar, RasterLayerSpec, type ResistanceFormat, type ResistanceUnit, type ResponsiveValue, SKELETON_SIZES, Section, type SectionProps, type SectionSpacing, type SectionVariant, Select, SelectCell, type SelectCellProps, Skeleton, Slider, type SortConfig, type SortDirection, type SortOption, SplitPane, type SplitPaneOrientation, type SplitPanePanelProps, type SplitPaneProps, type StatAlign, type StatFormatter, type StatItem, type StatLayout, StatList, type StatListProps, type StatThreshold, type StatTone, type StatValue, Switch, Tab, TabList, TabPanel, type TableDensity, type TableLayout, type TableWidth, Tabs, type TabsProps$1 as TabsProps, type TemperatureFormat, type TemperatureUnit, type TemperatureUnitString, TextArea, TextAreaWithChips, TextCell, type TextCellProps, TextField, type TextFormat, type TextTransform, type TextTruncatePosition, TimeField, ToggleButton, Tooltip, TooltipData, type TrendPoint, VectorLayerSpec, type VoltageFormat, type VoltageUnit, YFormatType, autoScaleCurrent, autoScaleDistance, autoScaleEnergy, autoScalePower, autoScaleResistance, autoScaleVoltage, camelCaseToWords, capitalize, celsiusToFahrenheit, celsiusToKelvin, centimetersToInches, createFormat, enumToSentenceCase, exportChart, fahrenheitToCelsius, fahrenheitToKelvin, feetToMeters, feetToMiles, formatBoolean, formatComponentValue, formatCurrency, formatCurrent, formatDate, formatDistance, formatEmptyValue, formatEnergy, formatFieldValue, formatInternationalPhone, formatNumber, formatPhone, formatPhoneNumber, formatPower, formatResistance, formatTemperature, formatText, formatUSPhone, formatVoltage, getBadgeClasses, getBooleanBadgeVariant, getCellAlignmentClasses, getCellContainerClasses, getCellTextClasses, getDateParts, getExportFormatName, getFieldGroupStyles, getInputBackgroundStyles, getInputBaseStyles, getInputStateStyles, getNumericColorClasses, getSkeletonSize, inchesToCentimeters, isCustomPinsLayer, isExportSupported, isGeoJsonLayer, isNil, isRasterLayer, isVectorLayer, kelvinToCelsius, kelvinToFahrenheit, kilometersToMiles, layer, metersToFeet, metersToMiles, metersToYards, milesToFeet, milesToKilometers, milesToMeters, parseBoolean, resolveValue, snakeCaseToWords, temperatureStringToSymbol, toA, toActiveInactive, toAmps, toBoolean, toCelsius, toCentimeters, toCheckmark, toCompactNumber, toCurrency, toCustomDateFormat, toDateString, toEnabledDisabled, toFahrenheit, toFeet, toFloat, toFormattedNumber, toFullDateTime, toGW, toGWh, toGigawatts, toISOString, toInches, toInteger, toKA, toKV, toKW, toKelvin, toKiloamps, toKilohms, toKilometers, toKilovolts, toKilowatts, toLowerCase, toMA, toMV, toMW, toMWh, toMegawatts, toMegohms, toMeters, toMiles, toMilliamps, toMillimeters, toMilliohms, toMillivolts, toNauticalMiles, toOhms, toOnOff, toPercentage, toRelativeTime, toScientificNotation, toSecret, toSentenceCase, toTemperature, toTitleCase, toTrueFalse, toUpperCase, toV, toVolts, toW, toWatts, toWh, toYards, tokWh, truncateEnd, truncateMiddle, truncateStart, ucFirst, useColorMode, useComponentFormatter, useDebounce, useInputFocus, useLocalStorage, useNotice, yardsToMeters };
3340
+ export { type Action, ActionCell, type ActionCellProps, Alert, type AlertProps, AreaSeries, AutoMobileRenderer, Autocomplete, BREAKPOINTS, BarSeries, BaseDataPoint, type BaseFormat, type BaseInputProps, type BaseProps, BooleanCell, type BooleanCellProps, type BooleanFormat, Breadcrumb, type BreadcrumbItem, Breadcrumbs, type Breakpoint, type BreakpointState, 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, type ComponentFormatOptions, type ComponentFormatter, Confirm, type ConfirmProps, CopyToClipboard, type CurrencyFormat, type CurrentFormat, type CurrentUnit, type CustomFormat, CustomPinsSpec, DataTable, type DataTableProps, DateCell, type DateCellProps, type DateFormat, type DateFormatStyle, DateRangePicker, Description, type DescriptionProps, Dialog, type DialogAction, type DialogFooterConfig, type DialogHeaderConfig, type DialogProps, type DistanceFormat, type DistanceUnit, Drawer, type DrawerProps, type EnergyFormat, type EnergyUnit, ErrorBoundary, type ExportType, FieldError, type FieldErrorProps, type FieldFormat, FieldGroup, type FieldGroupProps, type FieldValue, type Filter, Form, FormatRegistry, type FormattedValue, type FormatterFunction, GeoJsonLayerSpec, Grid, type GridAlign, type GridCols, type GridFlow, type GridGap, type GridItemProps, type GridJustify, type GridProps, type GridSpan, Icon, Input, type InputProps, type InputStyleProps, InputWrapper, Kpi, KpiGroup, type KpiGroupAlign, type KpiGroupCols, type KpiGroupGap, type KpiGroupProps, type KpiOrientation, type KpiProps, type KpiSize, type KpiStatus, Label, type LabelProps, LayerSpec, LineSeries, type LinkBehavior, List, ListBox, ListBoxItem, ListHeader, type ListHeaderProps, ListItem, type ListItemProps, ListPane, type ListPaneProps, type ListProps, type MobileBreakpoint, type MobileConfig, type MobileRenderer, ModalBackdrop, type ModalBackdropProps, Notice, NoticeContainer, type NoticeContainerProps, type NoticeOptions, type NoticeProps, NoticeProvider, type NoticeProviderProps, type NoticeVariant, NumberCell, type NumberCellProps, NumberField, type NumberFormat, type PageActionsProps, type PageAsideProps, type PageContentProps, type PageFiltersProps, type PageHeaderProps, PageLayout, type PageLayoutProps, type PhoneFormat, PlaceSearch, Popover, type PowerFormat, type PowerUnit, ProgressBar, Radio, RadioGroup, RangeCalendar, RasterLayerSpec, type ResistanceFormat, type ResistanceUnit, type ResponsiveValue, SKELETON_SIZES, Section, type SectionProps, type SectionSpacing, type SectionVariant, Select, SelectCell, type SelectCellProps, Skeleton, Slider, type SortConfig, type SortDirection, type SortOption, SplitPane, type SplitPaneOrientation, type SplitPanePanelProps, type SplitPaneProps, type StatAlign, type StatFormatter, type StatItem, type StatLayout, StatList, type StatListProps, type StatThreshold, type StatTone, type StatValue, Switch, Tab, TabList, TabPanel, type TableDensity, type TableLayout, type TableWidth, Tabs, type TabsProps$1 as TabsProps, type TemperatureFormat, type TemperatureUnit, type TemperatureUnitString, TextArea, TextAreaWithChips, TextCell, type TextCellProps, TextField, type TextFormat, type TextTransform, type TextTruncatePosition, TimeField, ToggleButton, Tooltip, TooltipData, type TrendPoint, type UseBreakpointReturn, VectorLayerSpec, type VoltageFormat, type VoltageUnit, YFormatType, autoScaleCurrent, autoScaleDistance, autoScaleEnergy, autoScalePower, autoScaleResistance, autoScaleVoltage, camelCaseToWords, capitalize, celsiusToFahrenheit, celsiusToKelvin, centimetersToInches, createFormat, enumToSentenceCase, exportChart, fahrenheitToCelsius, fahrenheitToKelvin, feetToMeters, feetToMiles, formatBoolean, formatComponentValue, formatCurrency, formatCurrent, formatDate, formatDistance, formatEmptyValue, formatEnergy, formatFieldValue, formatInternationalPhone, formatNumber, formatPhone, formatPhoneNumber, formatPower, formatResistance, formatTemperature, formatText, formatUSPhone, formatVoltage, getBadgeClasses, getBooleanBadgeVariant, getCellAlignmentClasses, getCellContainerClasses, getCellTextClasses, getDateParts, getExportFormatName, getFieldGroupStyles, getInputBackgroundStyles, getInputBaseStyles, getInputStateStyles, getNumericColorClasses, getSkeletonSize, inchesToCentimeters, isCustomPinsLayer, isExportSupported, isGeoJsonLayer, isNil, isRasterLayer, isVectorLayer, kelvinToCelsius, kelvinToFahrenheit, kilometersToMiles, layer, metersToFeet, metersToMiles, metersToYards, milesToFeet, milesToKilometers, milesToMeters, parseBoolean, resolveValue, snakeCaseToWords, temperatureStringToSymbol, toA, toActiveInactive, toAmps, toBoolean, toCelsius, toCentimeters, toCheckmark, toCompactNumber, toCurrency, toCustomDateFormat, toDateString, toEnabledDisabled, toFahrenheit, toFeet, toFloat, toFormattedNumber, toFullDateTime, toGW, toGWh, toGigawatts, toISOString, toInches, toInteger, toKA, toKV, toKW, toKelvin, toKiloamps, toKilohms, toKilometers, toKilovolts, toKilowatts, toLowerCase, toMA, toMV, toMW, toMWh, toMegawatts, toMegohms, toMeters, toMiles, toMilliamps, toMillimeters, toMilliohms, toMillivolts, toNauticalMiles, toOhms, toOnOff, toPercentage, toRelativeTime, toScientificNotation, toSecret, toSentenceCase, toTemperature, toTitleCase, toTrueFalse, toUpperCase, toV, toVolts, toW, toWatts, toWh, toYards, tokWh, truncateEnd, truncateMiddle, truncateStart, ucFirst, useBreakpoint, useColorMode, useComponentFormatter, useDebounce, useInputFocus, useLocalStorage, useMediaQuery, useNotice, yardsToMeters };