@choc-ui/chakra-autocomplete 5.2.10 → 5.3.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.
package/README.md CHANGED
@@ -32,7 +32,7 @@
32
32
  </a>
33
33
  <br />
34
34
  AutoComplete Component for the <a href="https://chakra-ui.com">Chakra UI</a> Library.</em>
35
-
35
+
36
36
  </sup>
37
37
  <br />
38
38
  <br />
@@ -453,6 +453,12 @@ Wrapper and Provider for `AutoCompleteInput` and `AutoCompleteList`
453
453
  <td>boolean</td>
454
454
  <td>Suggestions list is open by default</td>
455
455
  <td>false</td>
456
+ </tr>
457
+ <tr>
458
+ <td>prefocusFirstItem</td>
459
+ <td>boolean</td>
460
+ <td>Should prefocus first item intially, on query change, on open, and on filter out of current focused item</td>
461
+ <td>true</td>
456
462
  </tr>
457
463
  <tr>
458
464
  <td>defaultValues</td>
@@ -560,7 +566,7 @@ boolean | MaybeRenderProp<{ value: Item["value"] }>
560
566
  <tr>
561
567
  <td>onSelectOption</td>
562
568
  <td>
563
-
569
+
564
570
  ```ts
565
571
  (params: {
566
572
  item: Item;
@@ -591,7 +597,7 @@ boolean | MaybeRenderProp<{ value: Item["value"] }>
591
597
  <tr>
592
598
  <td>onReady</td>
593
599
  <td>
594
-
600
+
595
601
  ```ts
596
602
  (props:{tags:ItemTag[]}) => void
597
603
  ```
@@ -602,7 +608,7 @@ boolean | MaybeRenderProp<{ value: Item["value"] }>
602
608
  <tr>
603
609
  <td>onTagRemoved</td>
604
610
  <td>
605
-
611
+
606
612
  ```ts
607
613
  (removedTag: Item["value"],item: Item, tags: Item["value"][]) => void
608
614
  ```
@@ -643,7 +649,7 @@ boolean | MaybeRenderProp<{ value: Item["value"] }>
643
649
  <tr>
644
650
  <td>shouldRenderSuggestions</td>
645
651
  <td>
646
-
652
+
647
653
  ```ts
648
654
  (value: string) => boolean
649
655
  ```
@@ -731,7 +737,7 @@ Tags for multiple mode
731
737
  <td>Yes<br></td>
732
738
  <td>&mdash;&mdash;&mdash;</td>
733
739
  </tr>
734
-
740
+
735
741
  </tbody>
736
742
  </table>
737
743
 
@@ -782,7 +788,7 @@ e.g.
782
788
  <td>No<br></td>
783
789
  <td>&mdash;&mdash;&mdash;</td>
784
790
  </tr>
785
-
791
+
786
792
  <tr>
787
793
  <td>ref</td>
788
794
  <td>
@@ -1020,7 +1026,7 @@ val => val;
1020
1026
  ```
1021
1027
 
1022
1028
  </td>
1023
- </tr>
1029
+ </tr>
1024
1030
  </tbody>
1025
1031
  </table>
1026
1032
 
@@ -1085,7 +1091,7 @@ When true, `AutoCompleteCreatable` is shown even when the `AutoCompleteInput` is
1085
1091
  <td>No<br></td>
1086
1092
  <td>&mdash;&mdash;&mdash;</td>
1087
1093
  </tr>
1088
-
1094
+
1089
1095
  </tbody>
1090
1096
  </table>
1091
1097
 
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete-input.d.ts","sourceRoot":"","sources":["../src/autocomplete-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EAIV,iBAAiB,EAMlB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAoB,MAAM,OAAO,CAAC;AAGzC,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC;IAC1E,QAAQ,CAAC,EAAE,eAAe,CAAC;QAAE,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC,CAAC;IACpE,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC9B;AAgBD,eAAO,MAAM,iBAAiB,gGAyD7B,CAAC"}
1
+ {"version":3,"file":"autocomplete-input.d.ts","sourceRoot":"","s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