@4alldigital/foundation-ui--gamma 1.24.0 → 1.27.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/foundation-ui.css +1 -1
- package/dist/index.esm.js +205 -187
- package/dist/index.js +214 -196
- package/dist/types/fui/components/Button/Button.d.ts +1 -1
- package/dist/types/fui/components/Button/Button.stories.d.ts +1 -0
- package/dist/types/fui/components/Button/Button.types.d.ts +1 -0
- package/dist/types/fui/components/Card/Card.d.ts +8 -0
- package/dist/types/fui/components/Card/Card.stories.d.ts +6 -0
- package/dist/types/fui/components/Card/Card.test.d.ts +1 -0
- package/dist/types/fui/components/Card/Card.types.d.ts +27 -0
- package/dist/types/fui/components/Card/index.d.ts +1 -0
- package/dist/types/fui/components/Card/types/CardBasic/CardBasic.d.ts +8 -0
- package/dist/types/fui/components/Card/types/CardBasic/CardBasic.stories.d.ts +6 -0
- package/dist/types/fui/components/Card/types/CardBasic/CardBasic.test.d.ts +1 -0
- package/dist/types/fui/components/Card/types/CardBasic/CardBasic.types.d.ts +4 -0
- package/dist/types/fui/components/Card/types/CardBasic/index.d.ts +1 -0
- package/dist/types/fui/components/Card/types/CardMedia/CardMedia.d.ts +8 -0
- package/dist/types/fui/components/Card/types/CardMedia/CardMedia.stories.d.ts +6 -0
- package/dist/types/fui/components/Card/types/CardMedia/CardMedia.test.d.ts +1 -0
- package/dist/types/fui/components/Card/types/CardMedia/CardMedia.types.d.ts +4 -0
- package/dist/types/fui/components/Card/types/CardMedia/index.d.ts +1 -0
- package/dist/types/fui/components/Card/types/CardVideo/CardVideo.d.ts +8 -0
- package/dist/types/fui/components/Card/types/CardVideo/CardVideo.stories.d.ts +6 -0
- package/dist/types/fui/components/Card/types/CardVideo/CardVideo.test.d.ts +1 -0
- package/dist/types/fui/components/Card/types/CardVideo/CardVideo.types.d.ts +4 -0
- package/dist/types/fui/components/Card/types/CardVideo/index.d.ts +1 -0
- package/dist/types/fui/components/Checkbox/Checkbox.types.d.ts +4 -1
- package/dist/types/fui/components/Container/Container.d.ts +1 -1
- package/dist/types/fui/components/Container/Container.types.d.ts +2 -0
- package/dist/types/fui/components/ContentPageLayout/ContentPageLayout.types.d.ts +2 -2
- package/dist/types/fui/components/ContentRowsLayout/ContentRowsLayout.types.d.ts +2 -2
- package/dist/types/fui/components/Copy/Copy.d.ts +1 -1
- package/dist/types/fui/components/Copy/Copy.types.d.ts +13 -11
- package/dist/types/fui/components/Form/Form.d.ts +1 -1
- package/dist/types/fui/components/Form/Form.stories.d.ts +1 -0
- package/dist/types/fui/components/Form/Form.types.d.ts +8 -5
- package/dist/types/fui/components/FormField/FormField.d.ts +1 -1
- package/dist/types/fui/components/FormField/FormField.stories.d.ts +1 -0
- package/dist/types/fui/components/FormField/FormField.types.d.ts +10 -8
- package/dist/types/fui/components/FormSelect/FormSelect.d.ts +1 -4
- package/dist/types/fui/components/FormSelect/FormSelect.types.d.ts +7 -5
- package/dist/types/fui/components/Heading/Heading.types.d.ts +6 -6
- package/dist/types/fui/components/Label/Label.d.ts +1 -1
- package/dist/types/fui/components/Label/Label.types.d.ts +6 -2
- package/dist/types/fui/components/Link/Link.types.d.ts +1 -1
- package/dist/types/fui/components/Notice/Notice.d.ts +1 -1
- package/dist/types/fui/components/Notice/Notice.types.d.ts +1 -1
- package/dist/types/fui/components/Radio/Radio.types.d.ts +2 -1
- package/dist/types/fui/components/TextInput/TextInput.types.d.ts +2 -1
- package/dist/types/fui/components/index.d.ts +23 -0
- package/dist/types/fui/features/Search/Search.d.ts +5 -0
- package/dist/types/fui/features/Search/Search.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/Search.test.d.ts +1 -0
- package/dist/types/fui/features/Search/Search.types.d.ts +10 -0
- package/dist/types/fui/features/Search/index.d.ts +1 -0
- package/dist/types/fui/features/Search/view-helpers/appendClassName.d.ts +1 -0
- package/dist/types/fui/features/Search/view-helpers/formatResult.d.ts +3 -0
- package/dist/types/fui/features/Search/view-helpers/getFilterValueDisplay.d.ts +1 -0
- package/dist/types/fui/features/Search/view-helpers/getUrlSanitizer.d.ts +6 -0
- package/dist/types/fui/features/Search/view-helpers/index.d.ts +4 -0
- package/dist/types/fui/features/Search/views/Layout/Layout.d.ts +7 -0
- package/dist/types/fui/features/Search/views/Layout/Layout.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/Layout/Layout.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Layout/Layout.types.d.ts +10 -0
- package/dist/types/fui/features/Search/views/Layout/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/MultiCheckboxFacet/MultiCheckboxFacet.d.ts +7 -0
- package/dist/types/fui/features/Search/views/MultiCheckboxFacet/MultiCheckboxFacet.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/MultiCheckboxFacet/MultiCheckboxFacet.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/MultiCheckboxFacet/MultiCheckboxFacet.types.d.ts +4 -0
- package/dist/types/fui/features/Search/views/MultiCheckboxFacet/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Paging/Paging.d.ts +7 -0
- package/dist/types/fui/features/Search/views/Paging/Paging.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/Paging/Paging.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Paging/Paging.types.d.ts +14 -0
- package/dist/types/fui/features/Search/views/Paging/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/PagingInfo/PagingInfo.d.ts +8 -0
- package/dist/types/fui/features/Search/views/PagingInfo/PagingInfo.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/PagingInfo/PagingInfo.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/PagingInfo/PagingInfo.types.d.ts +16 -0
- package/dist/types/fui/features/Search/views/PagingInfo/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Result/Result.d.ts +7 -0
- package/dist/types/fui/features/Search/views/Result/Result.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/Result/Result.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Result/Result.types.d.ts +22 -0
- package/dist/types/fui/features/Search/views/Result/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Results/Results.d.ts +8 -0
- package/dist/types/fui/features/Search/views/Results/Results.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/Results/Results.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Results/Results.types.d.ts +19 -0
- package/dist/types/fui/features/Search/views/Results/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/ResultsPerPage/ResultsPerPage.d.ts +7 -0
- package/dist/types/fui/features/Search/views/ResultsPerPage/ResultsPerPage.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/ResultsPerPage/ResultsPerPage.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/ResultsPerPage/ResultsPerPage.types.d.ts +17 -0
- package/dist/types/fui/features/Search/views/ResultsPerPage/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/SearchBox/SearchBox.d.ts +7 -0
- package/dist/types/fui/features/Search/views/SearchBox/SearchBox.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/SearchBox/SearchBox.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/SearchBox/SearchBox.types.d.ts +6 -0
- package/dist/types/fui/features/Search/views/SearchBox/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Sidebar/Sidebar.d.ts +8 -0
- package/dist/types/fui/features/Search/views/Sidebar/Sidebar.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/Sidebar/Sidebar.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Sidebar/Sidebar.types.d.ts +3 -0
- package/dist/types/fui/features/Search/views/Sidebar/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/SingleLinksFacet/SingleLinksFacet.d.ts +7 -0
- package/dist/types/fui/features/Search/views/SingleLinksFacet/SingleLinksFacet.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/SingleLinksFacet/SingleLinksFacet.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/SingleLinksFacet/SingleLinksFacet.types.d.ts +4 -0
- package/dist/types/fui/features/Search/views/SingleLinksFacet/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/SingleSelectFacet/SingleSelectFacet.d.ts +7 -0
- package/dist/types/fui/features/Search/views/SingleSelectFacet/SingleSelectFacet.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/SingleSelectFacet/SingleSelectFacet.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/SingleSelectFacet/SingleSelectFacet.types.d.ts +4 -0
- package/dist/types/fui/features/Search/views/SingleSelectFacet/index.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Sorting/Sorting.d.ts +7 -0
- package/dist/types/fui/features/Search/views/Sorting/Sorting.stories.d.ts +6 -0
- package/dist/types/fui/features/Search/views/Sorting/Sorting.test.d.ts +1 -0
- package/dist/types/fui/features/Search/views/Sorting/Sorting.types.d.ts +20 -0
- package/dist/types/fui/features/Search/views/Sorting/index.d.ts +1 -0
- package/package.json +4 -31
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as getFilterValueDisplay } from './getFilterValueDisplay';
|
|
2
|
+
export { default as appendClassName } from './appendClassName';
|
|
3
|
+
export { default as getUrlSanitizer } from './getUrlSanitizer';
|
|
4
|
+
export { formatResult, getEscapedField, getRaw } from './formatResult';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Props } from './Layout.types';
|
|
2
|
+
declare function Layout({ className, children, header, bodyContent, bodyFooter, bodyHeader, sideContent }: Props): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace Layout {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
export default Layout;
|
|
7
|
+
export type { Props };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface Props {
|
|
3
|
+
className?: string;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
header?: React.ReactNode;
|
|
6
|
+
bodyContent?: React.ReactNode;
|
|
7
|
+
bodyFooter?: React.ReactNode;
|
|
8
|
+
bodyHeader?: React.ReactNode;
|
|
9
|
+
sideContent?: React.ReactNode;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Layout';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Props } from './MultiCheckboxFacet.types';
|
|
2
|
+
declare function MultiCheckboxFacet({ className, label, onMoreClick, onRemove, onSelect, options, showMore, showSearch, onSearch, searchPlaceholder, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace MultiCheckboxFacet {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
export default MultiCheckboxFacet;
|
|
7
|
+
export type { Props };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './MultiCheckboxFacet';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Props } from './Paging.types';
|
|
2
|
+
declare function Paging({ className, current, resultsPerPage, onChange, totalPages, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace Paging {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
export default Paging;
|
|
7
|
+
export type { Props };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Rename } from '@elastic/react-search-ui-views';
|
|
3
|
+
import { BaseContainerProps } from '@elastic/react-search-ui/lib/esm/types';
|
|
4
|
+
import { SearchContextState } from '@elastic/search-ui';
|
|
5
|
+
export type PagingContainerContext = Pick<SearchContextState, 'current' | 'resultsPerPage' | 'totalPages' | 'setCurrent'>;
|
|
6
|
+
export type PagingContainerProps = BaseContainerProps & PagingContainerContext & {
|
|
7
|
+
view?: React.ComponentType<PagingViewProps>;
|
|
8
|
+
};
|
|
9
|
+
export type PagingViewProps = Rename<BaseContainerProps & PagingContainerContext, {
|
|
10
|
+
setCurrent: 'onChange';
|
|
11
|
+
}>;
|
|
12
|
+
export interface Props extends PagingViewProps {
|
|
13
|
+
custom?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Paging';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Props } from './PagingInfo.types';
|
|
3
|
+
declare function PagingInfo({ className, end, searchTerm, start, totalResults, ...rest }: Props & React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare namespace PagingInfo {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
7
|
+
export default PagingInfo;
|
|
8
|
+
export type { Props };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Rename } from '@elastic/react-search-ui-views';
|
|
3
|
+
import { BaseContainerProps } from '@elastic/react-search-ui/lib/esm/types';
|
|
4
|
+
import { SearchContextState } from '@elastic/search-ui';
|
|
5
|
+
export type PagingInfoContainerContext = Pick<SearchContextState, 'pagingStart' | 'pagingEnd' | 'resultSearchTerm' | 'totalResults'>;
|
|
6
|
+
export type PagingInfoContainerProps = BaseContainerProps & PagingInfoContainerContext & {
|
|
7
|
+
view?: React.ComponentType<PagingInfoViewProps>;
|
|
8
|
+
};
|
|
9
|
+
export type PagingInfoViewProps = Rename<BaseContainerProps & PagingInfoContainerContext, {
|
|
10
|
+
pagingStart: 'start';
|
|
11
|
+
resultSearchTerm: 'searchTerm';
|
|
12
|
+
pagingEnd: 'end';
|
|
13
|
+
}>;
|
|
14
|
+
export interface Props extends PagingInfoViewProps {
|
|
15
|
+
custom?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PagingInfo';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Props } from './Result.types';
|
|
2
|
+
declare function Result({ className, result, onClickLink, titleField, urlField, thumbnailField, as, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace Result {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
export default Result;
|
|
7
|
+
export type { Props };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseContainerProps } from '@elastic/react-search-ui/lib/esm/types';
|
|
3
|
+
import { SearchContextState } from '@elastic/search-ui';
|
|
4
|
+
import { ResultAsTypes } from '../../Search.types';
|
|
5
|
+
export type ResultContainerContext = Pick<SearchContextState, 'trackClickThrough'>;
|
|
6
|
+
export type ResultContainerProps = BaseContainerProps & ResultContainerContext & {
|
|
7
|
+
view?: React.ComponentType<ResultViewProps>;
|
|
8
|
+
clickThroughTags?: string[];
|
|
9
|
+
titleField?: string;
|
|
10
|
+
urlField?: string;
|
|
11
|
+
thumbnailField?: string;
|
|
12
|
+
result: any;
|
|
13
|
+
shouldTrackClickThrough?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type ResultViewProps = BaseContainerProps & Pick<ResultContainerProps, 'result' | 'titleField' | 'urlField' | 'thumbnailField'> & {
|
|
16
|
+
key?: string;
|
|
17
|
+
onClickLink: () => void;
|
|
18
|
+
};
|
|
19
|
+
export interface Props extends ResultViewProps {
|
|
20
|
+
custom?: string;
|
|
21
|
+
as: ResultAsTypes;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Result';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Props } from './Results.types';
|
|
3
|
+
declare function Results({ children, className, ...rest }: Props & React.HTMLAttributes<HTMLUListElement>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare namespace Results {
|
|
5
|
+
var displayName: string;
|
|
6
|
+
}
|
|
7
|
+
export default Results;
|
|
8
|
+
export type { Props };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ResultViewProps } from "@elastic/react-search-ui-views";
|
|
3
|
+
import { BaseContainerProps } from "@elastic/react-search-ui/lib/esm/types";
|
|
4
|
+
import { SearchContextState } from "@elastic/search-ui";
|
|
5
|
+
export type ResultsContainerContext = Pick<SearchContextState, 'results'>;
|
|
6
|
+
export type ResultsContainerProps = BaseContainerProps & ResultsContainerContext & {
|
|
7
|
+
view?: React.ComponentType<ResultsViewProps>;
|
|
8
|
+
resultView?: React.ComponentType<ResultViewProps>;
|
|
9
|
+
clickThroughTags?: string[];
|
|
10
|
+
titleField?: string;
|
|
11
|
+
urlField?: string;
|
|
12
|
+
thumbnailField?: string;
|
|
13
|
+
results: any[];
|
|
14
|
+
shouldTrackClickThrough?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type ResultsViewProps = BaseContainerProps;
|
|
17
|
+
export interface Props extends ResultsViewProps {
|
|
18
|
+
custom?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Results';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Props } from './ResultsPerPage.types';
|
|
2
|
+
declare function ResultsPerPage({ className, onChange, options, label, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace ResultsPerPage {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
export default ResultsPerPage;
|
|
7
|
+
export type { Props };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Rename } from '@elastic/react-search-ui-views';
|
|
3
|
+
import { BaseContainerProps } from '@elastic/react-search-ui/lib/esm/types';
|
|
4
|
+
import { SearchContextState } from '@elastic/search-ui';
|
|
5
|
+
export type ResultsPerPageContainerContext = Pick<SearchContextState, 'resultsPerPage' | 'setResultsPerPage'>;
|
|
6
|
+
export type ResultsPerPageContainerProps = BaseContainerProps & ResultsPerPageContainerContext & {
|
|
7
|
+
view?: React.ComponentType<ResultsPerPageViewProps>;
|
|
8
|
+
options?: number[];
|
|
9
|
+
};
|
|
10
|
+
export type ResultsPerPageViewProps = BaseContainerProps & Pick<ResultsPerPageContainerProps, 'options'> & Rename<ResultsPerPageContainerContext, {
|
|
11
|
+
setResultsPerPage: 'onChange';
|
|
12
|
+
resultsPerPage: 'value';
|
|
13
|
+
}>;
|
|
14
|
+
export interface Props extends ResultsPerPageViewProps {
|
|
15
|
+
custom?: string;
|
|
16
|
+
label?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ResultsPerPage';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Props } from './SearchBox.types';
|
|
2
|
+
declare function SearchBox({ className, onChange, onSubmit, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace SearchBox {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
export default SearchBox;
|
|
7
|
+
export type { Props };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SearchBox';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Sidebar';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Props } from './SingleLinksFacet.types';
|
|
2
|
+
declare function SingleLinksFacet({ className, label, onRemove, onSelect, options }: Props): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace SingleLinksFacet {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
export default SingleLinksFacet;
|
|
7
|
+
export type { Props };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SingleLinksFacet';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Props } from './SingleSelectFacet.types';
|
|
2
|
+
declare function SingleSelectFacet({ className, label, onChange, options }: Props): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace SingleSelectFacet {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
export default SingleSelectFacet;
|
|
7
|
+
export type { Props };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SingleSelectFacet';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Props } from './Sorting.types';
|
|
2
|
+
declare function Sorting({ className, label, onChange, options }: Props): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare namespace Sorting {
|
|
4
|
+
var displayName: string;
|
|
5
|
+
}
|
|
6
|
+
export default Sorting;
|
|
7
|
+
export type { Props };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseContainerProps } from '@elastic/react-search-ui/lib/esm/types';
|
|
3
|
+
import { SearchContextState } from '@elastic/search-ui';
|
|
4
|
+
export type SortingContainerContext = Pick<SearchContextState, 'sortDirection' | 'sortField' | 'sortList' | 'setSort'>;
|
|
5
|
+
export type SortingContainerProps = BaseContainerProps & SortingContainerContext & {
|
|
6
|
+
view?: React.ComponentType<SortingViewProps>;
|
|
7
|
+
label?: string;
|
|
8
|
+
sortOptions: any;
|
|
9
|
+
};
|
|
10
|
+
export type SortingViewProps = BaseContainerProps & Pick<SortingContainerProps, 'label'> & {
|
|
11
|
+
onChange: (sortData?: any) => void;
|
|
12
|
+
options: {
|
|
13
|
+
value: string;
|
|
14
|
+
label: string;
|
|
15
|
+
}[];
|
|
16
|
+
value: string;
|
|
17
|
+
};
|
|
18
|
+
export interface Props extends SortingViewProps {
|
|
19
|
+
custom?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Sorting';
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4alldigital/foundation-ui--gamma",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.27.0",
|
|
4
4
|
"description": "Foundation UI Component library with GAMMA theme. ",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
7
|
+
"types": "dist/types/fui/index.d.ts",
|
|
7
8
|
"jsnext:main": "dist/index.es.js",
|
|
8
9
|
"repository": {
|
|
9
10
|
"type": "git",
|
|
@@ -24,46 +25,18 @@
|
|
|
24
25
|
"publishConfig": {
|
|
25
26
|
"access": "public"
|
|
26
27
|
},
|
|
27
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "368bbd7c992e49da8507536513c1f3a52380fa48",
|
|
28
29
|
"dependencies": {
|
|
29
30
|
"@headlessui/react": "^1.7.8",
|
|
30
31
|
"@heroicons/react": "^2.0.14",
|
|
31
32
|
"@iconify/react": "^4.1.0",
|
|
32
|
-
"@radix-ui/react-accordion": "^1.1.0",
|
|
33
|
-
"@radix-ui/react-alert-dialog": "^1.0.0",
|
|
34
|
-
"@radix-ui/react-aspect-ratio": "^1.0.0",
|
|
35
|
-
"@radix-ui/react-avatar": "^1.0.0",
|
|
36
|
-
"@radix-ui/react-checkbox": "^1.0.0",
|
|
37
|
-
"@radix-ui/react-collapsible": "^1.0.0",
|
|
38
|
-
"@radix-ui/react-context-menu": "^2.1.0",
|
|
39
|
-
"@radix-ui/react-dialog": "^1.0.0",
|
|
40
|
-
"@radix-ui/react-dropdown-menu": "^2.0.1",
|
|
41
|
-
"@radix-ui/react-hover-card": "^1.0.0",
|
|
42
|
-
"@radix-ui/react-icons": "^1.0.0",
|
|
43
|
-
"@radix-ui/react-label": "^2.0.0",
|
|
44
|
-
"@radix-ui/react-navigation-menu": "^1.0.0",
|
|
45
|
-
"@radix-ui/react-popover": "^1.0.0",
|
|
46
|
-
"@radix-ui/react-progress": "^1.0.0",
|
|
47
|
-
"@radix-ui/react-radio-group": "^1.0.0",
|
|
48
|
-
"@radix-ui/react-scroll-area": "^1.0.0",
|
|
49
|
-
"@radix-ui/react-select": "^2.0.0",
|
|
50
|
-
"@radix-ui/react-separator": "^1.0.0",
|
|
51
|
-
"@radix-ui/react-slider": "^1.0.0",
|
|
52
|
-
"@radix-ui/react-switch": "^1.0.0",
|
|
53
|
-
"@radix-ui/react-tabs": "^1.0.0",
|
|
54
|
-
"@radix-ui/react-toast": "^1.0.0",
|
|
55
|
-
"@radix-ui/react-toggle": "^1.0.0",
|
|
56
|
-
"@radix-ui/react-toggle-group": "^1.0.0",
|
|
57
|
-
"@radix-ui/react-toolbar": "^1.0.0",
|
|
58
|
-
"@radix-ui/react-tooltip": "^1.0.0",
|
|
59
33
|
"@tailwindcss/forms": "^0.5.2",
|
|
60
34
|
"classnames": "^2.5.1",
|
|
61
35
|
"history": "^5.3.0",
|
|
62
36
|
"react": "^18.2.0",
|
|
63
|
-
"react-content-loader": "^
|
|
37
|
+
"react-content-loader": "^7.0.0",
|
|
64
38
|
"react-device-detect": "^2.2.3",
|
|
65
39
|
"react-dom": "^18.2.0",
|
|
66
|
-
"react-scripts": "^5.0.1",
|
|
67
40
|
"tailwindcss": "^3.4.1",
|
|
68
41
|
"tailwindcss-radix": "^2.8.0",
|
|
69
42
|
"typescript": "^5.3.3",
|