@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.
- package/dist/index.css +1 -1
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1412 -1280
- package/dist/index.mjs.map +1 -1
- package/dist/types/src/I18n.d.ts +6 -0
- package/dist/types/src/Theme.d.ts +2 -0
- package/dist/types/src/components/ui/fields/Select.d.ts +11 -2
- package/llms-full.txt +1182 -1179
- package/package.json +1 -1
- package/themes/cyber.ts +2 -0
- package/themes/default.ts +2 -0
- package/themes/flat.ts +2 -0
package/dist/types/src/I18n.d.ts
CHANGED
|
@@ -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;
|
|
@@ -30,12 +30,21 @@ export interface AutocompleteProps extends BaseProps {
|
|
|
30
30
|
maxItems?: number;
|
|
31
31
|
placeholder?: string;
|
|
32
32
|
creatable?: boolean;
|
|
33
|
-
|
|
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
|
-
|
|
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 {};
|