@hitgrab/finder 0.1.25-alpha → 0.1.27-alpha
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/index.d.cts +11 -11
- package/dist/index.d.mts +11 -11
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react0 from "react";
|
|
2
2
|
import { ElementType, PropsWithChildren, ReactElement, ReactNode, RefObject } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/core/types/rule-types.d.ts
|
|
6
6
|
/**
|
|
@@ -64,7 +64,7 @@ interface HydratedFilterRuleDefinition<FItem = any, FValue = any, FContext = any
|
|
|
64
64
|
_isHydrated: true;
|
|
65
65
|
}
|
|
66
66
|
interface SortByRuleDefinition<FItem = any, FContext = any> extends Rule {
|
|
67
|
-
sortFn:
|
|
67
|
+
sortFn: FinderPropertySelector<FItem, FContext> | FinderPropertySelector<FItem, FContext>[];
|
|
68
68
|
defaultSortDirection?: SortDirection;
|
|
69
69
|
}
|
|
70
70
|
interface GroupByRuleDefinition<FItem = any, FContext = any> extends Rule {
|
|
@@ -423,7 +423,7 @@ interface FinderContentLoadingProps<FItem, FContext> {
|
|
|
423
423
|
}
|
|
424
424
|
declare function FinderContentLoading<FItem, FContext>({
|
|
425
425
|
children: Component
|
|
426
|
-
}: FinderContentLoadingProps<FItem, FContext>):
|
|
426
|
+
}: FinderContentLoadingProps<FItem, FContext>): react_jsx_runtime4.JSX.Element | Iterable<ReactNode> | null;
|
|
427
427
|
//#endregion
|
|
428
428
|
//#region src/react/components/finder-content-empty.d.ts
|
|
429
429
|
interface FinderContentEmptyProps<FItem, FContext> {
|
|
@@ -431,7 +431,7 @@ interface FinderContentEmptyProps<FItem, FContext> {
|
|
|
431
431
|
}
|
|
432
432
|
declare function FinderContentEmpty<FItem = any, FContext = any>({
|
|
433
433
|
children: Component
|
|
434
|
-
}: FinderContentEmptyProps<FItem, FContext>):
|
|
434
|
+
}: FinderContentEmptyProps<FItem, FContext>): react_jsx_runtime4.JSX.Element | Iterable<ReactNode> | null;
|
|
435
435
|
//#endregion
|
|
436
436
|
//#region src/react/components/finder-content-no-matches.d.ts
|
|
437
437
|
interface FinderContentNoMatchesProps<FItem, FContext> {
|
|
@@ -439,7 +439,7 @@ interface FinderContentNoMatchesProps<FItem, FContext> {
|
|
|
439
439
|
}
|
|
440
440
|
declare function FinderContentNoMatches<FItem = any, FContext = any>({
|
|
441
441
|
children: Component
|
|
442
|
-
}: FinderContentNoMatchesProps<FItem, FContext>):
|
|
442
|
+
}: FinderContentNoMatchesProps<FItem, FContext>): react_jsx_runtime4.JSX.Element | Iterable<ReactNode> | null;
|
|
443
443
|
//#endregion
|
|
444
444
|
//#region src/react/components/finder-content-items.d.ts
|
|
445
445
|
interface FinderContentItemsProps<FItem, FContext> {
|
|
@@ -447,7 +447,7 @@ interface FinderContentItemsProps<FItem, FContext> {
|
|
|
447
447
|
}
|
|
448
448
|
declare function FinderContentItems<FItem = any, FContext = any>({
|
|
449
449
|
children: Component
|
|
450
|
-
}: FinderContentItemsProps<FItem, FContext>):
|
|
450
|
+
}: FinderContentItemsProps<FItem, FContext>): react_jsx_runtime4.JSX.Element | Iterable<ReactNode> | null;
|
|
451
451
|
//#endregion
|
|
452
452
|
//#region src/react/components/finder-content-groups.d.ts
|
|
453
453
|
interface FinderContentGroupsProps<FItem, FContext> {
|
|
@@ -455,7 +455,7 @@ interface FinderContentGroupsProps<FItem, FContext> {
|
|
|
455
455
|
}
|
|
456
456
|
declare function FinderContentGroups<FItem = any, FContext = any>({
|
|
457
457
|
children: Component
|
|
458
|
-
}: FinderContentGroupsProps<FItem, FContext>):
|
|
458
|
+
}: FinderContentGroupsProps<FItem, FContext>): react_jsx_runtime4.JSX.Element | Iterable<ReactNode> | null;
|
|
459
459
|
//#endregion
|
|
460
460
|
//#region src/react/components/finder-content.d.ts
|
|
461
461
|
interface FinderContentContainerProps<FItem, FContext> {
|
|
@@ -469,7 +469,7 @@ interface FinderContentContainerProps<FItem, FContext> {
|
|
|
469
469
|
}
|
|
470
470
|
declare function FinderContent<FItem = any, FContext = any>({
|
|
471
471
|
children: renderProps
|
|
472
|
-
}: FinderContentContainerProps<FItem, FContext>): (
|
|
472
|
+
}: FinderContentContainerProps<FItem, FContext>): (react_jsx_runtime4.JSX.Element | undefined)[];
|
|
473
473
|
declare namespace FinderContent {
|
|
474
474
|
var Loading: typeof FinderContentLoading;
|
|
475
475
|
var Empty: typeof FinderContentEmpty;
|
|
@@ -488,7 +488,7 @@ declare function FinderSearchTermHaystack({
|
|
|
488
488
|
Match,
|
|
489
489
|
Miss,
|
|
490
490
|
children: haystack
|
|
491
|
-
}: FinderSearchTermHaystackProps): string |
|
|
491
|
+
}: FinderSearchTermHaystackProps): string | react_jsx_runtime4.JSX.Element;
|
|
492
492
|
//#endregion
|
|
493
493
|
//#region src/react/components/finder.d.ts
|
|
494
494
|
declare function Finder<FItem = any, FContext = any>({
|
|
@@ -514,7 +514,7 @@ declare function Finder<FItem = any, FContext = any>({
|
|
|
514
514
|
onChange,
|
|
515
515
|
controllerRef,
|
|
516
516
|
children
|
|
517
|
-
}: FinderProps<FItem, FContext>):
|
|
517
|
+
}: FinderProps<FItem, FContext>): react_jsx_runtime4.JSX.Element;
|
|
518
518
|
declare namespace Finder {
|
|
519
519
|
var Content: typeof FinderContent;
|
|
520
520
|
var SearchTermHaystack: typeof FinderSearchTermHaystack;
|
|
@@ -538,6 +538,6 @@ declare function StringMatch({
|
|
|
538
538
|
haystack,
|
|
539
539
|
Match,
|
|
540
540
|
Miss
|
|
541
|
-
}: StringMatchProps): string | (string |
|
|
541
|
+
}: StringMatchProps): string | (string | react_jsx_runtime4.JSX.Element)[];
|
|
542
542
|
//#endregion
|
|
543
543
|
export { type AnyFilterRuleDefinition, type FilterOption, type FilterRuleDefinition, Finder, type FinderChangeEvent, type FinderConstructorOptions, type FinderContentProps, type FinderEvent, type FinderFirstUserInteractionEvent, type FinderInitEvent, type FinderProps, type FinderReadyEvent, type FinderResultGroup, type GroupByRuleDefinition, type RuleDefinition, type RuleEffect, type SearchEffect, type SearchRuleDefinition, type SortByRuleDefinition, type SortDirection, StringMatch, type StringMatchSegmentProps, filterRule, finderRuleset, groupByRule, ruleEffect, searchEffect, searchRule, sortByRule, transformFilterToBoolean, transformFilterToMultiple, transformFilterToSingleValue, useFinder, useFinderRef };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react0 from "react";
|
|
2
2
|
import { ElementType, PropsWithChildren, ReactElement, ReactNode, RefObject } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/core/types/rule-types.d.ts
|
|
6
6
|
/**
|
|
@@ -64,7 +64,7 @@ interface HydratedFilterRuleDefinition<FItem = any, FValue = any, FContext = any
|
|
|
64
64
|
_isHydrated: true;
|
|
65
65
|
}
|
|
66
66
|
interface SortByRuleDefinition<FItem = any, FContext = any> extends Rule {
|
|
67
|
-
sortFn:
|
|
67
|
+
sortFn: FinderPropertySelector<FItem, FContext> | FinderPropertySelector<FItem, FContext>[];
|
|
68
68
|
defaultSortDirection?: SortDirection;
|
|
69
69
|
}
|
|
70
70
|
interface GroupByRuleDefinition<FItem = any, FContext = any> extends Rule {
|
|
@@ -423,7 +423,7 @@ interface FinderContentLoadingProps<FItem, FContext> {
|
|
|
423
423
|
}
|
|
424
424
|
declare function FinderContentLoading<FItem, FContext>({
|
|
425
425
|
children: Component
|
|
426
|
-
}: FinderContentLoadingProps<FItem, FContext>):
|
|
426
|
+
}: FinderContentLoadingProps<FItem, FContext>): react_jsx_runtime3.JSX.Element | Iterable<ReactNode> | null;
|
|
427
427
|
//#endregion
|
|
428
428
|
//#region src/react/components/finder-content-empty.d.ts
|
|
429
429
|
interface FinderContentEmptyProps<FItem, FContext> {
|
|
@@ -431,7 +431,7 @@ interface FinderContentEmptyProps<FItem, FContext> {
|
|
|
431
431
|
}
|
|
432
432
|
declare function FinderContentEmpty<FItem = any, FContext = any>({
|
|
433
433
|
children: Component
|
|
434
|
-
}: FinderContentEmptyProps<FItem, FContext>):
|
|
434
|
+
}: FinderContentEmptyProps<FItem, FContext>): react_jsx_runtime3.JSX.Element | Iterable<ReactNode> | null;
|
|
435
435
|
//#endregion
|
|
436
436
|
//#region src/react/components/finder-content-no-matches.d.ts
|
|
437
437
|
interface FinderContentNoMatchesProps<FItem, FContext> {
|
|
@@ -439,7 +439,7 @@ interface FinderContentNoMatchesProps<FItem, FContext> {
|
|
|
439
439
|
}
|
|
440
440
|
declare function FinderContentNoMatches<FItem = any, FContext = any>({
|
|
441
441
|
children: Component
|
|
442
|
-
}: FinderContentNoMatchesProps<FItem, FContext>):
|
|
442
|
+
}: FinderContentNoMatchesProps<FItem, FContext>): react_jsx_runtime3.JSX.Element | Iterable<ReactNode> | null;
|
|
443
443
|
//#endregion
|
|
444
444
|
//#region src/react/components/finder-content-items.d.ts
|
|
445
445
|
interface FinderContentItemsProps<FItem, FContext> {
|
|
@@ -447,7 +447,7 @@ interface FinderContentItemsProps<FItem, FContext> {
|
|
|
447
447
|
}
|
|
448
448
|
declare function FinderContentItems<FItem = any, FContext = any>({
|
|
449
449
|
children: Component
|
|
450
|
-
}: FinderContentItemsProps<FItem, FContext>):
|
|
450
|
+
}: FinderContentItemsProps<FItem, FContext>): react_jsx_runtime3.JSX.Element | Iterable<ReactNode> | null;
|
|
451
451
|
//#endregion
|
|
452
452
|
//#region src/react/components/finder-content-groups.d.ts
|
|
453
453
|
interface FinderContentGroupsProps<FItem, FContext> {
|
|
@@ -455,7 +455,7 @@ interface FinderContentGroupsProps<FItem, FContext> {
|
|
|
455
455
|
}
|
|
456
456
|
declare function FinderContentGroups<FItem = any, FContext = any>({
|
|
457
457
|
children: Component
|
|
458
|
-
}: FinderContentGroupsProps<FItem, FContext>):
|
|
458
|
+
}: FinderContentGroupsProps<FItem, FContext>): react_jsx_runtime3.JSX.Element | Iterable<ReactNode> | null;
|
|
459
459
|
//#endregion
|
|
460
460
|
//#region src/react/components/finder-content.d.ts
|
|
461
461
|
interface FinderContentContainerProps<FItem, FContext> {
|
|
@@ -469,7 +469,7 @@ interface FinderContentContainerProps<FItem, FContext> {
|
|
|
469
469
|
}
|
|
470
470
|
declare function FinderContent<FItem = any, FContext = any>({
|
|
471
471
|
children: renderProps
|
|
472
|
-
}: FinderContentContainerProps<FItem, FContext>): (
|
|
472
|
+
}: FinderContentContainerProps<FItem, FContext>): (react_jsx_runtime3.JSX.Element | undefined)[];
|
|
473
473
|
declare namespace FinderContent {
|
|
474
474
|
var Loading: typeof FinderContentLoading;
|
|
475
475
|
var Empty: typeof FinderContentEmpty;
|
|
@@ -488,7 +488,7 @@ declare function FinderSearchTermHaystack({
|
|
|
488
488
|
Match,
|
|
489
489
|
Miss,
|
|
490
490
|
children: haystack
|
|
491
|
-
}: FinderSearchTermHaystackProps): string |
|
|
491
|
+
}: FinderSearchTermHaystackProps): string | react_jsx_runtime3.JSX.Element;
|
|
492
492
|
//#endregion
|
|
493
493
|
//#region src/react/components/finder.d.ts
|
|
494
494
|
declare function Finder<FItem = any, FContext = any>({
|
|
@@ -514,7 +514,7 @@ declare function Finder<FItem = any, FContext = any>({
|
|
|
514
514
|
onChange,
|
|
515
515
|
controllerRef,
|
|
516
516
|
children
|
|
517
|
-
}: FinderProps<FItem, FContext>):
|
|
517
|
+
}: FinderProps<FItem, FContext>): react_jsx_runtime3.JSX.Element;
|
|
518
518
|
declare namespace Finder {
|
|
519
519
|
var Content: typeof FinderContent;
|
|
520
520
|
var SearchTermHaystack: typeof FinderSearchTermHaystack;
|
|
@@ -538,6 +538,6 @@ declare function StringMatch({
|
|
|
538
538
|
haystack,
|
|
539
539
|
Match,
|
|
540
540
|
Miss
|
|
541
|
-
}: StringMatchProps): string | (string |
|
|
541
|
+
}: StringMatchProps): string | (string | react_jsx_runtime3.JSX.Element)[];
|
|
542
542
|
//#endregion
|
|
543
543
|
export { type AnyFilterRuleDefinition, type FilterOption, type FilterRuleDefinition, Finder, type FinderChangeEvent, type FinderConstructorOptions, type FinderContentProps, type FinderEvent, type FinderFirstUserInteractionEvent, type FinderInitEvent, type FinderProps, type FinderReadyEvent, type FinderResultGroup, type GroupByRuleDefinition, type RuleDefinition, type RuleEffect, type SearchEffect, type SearchRuleDefinition, type SortByRuleDefinition, type SortDirection, StringMatch, type StringMatchSegmentProps, filterRule, finderRuleset, groupByRule, ruleEffect, searchEffect, searchRule, sortByRule, transformFilterToBoolean, transformFilterToMultiple, transformFilterToSingleValue, useFinder, useFinderRef };
|