@asantemedia-org/edwardsvacuum-design-system 1.3.0 → 1.3.1
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.esm.js +17 -17
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +19 -19
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useState, useEffect } from 'react';
|
|
1
|
+
import React$1, { useState, useEffect } from 'react';
|
|
2
2
|
|
|
3
3
|
/******************************************************************************
|
|
4
4
|
Copyright (c) Microsoft Corporation.
|
|
@@ -4487,7 +4487,7 @@ var defaultProps = {
|
|
|
4487
4487
|
transform: null,
|
|
4488
4488
|
swapOpacity: false
|
|
4489
4489
|
};
|
|
4490
|
-
var FontAwesomeIcon = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
4490
|
+
var FontAwesomeIcon = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
4491
4491
|
var allProps = _objectSpread2(_objectSpread2({}, defaultProps), props);
|
|
4492
4492
|
var iconArgs = allProps.icon,
|
|
4493
4493
|
maskArgs = allProps.mask,
|
|
@@ -4552,7 +4552,7 @@ FontAwesomeIcon.propTypes = {
|
|
|
4552
4552
|
transform: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
4553
4553
|
swapOpacity: PropTypes.bool
|
|
4554
4554
|
};
|
|
4555
|
-
var convertCurry = convert.bind(null, React.createElement);
|
|
4555
|
+
var convertCurry = convert.bind(null, React$1.createElement);
|
|
4556
4556
|
|
|
4557
4557
|
/*!
|
|
4558
4558
|
* Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
|
|
@@ -4601,7 +4601,7 @@ var getImageUrl = function (imageUrl) {
|
|
|
4601
4601
|
} catch (error) {
|
|
4602
4602
|
// If that fails, load from node_modules (works in host app)
|
|
4603
4603
|
try {
|
|
4604
|
-
return require('@asantemedia-org/edwardsvacuum-design-system/dist/assets/3697809e28f9e0fe.png').default
|
|
4604
|
+
return require('@asantemedia-org/edwardsvacuum-design-system/dist/assets/3697809e28f9e0fe.png').default;
|
|
4605
4605
|
} catch (error) {
|
|
4606
4606
|
console.error("Placeholder image not found in either local assets or node_modules.", error);
|
|
4607
4607
|
return ''; // Fallback empty string if no image is found
|
|
@@ -4722,7 +4722,7 @@ var Button = function (_a) {
|
|
|
4722
4722
|
label = _a.label,
|
|
4723
4723
|
props = __rest(_a, ["style", "label"]);
|
|
4724
4724
|
var mode = style ? "cmp-button--style-".concat(style) : '';
|
|
4725
|
-
return /*#__PURE__*/React.createElement("button", _extends({
|
|
4725
|
+
return /*#__PURE__*/React$1.createElement("button", _extends({
|
|
4726
4726
|
className: ['cmp-button', mode].join(' ')
|
|
4727
4727
|
}, props), label);
|
|
4728
4728
|
};
|
|
@@ -4742,7 +4742,7 @@ var DynamicHeading = function (_a) {
|
|
|
4742
4742
|
children = _a.children,
|
|
4743
4743
|
props = __rest(_a, ["titleSize", "children"]);
|
|
4744
4744
|
var Tag = ["h2", "h3", "h4", "h5", "h6"].includes(titleSize) ? titleSize : "h2";
|
|
4745
|
-
return /*#__PURE__*/React.createElement(Tag, props, children);
|
|
4745
|
+
return /*#__PURE__*/React$1.createElement(Tag, props, children);
|
|
4746
4746
|
};
|
|
4747
4747
|
var AlgoliaDynamicSearch = function (_a) {
|
|
4748
4748
|
var _b = _a.className,
|
|
@@ -4794,29 +4794,29 @@ var AlgoliaDynamicSearch = function (_a) {
|
|
|
4794
4794
|
if (!hits || hits.length === 0) {
|
|
4795
4795
|
return null;
|
|
4796
4796
|
}
|
|
4797
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
4797
|
+
return /*#__PURE__*/React$1.createElement("div", {
|
|
4798
4798
|
className: componentClassNames
|
|
4799
|
-
}, isLoadingState && /*#__PURE__*/React.createElement("div", {
|
|
4799
|
+
}, isLoadingState && /*#__PURE__*/React$1.createElement("div", {
|
|
4800
4800
|
className: styles$4.cmpAlgoliaDynamicSearchWidget__placeholder
|
|
4801
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
4801
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4802
4802
|
className: styles$4.cmpAlgoliaDynamicSearchWidget__placeholder__loading
|
|
4803
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
4803
|
+
})), /*#__PURE__*/React$1.createElement("div", {
|
|
4804
4804
|
className: styles$4.cmpAlgoliaDynamicSearchWidget__container
|
|
4805
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
4805
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4806
4806
|
className: styles$4.cmpAlgoliaDynamicSearchWidget__header
|
|
4807
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
4807
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
4808
4808
|
className: styles$4.cmpAlgoliaDynamicSearchWidget__header__text
|
|
4809
|
-
}, /*#__PURE__*/React.createElement(DynamicHeading, {
|
|
4809
|
+
}, /*#__PURE__*/React$1.createElement(DynamicHeading, {
|
|
4810
4810
|
titleSize: titleSize
|
|
4811
|
-
}, heading), /*#__PURE__*/React.createElement("p", null, subtext)), callToActionUrl && /*#__PURE__*/React.createElement("div", {
|
|
4811
|
+
}, heading), /*#__PURE__*/React$1.createElement("p", null, subtext)), callToActionUrl && /*#__PURE__*/React$1.createElement("div", {
|
|
4812
4812
|
className: styles$4.cmpAlgoliaDynamicSearchWidget__header__cta
|
|
4813
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
4813
|
+
}, /*#__PURE__*/React$1.createElement(Button, {
|
|
4814
4814
|
style: widgetStyleProps.buttonStyle,
|
|
4815
4815
|
label: callToActionText,
|
|
4816
4816
|
onClick: function () {
|
|
4817
4817
|
return window.open(callToActionUrl, "_blank", "noopener,noreferrer");
|
|
4818
4818
|
}
|
|
4819
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
4819
|
+
}))), /*#__PURE__*/React$1.createElement("div", {
|
|
4820
4820
|
className: styles$4.cmpAlgoliaDynamicSearchWidget__cards
|
|
4821
4821
|
}, hits.slice(0, maxResults).map(function (hit, index) {
|
|
4822
4822
|
var Component = Card;
|
|
@@ -4844,7 +4844,7 @@ var AlgoliaDynamicSearch = function (_a) {
|
|
|
4844
4844
|
default:
|
|
4845
4845
|
return null;
|
|
4846
4846
|
}
|
|
4847
|
-
return /*#__PURE__*/React.createElement(Component, {
|
|
4847
|
+
return /*#__PURE__*/React$1.createElement(Component, {
|
|
4848
4848
|
key: index,
|
|
4849
4849
|
className: cardClassName,
|
|
4850
4850
|
title: title,
|