@underverse-ui/underverse 1.0.107 → 1.0.110

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
@@ -1584,10 +1584,30 @@ interface ComboboxProps {
1584
1584
  groupBy?: (option: ComboboxOption) => string;
1585
1585
  renderOption?: (option: ComboboxOption, isSelected: boolean) => React$1.ReactNode;
1586
1586
  renderValue?: (option: ComboboxOption) => React$1.ReactNode;
1587
+ /** Selected option fallback for manual/server search when options does not contain the current value. */
1588
+ selectedOption?: ComboboxOption;
1587
1589
  error?: string;
1588
1590
  helperText?: string;
1589
- /** Enable OverlayScrollbars on dropdown options list. Default: false */
1591
+ /** Enable OverlayScrollbars on dropdown options list. Default: true when not virtualized */
1590
1592
  useOverlayScrollbar?: boolean;
1593
+ /** Virtualize large flat option lists. Grouped lists fall back to normal rendering. Default: false */
1594
+ virtualized?: boolean;
1595
+ /** Estimated option row height used by virtualized rendering. Default: 44 */
1596
+ estimatedItemHeight?: number;
1597
+ /** Number of extra rows rendered above and below the visible range. Default: 8 */
1598
+ overscan?: number;
1599
+ /** Use "manual" to let callers provide server-filtered options via onSearchChange. Default: "auto" */
1600
+ searchMode?: "auto" | "manual";
1601
+ /** Called whenever the search query changes. Required for manual/server search. */
1602
+ onSearchChange?: (query: string) => void;
1603
+ /** Debounce delay for onSearchChange. Default: 0 */
1604
+ searchDebounceMs?: number;
1605
+ /** Minimum query length before showing options in manual/search-prompt mode. Default: 0 */
1606
+ minSearchLength?: number;
1607
+ /** Limit the number of rendered options before the user types a query. */
1608
+ maxInitialOptions?: number;
1609
+ /** Show a prompt instead of options while the query is shorter than minSearchLength. Default: false */
1610
+ showSearchPromptWhenEmptyQuery?: boolean;
1591
1611
  }
1592
1612
  declare const Combobox: React$1.FC<ComboboxProps>;
1593
1613
 
@@ -1629,11 +1649,31 @@ interface MultiComboboxProps {
1629
1649
  groupBy?: (option: MultiComboboxOption) => string;
1630
1650
  renderOption?: (option: MultiComboboxOption, isSelected: boolean) => React$1.ReactNode;
1631
1651
  renderTag?: (option: MultiComboboxOption, onRemove: () => void) => React$1.ReactNode;
1652
+ /** Selected option fallbacks for manual/server search when options does not contain current values. */
1653
+ selectedOptions?: MultiComboboxOption[];
1632
1654
  error?: string;
1633
1655
  helperText?: string;
1634
1656
  maxTagsVisible?: number;
1635
- /** Enable OverlayScrollbars on dropdown options list. Default: false */
1657
+ /** Enable OverlayScrollbars on dropdown options list. Default: true when not virtualized */
1636
1658
  useOverlayScrollbar?: boolean;
1659
+ /** Virtualize large flat option lists. Grouped lists fall back to normal rendering. Default: false */
1660
+ virtualized?: boolean;
1661
+ /** Estimated option row height used by virtualized rendering. Default: 44 */
1662
+ estimatedItemHeight?: number;
1663
+ /** Number of extra rows rendered above and below the visible range. Default: 8 */
1664
+ overscan?: number;
1665
+ /** Use "manual" to let callers provide server-filtered options via onSearchChange. Default: "auto" */
1666
+ searchMode?: "auto" | "manual";
1667
+ /** Called whenever the search query changes. Required for manual/server search. */
1668
+ onSearchChange?: (query: string) => void;
1669
+ /** Debounce delay for onSearchChange. Default: 0 */
1670
+ searchDebounceMs?: number;
1671
+ /** Minimum query length before showing options in manual/search-prompt mode. Default: 0 */
1672
+ minSearchLength?: number;
1673
+ /** Limit the number of rendered options before the user types a query. */
1674
+ maxInitialOptions?: number;
1675
+ /** Show a prompt instead of options while the query is shorter than minSearchLength. Default: false */
1676
+ showSearchPromptWhenEmptyQuery?: boolean;
1637
1677
  }
1638
1678
  declare const MultiCombobox: React$1.FC<MultiComboboxProps>;
1639
1679
 
package/dist/index.d.ts CHANGED
@@ -1584,10 +1584,30 @@ interface ComboboxProps {
1584
1584
  groupBy?: (option: ComboboxOption) => string;
1585
1585
  renderOption?: (option: ComboboxOption, isSelected: boolean) => React$1.ReactNode;
1586
1586
  renderValue?: (option: ComboboxOption) => React$1.ReactNode;
1587
+ /** Selected option fallback for manual/server search when options does not contain the current value. */
1588
+ selectedOption?: ComboboxOption;
1587
1589
  error?: string;
1588
1590
  helperText?: string;
1589
- /** Enable OverlayScrollbars on dropdown options list. Default: false */
1591
+ /** Enable OverlayScrollbars on dropdown options list. Default: true when not virtualized */
1590
1592
  useOverlayScrollbar?: boolean;
1593
+ /** Virtualize large flat option lists. Grouped lists fall back to normal rendering. Default: false */
1594
+ virtualized?: boolean;
1595
+ /** Estimated option row height used by virtualized rendering. Default: 44 */
1596
+ estimatedItemHeight?: number;
1597
+ /** Number of extra rows rendered above and below the visible range. Default: 8 */
1598
+ overscan?: number;
1599
+ /** Use "manual" to let callers provide server-filtered options via onSearchChange. Default: "auto" */
1600
+ searchMode?: "auto" | "manual";
1601
+ /** Called whenever the search query changes. Required for manual/server search. */
1602
+ onSearchChange?: (query: string) => void;
1603
+ /** Debounce delay for onSearchChange. Default: 0 */
1604
+ searchDebounceMs?: number;
1605
+ /** Minimum query length before showing options in manual/search-prompt mode. Default: 0 */
1606
+ minSearchLength?: number;
1607
+ /** Limit the number of rendered options before the user types a query. */
1608
+ maxInitialOptions?: number;
1609
+ /** Show a prompt instead of options while the query is shorter than minSearchLength. Default: false */
1610
+ showSearchPromptWhenEmptyQuery?: boolean;
1591
1611
  }
1592
1612
  declare const Combobox: React$1.FC<ComboboxProps>;
1593
1613
 
@@ -1629,11 +1649,31 @@ interface MultiComboboxProps {
1629
1649
  groupBy?: (option: MultiComboboxOption) => string;
1630
1650
  renderOption?: (option: MultiComboboxOption, isSelected: boolean) => React$1.ReactNode;
1631
1651
  renderTag?: (option: MultiComboboxOption, onRemove: () => void) => React$1.ReactNode;
1652
+ /** Selected option fallbacks for manual/server search when options does not contain current values. */
1653
+ selectedOptions?: MultiComboboxOption[];
1632
1654
  error?: string;
1633
1655
  helperText?: string;
1634
1656
  maxTagsVisible?: number;
1635
- /** Enable OverlayScrollbars on dropdown options list. Default: false */
1657
+ /** Enable OverlayScrollbars on dropdown options list. Default: true when not virtualized */
1636
1658
  useOverlayScrollbar?: boolean;
1659
+ /** Virtualize large flat option lists. Grouped lists fall back to normal rendering. Default: false */
1660
+ virtualized?: boolean;
1661
+ /** Estimated option row height used by virtualized rendering. Default: 44 */
1662
+ estimatedItemHeight?: number;
1663
+ /** Number of extra rows rendered above and below the visible range. Default: 8 */
1664
+ overscan?: number;
1665
+ /** Use "manual" to let callers provide server-filtered options via onSearchChange. Default: "auto" */
1666
+ searchMode?: "auto" | "manual";
1667
+ /** Called whenever the search query changes. Required for manual/server search. */
1668
+ onSearchChange?: (query: string) => void;
1669
+ /** Debounce delay for onSearchChange. Default: 0 */
1670
+ searchDebounceMs?: number;
1671
+ /** Minimum query length before showing options in manual/search-prompt mode. Default: 0 */
1672
+ minSearchLength?: number;
1673
+ /** Limit the number of rendered options before the user types a query. */
1674
+ maxInitialOptions?: number;
1675
+ /** Show a prompt instead of options while the query is shorter than minSearchLength. Default: false */
1676
+ showSearchPromptWhenEmptyQuery?: boolean;
1637
1677
  }
1638
1678
  declare const MultiCombobox: React$1.FC<MultiComboboxProps>;
1639
1679