@choc-ui/chakra-autocomplete 5.1.4 → 5.1.6

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
@@ -637,8 +637,8 @@ string[]
637
637
  ```
638
638
 
639
639
  </td>
640
- <td>show suggestions when input value is empty</td>
641
- <td>false</td>
640
+ <td>A list of <a href="https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values">KeyboardEvent: key values</a>, except for the "Enter" key, that trigger the click event of the currently selected Item.</td>
641
+ <td>&mdash;&mdash;&mdash;</td>
642
642
  </tr>
643
643
  <tr>
644
644
  <td>suggestWhenEmpty</td>
@@ -1080,6 +1080,16 @@ yarn start
1080
1080
  yarn dev
1081
1081
  ```
1082
1082
 
1083
+ ## Sponsors ✨
1084
+
1085
+ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
1086
+
1087
+ <p align="center">
1088
+ <a href="https://patreon.com/anubra266?utm_medium=clipboard_copy&utm_source=copyLink&utm_campaign=creatorshare_creator&utm_content=join_link">
1089
+ <img src='https://cdn.jsdelivr.net/gh/anubra266/static@main/sponsors.svg'/>
1090
+ </a>
1091
+ </p>
1092
+
1083
1093
  ## Contributors ✨
1084
1094
 
1085
1095
  Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
@@ -1089,7 +1099,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
1089
1099
  <!-- markdownlint-disable -->
1090
1100
  <table>
1091
1101
  <tr>
1092
- <td align="center"><a href="https://anubra266.tk"><img src="https://avatars.githubusercontent.com/u/30869823?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Abraham</b></sub></a><br /><a href="https://github.com/anubra266/choc-autocomplete/commits?author=anubra266" title="Code">💻</a></td>
1102
+ <td align="center"><a href="https://anubra266.tk"><img src="https://avatars.githubusercontent.com/u/30869823?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Maicon Carraro</b></sub></a><br /><a href="https://github.com/anubra266/choc-autocomplete/commits?author=anubra266" title="Code">💻</a></td>
1093
1103
  <td align="center"><a href="http://margalit.com.au"><img src="https://avatars.githubusercontent.com/u/2268424?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sam Margalit</b></sub></a><br /><a href="https://github.com/anubra266/choc-autocomplete/commits?author=margalit" title="Documentation">📖</a></td>
1094
1104
  <td align="center"><a href="https://github.com/gepd"><img src="https://avatars.githubusercontent.com/u/7091609?v=4?s=100" width="100px;" alt=""/><br /><sub><b>gepd</b></sub></a><br /><a href="https://github.com/anubra266/choc-autocomplete/commits?author=gepd" title="Code">💻</a> <a href="https://github.com/anubra266/choc-autocomplete/issues?q=author%3Agepd" title="Bug reports">🐛</a></td>
1095
1105
  <td align="center"><a href="https://www.linkedin.com/in/spencerkaiser"><img src="https://avatars.githubusercontent.com/u/6445731?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Spencer Kaiser</b></sub></a><br /><a href="https://github.com/anubra266/choc-autocomplete/commits?author=SpencerKaiser" title="Documentation">📖</a></td>
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.1.4",
2
+ "version": "5.1.6",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -20,10 +20,10 @@
20
20
  "analyze": "size-limit --why"
21
21
  },
22
22
  "peerDependencies": {
23
- "@chakra-ui/react": "^2.2.8",
23
+ "@chakra-ui/react": "^2.5.5",
24
24
  "@emotion/react": "^11.10.0",
25
25
  "@emotion/styled": "^11.10.0",
26
- "framer-motion": "^6 || 7",
26
+ "framer-motion": ">7.6.14",
27
27
  "react": "^18.2.0"
28
28
  },
29
29
  "husky": {
@@ -55,15 +55,15 @@
55
55
  ],
56
56
  "devDependencies": {
57
57
  "@babel/core": "^7.18.10",
58
- "@chakra-ui/react": "^2.2.8",
59
- "@emotion/react": "^11.10.0",
60
- "@emotion/styled": "^11.10.0",
58
+ "@chakra-ui/react": "^2.5.5",
59
+ "@emotion/react": "^11.10.6",
60
+ "@emotion/styled": "^11.10.6",
61
61
  "@size-limit/preset-small-lib": "^5.0.1",
62
62
  "@types/react": "^18.0.17",
63
63
  "@types/react-dom": "^18.0.6",
64
64
  "@vitejs/plugin-react": "2.0.1",
65
65
  "babel-loader": "^8.2.5",
66
- "framer-motion": "^6 || 7",
66
+ "framer-motion": ">7.6.14",
67
67
  "husky": "^7.0.1",
68
68
  "react": "^18.2.0",
69
69
  "react-dom": "^18.2.0",
@@ -80,4 +80,4 @@
80
80
  "@chakra-ui/utils": "^2.0.8",
81
81
  "react-nanny": "2.15.0"
82
82
  }
83
- }
83
+ }
package/Changelog.md DELETED
@@ -1,28 +0,0 @@
1
- # v4 Changelog
2
-
3
- v4.0.0
4
-
5
- - New multiple prop
6
- - New AutoCompleteTag component
7
- - Input can Now be controlled
8
- - Now built on hooks
9
- - Automatic list scroll
10
- - Allow custom filter method
11
- - onChangeProps new provides values array, when it's multiple
12
- - onSelectOption params changed - `click` to `mouse`
13
- - New onOptionFocus method
14
- - New `AutoCompleteGroupTitle` component. `AutoCompleteGroup` no longer takes a title prop.
15
- - `AutoCompleteFixedItem` is not exported, just add `fixed` prop to `AutoCompleteItem`
16
- - `_fixed` pseudo prop to style fixed items
17
- - `emptyState` can now be a function that is provided with the `inputValue`
18
- - new `AutoCompleteCreatable` Component in place of `creatable` prop for easier user customization. It takes a function child that exposes the current value, or just normal children. And it's accepts flexProps
19
- - use `_selected` pseudo prop to apply selected styles to items
20
- - add `disabled` prop to Items which can be styled with `_disabled` pseudo prop
21
- - `onTagRemoved` method is called when a tag is removed in the `multiple` multi select mode.
22
-
23
- v4.1.0
24
- - ✨ Add `maxSelections` prop 9136eba
25
-
26
- v4.5.3
27
- - 🐛 Patch Input width eda5cdb
28
- - ✨ Return full item object in `AutoCompleteTags` callback b81919b
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { UseAutoCompleteReturn } from "./types";
3
- export declare const AutoCompleteProvider: import("react").Provider<UseAutoCompleteReturn>, useAutoCompleteContext: () => UseAutoCompleteReturn;
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import { FlexProps } from "@chakra-ui/react";
3
- import { MaybeRenderProp } from "@chakra-ui/react-utils";
4
- interface AutoCompleteCreatableProps extends Omit<FlexProps, 'children'> {
5
- children?: MaybeRenderProp<{
6
- value: any;
7
- }>;
8
- alwaysDisplay?: boolean;
9
- }
10
- export declare function AutoCompleteCreatable(props: AutoCompleteCreatableProps): JSX.Element | null;
11
- export declare namespace AutoCompleteCreatable {
12
- var displayName: string;
13
- }
14
- export {};
@@ -1,9 +0,0 @@
1
- import { BoxProps, FlexProps } from "@chakra-ui/react";
2
- import React from "react";
3
- export interface AutoCompleteGroupProps extends BoxProps {
4
- children?: React.ReactNode;
5
- showDivider?: boolean;
6
- dividerColor?: string;
7
- }
8
- export declare const AutoCompleteGroup: import("@chakra-ui/system").ComponentWithAs<"div", AutoCompleteGroupProps>;
9
- export declare const AutoCompleteGroupTitle: import("@chakra-ui/system").ComponentWithAs<"div", FlexProps>;
@@ -1,10 +0,0 @@
1
- import { InputProps, SystemStyleObject } from "@chakra-ui/react";
2
- import { MaybeRenderProp } from "@chakra-ui/react-utils";
3
- import { UseAutoCompleteReturn } from "./types";
4
- export interface AutoCompleteInputProps extends Omit<InputProps, 'children'> {
5
- children?: MaybeRenderProp<{
6
- tags: UseAutoCompleteReturn["tags"];
7
- }>;
8
- wrapStyles?: SystemStyleObject;
9
- }
10
- export declare const AutoCompleteInput: import("@chakra-ui/system").ComponentWithAs<"input", AutoCompleteInputProps>;
@@ -1,12 +0,0 @@
1
- import { CSSObject, FlexProps } from "@chakra-ui/react";
2
- export interface AutoCompleteItemProps extends FlexProps {
3
- value: any;
4
- label?: string;
5
- fixed?: boolean;
6
- _focus?: CSSObject | any;
7
- disabled?: boolean;
8
- _fixed?: CSSObject;
9
- getValue?: (item: AutoCompleteItemProps["value"]) => any;
10
- }
11
- export declare const AutoCompleteItem: import("@chakra-ui/system").ComponentWithAs<"div", AutoCompleteItemProps>;
12
- export declare const baseItemStyles: FlexProps;
@@ -1,3 +0,0 @@
1
- import { PopoverContentProps } from "@chakra-ui/react";
2
- export declare type AutoCompleteListProps = PopoverContentProps;
3
- export declare const AutoCompleteList: import("@chakra-ui/system").ComponentWithAs<"div", PopoverContentProps>;
@@ -1,9 +0,0 @@
1
- import { TagProps } from "@chakra-ui/tag";
2
- import React from "react";
3
- declare type AutoCompleteTagProps = {
4
- disabled?: boolean;
5
- label: string;
6
- onRemove?: () => void;
7
- } & TagProps;
8
- export declare const AutoCompleteTag: React.MemoExoticComponent<(props: AutoCompleteTagProps) => JSX.Element>;
9
- export {};
@@ -1,13 +0,0 @@
1
- import React from "react";
2
- import { MaybeRenderProp } from "@chakra-ui/react-utils";
3
- import { AutoCompleteRefMethods, UseAutoCompleteProps } from "./types";
4
- export declare type AutoCompleteChildProps = {
5
- isOpen: boolean;
6
- onClose: () => void;
7
- onOpen: () => void;
8
- };
9
- export interface AutoCompleteProps extends UseAutoCompleteProps {
10
- children: MaybeRenderProp<AutoCompleteChildProps>;
11
- ref?: React.RefObject<AutoCompleteRefMethods>;
12
- }
13
- export declare const AutoComplete: import("@chakra-ui/system").ComponentWithAs<"div", AutoCompleteProps>;