widenarrow-ui 2.4.1 → 2.4.3
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/lib/index.css +1 -1
- package/lib/index.d.ts +15 -9
- package/lib/index.esm.css +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -18,16 +18,12 @@ declare enum IconTypes {
|
|
|
18
18
|
ADD_CHART = "iconAddChart",
|
|
19
19
|
ADD_CIRCLE = "iconAddCircle",
|
|
20
20
|
ADD_COLUMN_LEFT = "iconAddColumnLeft",
|
|
21
|
-
ADD_COLUMN_LEFT_FILLED = "iconAddColumnLeftFilled",
|
|
22
21
|
ADD_COLUMN_RIGHT = "iconAddColumnRight",
|
|
23
|
-
ADD_COLUMN_RIGHT_FILLED = "iconAddColumnRightFilled",
|
|
24
22
|
ADD_COMMENT = "iconAddComment",
|
|
25
23
|
ADD_FOLDER = "iconAddFolder",
|
|
26
24
|
ADD_PAGE_BREAK = "iconAddPageBreak",
|
|
27
25
|
ADD_ROW_ABOVE = "iconAddRowAbove",
|
|
28
|
-
ADD_ROW_ABOVE_FILLED = "iconAddRowAboveFilled",
|
|
29
26
|
ADD_ROW_BELOW = "iconAddRowBelow",
|
|
30
|
-
ADD_ROW_BELOW_FILLED = "iconAddRowBelowFilled",
|
|
31
27
|
ADD_SECTION_ABOVE = "iconAddSectionAbove",
|
|
32
28
|
ADD_SECTION_BELOW = "iconAddSectionBelow",
|
|
33
29
|
ADD_SECTION_LEFT = "iconAddSectionLeft",
|
|
@@ -269,6 +265,7 @@ declare enum IconTypes {
|
|
|
269
265
|
TAXONOMY_200 = "iconTaxonomy200",
|
|
270
266
|
TAXONOMY_300 = "iconTaxonomy300",
|
|
271
267
|
TAXONOMY_FILLED = "iconTaxonomyFilled",
|
|
268
|
+
TERMINAL = "iconTerminal",
|
|
272
269
|
TEXT_ADD = "iconTextAdd",
|
|
273
270
|
TEXT_REPLACE = "iconTextReplace",
|
|
274
271
|
TRANSLATE = "iconTranslate",
|
|
@@ -283,6 +280,7 @@ declare enum IconTypes {
|
|
|
283
280
|
UNDO_300 = "iconUndo300",
|
|
284
281
|
UNFOLD_LESS = "iconUnfoldLess",
|
|
285
282
|
UNFOLD_MORE = "iconUnfoldMore",
|
|
283
|
+
UNLINK = "iconUnlink",
|
|
286
284
|
UNORDERED_LIST = "iconUnOrderedList",
|
|
287
285
|
UNPIN = "iconUnpin",
|
|
288
286
|
UP = "iconUp",
|
|
@@ -774,19 +772,27 @@ interface ComboboxBaseProps {
|
|
|
774
772
|
*/
|
|
775
773
|
selectedOptions?: Array<OptionItem>;
|
|
776
774
|
/**
|
|
777
|
-
* Text in the input, to control it
|
|
778
|
-
*
|
|
775
|
+
* Text in the input, to control it. Without it the Combobox keeps the text itself. When controlled,
|
|
776
|
+
* update it from `onInputChange`.
|
|
779
777
|
*/
|
|
780
778
|
inputValue?: string;
|
|
781
779
|
/**
|
|
782
|
-
* Called when the text in the input changes.
|
|
783
|
-
*
|
|
780
|
+
* Called when the text in the input changes, with the reason. To fetch options for what the user
|
|
781
|
+
* types, use `onSearchChange` instead: the text of a `'reset'` is the selected option's label, which
|
|
782
|
+
* isn't a search.
|
|
784
783
|
*/
|
|
785
784
|
onInputChange?: (inputValue: string, reason: ComboboxInputChangeReason) => void;
|
|
785
|
+
/**
|
|
786
|
+
* Called with the text to search for: what the user types, and `''` when the search ends, which is when
|
|
787
|
+
* an option is picked, the value is cleared or the field is left. Use it to fetch options per search,
|
|
788
|
+
* together with `filterOptions={false}`. Going back to `''` brings back the initial options, so the list
|
|
789
|
+
* doesn't stay filtered by an old search the next time it opens.
|
|
790
|
+
*/
|
|
791
|
+
onSearchChange?: (searchText: string) => void;
|
|
786
792
|
/**
|
|
787
793
|
* Filters the options by the typed text. By default an option is shown when its `text` contains the
|
|
788
794
|
* typed text, ignoring case. Pass `false` when the options are already filtered, e.g. fetched for the
|
|
789
|
-
* typed text from a server
|
|
795
|
+
* typed text from a server, with `onSearchChange`.
|
|
790
796
|
*/
|
|
791
797
|
filterOptions?: ((options: OptionItem[], inputValue: string) => OptionItem[]) | false;
|
|
792
798
|
/** Visible label, associated with the input. Also its accessible name unless `ariaLabel` is set. */
|