@4alldigital/foundation-ui--gamma 1.26.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.
Files changed (119) hide show
  1. package/dist/foundation-ui.css +1 -1
  2. package/dist/index.esm.js +179 -166
  3. package/dist/index.js +189 -176
  4. package/dist/types/fui/components/Button/Button.d.ts +1 -1
  5. package/dist/types/fui/components/Button/Button.stories.d.ts +1 -0
  6. package/dist/types/fui/components/Button/Button.types.d.ts +1 -0
  7. package/dist/types/fui/components/Card/Card.d.ts +8 -0
  8. package/dist/types/fui/components/Card/Card.stories.d.ts +6 -0
  9. package/dist/types/fui/components/Card/Card.test.d.ts +1 -0
  10. package/dist/types/fui/components/Card/Card.types.d.ts +27 -0
  11. package/dist/types/fui/components/Card/index.d.ts +1 -0
  12. package/dist/types/fui/components/Card/types/CardBasic/CardBasic.d.ts +8 -0
  13. package/dist/types/fui/components/Card/types/CardBasic/CardBasic.stories.d.ts +6 -0
  14. package/dist/types/fui/components/Card/types/CardBasic/CardBasic.test.d.ts +1 -0
  15. package/dist/types/fui/components/Card/types/CardBasic/CardBasic.types.d.ts +4 -0
  16. package/dist/types/fui/components/Card/types/CardBasic/index.d.ts +1 -0
  17. package/dist/types/fui/components/Card/types/CardMedia/CardMedia.d.ts +8 -0
  18. package/dist/types/fui/components/Card/types/CardMedia/CardMedia.stories.d.ts +6 -0
  19. package/dist/types/fui/components/Card/types/CardMedia/CardMedia.test.d.ts +1 -0
  20. package/dist/types/fui/components/Card/types/CardMedia/CardMedia.types.d.ts +4 -0
  21. package/dist/types/fui/components/Card/types/CardMedia/index.d.ts +1 -0
  22. package/dist/types/fui/components/Card/types/CardVideo/CardVideo.d.ts +8 -0
  23. package/dist/types/fui/components/Card/types/CardVideo/CardVideo.stories.d.ts +6 -0
  24. package/dist/types/fui/components/Card/types/CardVideo/CardVideo.test.d.ts +1 -0
  25. package/dist/types/fui/components/Card/types/CardVideo/CardVideo.types.d.ts +4 -0
  26. package/dist/types/fui/components/Card/types/CardVideo/index.d.ts +1 -0
  27. package/dist/types/fui/components/Checkbox/Checkbox.types.d.ts +4 -1
  28. package/dist/types/fui/components/Container/Container.d.ts +1 -1
  29. package/dist/types/fui/components/Container/Container.types.d.ts +2 -0
  30. package/dist/types/fui/components/ContentPageLayout/ContentPageLayout.types.d.ts +2 -2
  31. package/dist/types/fui/components/ContentRowsLayout/ContentRowsLayout.types.d.ts +2 -2
  32. package/dist/types/fui/components/Copy/Copy.d.ts +1 -1
  33. package/dist/types/fui/components/Copy/Copy.types.d.ts +13 -11
  34. package/dist/types/fui/components/Form/Form.d.ts +1 -1
  35. package/dist/types/fui/components/Form/Form.types.d.ts +3 -0
  36. package/dist/types/fui/components/FormField/FormField.d.ts +1 -1
  37. package/dist/types/fui/components/FormField/FormField.stories.d.ts +1 -0
  38. package/dist/types/fui/components/FormField/FormField.types.d.ts +7 -4
  39. package/dist/types/fui/components/FormSelect/FormSelect.types.d.ts +5 -2
  40. package/dist/types/fui/components/Heading/Heading.types.d.ts +6 -6
  41. package/dist/types/fui/components/Label/Label.d.ts +1 -1
  42. package/dist/types/fui/components/Label/Label.types.d.ts +6 -2
  43. package/dist/types/fui/components/Link/Link.types.d.ts +1 -1
  44. package/dist/types/fui/components/Notice/Notice.d.ts +1 -1
  45. package/dist/types/fui/components/Notice/Notice.types.d.ts +1 -1
  46. package/dist/types/fui/components/Radio/Radio.types.d.ts +2 -1
  47. package/dist/types/fui/components/TextInput/TextInput.types.d.ts +2 -1
  48. package/dist/types/fui/components/index.d.ts +23 -0
  49. package/dist/types/fui/features/Search/Search.d.ts +5 -0
  50. package/dist/types/fui/features/Search/Search.stories.d.ts +6 -0
  51. package/dist/types/fui/features/Search/Search.test.d.ts +1 -0
  52. package/dist/types/fui/features/Search/Search.types.d.ts +10 -0
  53. package/dist/types/fui/features/Search/index.d.ts +1 -0
  54. package/dist/types/fui/features/Search/view-helpers/appendClassName.d.ts +1 -0
  55. package/dist/types/fui/features/Search/view-helpers/formatResult.d.ts +3 -0
  56. package/dist/types/fui/features/Search/view-helpers/getFilterValueDisplay.d.ts +1 -0
  57. package/dist/types/fui/features/Search/view-helpers/getUrlSanitizer.d.ts +6 -0
  58. package/dist/types/fui/features/Search/view-helpers/index.d.ts +4 -0
  59. package/dist/types/fui/features/Search/views/Layout/Layout.d.ts +7 -0
  60. package/dist/types/fui/features/Search/views/Layout/Layout.stories.d.ts +6 -0
  61. package/dist/types/fui/features/Search/views/Layout/Layout.test.d.ts +1 -0
  62. package/dist/types/fui/features/Search/views/Layout/Layout.types.d.ts +10 -0
  63. package/dist/types/fui/features/Search/views/Layout/index.d.ts +1 -0
  64. package/dist/types/fui/features/Search/views/MultiCheckboxFacet/MultiCheckboxFacet.d.ts +7 -0
  65. package/dist/types/fui/features/Search/views/MultiCheckboxFacet/MultiCheckboxFacet.stories.d.ts +6 -0
  66. package/dist/types/fui/features/Search/views/MultiCheckboxFacet/MultiCheckboxFacet.test.d.ts +1 -0
  67. package/dist/types/fui/features/Search/views/MultiCheckboxFacet/MultiCheckboxFacet.types.d.ts +4 -0
  68. package/dist/types/fui/features/Search/views/MultiCheckboxFacet/index.d.ts +1 -0
  69. package/dist/types/fui/features/Search/views/Paging/Paging.d.ts +7 -0
  70. package/dist/types/fui/features/Search/views/Paging/Paging.stories.d.ts +6 -0
  71. package/dist/types/fui/features/Search/views/Paging/Paging.test.d.ts +1 -0
  72. package/dist/types/fui/features/Search/views/Paging/Paging.types.d.ts +14 -0
  73. package/dist/types/fui/features/Search/views/Paging/index.d.ts +1 -0
  74. package/dist/types/fui/features/Search/views/PagingInfo/PagingInfo.d.ts +8 -0
  75. package/dist/types/fui/features/Search/views/PagingInfo/PagingInfo.stories.d.ts +6 -0
  76. package/dist/types/fui/features/Search/views/PagingInfo/PagingInfo.test.d.ts +1 -0
  77. package/dist/types/fui/features/Search/views/PagingInfo/PagingInfo.types.d.ts +16 -0
  78. package/dist/types/fui/features/Search/views/PagingInfo/index.d.ts +1 -0
  79. package/dist/types/fui/features/Search/views/Result/Result.d.ts +7 -0
  80. package/dist/types/fui/features/Search/views/Result/Result.stories.d.ts +6 -0
  81. package/dist/types/fui/features/Search/views/Result/Result.test.d.ts +1 -0
  82. package/dist/types/fui/features/Search/views/Result/Result.types.d.ts +22 -0
  83. package/dist/types/fui/features/Search/views/Result/index.d.ts +1 -0
  84. package/dist/types/fui/features/Search/views/Results/Results.d.ts +8 -0
  85. package/dist/types/fui/features/Search/views/Results/Results.stories.d.ts +6 -0
  86. package/dist/types/fui/features/Search/views/Results/Results.test.d.ts +1 -0
  87. package/dist/types/fui/features/Search/views/Results/Results.types.d.ts +19 -0
  88. package/dist/types/fui/features/Search/views/Results/index.d.ts +1 -0
  89. package/dist/types/fui/features/Search/views/ResultsPerPage/ResultsPerPage.d.ts +7 -0
  90. package/dist/types/fui/features/Search/views/ResultsPerPage/ResultsPerPage.stories.d.ts +6 -0
  91. package/dist/types/fui/features/Search/views/ResultsPerPage/ResultsPerPage.test.d.ts +1 -0
  92. package/dist/types/fui/features/Search/views/ResultsPerPage/ResultsPerPage.types.d.ts +17 -0
  93. package/dist/types/fui/features/Search/views/ResultsPerPage/index.d.ts +1 -0
  94. package/dist/types/fui/features/Search/views/SearchBox/SearchBox.d.ts +7 -0
  95. package/dist/types/fui/features/Search/views/SearchBox/SearchBox.stories.d.ts +6 -0
  96. package/dist/types/fui/features/Search/views/SearchBox/SearchBox.test.d.ts +1 -0
  97. package/dist/types/fui/features/Search/views/SearchBox/SearchBox.types.d.ts +6 -0
  98. package/dist/types/fui/features/Search/views/SearchBox/index.d.ts +1 -0
  99. package/dist/types/fui/features/Search/views/Sidebar/Sidebar.d.ts +8 -0
  100. package/dist/types/fui/features/Search/views/Sidebar/Sidebar.stories.d.ts +6 -0
  101. package/dist/types/fui/features/Search/views/Sidebar/Sidebar.test.d.ts +1 -0
  102. package/dist/types/fui/features/Search/views/Sidebar/Sidebar.types.d.ts +3 -0
  103. package/dist/types/fui/features/Search/views/Sidebar/index.d.ts +1 -0
  104. package/dist/types/fui/features/Search/views/SingleLinksFacet/SingleLinksFacet.d.ts +7 -0
  105. package/dist/types/fui/features/Search/views/SingleLinksFacet/SingleLinksFacet.stories.d.ts +6 -0
  106. package/dist/types/fui/features/Search/views/SingleLinksFacet/SingleLinksFacet.test.d.ts +1 -0
  107. package/dist/types/fui/features/Search/views/SingleLinksFacet/SingleLinksFacet.types.d.ts +4 -0
  108. package/dist/types/fui/features/Search/views/SingleLinksFacet/index.d.ts +1 -0
  109. package/dist/types/fui/features/Search/views/SingleSelectFacet/SingleSelectFacet.d.ts +7 -0
  110. package/dist/types/fui/features/Search/views/SingleSelectFacet/SingleSelectFacet.stories.d.ts +6 -0
  111. package/dist/types/fui/features/Search/views/SingleSelectFacet/SingleSelectFacet.test.d.ts +1 -0
  112. package/dist/types/fui/features/Search/views/SingleSelectFacet/SingleSelectFacet.types.d.ts +4 -0
  113. package/dist/types/fui/features/Search/views/SingleSelectFacet/index.d.ts +1 -0
  114. package/dist/types/fui/features/Search/views/Sorting/Sorting.d.ts +7 -0
  115. package/dist/types/fui/features/Search/views/Sorting/Sorting.stories.d.ts +6 -0
  116. package/dist/types/fui/features/Search/views/Sorting/Sorting.test.d.ts +1 -0
  117. package/dist/types/fui/features/Search/views/Sorting/Sorting.types.d.ts +20 -0
  118. package/dist/types/fui/features/Search/views/Sorting/index.d.ts +1 -0
  119. package/package.json +4 -31
@@ -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,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import PagingInfo from '.';
3
+ declare const meta: Meta<typeof PagingInfo>;
4
+ type Story = StoryObj<typeof PagingInfo>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -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,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Result from '.';
3
+ declare const meta: Meta<typeof Result>;
4
+ type Story = StoryObj<typeof Result>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -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,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Results from '.';
3
+ declare const meta: Meta<typeof Results>;
4
+ type Story = StoryObj<typeof Results>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -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,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import ResultsPerPage from '.';
3
+ declare const meta: Meta<typeof ResultsPerPage>;
4
+ type Story = StoryObj<typeof ResultsPerPage>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -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,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import SearchBox from '.';
3
+ declare const meta: Meta<typeof SearchBox>;
4
+ type Story = StoryObj<typeof SearchBox>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -0,0 +1,6 @@
1
+ export interface Props {
2
+ onChange: (data?: any) => void;
3
+ onSubmit: (data?: any) => void;
4
+ className?: string;
5
+ value?: string;
6
+ }
@@ -0,0 +1 @@
1
+ export { default } from './SearchBox';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { Props } from './Sidebar.types';
3
+ declare const Sidebar: {
4
+ ({ foo }: Props): React.ReactElement;
5
+ displayName: string;
6
+ };
7
+ export default Sidebar;
8
+ export type { Props };
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Sidebar from '.';
3
+ declare const meta: Meta<typeof Sidebar>;
4
+ type Story = StoryObj<typeof Sidebar>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -0,0 +1,3 @@
1
+ export interface Props {
2
+ foo: string;
3
+ }
@@ -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,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import SingleLinksFacet from '.';
3
+ declare const meta: Meta<typeof SingleLinksFacet>;
4
+ type Story = StoryObj<typeof SingleLinksFacet>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -0,0 +1,4 @@
1
+ import { FacetViewProps } from '@elastic/react-search-ui-views';
2
+ export interface Props extends FacetViewProps {
3
+ custom?: string;
4
+ }
@@ -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,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import SingleSelectFacet from '.';
3
+ declare const meta: Meta<typeof SingleSelectFacet>;
4
+ type Story = StoryObj<typeof SingleSelectFacet>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -0,0 +1,4 @@
1
+ import { FacetViewProps } from '@elastic/react-search-ui-views';
2
+ export interface Props extends FacetViewProps {
3
+ custom?: string;
4
+ }
@@ -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,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Sorting from '.';
3
+ declare const meta: Meta<typeof Sorting>;
4
+ type Story = StoryObj<typeof Sorting>;
5
+ export declare const Default: Story;
6
+ export default meta;
@@ -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.26.0",
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": "4af02638666f2cbee201e3f1b2c4cf412fd84e86",
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": "^6.2.1",
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",