@apolitical/component-library 10.0.0 → 10.0.2-beta.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.
@@ -16,6 +16,8 @@ interface Props {
16
16
  className?: string;
17
17
  /** The language to use */
18
18
  locale?: string;
19
+ /** Callback when search is clicked - when provided, renders as a button that triggers this callback instead of a form */
20
+ onSearchClick?: () => void;
19
21
  }
20
- declare const SearchForm: ({ id, className, handleToggle, defaultValue, gtmContext, gtmEvent, }: Props) => import("react/jsx-runtime").JSX.Element;
22
+ declare const SearchForm: ({ id, className, handleToggle, defaultValue, gtmContext, gtmEvent, onSearchClick, }: Props) => import("react/jsx-runtime").JSX.Element;
21
23
  export default SearchForm;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { IntlShape } from 'react-intl';
2
+ import { type IntlShape } from 'react-intl';
3
3
  import { IField } from '../../../form/components/form/form.types';
4
4
  import { IShouldShowProps } from './signup-form';
5
5
  interface Props {