@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.css 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;
@@ -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;
package/dist/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import React, { useState, useRef, useCallback, useMemo, useEffect } from 'react';
2
2
  import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
- import { faChevronDown, faChevronRight, faArrowRight } from '@fortawesome/pro-solid-svg-icons';
3
+ import { faChevronDown, faArrowRight, faChevronRight } from '@fortawesome/pro-solid-svg-icons';
4
4
  import { v4 } from 'uuid';
5
5
  import { PhoneInput } from 'react-international-phone';
6
6
 
@@ -638,7 +638,13 @@ var AlgoliaDynamicSearch = function (_a, useScopedStyles, styles) {
638
638
  isLoading = _f === void 0 ? false : _f,
639
639
  placeholder = _a.placeholder,
640
640
  analytics = _a.analytics,
641
- facets = _a.facets;
641
+ facets = _a.facets,
642
+ innerComponents = _a.innerComponents;
643
+ // Extract components from innerComponents with defaults
644
+ var Card$1 = (innerComponents === null || innerComponents === void 0 ? void 0 : innerComponents.Card) || Card;
645
+ var ProductCard$1 = (innerComponents === null || innerComponents === void 0 ? void 0 : innerComponents.ProductCard) || ProductCard;
646
+ var ProductDetailsCard$1 = (innerComponents === null || innerComponents === void 0 ? void 0 : innerComponents.ProductDetailsCard) || ProductDetailsCard;
647
+ var Button$1 = (innerComponents === null || innerComponents === void 0 ? void 0 : innerComponents.Button) || Button;
642
648
  // Helper to resolve CSS module class names properly
643
649
  var getClass = useCallback(function (suffix) {
644
650
  var fullClassName = "cmpAlgoliaDynamicSearchWidget".concat(suffix);
@@ -697,7 +703,7 @@ var AlgoliaDynamicSearch = function (_a, useScopedStyles, styles) {
697
703
  finalUrl = _a.finalUrl,
698
704
  target = _a.target;
699
705
  var isAnchor = !!callToActionTargetSelector || (callToActionType === null || callToActionType === void 0 ? void 0 : callToActionType.toLowerCase()) !== 'internal';
700
- return /*#__PURE__*/React.createElement(Button, {
706
+ return /*#__PURE__*/React.createElement(Button$1, {
701
707
  element: isAnchor ? 'a' : 'button',
702
708
  buttonStyle: widgetStyleProps === null || widgetStyleProps === void 0 ? void 0 : widgetStyleProps.buttonStyle,
703
709
  label: callToActionText,
@@ -714,7 +720,7 @@ var AlgoliaDynamicSearch = function (_a, useScopedStyles, styles) {
714
720
  }()))), /*#__PURE__*/React.createElement("div", {
715
721
  className: queryType == PRODUCT_DETAILS ? getClass('__cards__cardSingle') : getClass('__cards')
716
722
  }, hits.slice(0, maxResults).map(function (hit, index) {
717
- var Component = Card;
723
+ var Component = Card$1;
718
724
  var title = hit.title;
719
725
  var cardStyle = "";
720
726
  var imageUrl = hit.imageUrl || placeholder;
@@ -731,7 +737,7 @@ var AlgoliaDynamicSearch = function (_a, useScopedStyles, styles) {
731
737
  var cardClassName = styles === null || styles === void 0 ? void 0 : styles.cmpCard;
732
738
  switch (queryType) {
733
739
  case "products":
734
- Component = ProductCard;
740
+ Component = ProductCard$1;
735
741
  cardStyle = "type-card-product";
736
742
  break;
737
743
  case "content":
@@ -744,7 +750,7 @@ var AlgoliaDynamicSearch = function (_a, useScopedStyles, styles) {
744
750
  break;
745
751
  case PRODUCT_DETAILS:
746
752
  cardStyle = "type-card-panel";
747
- Component = ProductDetailsCard;
753
+ Component = ProductDetailsCard$1;
748
754
  break;
749
755
  default:
750
756
  return null;
@@ -781,8 +787,17 @@ var AlgoliaDynamicSearch = function (_a, useScopedStyles, styles) {
781
787
 
782
788
  var styles = {"cmpAlgoliaDynamicSearchWidget":"algolia-dynamic-search-module__cmpAlgoliaDynamicSearchWidget___WY9hc","isLoading":"algolia-dynamic-search-module__isLoading___X6nUw","cmpAlgoliaDynamicSearchWidget__placeholder":"algolia-dynamic-search-module__cmpAlgoliaDynamicSearchWidget__placeholder___IWqoU","cmpAlgoliaDynamicSearchWidget__container":"algolia-dynamic-search-module__cmpAlgoliaDynamicSearchWidget__container___HB7g0","cmpAlgoliaDynamicSearchWidget__header":"algolia-dynamic-search-module__cmpAlgoliaDynamicSearchWidget__header___vxNjS","cmpAlgoliaDynamicSearchWidget__header__text":"algolia-dynamic-search-module__cmpAlgoliaDynamicSearchWidget__header__text___23-nk","cmpAlgoliaDynamicSearchWidget__cards":"algolia-dynamic-search-module__cmpAlgoliaDynamicSearchWidget__cards___wOPVj","cmpAlgoliaDynamicSearchWidget__cards__cardSingle":"algolia-dynamic-search-module__cmpAlgoliaDynamicSearchWidget__cards__cardSingle___fcWfV","isQueryContent":"algolia-dynamic-search-module__isQueryContent___KXy6j","hasStyleSilverGradientBackground":"algolia-dynamic-search-module__hasStyleSilverGradientBackground___D3SQQ","hasStyleGreyBackground":"algolia-dynamic-search-module__hasStyleGreyBackground___SuPIH","cmpAlgoliaDynamicSearchWidget__placeholder__loading":"algolia-dynamic-search-module__cmpAlgoliaDynamicSearchWidget__placeholder__loading___hbH4m","loading":"algolia-dynamic-search-module__loading___Hb3Uw"};
783
789
 
790
+ // Edwards-specific components
791
+ var edwardsComponents = {
792
+ Card: Card,
793
+ ProductCard: ProductCard,
794
+ ProductDetailsCard: ProductDetailsCard,
795
+ Button: Button
796
+ };
784
797
  var AlgoliaDynamicSearchEdwards = function (props) {
785
- return AlgoliaDynamicSearch(props, true, styles);
798
+ return AlgoliaDynamicSearch(__assign(__assign({}, props), {
799
+ innerComponents: edwardsComponents
800
+ }), true, styles);
786
801
  };
787
802
  var AlgoliaDynamicSearchRaw = function (props) {
788
803
  return AlgoliaDynamicSearch(props, false);
@@ -1012,6 +1027,8 @@ var QrForm = function (props) {
1012
1027
  var _g = useState(true);
1013
1028
  _g[0];
1014
1029
  var setIsLoadingCountries = _g[1];
1030
+ // Use custom Button component if provided, otherwise use default
1031
+ var Button$1 = props.ButtonComponent || Button;
1015
1032
  var i18n = __assign(__assign({}, defaultQrFormTranslations), props);
1016
1033
  var buttonProps = props;
1017
1034
  var consentFields = ((_a = props.consents) === null || _a === void 0 ? void 0 : _a.map(function (consent, index) {
@@ -1336,17 +1353,17 @@ var QrForm = function (props) {
1336
1353
  var isLastPage = pageIndex === pages.length - 1;
1337
1354
  var navButtons = generateButtons && /*#__PURE__*/React.createElement("div", {
1338
1355
  className: "qr-form-navigation"
1339
- }, !isFirstPage ? /*#__PURE__*/React.createElement(Button, {
1356
+ }, !isFirstPage ? /*#__PURE__*/React.createElement(Button$1, {
1340
1357
  label: i18n === null || i18n === void 0 ? void 0 : i18n.previous,
1341
1358
  onClick: formNavigate,
1342
1359
  "data-page_target": pageIndex - 1,
1343
1360
  buttonStyle: "secondary"
1344
- }) : /*#__PURE__*/React.createElement("div", null), !isLastPage ? /*#__PURE__*/React.createElement(Button, {
1361
+ }) : /*#__PURE__*/React.createElement("div", null), !isLastPage ? /*#__PURE__*/React.createElement(Button$1, {
1345
1362
  label: i18n === null || i18n === void 0 ? void 0 : i18n.next,
1346
1363
  onClick: formNavigate,
1347
1364
  "data-page_target": pageIndex + 1,
1348
1365
  buttonStyle: "primary"
1349
- }) : /*#__PURE__*/React.createElement(Button, {
1366
+ }) : /*#__PURE__*/React.createElement(Button$1, {
1350
1367
  label: i18n === null || i18n === void 0 ? void 0 : i18n.submit,
1351
1368
  onClick: handleSubmit,
1352
1369
  buttonStyle: "primary",
@@ -1425,7 +1442,7 @@ var QrForm = function (props) {
1425
1442
  className: "title-wrapper"
1426
1443
  }, /*#__PURE__*/React.createElement("div", {
1427
1444
  className: "submitted-checked"
1428
- }), /*#__PURE__*/React.createElement("h2", null, props.thankYouTitle)), /*#__PURE__*/React.createElement("p", null, props.thankYouText), /*#__PURE__*/React.createElement(Button, {
1445
+ }), /*#__PURE__*/React.createElement("h2", null, props.thankYouTitle)), /*#__PURE__*/React.createElement("p", null, props.thankYouText), /*#__PURE__*/React.createElement(Button$1, {
1429
1446
  label: buttonProps.buttonText,
1430
1447
  href: buttonProps.url,
1431
1448
  target: buttonProps.newTab ? '_blank' : '',