@4alldigital/foundation-ui--gamma 1.28.0 → 1.30.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.
@@ -2,6 +2,7 @@
2
2
  import { BaseContainerProps } from '@elastic/react-search-ui/lib/esm/types';
3
3
  import { SearchContextState } from '@elastic/search-ui';
4
4
  import { ResultAsTypes } from '../../Search.types';
5
+ import { Actions } from '../../../../components/Card/Card.types';
5
6
  export type ResultContainerContext = Pick<SearchContextState, 'trackClickThrough'>;
6
7
  export type ResultContainerProps = BaseContainerProps & ResultContainerContext & {
7
8
  view?: React.ComponentType<ResultViewProps>;
@@ -16,7 +17,25 @@ export type ResultViewProps = BaseContainerProps & Pick<ResultContainerProps, 'r
16
17
  key?: string;
17
18
  onClickLink: () => void;
18
19
  };
20
+ interface FormatterField {
21
+ fieldName: string;
22
+ formatter?: (value: any) => any;
23
+ }
24
+ export interface cardMap {
25
+ idField: FormatterField;
26
+ titleField: FormatterField;
27
+ descriptionField?: FormatterField;
28
+ imageField?: FormatterField;
29
+ videoField?: FormatterField;
30
+ metaDataFields?: FormatterField[];
31
+ clickThroughPathField?: string;
32
+ actionsData?: Actions;
33
+ cardProps?: any;
34
+ onClickLink?: (data: any) => void;
35
+ }
19
36
  export interface Props extends ResultViewProps {
20
37
  custom?: string;
21
38
  as: ResultAsTypes;
39
+ cardMap?: cardMap;
22
40
  }
41
+ export {};
@@ -0,0 +1,19 @@
1
+ interface DurationValues {
2
+ years?: number;
3
+ months?: number;
4
+ weeks?: number;
5
+ days?: number;
6
+ hours?: number;
7
+ minutes?: number;
8
+ seconds?: number;
9
+ }
10
+ export type Duration = {
11
+ negative?: boolean;
12
+ } & DurationValues;
13
+ export type ParseConfig = {
14
+ allowMultipleFractions?: boolean;
15
+ };
16
+ export declare const InvalidDurationError: Error;
17
+ export declare const MultipleFractionsError: Error;
18
+ export declare function parseDuration(durationStr: string, config?: ParseConfig): Duration;
19
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4alldigital/foundation-ui--gamma",
3
- "version": "1.28.0",
3
+ "version": "1.30.0",
4
4
  "description": "Foundation UI Component library with GAMMA theme. ",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -25,21 +25,20 @@
25
25
  "publishConfig": {
26
26
  "access": "public"
27
27
  },
28
- "gitHead": "38957b9138a93b719404ac5014c7a5f9f853c7de",
28
+ "gitHead": "934c28fe42c14b27f136d9488cd2bade1f844f79",
29
29
  "dependencies": {
30
- "@headlessui/react": "^1.7.8",
31
- "@heroicons/react": "^2.0.14",
32
- "@iconify/react": "^4.1.0",
33
- "@tailwindcss/forms": "^0.5.2",
30
+ "@headlessui/react": "^1.7.18",
31
+ "@heroicons/react": "^2.1.3",
32
+ "@iconify/react": "^4.1.1",
33
+ "@tailwindcss/forms": "^0.5.7",
34
34
  "classnames": "^2.5.1",
35
35
  "history": "^5.3.0",
36
36
  "react": "^18.2.0",
37
37
  "react-content-loader": "^7.0.0",
38
38
  "react-device-detect": "^2.2.3",
39
39
  "react-dom": "^18.2.0",
40
- "tailwindcss": "^3.4.1",
41
- "tailwindcss-radix": "^2.8.0",
42
- "typescript": "^5.3.3",
43
- "web-vitals": "^3.5.1"
40
+ "tailwindcss": "^3.4.3",
41
+ "typescript": "^5.4.3",
42
+ "web-vitals": "^3.5.2"
44
43
  }
45
44
  }