@llmnative/react 1.21.0 → 1.22.1

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.
@@ -179,6 +179,12 @@ export interface I18nDict {
179
179
  expandSidebar: string;
180
180
  collapseSidebar: string;
181
181
  };
182
+ autocomplete: {
183
+ noResults: string;
184
+ create: string;
185
+ createPlaceholder: string;
186
+ remove: string;
187
+ };
182
188
  addressAutocomplete: {
183
189
  placeholder: string;
184
190
  noResults: string;
@@ -285,6 +285,8 @@ export interface ThemeConfig {
285
285
  Autocomplete?: {
286
286
  wrapperClassName?: string;
287
287
  className?: string;
288
+ listClassName?: string;
289
+ optionClassName?: string;
288
290
  };
289
291
  AddressAutocomplete?: {
290
292
  wrapperClassName?: string;
@@ -30,12 +30,21 @@ export interface AutocompleteProps extends BaseProps {
30
30
  maxItems?: number;
31
31
  placeholder?: string;
32
32
  creatable?: boolean;
33
- onCreate?: (value: string) => Promise<void> | void;
33
+ /** Called when the user creates a value (`creatable`). Return `false` (or resolve to `false`)
34
+ * to keep the created value out of the selection, e.g. to open a creation form instead. */
35
+ onCreate?: (value: string) => Promise<void | boolean> | void | boolean;
36
+ /** Class of the options list (rendered in a portal, as wide as the field). */
37
+ listClassName?: string;
38
+ /** Class of every option of the list. */
39
+ optionClassName?: string;
34
40
  }
35
41
  export interface ChecklistProps extends BaseProps {
36
42
  itemClassName?: string;
37
43
  }
38
44
  export declare const Select: ({ name, onChange, defaultValue, required, readOnlyAfterSet, disabled, placeholderOption, label, title, before, after, feedback, options, optionsSource, order, inheritWrapperClassName, wrapperClassName, className, validator, }: SelectProps) => React.JSX.Element;
39
- export declare const Autocomplete: ({ name, defaultValue, minItems, maxItems, onChange, required, readOnlyAfterSet, disabled, label, title, placeholder, before, after, feedback, options, optionsSource, order, inheritWrapperClassName, wrapperClassName, className, validator, creatable, onCreate, }: AutocompleteProps) => React.JSX.Element;
45
+ /** Combobox with a themed listbox (CR-096): the list is drawn by the framework, as wide as the
46
+ * field, shows labels only and is driven by keyboard and mouse. The stored value is unchanged:
47
+ * the array of the selected option values. */
48
+ export declare const Autocomplete: ({ name, defaultValue, minItems, maxItems, onChange, required, readOnlyAfterSet, disabled, label, title, placeholder, before, after, feedback, options, optionsSource, order, inheritWrapperClassName, wrapperClassName, className, listClassName, optionClassName, validator, creatable, onCreate, }: AutocompleteProps) => React.JSX.Element;
40
49
  export declare const Checklist: ({ name, defaultValue, onChange, required, readOnlyAfterSet, disabled, label, title, before, after, feedback, options, optionsSource, order, inheritWrapperClassName, wrapperClassName, className, validator, itemClassName, }: ChecklistProps) => React.JSX.Element;
41
50
  export {};