@open-condo/ui 1.5.0 → 1.6.0
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/components/Banner/banner.d.ts +12 -0
- package/dist/components/Banner/banner.d.ts.map +1 -0
- package/dist/components/Banner/index.d.ts +5 -0
- package/dist/components/Banner/index.d.ts.map +1 -0
- package/dist/components/Button/button.d.ts +1 -0
- package/dist/components/Button/button.d.ts.map +1 -1
- package/dist/components/Typography/title.d.ts +2 -2
- package/dist/components/_utils/analytics.d.ts +4 -0
- package/dist/components/_utils/analytics.d.ts.map +1 -1
- package/dist/components/_utils/hooks/index.d.ts +2 -0
- package/dist/components/_utils/hooks/index.d.ts.map +1 -0
- package/dist/components/_utils/hooks/useSize.d.ts +8 -0
- package/dist/components/_utils/hooks/useSize.d.ts.map +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +398 -253
- package/dist/styles.css +490 -340
- package/dist/styles.min.css +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -45628,6 +45628,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
45628
45628
|
|
|
45629
45629
|
// EXPORTS
|
|
45630
45630
|
__webpack_require__.d(__webpack_exports__, {
|
|
45631
|
+
"Banner": function() { return /* reexport */ Banner; },
|
|
45631
45632
|
"Button": function() { return /* reexport */ button_Button; },
|
|
45632
45633
|
"Carousel": function() { return /* reexport */ carousel_Carousel; },
|
|
45633
45634
|
"Markdown": function() { return /* reexport */ Markdown; },
|
|
@@ -46803,7 +46804,7 @@ var node_modules_classnames_default_0 = /*#__PURE__*/__webpack_require__.n(node_
|
|
|
46803
46804
|
var lodash_isString = __webpack_require__(85505);
|
|
46804
46805
|
var isString_default = /*#__PURE__*/__webpack_require__.n(lodash_isString);
|
|
46805
46806
|
;// CONCATENATED MODULE: ./package.json
|
|
46806
|
-
var package_namespaceObject = {"i8":"1.
|
|
46807
|
+
var package_namespaceObject = {"i8":"1.6.0"};
|
|
46807
46808
|
;// CONCATENATED MODULE: ./src/components/_utils/analytics.ts
|
|
46808
46809
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
46809
46810
|
|
|
@@ -46832,7 +46833,7 @@ function sendAnalyticsClickEvent(component, data) {
|
|
|
46832
46833
|
}
|
|
46833
46834
|
}
|
|
46834
46835
|
;// CONCATENATED MODULE: ./src/components/Button/button.tsx
|
|
46835
|
-
var button_excluded = ["type", "className", "icon", "children", "onClick"];
|
|
46836
|
+
var button_excluded = ["type", "className", "icon", "children", "onClick", "stateless"];
|
|
46836
46837
|
|
|
46837
46838
|
function button_extends() { button_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return button_extends.apply(this, arguments); }
|
|
46838
46839
|
|
|
@@ -46849,28 +46850,32 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
46849
46850
|
|
|
46850
46851
|
var BUTTON_CLASS_PREFIX = 'condo-btn';
|
|
46851
46852
|
var button_Button = /*#__PURE__*/external_react_default().forwardRef(function (props, ref) {
|
|
46853
|
+
var _classNames;
|
|
46854
|
+
|
|
46852
46855
|
var type = props.type,
|
|
46853
46856
|
className = props.className,
|
|
46854
46857
|
icon = props.icon,
|
|
46855
46858
|
children = props.children,
|
|
46856
46859
|
onClick = props.onClick,
|
|
46860
|
+
stateless = props.stateless,
|
|
46857
46861
|
rest = _objectWithoutProperties(props, button_excluded);
|
|
46858
46862
|
|
|
46859
|
-
var classes = node_modules_classnames_default_0()(
|
|
46863
|
+
var classes = node_modules_classnames_default_0()((_classNames = {}, button_defineProperty(_classNames, "".concat(BUTTON_CLASS_PREFIX, "-").concat(type), type), button_defineProperty(_classNames, "".concat(BUTTON_CLASS_PREFIX, "-stateless"), stateless), _classNames), className);
|
|
46860
46864
|
var wrappedIcon = icon ? /*#__PURE__*/external_react_default().createElement("span", {
|
|
46861
46865
|
className: "".concat(BUTTON_CLASS_PREFIX, "-icon")
|
|
46862
46866
|
}, icon) : null;
|
|
46863
46867
|
var handleClick = (0,external_react_.useCallback)(function (event) {
|
|
46864
46868
|
if (isString_default()(children)) {
|
|
46865
46869
|
sendAnalyticsClickEvent('Button', {
|
|
46866
|
-
value: children
|
|
46870
|
+
value: children,
|
|
46871
|
+
type: type
|
|
46867
46872
|
});
|
|
46868
46873
|
}
|
|
46869
46874
|
|
|
46870
46875
|
if (onClick) {
|
|
46871
46876
|
onClick(event);
|
|
46872
46877
|
}
|
|
46873
|
-
}, [children, onClick]);
|
|
46878
|
+
}, [children, onClick, type]);
|
|
46874
46879
|
return /*#__PURE__*/external_react_default().createElement(es_button, button_extends({}, rest, {
|
|
46875
46880
|
icon: wrappedIcon,
|
|
46876
46881
|
prefixCls: BUTTON_CLASS_PREFIX,
|
|
@@ -46888,6 +46893,294 @@ button_Button.displayName = 'Button';
|
|
|
46888
46893
|
|
|
46889
46894
|
|
|
46890
46895
|
|
|
46896
|
+
// EXTERNAL MODULE: ./node_modules/antd/lib/typography/Base/index.js
|
|
46897
|
+
var Base = __webpack_require__(28460);
|
|
46898
|
+
;// CONCATENATED MODULE: ./src/components/Typography/constants.ts
|
|
46899
|
+
var TYPOGRAPHY_CLASS_PREFIX = 'condo-typography';
|
|
46900
|
+
var TEXT_SIZES = (/* unused pure expression or super */ null && (['large', 'medium', 'small']));
|
|
46901
|
+
var TEXT_TYPES = (/* unused pure expression or super */ null && (['secondary', 'inverted', 'danger', 'warning', 'info', 'success']));
|
|
46902
|
+
;// CONCATENATED MODULE: ./src/components/Typography/title.tsx
|
|
46903
|
+
var title_excluded = ["level", "type"];
|
|
46904
|
+
|
|
46905
|
+
function title_extends() { title_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return title_extends.apply(this, arguments); }
|
|
46906
|
+
|
|
46907
|
+
function title_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
46908
|
+
|
|
46909
|
+
function title_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = title_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
46910
|
+
|
|
46911
|
+
function title_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
46912
|
+
|
|
46913
|
+
|
|
46914
|
+
|
|
46915
|
+
|
|
46916
|
+
|
|
46917
|
+
var Title = /*#__PURE__*/external_react_default().forwardRef(function (props, ref) {
|
|
46918
|
+
var _props$level = props.level,
|
|
46919
|
+
level = _props$level === void 0 ? 1 : _props$level,
|
|
46920
|
+
type = props.type,
|
|
46921
|
+
rest = title_objectWithoutProperties(props, title_excluded);
|
|
46922
|
+
|
|
46923
|
+
var className = node_modules_classnames_default_0()(title_defineProperty({}, "".concat(TYPOGRAPHY_CLASS_PREFIX, "-").concat(type), type)); // NOTE: Used wrapper destructuring to explicitly pass component props, which is marked as internal in antd
|
|
46924
|
+
|
|
46925
|
+
var componentProps = {
|
|
46926
|
+
component: "h".concat(level)
|
|
46927
|
+
};
|
|
46928
|
+
return /*#__PURE__*/external_react_default().createElement(Base/* default */.Z, title_extends({}, rest, {
|
|
46929
|
+
prefixCls: TYPOGRAPHY_CLASS_PREFIX,
|
|
46930
|
+
ref: ref,
|
|
46931
|
+
className: className
|
|
46932
|
+
}, componentProps));
|
|
46933
|
+
});
|
|
46934
|
+
Title.displayName = 'Typography.Title';
|
|
46935
|
+
|
|
46936
|
+
;// CONCATENATED MODULE: ./src/components/Typography/text.tsx
|
|
46937
|
+
var text_excluded = ["type", "size"];
|
|
46938
|
+
|
|
46939
|
+
function text_extends() { text_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return text_extends.apply(this, arguments); }
|
|
46940
|
+
|
|
46941
|
+
function text_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
46942
|
+
|
|
46943
|
+
function text_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = text_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
46944
|
+
|
|
46945
|
+
function text_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
46946
|
+
|
|
46947
|
+
|
|
46948
|
+
|
|
46949
|
+
|
|
46950
|
+
|
|
46951
|
+
var Text = /*#__PURE__*/external_react_default().forwardRef(function (props, ref) {
|
|
46952
|
+
var _classNames;
|
|
46953
|
+
|
|
46954
|
+
var type = props.type,
|
|
46955
|
+
_props$size = props.size,
|
|
46956
|
+
size = _props$size === void 0 ? 'lg' : _props$size,
|
|
46957
|
+
rest = text_objectWithoutProperties(props, text_excluded);
|
|
46958
|
+
|
|
46959
|
+
var className = node_modules_classnames_default_0()((_classNames = {}, text_defineProperty(_classNames, "".concat(TYPOGRAPHY_CLASS_PREFIX, "-").concat(type), type), text_defineProperty(_classNames, "".concat(TYPOGRAPHY_CLASS_PREFIX, "-").concat(size), size), _classNames)); // NOTE: Used wrapper destructuring to explicitly pass component props, which is marked as internal in antd
|
|
46960
|
+
|
|
46961
|
+
var componentProps = {
|
|
46962
|
+
component: 'span'
|
|
46963
|
+
};
|
|
46964
|
+
return /*#__PURE__*/external_react_default().createElement(Base/* default */.Z, text_extends({}, rest, {
|
|
46965
|
+
prefixCls: TYPOGRAPHY_CLASS_PREFIX,
|
|
46966
|
+
ref: ref,
|
|
46967
|
+
className: className
|
|
46968
|
+
}, componentProps));
|
|
46969
|
+
});
|
|
46970
|
+
Text.displayName = 'Typography.Text';
|
|
46971
|
+
|
|
46972
|
+
;// CONCATENATED MODULE: ./src/components/Typography/link.tsx
|
|
46973
|
+
function link_extends() { link_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return link_extends.apply(this, arguments); }
|
|
46974
|
+
|
|
46975
|
+
function link_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
46976
|
+
|
|
46977
|
+
|
|
46978
|
+
|
|
46979
|
+
|
|
46980
|
+
|
|
46981
|
+
var Link = /*#__PURE__*/external_react_default().forwardRef(function (props, ref) {
|
|
46982
|
+
var size = props.size;
|
|
46983
|
+
var className = node_modules_classnames_default_0()(link_defineProperty({}, "".concat(TYPOGRAPHY_CLASS_PREFIX, "-").concat(size), size)); // NOTE: Used wrapper destructuring to explicitly pass component props, which is marked as internal in antd
|
|
46984
|
+
|
|
46985
|
+
var componentProps = {
|
|
46986
|
+
component: 'a'
|
|
46987
|
+
};
|
|
46988
|
+
return /*#__PURE__*/external_react_default().createElement(Base/* default */.Z, link_extends({}, props, {
|
|
46989
|
+
className: className,
|
|
46990
|
+
prefixCls: TYPOGRAPHY_CLASS_PREFIX,
|
|
46991
|
+
ref: ref
|
|
46992
|
+
}, componentProps));
|
|
46993
|
+
});
|
|
46994
|
+
Link.displayName = 'Typography.Link';
|
|
46995
|
+
|
|
46996
|
+
;// CONCATENATED MODULE: ./src/components/Typography/paragraph.tsx
|
|
46997
|
+
var paragraph_excluded = ["type", "size"];
|
|
46998
|
+
|
|
46999
|
+
function paragraph_extends() { paragraph_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return paragraph_extends.apply(this, arguments); }
|
|
47000
|
+
|
|
47001
|
+
function paragraph_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
47002
|
+
|
|
47003
|
+
function paragraph_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = paragraph_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
47004
|
+
|
|
47005
|
+
function paragraph_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
47006
|
+
|
|
47007
|
+
|
|
47008
|
+
|
|
47009
|
+
|
|
47010
|
+
|
|
47011
|
+
var Paragraph = /*#__PURE__*/external_react_default().forwardRef(function (props, ref) {
|
|
47012
|
+
var _classNames;
|
|
47013
|
+
|
|
47014
|
+
var type = props.type,
|
|
47015
|
+
_props$size = props.size,
|
|
47016
|
+
size = _props$size === void 0 ? 'lg' : _props$size,
|
|
47017
|
+
rest = paragraph_objectWithoutProperties(props, paragraph_excluded);
|
|
47018
|
+
|
|
47019
|
+
var className = node_modules_classnames_default_0()((_classNames = {}, paragraph_defineProperty(_classNames, "".concat(TYPOGRAPHY_CLASS_PREFIX, "-").concat(type), type), paragraph_defineProperty(_classNames, "".concat(TYPOGRAPHY_CLASS_PREFIX, "-").concat(size), size), _classNames)); // NOTE: Used wrapper destructuring to explicitly pass component props, which is marked as internal in antd
|
|
47020
|
+
|
|
47021
|
+
var componentProps = {
|
|
47022
|
+
component: 'div'
|
|
47023
|
+
};
|
|
47024
|
+
return /*#__PURE__*/external_react_default().createElement(Base/* default */.Z, paragraph_extends({}, rest, {
|
|
47025
|
+
prefixCls: TYPOGRAPHY_CLASS_PREFIX,
|
|
47026
|
+
ref: ref,
|
|
47027
|
+
className: className
|
|
47028
|
+
}, componentProps));
|
|
47029
|
+
});
|
|
47030
|
+
Paragraph.displayName = 'Typography.Paragraph';
|
|
47031
|
+
|
|
47032
|
+
;// CONCATENATED MODULE: ./src/components/Typography/index.ts
|
|
47033
|
+
|
|
47034
|
+
|
|
47035
|
+
|
|
47036
|
+
|
|
47037
|
+
|
|
47038
|
+
var Typography = {
|
|
47039
|
+
Text: Text,
|
|
47040
|
+
Title: Title,
|
|
47041
|
+
Link: Link,
|
|
47042
|
+
Paragraph: Paragraph
|
|
47043
|
+
};
|
|
47044
|
+
|
|
47045
|
+
;// CONCATENATED MODULE: ./src/components/_utils/hooks/useSize.ts
|
|
47046
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
47047
|
+
|
|
47048
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
47049
|
+
|
|
47050
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
47051
|
+
|
|
47052
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
47053
|
+
|
|
47054
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
47055
|
+
|
|
47056
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
47057
|
+
|
|
47058
|
+
|
|
47059
|
+
var useSize = function useSize(ref) {
|
|
47060
|
+
var _useState = (0,external_react_.useState)({
|
|
47061
|
+
width: 1200,
|
|
47062
|
+
height: 1000
|
|
47063
|
+
}),
|
|
47064
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
47065
|
+
size = _useState2[0],
|
|
47066
|
+
setSize = _useState2[1];
|
|
47067
|
+
|
|
47068
|
+
(0,external_react_.useEffect)(function () {
|
|
47069
|
+
if (!ref || !ref.current) return;
|
|
47070
|
+
var observer = new ResizeObserver(function (entries) {
|
|
47071
|
+
if (entries.length == 1) {
|
|
47072
|
+
var entry = entries[0];
|
|
47073
|
+
setSize({
|
|
47074
|
+
width: entry.contentRect.width,
|
|
47075
|
+
height: entry.contentRect.height
|
|
47076
|
+
});
|
|
47077
|
+
}
|
|
47078
|
+
});
|
|
47079
|
+
observer.observe(ref.current);
|
|
47080
|
+
return function () {
|
|
47081
|
+
return observer.disconnect();
|
|
47082
|
+
};
|
|
47083
|
+
}, [ref]);
|
|
47084
|
+
return size;
|
|
47085
|
+
};
|
|
47086
|
+
;// CONCATENATED MODULE: ./src/components/_utils/hooks/index.ts
|
|
47087
|
+
|
|
47088
|
+
;// CONCATENATED MODULE: ./src/components/Banner/banner.tsx
|
|
47089
|
+
function banner_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
47090
|
+
|
|
47091
|
+
|
|
47092
|
+
|
|
47093
|
+
|
|
47094
|
+
|
|
47095
|
+
|
|
47096
|
+
|
|
47097
|
+
// NOTE: Some ad blockers block elements containing "banner" in classes
|
|
47098
|
+
var CLASS_PREFIX = 'condo-promo-block';
|
|
47099
|
+
var LG_BARRIER = 875;
|
|
47100
|
+
var MD_BARRIER = 740;
|
|
47101
|
+
var SM_BARRIER = 460;
|
|
47102
|
+
var X_SM_BARRIER = 400;
|
|
47103
|
+
|
|
47104
|
+
var getSize = function getSize(width) {
|
|
47105
|
+
if (width < X_SM_BARRIER) {
|
|
47106
|
+
return 'xxs';
|
|
47107
|
+
} else if (width < SM_BARRIER) {
|
|
47108
|
+
return 'xs';
|
|
47109
|
+
} else if (width < MD_BARRIER) {
|
|
47110
|
+
return 'sm';
|
|
47111
|
+
} else if (width < LG_BARRIER) {
|
|
47112
|
+
return 'md';
|
|
47113
|
+
} else {
|
|
47114
|
+
return 'lg';
|
|
47115
|
+
}
|
|
47116
|
+
};
|
|
47117
|
+
|
|
47118
|
+
var Banner = function Banner(_ref) {
|
|
47119
|
+
var _classNames, _classNames2;
|
|
47120
|
+
|
|
47121
|
+
var backgroundColor = _ref.backgroundColor,
|
|
47122
|
+
actionText = _ref.actionText,
|
|
47123
|
+
onClick = _ref.onClick,
|
|
47124
|
+
title = _ref.title,
|
|
47125
|
+
subtitle = _ref.subtitle,
|
|
47126
|
+
imgUrl = _ref.imgUrl,
|
|
47127
|
+
invertText = _ref.invertText;
|
|
47128
|
+
var ref = (0,external_react_.useRef)(null);
|
|
47129
|
+
|
|
47130
|
+
var _useSize = useSize(ref),
|
|
47131
|
+
width = _useSize.width;
|
|
47132
|
+
|
|
47133
|
+
var showImage = imgUrl && width >= MD_BARRIER;
|
|
47134
|
+
var bannerClasses = node_modules_classnames_default_0()((_classNames = {}, banner_defineProperty(_classNames, "".concat(CLASS_PREFIX), true), banner_defineProperty(_classNames, "".concat(CLASS_PREFIX, "-no-image"), !showImage), _classNames));
|
|
47135
|
+
var contentContainerClasses = node_modules_classnames_default_0()((_classNames2 = {}, banner_defineProperty(_classNames2, "".concat(CLASS_PREFIX, "-content-container"), true), banner_defineProperty(_classNames2, "".concat(CLASS_PREFIX, "-content-container-").concat(getSize(width)), getSize(width)), _classNames2));
|
|
47136
|
+
var titleLevel = width >= LG_BARRIER || width < MD_BARRIER && width >= SM_BARRIER ? 2 : 3;
|
|
47137
|
+
var textSize = width >= LG_BARRIER || width < MD_BARRIER ? 'large' : 'medium';
|
|
47138
|
+
var handleClick = (0,external_react_.useCallback)(function (event) {
|
|
47139
|
+
sendAnalyticsClickEvent('Banner', {
|
|
47140
|
+
title: title
|
|
47141
|
+
});
|
|
47142
|
+
|
|
47143
|
+
if (onClick) {
|
|
47144
|
+
onClick(event);
|
|
47145
|
+
}
|
|
47146
|
+
}, [title, onClick]);
|
|
47147
|
+
return /*#__PURE__*/external_react_default().createElement("div", {
|
|
47148
|
+
className: bannerClasses,
|
|
47149
|
+
style: {
|
|
47150
|
+
background: backgroundColor
|
|
47151
|
+
},
|
|
47152
|
+
onClick: handleClick,
|
|
47153
|
+
ref: ref
|
|
47154
|
+
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
47155
|
+
className: contentContainerClasses
|
|
47156
|
+
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
47157
|
+
className: "".concat(CLASS_PREFIX, "-text-container")
|
|
47158
|
+
}, /*#__PURE__*/external_react_default().createElement(Typography.Title, {
|
|
47159
|
+
type: invertText ? 'inverted' : undefined,
|
|
47160
|
+
level: titleLevel,
|
|
47161
|
+
ellipsis: {
|
|
47162
|
+
rows: 3
|
|
47163
|
+
}
|
|
47164
|
+
}, title), /*#__PURE__*/external_react_default().createElement(Typography.Paragraph, {
|
|
47165
|
+
type: invertText ? 'inverted' : undefined,
|
|
47166
|
+
ellipsis: {
|
|
47167
|
+
rows: 3
|
|
47168
|
+
},
|
|
47169
|
+
size: textSize
|
|
47170
|
+
}, subtitle)), /*#__PURE__*/external_react_default().createElement(button_Button, {
|
|
47171
|
+
type: "primary",
|
|
47172
|
+
stateless: true
|
|
47173
|
+
}, actionText)), imgUrl && width > MD_BARRIER && /*#__PURE__*/external_react_default().createElement("div", {
|
|
47174
|
+
className: "".concat(CLASS_PREFIX, "-image-container")
|
|
47175
|
+
}, /*#__PURE__*/external_react_default().createElement("img", {
|
|
47176
|
+
src: imgUrl,
|
|
47177
|
+
alt: "promo-image"
|
|
47178
|
+
})));
|
|
47179
|
+
};
|
|
47180
|
+
;// CONCATENATED MODULE: ./src/components/Banner/index.ts
|
|
47181
|
+
|
|
47182
|
+
|
|
47183
|
+
|
|
46891
47184
|
;// CONCATENATED MODULE: ../../node_modules/@ant-design/react-slick/es/initial-state.js
|
|
46892
47185
|
var initialState = {
|
|
46893
47186
|
animating: false,
|
|
@@ -49559,7 +49852,98 @@ var carousel_Carousel = function Carousel(props) {
|
|
|
49559
49852
|
}, child);
|
|
49560
49853
|
}));
|
|
49561
49854
|
};
|
|
49562
|
-
;// CONCATENATED MODULE: ./src/components/Carousel/index.ts
|
|
49855
|
+
;// CONCATENATED MODULE: ./src/components/Carousel/index.ts
|
|
49856
|
+
|
|
49857
|
+
|
|
49858
|
+
|
|
49859
|
+
// EXTERNAL MODULE: ./node_modules/react-markdown/src/react-markdown.js
|
|
49860
|
+
var react_markdown = __webpack_require__(38456);
|
|
49861
|
+
var react_markdown_default = /*#__PURE__*/__webpack_require__.n(react_markdown);
|
|
49862
|
+
// EXTERNAL MODULE: ../../node_modules/remark-gfm/index.js
|
|
49863
|
+
var remark_gfm = __webpack_require__(40940);
|
|
49864
|
+
var remark_gfm_default = /*#__PURE__*/__webpack_require__.n(remark_gfm);
|
|
49865
|
+
// EXTERNAL MODULE: ../../node_modules/lodash/omit.js
|
|
49866
|
+
var lodash_omit = __webpack_require__(17620);
|
|
49867
|
+
var omit_default = /*#__PURE__*/__webpack_require__.n(lodash_omit);
|
|
49868
|
+
;// CONCATENATED MODULE: ./src/components/Markdown/markdown.tsx
|
|
49869
|
+
var markdown_excluded = ["children"];
|
|
49870
|
+
|
|
49871
|
+
function markdown_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = markdown_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
49872
|
+
|
|
49873
|
+
function markdown_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
49874
|
+
|
|
49875
|
+
function markdown_extends() { markdown_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return markdown_extends.apply(this, arguments); }
|
|
49876
|
+
|
|
49877
|
+
|
|
49878
|
+
|
|
49879
|
+
|
|
49880
|
+
|
|
49881
|
+
|
|
49882
|
+
var REMARK_PLUGINS = [(remark_gfm_default())];
|
|
49883
|
+
var MARKDOWN_CLASS_PREFIX = 'condo-markdown';
|
|
49884
|
+
var Markdown = function Markdown(_ref) {
|
|
49885
|
+
var children = _ref.children;
|
|
49886
|
+
return /*#__PURE__*/external_react_default().createElement((react_markdown_default()), {
|
|
49887
|
+
className: MARKDOWN_CLASS_PREFIX,
|
|
49888
|
+
remarkPlugins: REMARK_PLUGINS,
|
|
49889
|
+
components: {
|
|
49890
|
+
h1: function h1(props) {
|
|
49891
|
+
return /*#__PURE__*/external_react_default().createElement(Typography.Title, markdown_extends({}, omit_default()(props, 'ref'), {
|
|
49892
|
+
level: 1
|
|
49893
|
+
}));
|
|
49894
|
+
},
|
|
49895
|
+
h2: function h2(props) {
|
|
49896
|
+
return /*#__PURE__*/external_react_default().createElement(Typography.Title, markdown_extends({}, omit_default()(props, 'ref'), {
|
|
49897
|
+
level: 2
|
|
49898
|
+
}));
|
|
49899
|
+
},
|
|
49900
|
+
h3: function h3(props) {
|
|
49901
|
+
return /*#__PURE__*/external_react_default().createElement(Typography.Title, markdown_extends({}, omit_default()(props, 'ref'), {
|
|
49902
|
+
level: 3
|
|
49903
|
+
}));
|
|
49904
|
+
},
|
|
49905
|
+
h4: function h4(props) {
|
|
49906
|
+
return /*#__PURE__*/external_react_default().createElement(Typography.Title, markdown_extends({}, omit_default()(props, 'ref'), {
|
|
49907
|
+
level: 4
|
|
49908
|
+
}));
|
|
49909
|
+
},
|
|
49910
|
+
h5: function h5(props) {
|
|
49911
|
+
return /*#__PURE__*/external_react_default().createElement(Typography.Title, markdown_extends({}, omit_default()(props, 'ref'), {
|
|
49912
|
+
level: 5
|
|
49913
|
+
}));
|
|
49914
|
+
},
|
|
49915
|
+
h6: function h6(props) {
|
|
49916
|
+
return /*#__PURE__*/external_react_default().createElement(Typography.Title, markdown_extends({}, omit_default()(props, 'ref'), {
|
|
49917
|
+
level: 6
|
|
49918
|
+
}));
|
|
49919
|
+
},
|
|
49920
|
+
p: function p(props) {
|
|
49921
|
+
return /*#__PURE__*/external_react_default().createElement(Typography.Paragraph, markdown_extends({}, omit_default()(props, 'ref'), {
|
|
49922
|
+
type: "secondary"
|
|
49923
|
+
}));
|
|
49924
|
+
},
|
|
49925
|
+
a: function a(props) {
|
|
49926
|
+
return /*#__PURE__*/external_react_default().createElement(Typography.Link, markdown_extends({}, omit_default()(props, 'ref'), {
|
|
49927
|
+
target: "_blank"
|
|
49928
|
+
}));
|
|
49929
|
+
},
|
|
49930
|
+
code: function code(props) {
|
|
49931
|
+
return /*#__PURE__*/external_react_default().createElement(Typography.Text, markdown_extends({}, omit_default()(props, 'ref'), {
|
|
49932
|
+
code: true
|
|
49933
|
+
}));
|
|
49934
|
+
},
|
|
49935
|
+
li: function li(_ref2) {
|
|
49936
|
+
var children = _ref2.children,
|
|
49937
|
+
restProps = markdown_objectWithoutProperties(_ref2, markdown_excluded);
|
|
49938
|
+
|
|
49939
|
+
return /*#__PURE__*/external_react_default().createElement("li", restProps, /*#__PURE__*/external_react_default().createElement(Typography.Text, {
|
|
49940
|
+
type: "secondary"
|
|
49941
|
+
}, children));
|
|
49942
|
+
}
|
|
49943
|
+
}
|
|
49944
|
+
}, children);
|
|
49945
|
+
};
|
|
49946
|
+
;// CONCATENATED MODULE: ./src/components/Markdown/index.ts
|
|
49563
49947
|
|
|
49564
49948
|
|
|
49565
49949
|
|
|
@@ -53633,155 +54017,6 @@ es_modal_Modal.destroyAll = function destroyAllFn() {
|
|
|
53633
54017
|
};
|
|
53634
54018
|
es_modal_Modal.config = modalGlobalConfig;
|
|
53635
54019
|
/* harmony default export */ var modal = (es_modal_Modal);
|
|
53636
|
-
// EXTERNAL MODULE: ./node_modules/antd/lib/typography/Base/index.js
|
|
53637
|
-
var Base = __webpack_require__(28460);
|
|
53638
|
-
;// CONCATENATED MODULE: ./src/components/Typography/constants.ts
|
|
53639
|
-
var TYPOGRAPHY_CLASS_PREFIX = 'condo-typography';
|
|
53640
|
-
var TEXT_SIZES = (/* unused pure expression or super */ null && (['large', 'medium', 'small']));
|
|
53641
|
-
var TEXT_TYPES = (/* unused pure expression or super */ null && (['secondary', 'inverted', 'danger', 'warning', 'info', 'success']));
|
|
53642
|
-
;// CONCATENATED MODULE: ./src/components/Typography/title.tsx
|
|
53643
|
-
var title_excluded = ["level", "type"];
|
|
53644
|
-
|
|
53645
|
-
function title_extends() { title_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return title_extends.apply(this, arguments); }
|
|
53646
|
-
|
|
53647
|
-
function title_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
53648
|
-
|
|
53649
|
-
function title_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = title_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
53650
|
-
|
|
53651
|
-
function title_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
53652
|
-
|
|
53653
|
-
|
|
53654
|
-
|
|
53655
|
-
|
|
53656
|
-
|
|
53657
|
-
var Title = /*#__PURE__*/external_react_default().forwardRef(function (props, ref) {
|
|
53658
|
-
var _props$level = props.level,
|
|
53659
|
-
level = _props$level === void 0 ? 1 : _props$level,
|
|
53660
|
-
type = props.type,
|
|
53661
|
-
rest = title_objectWithoutProperties(props, title_excluded);
|
|
53662
|
-
|
|
53663
|
-
var className = node_modules_classnames_default_0()(title_defineProperty({}, "".concat(TYPOGRAPHY_CLASS_PREFIX, "-").concat(type), type)); // NOTE: Used wrapper destructuring to explicitly pass component props, which is marked as internal in antd
|
|
53664
|
-
|
|
53665
|
-
var componentProps = {
|
|
53666
|
-
component: "h".concat(level)
|
|
53667
|
-
};
|
|
53668
|
-
return /*#__PURE__*/external_react_default().createElement(Base/* default */.Z, title_extends({}, rest, {
|
|
53669
|
-
prefixCls: TYPOGRAPHY_CLASS_PREFIX,
|
|
53670
|
-
ref: ref,
|
|
53671
|
-
className: className
|
|
53672
|
-
}, componentProps));
|
|
53673
|
-
});
|
|
53674
|
-
Title.displayName = 'Typography.Title';
|
|
53675
|
-
|
|
53676
|
-
;// CONCATENATED MODULE: ./src/components/Typography/text.tsx
|
|
53677
|
-
var text_excluded = ["type", "size"];
|
|
53678
|
-
|
|
53679
|
-
function text_extends() { text_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return text_extends.apply(this, arguments); }
|
|
53680
|
-
|
|
53681
|
-
function text_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
53682
|
-
|
|
53683
|
-
function text_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = text_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
53684
|
-
|
|
53685
|
-
function text_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
53686
|
-
|
|
53687
|
-
|
|
53688
|
-
|
|
53689
|
-
|
|
53690
|
-
|
|
53691
|
-
var Text = /*#__PURE__*/external_react_default().forwardRef(function (props, ref) {
|
|
53692
|
-
var _classNames;
|
|
53693
|
-
|
|
53694
|
-
var type = props.type,
|
|
53695
|
-
_props$size = props.size,
|
|
53696
|
-
size = _props$size === void 0 ? 'lg' : _props$size,
|
|
53697
|
-
rest = text_objectWithoutProperties(props, text_excluded);
|
|
53698
|
-
|
|
53699
|
-
var className = node_modules_classnames_default_0()((_classNames = {}, text_defineProperty(_classNames, "".concat(TYPOGRAPHY_CLASS_PREFIX, "-").concat(type), type), text_defineProperty(_classNames, "".concat(TYPOGRAPHY_CLASS_PREFIX, "-").concat(size), size), _classNames)); // NOTE: Used wrapper destructuring to explicitly pass component props, which is marked as internal in antd
|
|
53700
|
-
|
|
53701
|
-
var componentProps = {
|
|
53702
|
-
component: 'span'
|
|
53703
|
-
};
|
|
53704
|
-
return /*#__PURE__*/external_react_default().createElement(Base/* default */.Z, text_extends({}, rest, {
|
|
53705
|
-
prefixCls: TYPOGRAPHY_CLASS_PREFIX,
|
|
53706
|
-
ref: ref,
|
|
53707
|
-
className: className
|
|
53708
|
-
}, componentProps));
|
|
53709
|
-
});
|
|
53710
|
-
Text.displayName = 'Typography.Text';
|
|
53711
|
-
|
|
53712
|
-
;// CONCATENATED MODULE: ./src/components/Typography/link.tsx
|
|
53713
|
-
function link_extends() { link_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return link_extends.apply(this, arguments); }
|
|
53714
|
-
|
|
53715
|
-
function link_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
53716
|
-
|
|
53717
|
-
|
|
53718
|
-
|
|
53719
|
-
|
|
53720
|
-
|
|
53721
|
-
var Link = /*#__PURE__*/external_react_default().forwardRef(function (props, ref) {
|
|
53722
|
-
var size = props.size;
|
|
53723
|
-
var className = node_modules_classnames_default_0()(link_defineProperty({}, "".concat(TYPOGRAPHY_CLASS_PREFIX, "-").concat(size), size)); // NOTE: Used wrapper destructuring to explicitly pass component props, which is marked as internal in antd
|
|
53724
|
-
|
|
53725
|
-
var componentProps = {
|
|
53726
|
-
component: 'a'
|
|
53727
|
-
};
|
|
53728
|
-
return /*#__PURE__*/external_react_default().createElement(Base/* default */.Z, link_extends({}, props, {
|
|
53729
|
-
className: className,
|
|
53730
|
-
prefixCls: TYPOGRAPHY_CLASS_PREFIX,
|
|
53731
|
-
ref: ref
|
|
53732
|
-
}, componentProps));
|
|
53733
|
-
});
|
|
53734
|
-
Link.displayName = 'Typography.Link';
|
|
53735
|
-
|
|
53736
|
-
;// CONCATENATED MODULE: ./src/components/Typography/paragraph.tsx
|
|
53737
|
-
var paragraph_excluded = ["type", "size"];
|
|
53738
|
-
|
|
53739
|
-
function paragraph_extends() { paragraph_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return paragraph_extends.apply(this, arguments); }
|
|
53740
|
-
|
|
53741
|
-
function paragraph_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
53742
|
-
|
|
53743
|
-
function paragraph_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = paragraph_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
53744
|
-
|
|
53745
|
-
function paragraph_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
53746
|
-
|
|
53747
|
-
|
|
53748
|
-
|
|
53749
|
-
|
|
53750
|
-
|
|
53751
|
-
var Paragraph = /*#__PURE__*/external_react_default().forwardRef(function (props, ref) {
|
|
53752
|
-
var _classNames;
|
|
53753
|
-
|
|
53754
|
-
var type = props.type,
|
|
53755
|
-
_props$size = props.size,
|
|
53756
|
-
size = _props$size === void 0 ? 'lg' : _props$size,
|
|
53757
|
-
rest = paragraph_objectWithoutProperties(props, paragraph_excluded);
|
|
53758
|
-
|
|
53759
|
-
var className = node_modules_classnames_default_0()((_classNames = {}, paragraph_defineProperty(_classNames, "".concat(TYPOGRAPHY_CLASS_PREFIX, "-").concat(type), type), paragraph_defineProperty(_classNames, "".concat(TYPOGRAPHY_CLASS_PREFIX, "-").concat(size), size), _classNames)); // NOTE: Used wrapper destructuring to explicitly pass component props, which is marked as internal in antd
|
|
53760
|
-
|
|
53761
|
-
var componentProps = {
|
|
53762
|
-
component: 'div'
|
|
53763
|
-
};
|
|
53764
|
-
return /*#__PURE__*/external_react_default().createElement(Base/* default */.Z, paragraph_extends({}, rest, {
|
|
53765
|
-
prefixCls: TYPOGRAPHY_CLASS_PREFIX,
|
|
53766
|
-
ref: ref,
|
|
53767
|
-
className: className
|
|
53768
|
-
}, componentProps));
|
|
53769
|
-
});
|
|
53770
|
-
Paragraph.displayName = 'Typography.Paragraph';
|
|
53771
|
-
|
|
53772
|
-
;// CONCATENATED MODULE: ./src/components/Typography/index.ts
|
|
53773
|
-
|
|
53774
|
-
|
|
53775
|
-
|
|
53776
|
-
|
|
53777
|
-
|
|
53778
|
-
var Typography = {
|
|
53779
|
-
Text: Text,
|
|
53780
|
-
Title: Title,
|
|
53781
|
-
Link: Link,
|
|
53782
|
-
Paragraph: Paragraph
|
|
53783
|
-
};
|
|
53784
|
-
|
|
53785
54020
|
;// CONCATENATED MODULE: ./src/components/Modal/cross.tsx
|
|
53786
54021
|
|
|
53787
54022
|
var Cross = function Cross(props) {
|
|
@@ -53812,17 +54047,17 @@ function modal_extends() { modal_extends = Object.assign ? Object.assign.bind()
|
|
|
53812
54047
|
|
|
53813
54048
|
function modal_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
53814
54049
|
|
|
53815
|
-
function
|
|
54050
|
+
function modal_slicedToArray(arr, i) { return modal_arrayWithHoles(arr) || modal_iterableToArrayLimit(arr, i) || modal_unsupportedIterableToArray(arr, i) || modal_nonIterableRest(); }
|
|
53816
54051
|
|
|
53817
|
-
function
|
|
54052
|
+
function modal_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
53818
54053
|
|
|
53819
|
-
function
|
|
54054
|
+
function modal_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return modal_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return modal_arrayLikeToArray(o, minLen); }
|
|
53820
54055
|
|
|
53821
|
-
function
|
|
54056
|
+
function modal_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
53822
54057
|
|
|
53823
|
-
function
|
|
54058
|
+
function modal_iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
53824
54059
|
|
|
53825
|
-
function
|
|
54060
|
+
function modal_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
53826
54061
|
|
|
53827
54062
|
function modal_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = modal_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
53828
54063
|
|
|
@@ -53852,7 +54087,7 @@ var Modal_modal_Modal = function Modal(props) {
|
|
|
53852
54087
|
var contentChildrenRef = (0,external_react_.useRef)(null);
|
|
53853
54088
|
|
|
53854
54089
|
var _useState = (0,external_react_.useState)(false),
|
|
53855
|
-
_useState2 =
|
|
54090
|
+
_useState2 = modal_slicedToArray(_useState, 2),
|
|
53856
54091
|
isScrolling = _useState2[0],
|
|
53857
54092
|
setIsScrolling = _useState2[1];
|
|
53858
54093
|
|
|
@@ -53904,97 +54139,6 @@ var Modal_modal_Modal = function Modal(props) {
|
|
|
53904
54139
|
|
|
53905
54140
|
|
|
53906
54141
|
|
|
53907
|
-
// EXTERNAL MODULE: ./node_modules/react-markdown/src/react-markdown.js
|
|
53908
|
-
var react_markdown = __webpack_require__(38456);
|
|
53909
|
-
var react_markdown_default = /*#__PURE__*/__webpack_require__.n(react_markdown);
|
|
53910
|
-
// EXTERNAL MODULE: ../../node_modules/remark-gfm/index.js
|
|
53911
|
-
var remark_gfm = __webpack_require__(40940);
|
|
53912
|
-
var remark_gfm_default = /*#__PURE__*/__webpack_require__.n(remark_gfm);
|
|
53913
|
-
// EXTERNAL MODULE: ../../node_modules/lodash/omit.js
|
|
53914
|
-
var lodash_omit = __webpack_require__(17620);
|
|
53915
|
-
var omit_default = /*#__PURE__*/__webpack_require__.n(lodash_omit);
|
|
53916
|
-
;// CONCATENATED MODULE: ./src/components/Markdown/markdown.tsx
|
|
53917
|
-
var markdown_excluded = ["children"];
|
|
53918
|
-
|
|
53919
|
-
function markdown_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = markdown_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
53920
|
-
|
|
53921
|
-
function markdown_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
53922
|
-
|
|
53923
|
-
function markdown_extends() { markdown_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return markdown_extends.apply(this, arguments); }
|
|
53924
|
-
|
|
53925
|
-
|
|
53926
|
-
|
|
53927
|
-
|
|
53928
|
-
|
|
53929
|
-
|
|
53930
|
-
var REMARK_PLUGINS = [(remark_gfm_default())];
|
|
53931
|
-
var MARKDOWN_CLASS_PREFIX = 'condo-markdown';
|
|
53932
|
-
var Markdown = function Markdown(_ref) {
|
|
53933
|
-
var children = _ref.children;
|
|
53934
|
-
return /*#__PURE__*/external_react_default().createElement((react_markdown_default()), {
|
|
53935
|
-
className: MARKDOWN_CLASS_PREFIX,
|
|
53936
|
-
remarkPlugins: REMARK_PLUGINS,
|
|
53937
|
-
components: {
|
|
53938
|
-
h1: function h1(props) {
|
|
53939
|
-
return /*#__PURE__*/external_react_default().createElement(Typography.Title, markdown_extends({}, omit_default()(props, 'ref'), {
|
|
53940
|
-
level: 1
|
|
53941
|
-
}));
|
|
53942
|
-
},
|
|
53943
|
-
h2: function h2(props) {
|
|
53944
|
-
return /*#__PURE__*/external_react_default().createElement(Typography.Title, markdown_extends({}, omit_default()(props, 'ref'), {
|
|
53945
|
-
level: 2
|
|
53946
|
-
}));
|
|
53947
|
-
},
|
|
53948
|
-
h3: function h3(props) {
|
|
53949
|
-
return /*#__PURE__*/external_react_default().createElement(Typography.Title, markdown_extends({}, omit_default()(props, 'ref'), {
|
|
53950
|
-
level: 3
|
|
53951
|
-
}));
|
|
53952
|
-
},
|
|
53953
|
-
h4: function h4(props) {
|
|
53954
|
-
return /*#__PURE__*/external_react_default().createElement(Typography.Title, markdown_extends({}, omit_default()(props, 'ref'), {
|
|
53955
|
-
level: 4
|
|
53956
|
-
}));
|
|
53957
|
-
},
|
|
53958
|
-
h5: function h5(props) {
|
|
53959
|
-
return /*#__PURE__*/external_react_default().createElement(Typography.Title, markdown_extends({}, omit_default()(props, 'ref'), {
|
|
53960
|
-
level: 5
|
|
53961
|
-
}));
|
|
53962
|
-
},
|
|
53963
|
-
h6: function h6(props) {
|
|
53964
|
-
return /*#__PURE__*/external_react_default().createElement(Typography.Title, markdown_extends({}, omit_default()(props, 'ref'), {
|
|
53965
|
-
level: 6
|
|
53966
|
-
}));
|
|
53967
|
-
},
|
|
53968
|
-
p: function p(props) {
|
|
53969
|
-
return /*#__PURE__*/external_react_default().createElement(Typography.Paragraph, markdown_extends({}, omit_default()(props, 'ref'), {
|
|
53970
|
-
type: "secondary"
|
|
53971
|
-
}));
|
|
53972
|
-
},
|
|
53973
|
-
a: function a(props) {
|
|
53974
|
-
return /*#__PURE__*/external_react_default().createElement(Typography.Link, markdown_extends({}, omit_default()(props, 'ref'), {
|
|
53975
|
-
target: "_blank"
|
|
53976
|
-
}));
|
|
53977
|
-
},
|
|
53978
|
-
code: function code(props) {
|
|
53979
|
-
return /*#__PURE__*/external_react_default().createElement(Typography.Text, markdown_extends({}, omit_default()(props, 'ref'), {
|
|
53980
|
-
code: true
|
|
53981
|
-
}));
|
|
53982
|
-
},
|
|
53983
|
-
li: function li(_ref2) {
|
|
53984
|
-
var children = _ref2.children,
|
|
53985
|
-
restProps = markdown_objectWithoutProperties(_ref2, markdown_excluded);
|
|
53986
|
-
|
|
53987
|
-
return /*#__PURE__*/external_react_default().createElement("li", restProps, /*#__PURE__*/external_react_default().createElement(Typography.Text, {
|
|
53988
|
-
type: "secondary"
|
|
53989
|
-
}, children));
|
|
53990
|
-
}
|
|
53991
|
-
}
|
|
53992
|
-
}, children);
|
|
53993
|
-
};
|
|
53994
|
-
;// CONCATENATED MODULE: ./src/components/Markdown/index.ts
|
|
53995
|
-
|
|
53996
|
-
|
|
53997
|
-
|
|
53998
54142
|
;// CONCATENATED MODULE: ./src/index.ts
|
|
53999
54143
|
|
|
54000
54144
|
|
|
@@ -54002,6 +54146,7 @@ var Markdown = function Markdown(_ref) {
|
|
|
54002
54146
|
|
|
54003
54147
|
|
|
54004
54148
|
|
|
54149
|
+
|
|
54005
54150
|
}();
|
|
54006
54151
|
/******/ return __webpack_exports__;
|
|
54007
54152
|
/******/ })()
|