@tactics/lokaal-loket 0.0.208 → 0.0.209

Sign up to get free protection for your applications and to get access to all the features.
package/build/index.d.cts CHANGED
@@ -1465,10 +1465,40 @@ declare const SearchFiltersFull: ({ heading, icon, filters, activeFilters, submi
1465
1465
 
1466
1466
  declare const SearchFiltersMobileOverlayItem: ({ label, filter, }: ISearchFiltersCompactOverlayItem) => null;
1467
1467
 
1468
+ interface NameI<T> {
1469
+ name: string;
1470
+ placeholder?: string;
1471
+ ariaLabel?: string;
1472
+ withIconBefore?: React__default.ReactElement<IIcon>;
1473
+ withIconAfter?: React__default.ReactElement<IIcon>;
1474
+ debounceTime?: number;
1475
+ options: T[];
1476
+ optionDefault?: T;
1477
+ optionToDisplay: (option: T) => React__default.ReactNode;
1478
+ optionToDisplayWhenSelected?: (option: T) => React__default.ReactNode;
1479
+ optionToInputValue: (option: T) => string;
1480
+ onSelected?: (e: AutocompleteSelectEvent<T>) => void;
1481
+ onInputChange?: (e: AutocompleteChangeEvent) => void;
1482
+ onNavigate?: (e: AutocompleteOptionNavigatedEvent<T>) => void;
1483
+ onBlur?: (e: NameBlurEvent) => void;
1484
+ onFocus?: (e: NameFocusEvent) => void;
1485
+ }
1486
+ interface NameBlurEvent extends AutocompleteBlurEvent {
1487
+ }
1488
+ interface NameFocusEvent extends AutocompleteFocusEvent {
1489
+ }
1490
+
1468
1491
  interface ISearchInputs {
1469
1492
  compact: React__default.ReactElement<ISearchInputsCompact>;
1470
1493
  full: React__default.ReactElement<ISearchInputsFull>;
1471
1494
  }
1495
+ interface ISearchInputsFull {
1496
+ searchOn: "location" | "route" | "name";
1497
+ location: React__default.ReactElement<LocationI<any>>;
1498
+ route: React__default.ReactElement<RouteI<any, any, any>>;
1499
+ name: React__default.ReactElement<NameI<any>>;
1500
+ submit: React__default.ReactElement<ISearchInputsCompactActionSubmit>;
1501
+ }
1472
1502
  interface ISearchInputsCompact {
1473
1503
  location: React__default.ReactElement<ISearchInputsCompactOverlayItem>;
1474
1504
  route: React__default.ReactElement<ISearchInputsCompactOverlayItem>;
@@ -1478,8 +1508,6 @@ interface ISearchInputsCompact {
1478
1508
  clear?: React__default.ReactElement<ISearchInputsCompactActionClear>;
1479
1509
  onChanged: (active: "location" | "route" | "name") => void;
1480
1510
  }
1481
- interface ISearchInputsFull {
1482
- }
1483
1511
  interface ISearchInputsCompactActionSubmit {
1484
1512
  label: string;
1485
1513
  icon: React__default.ReactElement<IIcon>;
@@ -1499,7 +1527,7 @@ interface ISearchInputsCompactOverlayItem {
1499
1527
 
1500
1528
  declare const SearchInputsMobile: ({ location, route, name, clear, submit, close, onChanged, }: ISearchInputsCompact) => react_jsx_runtime.JSX.Element;
1501
1529
 
1502
- declare const SearchInputsFull: () => react_jsx_runtime.JSX.Element;
1530
+ declare const SearchInputsFull: ({ submit, location, route, name, searchOn, }: ISearchInputsFull) => react_jsx_runtime.JSX.Element;
1503
1531
 
1504
1532
  declare const SearchInputsMobileOverlayItem: ({}: ISearchInputsCompactOverlayItem) => null;
1505
1533
 
@@ -1507,7 +1535,7 @@ declare const SearchInputsMobileActionSubmit: ({}: ISearchInputsCompactActionSub
1507
1535
 
1508
1536
  declare const SearchInputsMobileActionClear: ({}: ISearchInputsCompactActionClear) => null;
1509
1537
 
1510
- declare const SearchInputs: ({ full, compact }: ISearchInputs) => React$1.ReactElement<ISearchInputsFull, string | React$1.JSXElementConstructor<any>>;
1538
+ declare const SearchInputs: ({ full, compact }: ISearchInputs) => React$1.ReactElement<ISearchInputsCompact, string | React$1.JSXElementConstructor<any>> | React$1.ReactElement<ISearchInputsFull, string | React$1.JSXElementConstructor<any>>;
1511
1539
 
1512
1540
  interface ICard {
1513
1541
  swipe?: React__default.ReactNode;
package/build/index.d.ts CHANGED
@@ -1465,10 +1465,40 @@ declare const SearchFiltersFull: ({ heading, icon, filters, activeFilters, submi
1465
1465
 
1466
1466
  declare const SearchFiltersMobileOverlayItem: ({ label, filter, }: ISearchFiltersCompactOverlayItem) => null;
1467
1467
 
1468
+ interface NameI<T> {
1469
+ name: string;
1470
+ placeholder?: string;
1471
+ ariaLabel?: string;
1472
+ withIconBefore?: React__default.ReactElement<IIcon>;
1473
+ withIconAfter?: React__default.ReactElement<IIcon>;
1474
+ debounceTime?: number;
1475
+ options: T[];
1476
+ optionDefault?: T;
1477
+ optionToDisplay: (option: T) => React__default.ReactNode;
1478
+ optionToDisplayWhenSelected?: (option: T) => React__default.ReactNode;
1479
+ optionToInputValue: (option: T) => string;
1480
+ onSelected?: (e: AutocompleteSelectEvent<T>) => void;
1481
+ onInputChange?: (e: AutocompleteChangeEvent) => void;
1482
+ onNavigate?: (e: AutocompleteOptionNavigatedEvent<T>) => void;
1483
+ onBlur?: (e: NameBlurEvent) => void;
1484
+ onFocus?: (e: NameFocusEvent) => void;
1485
+ }
1486
+ interface NameBlurEvent extends AutocompleteBlurEvent {
1487
+ }
1488
+ interface NameFocusEvent extends AutocompleteFocusEvent {
1489
+ }
1490
+
1468
1491
  interface ISearchInputs {
1469
1492
  compact: React__default.ReactElement<ISearchInputsCompact>;
1470
1493
  full: React__default.ReactElement<ISearchInputsFull>;
1471
1494
  }
1495
+ interface ISearchInputsFull {
1496
+ searchOn: "location" | "route" | "name";
1497
+ location: React__default.ReactElement<LocationI<any>>;
1498
+ route: React__default.ReactElement<RouteI<any, any, any>>;
1499
+ name: React__default.ReactElement<NameI<any>>;
1500
+ submit: React__default.ReactElement<ISearchInputsCompactActionSubmit>;
1501
+ }
1472
1502
  interface ISearchInputsCompact {
1473
1503
  location: React__default.ReactElement<ISearchInputsCompactOverlayItem>;
1474
1504
  route: React__default.ReactElement<ISearchInputsCompactOverlayItem>;
@@ -1478,8 +1508,6 @@ interface ISearchInputsCompact {
1478
1508
  clear?: React__default.ReactElement<ISearchInputsCompactActionClear>;
1479
1509
  onChanged: (active: "location" | "route" | "name") => void;
1480
1510
  }
1481
- interface ISearchInputsFull {
1482
- }
1483
1511
  interface ISearchInputsCompactActionSubmit {
1484
1512
  label: string;
1485
1513
  icon: React__default.ReactElement<IIcon>;
@@ -1499,7 +1527,7 @@ interface ISearchInputsCompactOverlayItem {
1499
1527
 
1500
1528
  declare const SearchInputsMobile: ({ location, route, name, clear, submit, close, onChanged, }: ISearchInputsCompact) => react_jsx_runtime.JSX.Element;
1501
1529
 
1502
- declare const SearchInputsFull: () => react_jsx_runtime.JSX.Element;
1530
+ declare const SearchInputsFull: ({ submit, location, route, name, searchOn, }: ISearchInputsFull) => react_jsx_runtime.JSX.Element;
1503
1531
 
1504
1532
  declare const SearchInputsMobileOverlayItem: ({}: ISearchInputsCompactOverlayItem) => null;
1505
1533
 
@@ -1507,7 +1535,7 @@ declare const SearchInputsMobileActionSubmit: ({}: ISearchInputsCompactActionSub
1507
1535
 
1508
1536
  declare const SearchInputsMobileActionClear: ({}: ISearchInputsCompactActionClear) => null;
1509
1537
 
1510
- declare const SearchInputs: ({ full, compact }: ISearchInputs) => React$1.ReactElement<ISearchInputsFull, string | React$1.JSXElementConstructor<any>>;
1538
+ declare const SearchInputs: ({ full, compact }: ISearchInputs) => React$1.ReactElement<ISearchInputsCompact, string | React$1.JSXElementConstructor<any>> | React$1.ReactElement<ISearchInputsFull, string | React$1.JSXElementConstructor<any>>;
1511
1539
 
1512
1540
  interface ICard {
1513
1541
  swipe?: React__default.ReactNode;