@nnc-digital/nnc-design-system 1.0.0-alpha56 → 1.0.0-alpha58
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 +10 -21
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +10 -21
- package/build/index.mjs.js.map +1 -1
- package/package.json +1 -1
package/build/index.mjs.js
CHANGED
|
@@ -6668,8 +6668,7 @@ var Map$1 = function (_a) {
|
|
|
6668
6668
|
* A Google Maps marker to be placed inside a Map component
|
|
6669
6669
|
*/
|
|
6670
6670
|
var MapMarker = function (options) {
|
|
6671
|
-
var _a;
|
|
6672
|
-
var _b = React.useState(), marker = _b[0], setMarker = _b[1];
|
|
6671
|
+
var _a = React.useState(), marker = _a[0], setMarker = _a[1];
|
|
6673
6672
|
var themeContext = useContext(ThemeContext);
|
|
6674
6673
|
var icon = {
|
|
6675
6674
|
path: 'M19.7,5.6c-0.1,0-0.5,0.1-0.9,0.1c-3.3,0.4-6.5,2-8.9,4.4c-2.6,2.6-4.2,5.9-4.6,9.6c-0.1,1,0,3.1,0.1,4.1c0.3,2.1,1.1,4.2,2.3,6.6c0.9,1.6,1.6,2.9,4.2,7c0.9,1.4,1.9,3.1,2.6,4.2c2.3,3.9,4.1,7.9,5.4,11.9c0.2,0.6,0.3,0.8,0.6,0.9c0.5,0.2,1.1,0.1,1.4-0.3c0.1-0.1,0.2-0.5,0.4-0.9c1.1-3.3,2.5-6.5,4.2-9.5c1.2-2.2,2-3.6,4.4-7.4c1.7-2.7,2.3-3.6,2.9-4.8c1.6-2.9,2.5-5.3,2.9-7.8c0.2-1,0.2-3.1,0.1-4.1c-0.2-1.5-0.5-3-1-4.2c-2.1-5.2-6.8-8.9-12.4-9.8C22.9,5.6,20.2,5.5,19.7,5.6z',
|
|
@@ -6678,24 +6677,14 @@ var MapMarker = function (options) {
|
|
|
6678
6677
|
anchor: new google.maps.Point(40, 60),
|
|
6679
6678
|
labelOrigin: new google.maps.Point(21, 25),
|
|
6680
6679
|
};
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
// If label is an object, use it but ensure text property exists
|
|
6689
|
-
labelConfig = __assign$2(__assign$2({}, options.label), { text: (_a = options.label.text) !== null && _a !== void 0 ? _a : '' });
|
|
6690
|
-
}
|
|
6691
|
-
else {
|
|
6692
|
-
// If label is undefined or null, create a basic label object
|
|
6693
|
-
labelConfig = {
|
|
6694
|
-
text: '',
|
|
6695
|
-
color: 'white'
|
|
6696
|
-
};
|
|
6680
|
+
var mergedOptions = __assign$2(__assign$2({}, options), { anchorPoint: new google.maps.Point(-5, -40), icon: icon, position: options.position, title: options.title, label: options.label ?
|
|
6681
|
+
(typeof options.label === 'string' ?
|
|
6682
|
+
{ text: options.label, color: '#FFFFFF' } : __assign$2(__assign$2({}, options.label), { color: '#FFFFFF' })) : undefined });
|
|
6683
|
+
for (var key in options) {
|
|
6684
|
+
if (key !== 'label' && Object.prototype.hasOwnProperty.call(options, key)) {
|
|
6685
|
+
mergedOptions[key] = options[key];
|
|
6686
|
+
}
|
|
6697
6687
|
}
|
|
6698
|
-
var mergedOptions = __assign$2(__assign$2({}, options), { anchorPoint: new google.maps.Point(-5, -40), icon: icon, label: labelConfig, position: options.position, title: options.title });
|
|
6699
6688
|
React.useEffect(function () {
|
|
6700
6689
|
if (!marker) {
|
|
6701
6690
|
setMarker(new google.maps.Marker());
|
|
@@ -31377,7 +31366,7 @@ var DirectoryServiceList = function (_a) {
|
|
|
31377
31366
|
React.createElement(Row$1, null,
|
|
31378
31367
|
React.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
|
|
31379
31368
|
React.createElement(Label$1, { htmlFor: "directorySearch" }, "What are you looking for?"),
|
|
31380
|
-
React.createElement(HintText, { text: "Enter
|
|
31369
|
+
React.createElement(HintText, { text: "Enter the name of a specific organisation" }),
|
|
31381
31370
|
React.createElement(Input, { name: "directorySearch", type: "text", defaultValue: searchTerm, id: "directorySearch", onChange: function (e) {
|
|
31382
31371
|
setSearchTerm(e.target.value);
|
|
31383
31372
|
} })),
|
|
@@ -33282,7 +33271,7 @@ var DirectoryDocumentList = function (_a) {
|
|
|
33282
33271
|
React.createElement(Row$1, null,
|
|
33283
33272
|
React.createElement(Column, { small: "full", medium: "one-half", large: "one-third" },
|
|
33284
33273
|
React.createElement(Label, { htmlFor: "directorySearch" }, "What are you looking for?"),
|
|
33285
|
-
React.createElement(HintText, { text: "Enter
|
|
33274
|
+
React.createElement(HintText, { text: "Enter the name of a specific organisation" }),
|
|
33286
33275
|
React.createElement(Input, { name: "directorySearch", type: "text", defaultValue: searchTerm, id: "directorySearch", onChange: function (e) {
|
|
33287
33276
|
setSearchTerm(e.target.value);
|
|
33288
33277
|
} })),
|