@llmnative/react 1.20.0 → 1.22.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.
@@ -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;
@@ -56,6 +56,7 @@ export interface SideNavTheme {
56
56
  overlayClassName?: string;
57
57
  headerClassName?: string;
58
58
  navClassName?: string;
59
+ bottomNavClassName?: string;
59
60
  footerClassName?: string;
60
61
  groupLabelClassName?: string;
61
62
  groupDividerClassName?: string;
@@ -284,6 +285,8 @@ export interface ThemeConfig {
284
285
  Autocomplete?: {
285
286
  wrapperClassName?: string;
286
287
  className?: string;
288
+ listClassName?: string;
289
+ optionClassName?: string;
287
290
  };
288
291
  AddressAutocomplete?: {
289
292
  wrapperClassName?: string;
@@ -24,6 +24,12 @@ export interface SideNavProps {
24
24
  menuKey?: string;
25
25
  /** Explicit items — alternative to menuKey */
26
26
  items?: SideNavItemDef[];
27
+ /**
28
+ * Items pinned at the bottom of the sidebar, above the footer and outside the scrolling
29
+ * list (e.g. Settings). Same shape as `items`: groups, children, badges and active state
30
+ * work the same way. In `embedded` mode they follow the main items, separated by a border.
31
+ */
32
+ bottomItems?: SideNavItemDef[];
27
33
  /** Initial collapsed state for UNCONTROLLED usage (ignored once `collapsed` is passed —
28
34
  * see below). Default false. */
29
35
  defaultCollapsed?: boolean;
@@ -59,4 +65,4 @@ export interface SideNavProps {
59
65
  */
60
66
  embedded?: boolean;
61
67
  }
62
- export default function SideNav({ menuKey, items: itemsProp, defaultCollapsed, collapsed: collapsedProp, onCollapsedChange, showIcons, showCollapseButton, footer, header, embedded, }: SideNavProps): React.JSX.Element | null;
68
+ export default function SideNav({ menuKey, items: itemsProp, bottomItems, defaultCollapsed, collapsed: collapsedProp, onCollapsedChange, showIcons, showCollapseButton, footer, header, embedded, }: SideNavProps): React.JSX.Element | null;
@@ -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 {};