@texturehq/edges 1.26.5 → 1.26.6

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
@@ -8,8 +8,8 @@ import { Virtualizer } from '@tanstack/react-virtual';
8
8
  import * as react_jsx_runtime from 'react/jsx-runtime';
9
9
  import { I as Icon, S as Size, d as IconName$2, B as BaseInputProps } from './RichTextEditor-CZCqHSPF.cjs';
10
10
  export { f as BaseProps, C as ClearButton, a as DateField, D as DateFieldProps, r as Description, g as DescriptionPlacement, j as DescriptionProps, s as FieldError, h as FieldErrorProps, v as FieldGroup, k as FieldGroupProps, b as FileUpload, F as FileUploadProps, t as Input, i as InputProps, e as InputStyleProps, l as InputWrapper, q as Label, L as LabelProps, c as RichTextEditor, R as RichTextEditorProps, p as getFieldGroupStyles, n as getInputBackgroundStyles, o as getInputBaseStyles, m as getInputStateStyles, u as useInputFocus } from './RichTextEditor-CZCqHSPF.cjs';
11
- import { D as DialogAction, a as DialogHeaderConfig, b as DialogFooterConfig } from './index-Dkhk7IbI.cjs';
12
- export { d as Dialog, g as DialogForm, c as DialogProps, f as Drawer, h as DrawerForm, e as DrawerProps, F as FormActions, j as FormDivider, i as FormGrid, k as FormSection, l as FormStepper, S as SaveBar, U as UnsavedChangesPrompt, u as useWizard } from './index-Dkhk7IbI.cjs';
11
+ import { D as DialogAction, a as DialogHeaderConfig, b as DialogFooterConfig } from './index-rh1icNsb.cjs';
12
+ export { d as Dialog, g as DialogForm, c as DialogProps, f as Drawer, h as DrawerForm, e as DrawerProps, F as FormActions, j as FormDivider, i as FormGrid, k as FormSection, l as FormStepper, S as SaveBar, U as UnsavedChangesPrompt, u as useWizard } from './index-rh1icNsb.cjs';
13
13
  export { A as Autocomplete, B as Button, C as Checkbox, a as CheckboxGroup, b as ColorField, f as ColorFieldProps, N as NumberField, g as Radio, R as RadioGroup, S as Select, c as Switch, T as TextArea, d as TextField, h as TimeField } from './TimeField-DjLAyJkm.cjs';
14
14
  import { ScaleTime, ScaleLinear } from 'd3-scale';
15
15
  import 'react-map-gl';
@@ -851,6 +851,8 @@ interface FacetConfig {
851
851
  maxVisibleOptions?: number;
852
852
  /** Optional description text to show below the label */
853
853
  description?: string;
854
+ /** Optional: Custom render function for option labels (e.g., to show Badges) */
855
+ renderLabel?: (value: string, label: string) => React.ReactNode;
854
856
  }
855
857
  interface FacetCounts {
856
858
  [field: string]: {
@@ -2024,6 +2026,8 @@ interface DataTableProps<T> {
2024
2026
  onRowClick?: (row: T) => void;
2025
2027
  getRowId?: (row: T) => string;
2026
2028
  hideHeader?: boolean;
2029
+ /** Controlled sort configuration - when provided, DataTable becomes controlled */
2030
+ sortConfig?: SortConfig | null;
2027
2031
  onSort?: (sortConfig: SortConfig | null) => void;
2028
2032
  "aria-label"?: string;
2029
2033
  }
@@ -3457,7 +3461,7 @@ declare function TextCell<T = any>({ value, row, context, prefix, suffix, emptyT
3457
3461
  * Supports custom cell renderers, column configurations, multiple display densities,
3458
3462
  * and virtualization for large datasets.
3459
3463
  */
3460
- declare function DataTable<T extends Record<string, unknown>>({ columns, data, className, density, width, height, maxHeight, layout, mobileRenderer, customMobileRowRender, mobileBreakpoint, isLoading, loadingState, loadingRowCount, onLoadMore, hasMore, enableVirtualization, estimatedRowHeight, loadingIndicator, stickyHeader, onRowClick, getRowId, hideHeader, onSort, "aria-label": ariaLabel, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
3464
+ declare function DataTable<T extends Record<string, unknown>>({ columns, data, className, density, width, height, maxHeight, layout, mobileRenderer, customMobileRowRender, mobileBreakpoint, isLoading, loadingState, loadingRowCount, onLoadMore, hasMore, enableVirtualization, estimatedRowHeight, loadingIndicator, stickyHeader, onRowClick, getRowId, hideHeader, sortConfig: controlledSortConfig, onSort, "aria-label": ariaLabel, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
3461
3465
 
3462
3466
  interface MobileRowProps<T> {
3463
3467
  row: T;
package/dist/index.d.ts CHANGED
@@ -8,8 +8,8 @@ import { Virtualizer } from '@tanstack/react-virtual';
8
8
  import * as react_jsx_runtime from 'react/jsx-runtime';
9
9
  import { I as Icon, S as Size, d as IconName$2, B as BaseInputProps } from './RichTextEditor-CZCqHSPF.js';
10
10
  export { f as BaseProps, C as ClearButton, a as DateField, D as DateFieldProps, r as Description, g as DescriptionPlacement, j as DescriptionProps, s as FieldError, h as FieldErrorProps, v as FieldGroup, k as FieldGroupProps, b as FileUpload, F as FileUploadProps, t as Input, i as InputProps, e as InputStyleProps, l as InputWrapper, q as Label, L as LabelProps, c as RichTextEditor, R as RichTextEditorProps, p as getFieldGroupStyles, n as getInputBackgroundStyles, o as getInputBaseStyles, m as getInputStateStyles, u as useInputFocus } from './RichTextEditor-CZCqHSPF.js';
11
- import { D as DialogAction, a as DialogHeaderConfig, b as DialogFooterConfig } from './index-Dkhk7IbI.js';
12
- export { d as Dialog, g as DialogForm, c as DialogProps, f as Drawer, h as DrawerForm, e as DrawerProps, F as FormActions, j as FormDivider, i as FormGrid, k as FormSection, l as FormStepper, S as SaveBar, U as UnsavedChangesPrompt, u as useWizard } from './index-Dkhk7IbI.js';
11
+ import { D as DialogAction, a as DialogHeaderConfig, b as DialogFooterConfig } from './index-rh1icNsb.js';
12
+ export { d as Dialog, g as DialogForm, c as DialogProps, f as Drawer, h as DrawerForm, e as DrawerProps, F as FormActions, j as FormDivider, i as FormGrid, k as FormSection, l as FormStepper, S as SaveBar, U as UnsavedChangesPrompt, u as useWizard } from './index-rh1icNsb.js';
13
13
  export { A as Autocomplete, B as Button, C as Checkbox, a as CheckboxGroup, b as ColorField, f as ColorFieldProps, N as NumberField, g as Radio, R as RadioGroup, S as Select, c as Switch, T as TextArea, d as TextField, h as TimeField } from './TimeField-CDgde0qa.js';
14
14
  import { ScaleTime, ScaleLinear } from 'd3-scale';
15
15
  import 'react-map-gl';
@@ -851,6 +851,8 @@ interface FacetConfig {
851
851
  maxVisibleOptions?: number;
852
852
  /** Optional description text to show below the label */
853
853
  description?: string;
854
+ /** Optional: Custom render function for option labels (e.g., to show Badges) */
855
+ renderLabel?: (value: string, label: string) => React.ReactNode;
854
856
  }
855
857
  interface FacetCounts {
856
858
  [field: string]: {
@@ -2024,6 +2026,8 @@ interface DataTableProps<T> {
2024
2026
  onRowClick?: (row: T) => void;
2025
2027
  getRowId?: (row: T) => string;
2026
2028
  hideHeader?: boolean;
2029
+ /** Controlled sort configuration - when provided, DataTable becomes controlled */
2030
+ sortConfig?: SortConfig | null;
2027
2031
  onSort?: (sortConfig: SortConfig | null) => void;
2028
2032
  "aria-label"?: string;
2029
2033
  }
@@ -3457,7 +3461,7 @@ declare function TextCell<T = any>({ value, row, context, prefix, suffix, emptyT
3457
3461
  * Supports custom cell renderers, column configurations, multiple display densities,
3458
3462
  * and virtualization for large datasets.
3459
3463
  */
3460
- declare function DataTable<T extends Record<string, unknown>>({ columns, data, className, density, width, height, maxHeight, layout, mobileRenderer, customMobileRowRender, mobileBreakpoint, isLoading, loadingState, loadingRowCount, onLoadMore, hasMore, enableVirtualization, estimatedRowHeight, loadingIndicator, stickyHeader, onRowClick, getRowId, hideHeader, onSort, "aria-label": ariaLabel, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
3464
+ declare function DataTable<T extends Record<string, unknown>>({ columns, data, className, density, width, height, maxHeight, layout, mobileRenderer, customMobileRowRender, mobileBreakpoint, isLoading, loadingState, loadingRowCount, onLoadMore, hasMore, enableVirtualization, estimatedRowHeight, loadingIndicator, stickyHeader, onRowClick, getRowId, hideHeader, sortConfig: controlledSortConfig, onSort, "aria-label": ariaLabel, }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
3461
3465
 
3462
3466
  interface MobileRowProps<T> {
3463
3467
  row: T;