@asantemedia-org/edwardsvacuum-design-system 1.6.63 → 1.6.64
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.d.ts +3 -0
- package/dist/index.esm.js +12 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -372,6 +372,17 @@ var parseDelimitedFacetValue = function (value) {
|
|
|
372
372
|
return entry !== null;
|
|
373
373
|
});
|
|
374
374
|
};
|
|
375
|
+
/**
|
|
376
|
+
* Formats a delimited facet value into a human-readable string list
|
|
377
|
+
* Returns null if the value is not in delimited format
|
|
378
|
+
*/
|
|
379
|
+
var formatFacetValueAsString = function (value) {
|
|
380
|
+
if (!isDelimitedFacetValue(value)) return null;
|
|
381
|
+
var entries = parseDelimitedFacetValue(value);
|
|
382
|
+
return entries.map(function (e) {
|
|
383
|
+
return "".concat(e.value, " ").concat(e.unit);
|
|
384
|
+
}).join(', ');
|
|
385
|
+
};
|
|
375
386
|
|
|
376
387
|
var styles$2 = {"facet-unit-selector":"FacetUnitSelector-module__facet-unit-selector___1Zdhx","facet-unit-selector__value":"FacetUnitSelector-module__facet-unit-selector__value___E-LAN","facet-unit-selector__unit":"FacetUnitSelector-module__facet-unit-selector__unit___TxIk7","facet-unit-selector__dropdown":"FacetUnitSelector-module__facet-unit-selector__dropdown___Xj3dK"};
|
|
377
388
|
|
|
@@ -1646,7 +1657,12 @@ exports.AccordionSection = AccordionSection;
|
|
|
1646
1657
|
exports.AlgoliaDynamicSearch = AlgoliaDynamicSearchEdwards;
|
|
1647
1658
|
exports.AlgoliaDynamicSearchRaw = AlgoliaDynamicSearchRaw;
|
|
1648
1659
|
exports.Card = Card;
|
|
1660
|
+
exports.FacetUnitSelector = FacetUnitSelector;
|
|
1661
|
+
exports.FriendlyCaptcha = FriendlyCaptcha;
|
|
1649
1662
|
exports.ProductCard = ProductCard;
|
|
1650
1663
|
exports.ProductDetailsCard = ProductDetailsCard;
|
|
1651
1664
|
exports.QrForm = QrForm;
|
|
1665
|
+
exports.formatFacetValueAsString = formatFacetValueAsString;
|
|
1666
|
+
exports.isDelimitedFacetValue = isDelimitedFacetValue;
|
|
1667
|
+
exports.parseDelimitedFacetValue = parseDelimitedFacetValue;
|
|
1652
1668
|
//# sourceMappingURL=index.js.map
|