@asantemedia-org/edwardsvacuum-design-system 1.6.58 → 1.6.63
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/assets/3697809e28f9e0fe.png +0 -0
- package/dist/index.css +67 -1
- package/dist/index.esm.css +67 -1
- package/dist/index.esm.js +211 -61
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +211 -61
- package/dist/index.js.map +1 -1
- package/dist/index.scss +67 -1
- package/dist/stories/components/Card/card.d.ts +3 -3
- package/dist/stories/components/FacetUnitSelector/FacetUnitSelector.d.ts +8 -0
- package/dist/stories/components/FacetUnitSelector/index.d.ts +1 -0
- package/dist/stories/experiences/Algolia-dynamic-search/algolia-dynamic-search-base.d.ts +3 -3
- package/dist/stories/experiences/Algolia-dynamic-search/algolia-dynamic-search.types.d.ts +0 -1
- package/dist/stories/experiences/QRFormJourney/Friendly-captcha/FriendlyCaptcha.d.ts +10 -0
- package/dist/stories/experiences/QRFormJourney/Qr-form/Qr-form.d.ts +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/helpers/formatFacetValue.d.ts +26 -0
- package/package.json +3 -2
package/dist/index.scss
CHANGED
|
@@ -344,13 +344,15 @@
|
|
|
344
344
|
font-size: clamp(1.5rem, 2vw, 28px);
|
|
345
345
|
font-weight: 100;
|
|
346
346
|
margin-bottom: 0.5rem;
|
|
347
|
-
color: #2d363a;
|
|
348
347
|
}
|
|
349
348
|
@media (min-width: 768px) {
|
|
350
349
|
.card-module__cmp-card--type-product_details__header__title___4KSqX {
|
|
351
350
|
max-width: 325px;
|
|
352
351
|
}
|
|
353
352
|
}
|
|
353
|
+
.card-module__cmp-card--type-product_details__header__title___4KSqX {
|
|
354
|
+
color: #2d363a;
|
|
355
|
+
}
|
|
354
356
|
.card-module__cmp-card--type-product_details__header__product-code___zf7yq {
|
|
355
357
|
font-size: 0.875rem;
|
|
356
358
|
color: #666;
|
|
@@ -394,6 +396,24 @@
|
|
|
394
396
|
.card-module__cmp-card--type-product_details___vsNOc ul.card-module__folding-specification-list___tIfSl li strong {
|
|
395
397
|
color: #333;
|
|
396
398
|
}
|
|
399
|
+
.card-module__cmp-card--type-product_details___vsNOc ul.card-module__facet-value-list___HtnIT {
|
|
400
|
+
display: flex;
|
|
401
|
+
flex-wrap: wrap;
|
|
402
|
+
gap: 0.5rem;
|
|
403
|
+
margin-top: 0.25rem;
|
|
404
|
+
padding: 0;
|
|
405
|
+
}
|
|
406
|
+
.card-module__cmp-card--type-product_details___vsNOc ul.card-module__facet-value-list___HtnIT li {
|
|
407
|
+
background-color: rgb(233, 233, 233);
|
|
408
|
+
padding: 0.25rem 0.5rem;
|
|
409
|
+
border-radius: 4px;
|
|
410
|
+
font-size: 0.85rem;
|
|
411
|
+
margin-bottom: 0;
|
|
412
|
+
}
|
|
413
|
+
.card-module__cmp-card--type-product_details___vsNOc ul.card-module__facet-value-list___HtnIT li .card-module__facet-value-unit___b722z {
|
|
414
|
+
color: rgb(130, 134, 136);
|
|
415
|
+
font-size: 0.75rem;
|
|
416
|
+
}
|
|
397
417
|
|
|
398
418
|
.card-module__folding-specification-holder___OtcQQ {
|
|
399
419
|
margin-bottom: 1rem;
|
|
@@ -436,6 +456,49 @@
|
|
|
436
456
|
.accordion-section.open .accordion-section__icon {
|
|
437
457
|
transform: rotate(180deg);
|
|
438
458
|
}
|
|
459
|
+
.FacetUnitSelector-module__facet-unit-selector___1Zdhx {
|
|
460
|
+
display: inline-flex;
|
|
461
|
+
align-items: center;
|
|
462
|
+
gap: 0.5rem;
|
|
463
|
+
margin-top: 0.25rem;
|
|
464
|
+
}
|
|
465
|
+
.FacetUnitSelector-module__facet-unit-selector__value___E-LAN {
|
|
466
|
+
font-weight: 600;
|
|
467
|
+
font-size: 0.95rem;
|
|
468
|
+
color: rgb(87, 94, 97);
|
|
469
|
+
}
|
|
470
|
+
.FacetUnitSelector-module__facet-unit-selector__unit___TxIk7 {
|
|
471
|
+
font-size: 0.85rem;
|
|
472
|
+
color: rgb(130, 134, 136);
|
|
473
|
+
}
|
|
474
|
+
.FacetUnitSelector-module__facet-unit-selector__dropdown___Xj3dK {
|
|
475
|
+
-webkit-appearance: none;
|
|
476
|
+
-moz-appearance: none;
|
|
477
|
+
appearance: none;
|
|
478
|
+
background-color: transparent;
|
|
479
|
+
border: none;
|
|
480
|
+
border-radius: 0;
|
|
481
|
+
padding: 0.25rem 1.75rem 0.25rem 0.5rem;
|
|
482
|
+
font-size: 0.85rem;
|
|
483
|
+
color: rgb(196, 38, 46);
|
|
484
|
+
cursor: pointer;
|
|
485
|
+
transition: border-color 0.2s ease, background-color 0.2s ease;
|
|
486
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
|
|
487
|
+
background-repeat: no-repeat;
|
|
488
|
+
background-position: right 0.5rem center;
|
|
489
|
+
}
|
|
490
|
+
.FacetUnitSelector-module__facet-unit-selector__dropdown___Xj3dK:hover {
|
|
491
|
+
border-color: rgb(172, 174, 176);
|
|
492
|
+
background-color: rgb(250, 250, 250);
|
|
493
|
+
}
|
|
494
|
+
.FacetUnitSelector-module__facet-unit-selector__dropdown___Xj3dK:focus {
|
|
495
|
+
outline: none;
|
|
496
|
+
border-color: rgb(196, 38, 46);
|
|
497
|
+
box-shadow: 0 0 0 2px rgba(196, 38, 46, 0.15);
|
|
498
|
+
}
|
|
499
|
+
.FacetUnitSelector-module__facet-unit-selector__dropdown___Xj3dK option {
|
|
500
|
+
padding: 0.5rem;
|
|
501
|
+
}
|
|
439
502
|
.Button-module__cmp-button___SMjDF {
|
|
440
503
|
font-family: "Calibri", "Calibri W05 Light", sans-serif;
|
|
441
504
|
text-transform: uppercase;
|
|
@@ -2022,4 +2085,7 @@
|
|
|
2022
2085
|
.qr-journey-form-wrapper.desktop-true .qr-form-thank-you-page .submitted-checked {
|
|
2023
2086
|
position: relative;
|
|
2024
2087
|
top: 0;
|
|
2088
|
+
}
|
|
2089
|
+
.vtba-friendly-captcha-react {
|
|
2090
|
+
margin-top: 1rem;
|
|
2025
2091
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CardProps } from "./card.types";
|
|
2
|
-
export declare const Card: ({ contentCategoryLabel, className, colour, date, size, title, cta, imageUrl, imageAlt, cardStyle, cardLink, city, country,
|
|
3
|
-
export declare const ProductCard: ({ className, size, title, imageUrl, imageAlt, showImage, productPrice, showProductPrice, cardLink, cta, cardStyle,
|
|
2
|
+
export declare const Card: ({ contentCategoryLabel, className, colour, date, size, title, cta, imageUrl, imageAlt, cardStyle, cardLink, city, country, onClick, usePlainClasses, }: CardProps) => JSX.Element;
|
|
3
|
+
export declare const ProductCard: ({ className, size, title, imageUrl, imageAlt, showImage, productPrice, showProductPrice, cardLink, cta, cardStyle, onClick, usePlainClasses, }: CardProps) => JSX.Element;
|
|
4
4
|
export declare const VideoCard: ({ className, title, imageUrl, imageAlt, cardStyle, duration, videoSrc, videoTitle, videoThumbnail, onClick, }: CardProps) => JSX.Element;
|
|
5
|
-
export declare const ProductDetailsCard: ({ className, title, imageUrl, imageAlt,
|
|
5
|
+
export declare const ProductDetailsCard: ({ className, title, imageUrl, imageAlt, onClick, hit, facets, usePlainClasses, ProductCardComponent, }: CardProps) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ParsedFacetEntry } from "../../../utils/helpers/formatFacetValue";
|
|
3
|
+
interface FacetUnitSelectorProps {
|
|
4
|
+
entries: ParsedFacetEntry[];
|
|
5
|
+
usePlainClasses?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const FacetUnitSelector: React.FC<FacetUnitSelectorProps>;
|
|
8
|
+
export default FacetUnitSelector;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FacetUnitSelector } from "./FacetUnitSelector";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from
|
|
2
|
-
import { AlgoliaDynamicSearchProps } from
|
|
1
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import { AlgoliaDynamicSearchProps } from "./algolia-dynamic-search.types";
|
|
3
3
|
export interface DynamicHeadingProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
4
4
|
titleSize?: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare const AlgoliaDynamicSearch: ({ className, heading, titleSize, subtext, callToActionType, callToActionText, callToActionUrl, callToActionTargetSelector, queryType, hits, hitCta, showProductPrice, query, backgroundColour, maxResults, isLoading,
|
|
7
|
+
export declare const AlgoliaDynamicSearch: ({ className, heading, titleSize, subtext, callToActionType, callToActionText, callToActionUrl, callToActionTargetSelector, queryType, hits, hitCta, showProductPrice, query, backgroundColour, maxResults, isLoading, analytics, facets, innerComponents, }: AlgoliaDynamicSearchProps, useScopedStyles?: boolean, styles?: Record<string, string>) => JSX.Element | null;
|
|
8
8
|
export default AlgoliaDynamicSearch;
|
|
@@ -27,7 +27,6 @@ export interface AlgoliaDynamicSearchProps {
|
|
|
27
27
|
backgroundColour?: string;
|
|
28
28
|
maxResults?: number;
|
|
29
29
|
isLoading?: boolean;
|
|
30
|
-
placeholder?: string;
|
|
31
30
|
analytics?: (objectID: string, position: number, queryID: string) => void;
|
|
32
31
|
facets?: Facet[];
|
|
33
32
|
innerComponents?: InnerComponents;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "./FriendlyCaptcha.scss";
|
|
2
|
+
type Props = {
|
|
3
|
+
onComplete?: (response: string) => void;
|
|
4
|
+
sitekey: string;
|
|
5
|
+
element?: HTMLElement | null;
|
|
6
|
+
onExpire?: () => void;
|
|
7
|
+
doneCallback?: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const FriendlyCaptcha: (props: Props) => null;
|
|
10
|
+
export {};
|
|
@@ -25,6 +25,8 @@ export type qrCodeFormProps = {
|
|
|
25
25
|
consents?: consentProps[];
|
|
26
26
|
/** Custom Button component - defaults to Edwards Button if not provided */
|
|
27
27
|
ButtonComponent?: React.ComponentType<any>;
|
|
28
|
+
captchaKey?: string | undefined;
|
|
29
|
+
isChina?: boolean;
|
|
28
30
|
};
|
|
29
31
|
export type consentProps = {
|
|
30
32
|
policyMandatory?: boolean;
|