@choc-ui/chakra-autocomplete 5.2.8 → 5.2.9

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.
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
2
- import { UseAutoCompleteReturn } from "./types";
3
- export declare const AutoCompleteProvider: import("react").Provider<UseAutoCompleteReturn>, useAutoCompleteContext: () => UseAutoCompleteReturn;
1
+ /// <reference types="react" />
2
+ import { UseAutoCompleteReturn } from "./types";
3
+ export declare const AutoCompleteProvider: import("react").Provider<UseAutoCompleteReturn>, useAutoCompleteContext: () => UseAutoCompleteReturn;
4
4
  //# sourceMappingURL=autocomplete-context.d.ts.map
@@ -1,14 +1,14 @@
1
- import { FlexProps } from "@chakra-ui/react";
2
- import { MaybeRenderProp } from "@chakra-ui/react-utils";
3
- interface AutoCompleteCreatableProps extends Omit<FlexProps, "children"> {
4
- children?: MaybeRenderProp<{
5
- value: any;
6
- }>;
7
- alwaysDisplay?: boolean;
8
- }
9
- export declare function AutoCompleteCreatable(props: AutoCompleteCreatableProps): import("react/jsx-runtime").JSX.Element | null;
10
- export declare namespace AutoCompleteCreatable {
11
- var displayName: string;
12
- }
13
- export {};
1
+ import { FlexProps } from "@chakra-ui/react";
2
+ import { MaybeRenderProp } from "@chakra-ui/react-utils";
3
+ interface AutoCompleteCreatableProps extends Omit<FlexProps, "children"> {
4
+ children?: MaybeRenderProp<{
5
+ value: any;
6
+ }>;
7
+ alwaysDisplay?: boolean;
8
+ }
9
+ export declare function AutoCompleteCreatable(props: AutoCompleteCreatableProps): import("react/jsx-runtime").JSX.Element | null;
10
+ export declare namespace AutoCompleteCreatable {
11
+ var displayName: string;
12
+ }
13
+ export {};
14
14
  //# sourceMappingURL=autocomplete-creatable.d.ts.map
@@ -1,10 +1,10 @@
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/dist/system.types").ComponentWithAs<"div", AutoCompleteGroupProps>;
9
- export declare const AutoCompleteGroupTitle: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"div", FlexProps>;
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/dist/system.types").ComponentWithAs<"div", AutoCompleteGroupProps>;
9
+ export declare const AutoCompleteGroupTitle: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"div", FlexProps>;
10
10
  //# sourceMappingURL=autocomplete-group.d.ts.map
@@ -1,14 +1,14 @@
1
- import { InputProps, SystemStyleObject } from "@chakra-ui/react";
2
- import { MaybeRenderProp } from "@chakra-ui/react-utils";
3
- import React from "react";
4
- import { UseAutoCompleteReturn } from "./types";
5
- export interface AutoCompleteInputProps extends Omit<InputProps, "children"> {
6
- children?: MaybeRenderProp<{
7
- tags: UseAutoCompleteReturn["tags"];
8
- }>;
9
- wrapStyles?: SystemStyleObject;
10
- hidePlaceholder?: boolean;
11
- loadingIcon?: React.ReactNode;
12
- }
13
- export declare const AutoCompleteInput: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"input", AutoCompleteInputProps>;
1
+ import { InputProps, SystemStyleObject } from "@chakra-ui/react";
2
+ import { MaybeRenderProp } from "@chakra-ui/react-utils";
3
+ import React from "react";
4
+ import { UseAutoCompleteReturn } from "./types";
5
+ export interface AutoCompleteInputProps extends Omit<InputProps, "children"> {
6
+ children?: MaybeRenderProp<{
7
+ tags: UseAutoCompleteReturn["tags"];
8
+ }>;
9
+ wrapStyles?: SystemStyleObject;
10
+ hidePlaceholder?: boolean;
11
+ loadingIcon?: React.ReactNode;
12
+ }
13
+ export declare const AutoCompleteInput: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"input", AutoCompleteInputProps>;
14
14
  //# sourceMappingURL=autocomplete-input.d.ts.map
@@ -1,13 +1,13 @@
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/dist/system.types").ComponentWithAs<"div", AutoCompleteItemProps>;
12
- export declare const baseItemStyles: FlexProps;
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/dist/system.types").ComponentWithAs<"div", AutoCompleteItemProps>;
12
+ export declare const baseItemStyles: FlexProps;
13
13
  //# sourceMappingURL=autocomplete-item.d.ts.map
@@ -1,7 +1,7 @@
1
- import { PopoverContentProps } from "@chakra-ui/react";
2
- import React from "react";
3
- export interface AutoCompleteListProps extends PopoverContentProps {
4
- loadingState?: React.ReactNode;
5
- }
6
- export declare const AutoCompleteList: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"div", AutoCompleteListProps>;
1
+ import { PopoverContentProps } from "@chakra-ui/react";
2
+ import React from "react";
3
+ export interface AutoCompleteListProps extends PopoverContentProps {
4
+ loadingState?: React.ReactNode;
5
+ }
6
+ export declare const AutoCompleteList: import("@chakra-ui/system/dist/system.types").ComponentWithAs<"div", AutoCompleteListProps>;
7
7
  //# sourceMappingURL=autocomplete-list.d.ts.map
@@ -1,10 +1,10 @@
1
- import { TagProps } from "@chakra-ui/tag";
2
- import React from "react";
3
- type AutoCompleteTagProps = {
4
- disabled?: boolean;
5
- label: string;
6
- onRemove?: () => void;
7
- } & TagProps;
8
- export declare const AutoCompleteTag: React.MemoExoticComponent<(props: AutoCompleteTagProps) => import("react/jsx-runtime").JSX.Element>;
9
- export {};
1
+ import { TagProps } from "@chakra-ui/tag";
2
+ import React from "react";
3
+ type AutoCompleteTagProps = {
4
+ disabled?: boolean;
5
+ label: string;
6
+ onRemove?: () => void;
7
+ } & TagProps;
8
+ export declare const AutoCompleteTag: React.MemoExoticComponent<(props: AutoCompleteTagProps) => import("react/jsx-runtime").JSX.Element>;
9
+ export {};
10
10
  //# sourceMappingURL=autocomplete-tag.d.ts.map
@@ -1,14 +1,14 @@
1
- import React from "react";
2
- import { MaybeRenderProp } from "@chakra-ui/react-utils";
3
- import { AutoCompleteRefMethods, UseAutoCompleteProps } from "./types";
4
- export 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/dist/system.types").ComponentWithAs<"div", AutoCompleteProps>;
1
+ import React from "react";
2
+ import { MaybeRenderProp } from "@chakra-ui/react-utils";
3
+ import { AutoCompleteRefMethods, UseAutoCompleteProps } from "./types";
4
+ export 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/dist/system.types").ComponentWithAs<"div", AutoCompleteProps>;
14
14
  //# sourceMappingURL=autocomplete.d.ts.map
@@ -1,3 +1,3 @@
1
- import { BoxProps } from "@chakra-ui/layout";
2
- export declare const EmptyState: (props: BoxProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { BoxProps } from "@chakra-ui/layout";
2
+ export declare const EmptyState: (props: BoxProps) => import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=empty-state.d.ts.map
@@ -1,2 +1,2 @@
1
- export declare function fuzzyScore(str1: string, str2: string, gramSize?: number): number;
1
+ export declare function fuzzyScore(str1: string, str2: string, gramSize?: number): number;
2
2
  //# sourceMappingURL=fuzzySearch.d.ts.map
@@ -1,5 +1,5 @@
1
- import { ReactNode } from "react";
2
- export declare const hasFirstItem: (children: ReactNode, firstItem: any) => any;
3
- export declare const hasLastItem: (children: ReactNode, lastItem: any) => any;
4
- export declare const hasChildren: (children: any, filteredList: any[]) => boolean;
1
+ import { ReactNode } from "react";
2
+ export declare const hasFirstItem: (children: ReactNode, firstItem: any) => any;
3
+ export declare const hasLastItem: (children: ReactNode, lastItem: any) => any;
4
+ export declare const hasChildren: (children: any, filteredList: any[]) => boolean;
5
5
  //# sourceMappingURL=group.d.ts.map
@@ -1,2 +1,2 @@
1
- export declare const getMultipleWrapStyles: (themeInput: any, multiple?: boolean) => any;
1
+ export declare const getMultipleWrapStyles: (themeInput: any, multiple?: boolean) => any;
2
2
  //# sourceMappingURL=input.d.ts.map
@@ -1,10 +1,10 @@
1
- import { ReactNode } from "react";
2
- import { FlexProps } from "@chakra-ui/react";
3
- import { Item } from "../types";
4
- import { AutoCompleteItemProps } from "../autocomplete-item";
5
- export declare const getDefItemValue: (item: AutoCompleteItemProps["value"]) => any;
6
- export declare const setEmphasis: (children: any, query: string) => any;
7
- export declare const getItemList: (children: ReactNode) => Item[];
8
- export declare const getFocusedStyles: () => FlexProps;
9
- export declare const defaultFilterMethod: (query: string, itemValue: Item["value"], itemLabel: Item["label"]) => boolean;
1
+ import { ReactNode } from "react";
2
+ import { FlexProps } from "@chakra-ui/react";
3
+ import { Item } from "../types";
4
+ import { AutoCompleteItemProps } from "../autocomplete-item";
5
+ export declare const getDefItemValue: (item: AutoCompleteItemProps["value"]) => any;
6
+ export declare const setEmphasis: (children: any, query: string) => any;
7
+ export declare const getItemList: (children: ReactNode) => Item[];
8
+ export declare const getFocusedStyles: () => FlexProps;
9
+ export declare const defaultFilterMethod: (query: string, itemValue: Item["value"], itemLabel: Item["label"]) => boolean;
10
10
  //# sourceMappingURL=items.d.ts.map
@@ -1,3 +1,3 @@
1
- import React from "react";
2
- export declare const siblingInfo: (children: React.ReactNode) => readonly [(string | number | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal)[], (string | number | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal)[]];
1
+ import React from "react";
2
+ export declare const siblingInfo: (children: React.ReactNode) => readonly [(string | number | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal)[], (string | number | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal)[]];
3
3
  //# sourceMappingURL=list.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- export * from "./autocomplete";
2
- export * from "./autocomplete-context";
3
- export * from "./autocomplete-creatable";
4
- export * from "./autocomplete-group";
5
- export * from "./autocomplete-input";
6
- export * from "./autocomplete-item";
7
- export * from "./autocomplete-list";
8
- export * from "./autocomplete-tag";
9
- export * from "./use-autocomplete";
10
- export * from "./types";
1
+ export * from "./autocomplete";
2
+ export * from "./autocomplete-context";
3
+ export * from "./autocomplete-creatable";
4
+ export * from "./autocomplete-group";
5
+ export * from "./autocomplete-input";
6
+ export * from "./autocomplete-item";
7
+ export * from "./autocomplete-list";
8
+ export * from "./autocomplete-tag";
9
+ export * from "./use-autocomplete";
10
+ export * from "./types";
11
11
  //# sourceMappingURL=index.d.ts.map