docthub-core-components 2.57.0 → 2.59.0

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.
@@ -48,6 +48,8 @@ interface AutocompleteProps<T> {
48
48
  minSearchLength?: number;
49
49
  /** Control built-in bolding of matched query segments (default: false) */
50
50
  ntt?: boolean;
51
+ /** If true, clears the input text after selecting an option (default: true, for backward compatibility) */
52
+ clearInputOnSelect?: boolean;
51
53
  }
52
- export declare const DoctAutocomplete: <T extends OptionType>({ options, dataSource, value, onChange, change, onInputChange, placeholder, multiple, freeSolo, disabled, loading, size, variant, label, helperText, error, required, fullWidth, clearable, disableCloseOnSelect, filterOptions, getOptionLabel, getOptionValue, isOptionEqualToValue, renderOption, renderTags, fields, noOptionsText, emptyMessage, className, inputClassName, chipClassName, debounceMs, minSearchLength, ntt, ...props }: AutocompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
54
+ export declare const DoctAutocomplete: <T extends OptionType>({ options, dataSource, value, onChange, change, onInputChange, placeholder, multiple, freeSolo, disabled, loading, size, variant, label, helperText, error, required, fullWidth, clearable, disableCloseOnSelect, filterOptions, getOptionLabel, getOptionValue, isOptionEqualToValue, renderOption, renderTags, fields, noOptionsText, emptyMessage, className, inputClassName, chipClassName, debounceMs, minSearchLength, ntt, clearInputOnSelect, ...props }: AutocompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
53
55
  export {};
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ /**
3
+ * Merges a component's props onto its single child element.
4
+ * Replaces @radix-ui/react-slot's Slot with a lightweight implementation.
5
+ */
6
+ declare const Slot: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
7
+ export { Slot };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docthub-core-components",
3
- "version": "2.57.0",
3
+ "version": "2.59.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",