oa-componentbook 0.18.60 → 0.18.61
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.
|
@@ -30,10 +30,11 @@ const items = [{
|
|
|
30
30
|
key: '3'
|
|
31
31
|
}];
|
|
32
32
|
function CustomDropdown(_ref) {
|
|
33
|
+
var _displayText$split;
|
|
33
34
|
let {
|
|
34
35
|
displayText
|
|
35
36
|
} = _ref;
|
|
36
|
-
const firstLetter = displayText === null ||
|
|
37
|
+
const firstLetter = ((_displayText$split = displayText.split(' ')) === null || _displayText$split === void 0 || (_displayText$split = _displayText$split[1]) === null || _displayText$split === void 0 ? void 0 : _displayText$split.charAt(0).toUpperCase()) || ''; // Extract the first letter
|
|
37
38
|
|
|
38
39
|
return /*#__PURE__*/_react.default.createElement(_antd.ConfigProvider, {
|
|
39
40
|
theme: {
|
|
@@ -26,13 +26,6 @@ function GoogleRating(_ref) {
|
|
|
26
26
|
}), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
27
27
|
color: "primary-content",
|
|
28
28
|
className: "type-b2-400"
|
|
29
|
-
}, textContent), ' ')), /*#__PURE__*/_react.default.createElement("section", null, materialIcon && /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
|
|
30
|
-
color: iconColor,
|
|
31
|
-
icon: materialIcon,
|
|
32
|
-
size: iconSize
|
|
33
|
-
}), /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
34
|
-
color: "primary-content",
|
|
35
|
-
className: "type-b2-400"
|
|
36
29
|
}, textContent), ' ')));
|
|
37
30
|
}
|
|
38
31
|
GoogleRating.propTypes = {
|
|
@@ -49,15 +49,7 @@ function LocationAccessWidget(_ref) {
|
|
|
49
49
|
}, locationAccessDescription)), showOrHideTypography && /*#__PURE__*/_react.default.createElement("li", null, /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement("hr", null), /*#__PURE__*/_react.default.createElement("small", null, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
50
50
|
typography: "type-b1-400",
|
|
51
51
|
color: "primary-content"
|
|
52
|
-
}), ' ', "or")))),
|
|
53
|
-
typography: "type-t1-500",
|
|
54
|
-
color: "primary-content"
|
|
55
|
-
}, "Click and drag the map to adjust location pin")), /*#__PURE__*/_react.default.createElement("aside", null, /*#__PURE__*/_react.default.createElement(_CustomInfo.default, {
|
|
56
|
-
description: "Candor Techspace, Sector 48, Gurugram, Tikri, Sector 48, Gurugram, Haryana, 122011",
|
|
57
|
-
color: "white-background",
|
|
58
|
-
buttonConfig: buttonConfig,
|
|
59
|
-
iconConfig: iconConfigInfo
|
|
60
|
-
}))), buttonLabel && /*#__PURE__*/_react.default.createElement(_CustomButton.default, {
|
|
52
|
+
}), ' ', "or")))), buttonLabel && /*#__PURE__*/_react.default.createElement(_CustomButton.default, {
|
|
61
53
|
size: "large",
|
|
62
54
|
label: buttonLabel,
|
|
63
55
|
onClick: onClick
|