@texturehq/edges 1.26.3 → 1.26.4

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
@@ -845,6 +845,12 @@ interface FacetConfig {
845
845
  value: string | number;
846
846
  label: string;
847
847
  }>;
848
+ /** Number of options to show before requiring search (default: 10) */
849
+ searchThreshold?: number;
850
+ /** Max options to show initially, with "Show all" button for rest (default: 50) */
851
+ maxVisibleOptions?: number;
852
+ /** Optional description text to show below the label */
853
+ description?: string;
848
854
  }
849
855
  interface FacetCounts {
850
856
  [field: string]: {
@@ -2594,6 +2600,8 @@ interface FilterDialogProps {
2594
2600
  onClear?: () => void;
2595
2601
  /** Dialog title */
2596
2602
  title?: string;
2603
+ /** Optional: Show result count in footer (number of items that match current draft filters) */
2604
+ resultCount?: number;
2597
2605
  }
2598
2606
  /**
2599
2607
  * FilterDialog
@@ -2626,7 +2634,7 @@ interface FilterDialogProps {
2626
2634
  * />
2627
2635
  * ```
2628
2636
  */
2629
- declare function FilterDialog({ isOpen, onClose, facetConfigs, facetCounts, currentFilters, onApply, onClear, title, }: FilterDialogProps): react_jsx_runtime.JSX.Element;
2637
+ declare function FilterDialog({ isOpen, onClose, facetConfigs, facetCounts, currentFilters, onApply, onClear, title, resultCount, }: FilterDialogProps): react_jsx_runtime.JSX.Element;
2630
2638
 
2631
2639
  interface ResultsCountProps {
2632
2640
  /** Number of results/items */
package/dist/index.d.ts CHANGED
@@ -845,6 +845,12 @@ interface FacetConfig {
845
845
  value: string | number;
846
846
  label: string;
847
847
  }>;
848
+ /** Number of options to show before requiring search (default: 10) */
849
+ searchThreshold?: number;
850
+ /** Max options to show initially, with "Show all" button for rest (default: 50) */
851
+ maxVisibleOptions?: number;
852
+ /** Optional description text to show below the label */
853
+ description?: string;
848
854
  }
849
855
  interface FacetCounts {
850
856
  [field: string]: {
@@ -2594,6 +2600,8 @@ interface FilterDialogProps {
2594
2600
  onClear?: () => void;
2595
2601
  /** Dialog title */
2596
2602
  title?: string;
2603
+ /** Optional: Show result count in footer (number of items that match current draft filters) */
2604
+ resultCount?: number;
2597
2605
  }
2598
2606
  /**
2599
2607
  * FilterDialog
@@ -2626,7 +2634,7 @@ interface FilterDialogProps {
2626
2634
  * />
2627
2635
  * ```
2628
2636
  */
2629
- declare function FilterDialog({ isOpen, onClose, facetConfigs, facetCounts, currentFilters, onApply, onClear, title, }: FilterDialogProps): react_jsx_runtime.JSX.Element;
2637
+ declare function FilterDialog({ isOpen, onClose, facetConfigs, facetCounts, currentFilters, onApply, onClear, title, resultCount, }: FilterDialogProps): react_jsx_runtime.JSX.Element;
2630
2638
 
2631
2639
  interface ResultsCountProps {
2632
2640
  /** Number of results/items */