@choc-ui/chakra-autocomplete 5.6.4 → 5.7.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/dist/autocomplete-context.d.ts +5 -1
- package/dist/autocomplete-context.d.ts.map +1 -1
- package/dist/autocomplete-creatable.d.ts +1 -1
- package/dist/autocomplete-creatable.d.ts.map +1 -1
- package/dist/autocomplete-input.d.ts +1 -2
- package/dist/autocomplete-input.d.ts.map +1 -1
- package/dist/autocomplete.d.ts +1 -2
- package/dist/autocomplete.d.ts.map +1 -1
- package/dist/helpers/items.d.ts.map +1 -1
- package/dist/index.es.js +1382 -1259
- package/dist/index.js +9 -9
- package/dist/types.d.ts +2 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/use-autocomplete.d.ts.map +1 -1
- package/dist/utils.d.ts +38 -0
- package/dist/utils.d.ts.map +1 -0
- package/package.json +1 -3
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { UseAutoCompleteReturn } from './types';
|
|
2
|
-
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export declare const AutoCompleteProvider: React.Provider<UseAutoCompleteReturn>, useAutoCompleteContext: () => UseAutoCompleteReturn;
|
|
4
|
+
type CreateContextReturn<T> = [React.Provider<T>, () => T, React.Context<T>];
|
|
5
|
+
export declare function createContext<ContextType>(): CreateContextReturn<ContextType>;
|
|
6
|
+
export {};
|
|
3
7
|
//# sourceMappingURL=autocomplete-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-context.d.ts","sourceRoot":"","sources":["../src/autocomplete-context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"autocomplete-context.d.ts","sourceRoot":"","sources":["../src/autocomplete-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAO,oBAAoB,yCAAE,sBAAsB,6BAEvD,CAAC;AAEJ,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;AAE7E,wBAAgB,aAAa,CAAC,WAAW,KAoBW,mBAAmB,CACnE,WAAW,CACZ,CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FlexProps } from '@chakra-ui/react';
|
|
2
|
-
import { MaybeRenderProp } from '
|
|
2
|
+
import { MaybeRenderProp } from './types';
|
|
3
3
|
interface AutoCompleteCreatableProps extends Omit<FlexProps, "children"> {
|
|
4
4
|
children?: MaybeRenderProp<{
|
|
5
5
|
value: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-creatable.d.ts","sourceRoot":"","sources":["../src/autocomplete-creatable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"autocomplete-creatable.d.ts","sourceRoot":"","sources":["../src/autocomplete-creatable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAQ1C,UAAU,0BAA2B,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IACtE,QAAQ,CAAC,EAAE,eAAe,CAAC;QAAE,KAAK,EAAE,GAAG,CAAA;KAAE,CAAC,CAAC;IAC3C,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,kDA8BtE;yBA9Be,qBAAqB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { InputProps, SystemStyleObject } from '@chakra-ui/react';
|
|
2
|
-
import { MaybeRenderProp } from '@chakra-ui/react-utils';
|
|
3
2
|
import { default as React } from 'react';
|
|
4
|
-
import { UseAutoCompleteReturn } from './types';
|
|
3
|
+
import { MaybeRenderProp, UseAutoCompleteReturn } from './types';
|
|
5
4
|
export interface AutoCompleteInputProps extends Omit<InputProps, "children"> {
|
|
6
5
|
children?: MaybeRenderProp<{
|
|
7
6
|
tags: UseAutoCompleteReturn["tags"];
|
|
@@ -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,
|
|
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,KAAoB,MAAM,OAAO,CAAC;AAGzC,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEjE,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,CAAC;CAC/B;AAgBD,eAAO,MAAM,iBAAiB,6EAuF7B,CAAC"}
|
package/dist/autocomplete.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { MaybeRenderProp } from '
|
|
3
|
-
import { AutoCompleteRefMethods, UseAutoCompleteProps } from './types';
|
|
2
|
+
import { AutoCompleteRefMethods, UseAutoCompleteProps, MaybeRenderProp } from './types';
|
|
4
3
|
export type AutoCompleteChildProps = {
|
|
5
4
|
isOpen: boolean;
|
|
6
5
|
onClose: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../src/autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../src/autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EAChB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AACF,MAAM,WAAW,iBAAkB,SAAQ,oBAAoB;IAC7D,QAAQ,EAAE,eAAe,CAAC,sBAAsB,CAAC,CAAC;IAClD,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;CAC/C;AAED,eAAO,MAAM,YAAY,sEAuCxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../src/helpers/items.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,eAAO,MAAM,eAAe,SAAU,qBAAqB,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../src/helpers/items.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,eAAO,MAAM,eAAe,SAAU,qBAAqB,CAAC,OAAO,CAAC,QAIrD,CAAC;AAEhB,eAAO,MAAM,WAAW,aAAc,GAAG,SAAS,MAAM,QAWvD,CAAC;AAEF,eAAO,MAAM,WAAW,aAAc,SAAS,KAAG,IAAI,EAerD,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAO,SAOnC,CAAC;AAEF,eAAO,MAAM,mBAAmB,UACvB,MAAM,aACF,IAAI,CAAC,OAAO,CAAC,aACb,IAAI,CAAC,OAAO,CAAC,YAQzB,CAAC"}
|