@asantemedia-org/edwardsvacuum-design-system 1.6.48 → 1.6.49

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/index.scss CHANGED
@@ -786,15 +786,24 @@
786
786
 
787
787
  @font-face {
788
788
  font-family: "Calibri";
789
- src: url("/public/fonts/calibri.ttf") format("truetype");
789
+ src: url("/fonts/calibri.ttf") format("truetype");
790
+ font-weight: normal;
791
+ font-style: normal;
792
+ font-display: swap;
790
793
  }
791
794
  @font-face {
792
795
  font-family: "CalibriLight";
793
- src: url("/public/fonts/calibril.ttf") format("truetype");
796
+ src: url("/fonts/calibril.ttf") format("truetype");
797
+ font-weight: 300;
798
+ font-style: normal;
799
+ font-display: swap;
794
800
  }
795
801
  @font-face {
796
802
  font-family: "CalibriBold";
797
- src: url("/public/fonts/calibrib.ttf") format("truetype");
803
+ src: url("/fonts/calibrib.ttf") format("truetype");
804
+ font-weight: 700;
805
+ font-style: normal;
806
+ font-display: swap;
798
807
  }
799
808
  .p-1 {
800
809
  padding: 0.5rem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CardProps } from "./card.types";
2
3
  export declare const Card: ({ contentCategoryLabel, className, colour, date, size, title, cta, imageUrl, imageAlt, cardStyle, cardLink, city, country, placeholder, onClick, }: CardProps) => JSX.Element;
3
4
  export declare const ProductCard: ({ className, size, title, imageUrl, imageAlt, showImage, productPrice, showProductPrice, cardLink, cta, cardStyle, placeholder, onClick, }: CardProps) => JSX.Element;
@@ -1,30 +1,8 @@
1
1
  import { HTMLAttributes, ReactNode } from 'react';
2
- import { Facet } from "@stories/components/Card/card.types";
3
- export interface AlgoliaDynamicSearchProps {
4
- className?: string;
5
- heading?: string;
6
- titleSize?: HeadingLevel;
7
- subtext?: string;
8
- callToActionType?: string;
9
- callToActionText?: string;
10
- callToActionUrl?: string;
11
- callToActionTargetSelector?: string;
12
- queryType?: string;
13
- hits?: any;
14
- hitCta?: string;
15
- query: string;
16
- showProductPrice?: boolean;
17
- backgroundColour?: string;
18
- maxResults?: number;
19
- isLoading?: boolean;
20
- placeholder?: string;
21
- analytics?: (objectID: string, position: number, queryID: string) => void;
22
- facets?: Facet[];
23
- }
24
- type HeadingLevel = "h2" | "h3" | "h4" | "h5" | "h6";
2
+ import { AlgoliaDynamicSearchProps } from './algolia-dynamic-search.types';
25
3
  export interface DynamicHeadingProps extends HTMLAttributes<HTMLHeadingElement> {
26
- titleSize?: HeadingLevel;
4
+ titleSize?: "h2" | "h3" | "h4" | "h5" | "h6";
27
5
  children?: ReactNode;
28
6
  }
29
- export declare const AlgoliaDynamicSearch: ({ className, heading, titleSize, subtext, callToActionType, callToActionText, callToActionUrl, callToActionTargetSelector, queryType, hits, hitCta, showProductPrice, query, backgroundColour, maxResults, isLoading, placeholder, analytics, facets }: AlgoliaDynamicSearchProps, useScopedStyles?: boolean, styles?: Record<string, string>) => JSX.Element | null;
7
+ export declare const AlgoliaDynamicSearch: ({ className, heading, titleSize, subtext, callToActionType, callToActionText, callToActionUrl, callToActionTargetSelector, queryType, hits, hitCta, showProductPrice, query, backgroundColour, maxResults, isLoading, placeholder, analytics, facets, innerComponents }: AlgoliaDynamicSearchProps, useScopedStyles?: boolean, styles?: Record<string, string>) => JSX.Element | null;
30
8
  export default AlgoliaDynamicSearch;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
- import { AlgoliaDynamicSearchProps } from "@stories/experiences/Algolia-dynamic-search/algolia-dynamic-search-base";
1
+ import { AlgoliaDynamicSearchProps } from "./algolia-dynamic-search.types";
3
2
  export declare const AlgoliaDynamicSearchEdwards: (props: AlgoliaDynamicSearchProps) => JSX.Element | null;
4
3
  export declare const AlgoliaDynamicSearchRaw: (props: AlgoliaDynamicSearchProps) => JSX.Element | null;
@@ -0,0 +1,34 @@
1
+ /// <reference types="react" />
2
+ export interface InnerComponents {
3
+ Card?: React.ComponentType<any>;
4
+ ProductCard?: React.ComponentType<any>;
5
+ ProductDetailsCard?: React.ComponentType<any>;
6
+ Button?: React.ComponentType<any>;
7
+ }
8
+ export interface Facet {
9
+ name: string;
10
+ label: string;
11
+ returnsHTML?: boolean;
12
+ }
13
+ export interface AlgoliaDynamicSearchProps {
14
+ className?: string;
15
+ heading?: string;
16
+ titleSize?: "h2" | "h3" | "h4" | "h5" | "h6";
17
+ subtext?: string;
18
+ callToActionType?: string;
19
+ callToActionText?: string;
20
+ callToActionUrl?: string;
21
+ callToActionTargetSelector?: string;
22
+ queryType?: string;
23
+ hits?: any;
24
+ hitCta?: string;
25
+ query: string;
26
+ showProductPrice?: boolean;
27
+ backgroundColour?: string;
28
+ maxResults?: number;
29
+ isLoading?: boolean;
30
+ placeholder?: string;
31
+ analytics?: (objectID: string, position: number, queryID: string) => void;
32
+ facets?: Facet[];
33
+ innerComponents?: InnerComponents;
34
+ }
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { FormFieldType as FormFieldDefinition } from "../FormFieldType";
2
3
  import './qr-form.scss';
3
4
  import { qrFormTranslations } from "./i18n";
@@ -22,6 +23,8 @@ export type qrCodeFormProps = {
22
23
  showThankYou?: boolean;
23
24
  consentTypeId?: string;
24
25
  consents?: consentProps[];
26
+ /** Custom Button component - defaults to Edwards Button if not provided */
27
+ ButtonComponent?: React.ComponentType<any>;
25
28
  };
26
29
  export type consentProps = {
27
30
  policyMandatory?: boolean;