@nnc-digital/nnc-design-system 1.0.0-alpha54 → 1.0.0-alpha56
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/build/index.js +19 -5
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +19 -5
- package/build/index.mjs.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -6691,10 +6691,24 @@ var MapMarker = function (options) {
|
|
|
6691
6691
|
anchor: new google.maps.Point(40, 60),
|
|
6692
6692
|
labelOrigin: new google.maps.Point(21, 25),
|
|
6693
6693
|
};
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6694
|
+
// Handle label configuration based on type
|
|
6695
|
+
var labelConfig;
|
|
6696
|
+
if (typeof options.label === 'string') {
|
|
6697
|
+
// If label is a string, use it directly
|
|
6698
|
+
labelConfig = options.label;
|
|
6699
|
+
}
|
|
6700
|
+
else if (options.label && typeof options.label === 'object') {
|
|
6701
|
+
// If label is an object, use it but ensure text property exists
|
|
6702
|
+
labelConfig = __assign$2(__assign$2({}, options.label), { text: (_a = options.label.text) !== null && _a !== void 0 ? _a : '' });
|
|
6703
|
+
}
|
|
6704
|
+
else {
|
|
6705
|
+
// If label is undefined or null, create a basic label object
|
|
6706
|
+
labelConfig = {
|
|
6707
|
+
text: '',
|
|
6708
|
+
color: 'white'
|
|
6709
|
+
};
|
|
6710
|
+
}
|
|
6711
|
+
var mergedOptions = __assign$2(__assign$2({}, options), { anchorPoint: new google.maps.Point(-5, -40), icon: icon, label: labelConfig, position: options.position, title: options.title });
|
|
6698
6712
|
React__default.default.useEffect(function () {
|
|
6699
6713
|
if (!marker) {
|
|
6700
6714
|
setMarker(new google.maps.Marker());
|
|
@@ -31246,7 +31260,7 @@ var RadioCheckboxInput = function (_a) {
|
|
|
31246
31260
|
};
|
|
31247
31261
|
|
|
31248
31262
|
var DirectoryServiceList = function (_a) {
|
|
31249
|
-
var directoryPath = _a.directoryPath, shortListPath = _a.shortListPath, services = _a.services, _b = _a.search, search = _b === void 0 ? '' : _b, setSearch = _a.setSearch, _c = _a.proximity, proximity = _c === void 0 ? 2 : _c, _d = _a.showPostcodeSearch, showPostcodeSearch = _d === void 0 ? true : _d, _e = _a.postcode, postcode = _e === void 0 ? '' : _e, setPostcode = _a.setPostcode, _f = _a.totalResults, totalResults = _f === void 0 ? 0 : _f, _g = _a.pageNumber, pageNumber = _g === void 0 ? 1 : _g, setPageNumber = _a.setPageNumber, _h = _a.perPage, perPage = _h === void 0 ? 5 : _h, _j = _a.extractLength, extractLength = _j === void 0 ? 300 : _j, _k = _a.categories, categories = _k === void 0 ? [] : _k, setCategories = _a.setCategories, _l = _a.minimumAge, minimumAge = _l === void 0 ? undefined : _l, setMinimumAge = _a.setMinimumAge, _m = _a.maximumAge, maximumAge = _m === void 0 ? undefined : _m, setMaximumAge = _a.setMaximumAge, _o = _a.mapCenter, mapCenter = _o === void 0 ? '52.
|
|
31263
|
+
var directoryPath = _a.directoryPath, shortListPath = _a.shortListPath, services = _a.services, _b = _a.search, search = _b === void 0 ? '' : _b, setSearch = _a.setSearch, _c = _a.proximity, proximity = _c === void 0 ? 2 : _c, _d = _a.showPostcodeSearch, showPostcodeSearch = _d === void 0 ? true : _d, _e = _a.postcode, postcode = _e === void 0 ? '' : _e, setPostcode = _a.setPostcode, _f = _a.totalResults, totalResults = _f === void 0 ? 0 : _f, _g = _a.pageNumber, pageNumber = _g === void 0 ? 1 : _g, setPageNumber = _a.setPageNumber, _h = _a.perPage, perPage = _h === void 0 ? 5 : _h, _j = _a.extractLength, extractLength = _j === void 0 ? 300 : _j, _k = _a.categories, categories = _k === void 0 ? [] : _k, setCategories = _a.setCategories, _l = _a.minimumAge, minimumAge = _l === void 0 ? undefined : _l, setMinimumAge = _a.setMinimumAge, _m = _a.maximumAge, maximumAge = _m === void 0 ? undefined : _m, setMaximumAge = _a.setMaximumAge, _o = _a.mapCenter, mapCenter = _o === void 0 ? '52.40410666556486,-0.7237065995821512' : _o, _p = _a.mapZoom, mapZoom = _p === void 0 ? 9 : _p, _q = _a.isLoading, isLoading = _q === void 0 ? false : _q, _r = _a.ageInMonths, ageInMonths = _r === void 0 ? false : _r, _s = _a.hasDocuments, hasDocuments = _s === void 0 ? false : _s, _t = _a.isError, isError = _t === void 0 ? false : _t;
|
|
31250
31264
|
var _u = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion"), []), accordions = _u[0], setAccordions = _u[1];
|
|
31251
31265
|
var _v = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-accordion-all"), true), openAll = _v[0], setOpenAll = _v[1];
|
|
31252
31266
|
var _w = useLocalStorage("".concat(directoryPath.replace(/\//g, ''), "-show-map"), false), showMap = _w[0], setShowMap = _w[1];
|