@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.d.ts
CHANGED
|
@@ -6,4 +6,7 @@ export { QrForm } from "@stories/experiences/QRFormJourney/Qr-form/Qr-form";
|
|
|
6
6
|
export type { allQrFromProps } from "@stories/experiences/QRFormJourney/Qr-form/Qr-form";
|
|
7
7
|
export type { FormFieldType } from "@stories/experiences/QRFormJourney/FormFieldType";
|
|
8
8
|
export { AccordionSection } from "@stories/components/AccordionSection";
|
|
9
|
+
export { formatFacetValueAsString, isDelimitedFacetValue, parseDelimitedFacetValue } from "./utils/helpers/formatFacetValue";
|
|
10
|
+
export { FacetUnitSelector } from "./stories/components/FacetUnitSelector";
|
|
11
|
+
export { FriendlyCaptcha } from "./stories/experiences/QRFormJourney/Friendly-captcha/FriendlyCaptcha";
|
|
9
12
|
import "@stories/experiences/QRFormJourney/Qr-form/Qr-form";
|
package/dist/index.esm.js
CHANGED
|
@@ -370,6 +370,17 @@ var parseDelimitedFacetValue = function (value) {
|
|
|
370
370
|
return entry !== null;
|
|
371
371
|
});
|
|
372
372
|
};
|
|
373
|
+
/**
|
|
374
|
+
* Formats a delimited facet value into a human-readable string list
|
|
375
|
+
* Returns null if the value is not in delimited format
|
|
376
|
+
*/
|
|
377
|
+
var formatFacetValueAsString = function (value) {
|
|
378
|
+
if (!isDelimitedFacetValue(value)) return null;
|
|
379
|
+
var entries = parseDelimitedFacetValue(value);
|
|
380
|
+
return entries.map(function (e) {
|
|
381
|
+
return "".concat(e.value, " ").concat(e.unit);
|
|
382
|
+
}).join(', ');
|
|
383
|
+
};
|
|
373
384
|
|
|
374
385
|
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"};
|
|
375
386
|
|
|
@@ -1640,5 +1651,5 @@ var QrForm = function (props) {
|
|
|
1640
1651
|
})));
|
|
1641
1652
|
};
|
|
1642
1653
|
|
|
1643
|
-
export { AccordionSection, AlgoliaDynamicSearchEdwards as AlgoliaDynamicSearch, AlgoliaDynamicSearchRaw, Card, ProductCard, ProductDetailsCard, QrForm };
|
|
1654
|
+
export { AccordionSection, AlgoliaDynamicSearchEdwards as AlgoliaDynamicSearch, AlgoliaDynamicSearchRaw, Card, FacetUnitSelector, FriendlyCaptcha, ProductCard, ProductDetailsCard, QrForm, formatFacetValueAsString, isDelimitedFacetValue, parseDelimitedFacetValue };
|
|
1644
1655
|
//# sourceMappingURL=index.esm.js.map
|