@open-condo/ui 1.9.0 → 1.11.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/index.js CHANGED
@@ -46178,6 +46178,7 @@ __webpack_require__.d(__webpack_exports__, {
46178
46178
  "Button": function() { return /* reexport */ button_Button; },
46179
46179
  "Card": function() { return /* reexport */ Card_card_Card; },
46180
46180
  "Carousel": function() { return /* reexport */ carousel_Carousel; },
46181
+ "Checkbox": function() { return /* reexport */ Checkbox_checkbox_Checkbox; },
46181
46182
  "Markdown": function() { return /* reexport */ Markdown; },
46182
46183
  "Modal": function() { return /* reexport */ Modal_modal_Modal; },
46183
46184
  "Tag": function() { return /* reexport */ tag_Tag; },
@@ -47804,8 +47805,11 @@ var node_modules_classnames_default_0 = /*#__PURE__*/__webpack_require__.n(node_
47804
47805
  // EXTERNAL MODULE: ../../node_modules/lodash/isString.js
47805
47806
  var lodash_isString = __webpack_require__(85505);
47806
47807
  var isString_default = /*#__PURE__*/__webpack_require__.n(lodash_isString);
47808
+ // EXTERNAL MODULE: ../../node_modules/lodash/identity.js
47809
+ var identity = __webpack_require__(23059);
47810
+ var identity_default = /*#__PURE__*/__webpack_require__.n(identity);
47807
47811
  ;// CONCATENATED MODULE: ./package.json
47808
- var package_namespaceObject = {"i8":"1.9.0"};
47812
+ var package_namespaceObject = {"i8":"1.11.0"};
47809
47813
  ;// CONCATENATED MODULE: ./src/components/_utils/analytics.ts
47810
47814
  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; }
47811
47815
 
@@ -47814,7 +47818,22 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
47814
47818
  function analytics_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; }
47815
47819
 
47816
47820
 
47821
+
47822
+
47817
47823
  var ANALYTICS_HANDLER_NAME = 'CondoWebSendAnalyticsEvent';
47824
+ function extractChildrenContent(children) {
47825
+ if (isString_default()(children)) {
47826
+ return children;
47827
+ } else if (Array.isArray(children)) {
47828
+ var stringChildren = children.map(extractChildrenContent).filter((identity_default()));
47829
+
47830
+ if (stringChildren.length) {
47831
+ return stringChildren.join(':');
47832
+ }
47833
+ }
47834
+
47835
+ return null;
47836
+ }
47818
47837
  function sendAnalyticsClickEvent(component, data) {
47819
47838
  if (typeof window !== 'undefined') {
47820
47839
  var location = window.location.href;
@@ -47848,7 +47867,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
47848
47867
 
47849
47868
 
47850
47869
 
47851
-
47852
47870
  var BUTTON_CLASS_PREFIX = 'condo-btn';
47853
47871
  var button_Button = /*#__PURE__*/external_react_default().forwardRef(function (props, ref) {
47854
47872
  var _classNames;
@@ -47866,9 +47884,11 @@ var button_Button = /*#__PURE__*/external_react_default().forwardRef(function (p
47866
47884
  className: "".concat(BUTTON_CLASS_PREFIX, "-icon")
47867
47885
  }, icon) : null;
47868
47886
  var handleClick = (0,external_react_.useCallback)(function (event) {
47869
- if (isString_default()(children)) {
47887
+ var stringContent = extractChildrenContent(children);
47888
+
47889
+ if (stringContent) {
47870
47890
  sendAnalyticsClickEvent('Button', {
47871
- value: children,
47891
+ value: stringContent,
47872
47892
  type: type
47873
47893
  });
47874
47894
  }
@@ -47979,17 +47999,36 @@ function link_defineProperty(obj, key, value) { if (key in obj) { Object.defineP
47979
47999
 
47980
48000
 
47981
48001
 
48002
+
47982
48003
  var Link = /*#__PURE__*/external_react_default().forwardRef(function (props, ref) {
47983
- var size = props.size;
48004
+ var size = props.size,
48005
+ onClick = props.onClick,
48006
+ children = props.children,
48007
+ href = props.href;
47984
48008
  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
47985
48009
 
47986
48010
  var componentProps = {
47987
48011
  component: 'a'
47988
48012
  };
48013
+ var handleClick = (0,external_react_.useCallback)(function (event) {
48014
+ var stringContent = extractChildrenContent(children);
48015
+
48016
+ if (stringContent) {
48017
+ sendAnalyticsClickEvent('Typography.Link', {
48018
+ value: stringContent,
48019
+ href: href
48020
+ });
48021
+ }
48022
+
48023
+ if (onClick) {
48024
+ onClick(event);
48025
+ }
48026
+ }, [children, onClick, href]);
47989
48027
  return /*#__PURE__*/external_react_default().createElement(Base/* default */.Z, link_extends({}, props, {
47990
48028
  className: className,
47991
48029
  prefixCls: TYPOGRAPHY_CLASS_PREFIX,
47992
- ref: ref
48030
+ ref: ref,
48031
+ onClick: handleClick
47993
48032
  }, componentProps));
47994
48033
  });
47995
48034
  Link.displayName = 'Typography.Link';
@@ -57890,6 +57929,497 @@ carousel_Carousel.displayName = 'Carousel';
57890
57929
 
57891
57930
 
57892
57931
 
57932
+ ;// CONCATENATED MODULE: ../../node_modules/rc-checkbox/es/index.js
57933
+
57934
+
57935
+
57936
+
57937
+
57938
+
57939
+
57940
+
57941
+ // eslint-disable-next-line import/no-extraneous-dependencies
57942
+
57943
+
57944
+
57945
+ var Checkbox = /*#__PURE__*/function (_Component) {
57946
+ (0,inherits/* default */.Z)(Checkbox, _Component);
57947
+
57948
+ var _super = (0,createSuper/* default */.Z)(Checkbox);
57949
+
57950
+ function Checkbox(props) {
57951
+ var _this;
57952
+
57953
+ (0,classCallCheck/* default */.Z)(this, Checkbox);
57954
+
57955
+ _this = _super.call(this, props);
57956
+
57957
+ _this.handleChange = function (e) {
57958
+ var _this$props = _this.props,
57959
+ disabled = _this$props.disabled,
57960
+ onChange = _this$props.onChange;
57961
+
57962
+ if (disabled) {
57963
+ return;
57964
+ }
57965
+
57966
+ if (!('checked' in _this.props)) {
57967
+ _this.setState({
57968
+ checked: e.target.checked
57969
+ });
57970
+ }
57971
+
57972
+ if (onChange) {
57973
+ onChange({
57974
+ target: (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, _this.props), {}, {
57975
+ checked: e.target.checked
57976
+ }),
57977
+ stopPropagation: function stopPropagation() {
57978
+ e.stopPropagation();
57979
+ },
57980
+ preventDefault: function preventDefault() {
57981
+ e.preventDefault();
57982
+ },
57983
+ nativeEvent: e.nativeEvent
57984
+ });
57985
+ }
57986
+ };
57987
+
57988
+ _this.saveInput = function (node) {
57989
+ _this.input = node;
57990
+ };
57991
+
57992
+ var checked = 'checked' in props ? props.checked : props.defaultChecked;
57993
+ _this.state = {
57994
+ checked: checked
57995
+ };
57996
+ return _this;
57997
+ }
57998
+
57999
+ (0,createClass/* default */.Z)(Checkbox, [{
58000
+ key: "focus",
58001
+ value: function focus() {
58002
+ this.input.focus();
58003
+ }
58004
+ }, {
58005
+ key: "blur",
58006
+ value: function blur() {
58007
+ this.input.blur();
58008
+ }
58009
+ }, {
58010
+ key: "render",
58011
+ value: function render() {
58012
+ var _classNames;
58013
+
58014
+ var _this$props2 = this.props,
58015
+ prefixCls = _this$props2.prefixCls,
58016
+ className = _this$props2.className,
58017
+ style = _this$props2.style,
58018
+ name = _this$props2.name,
58019
+ id = _this$props2.id,
58020
+ type = _this$props2.type,
58021
+ disabled = _this$props2.disabled,
58022
+ readOnly = _this$props2.readOnly,
58023
+ tabIndex = _this$props2.tabIndex,
58024
+ onClick = _this$props2.onClick,
58025
+ onFocus = _this$props2.onFocus,
58026
+ onBlur = _this$props2.onBlur,
58027
+ onKeyDown = _this$props2.onKeyDown,
58028
+ onKeyPress = _this$props2.onKeyPress,
58029
+ onKeyUp = _this$props2.onKeyUp,
58030
+ autoFocus = _this$props2.autoFocus,
58031
+ value = _this$props2.value,
58032
+ required = _this$props2.required,
58033
+ others = (0,objectWithoutProperties/* default */.Z)(_this$props2, ["prefixCls", "className", "style", "name", "id", "type", "disabled", "readOnly", "tabIndex", "onClick", "onFocus", "onBlur", "onKeyDown", "onKeyPress", "onKeyUp", "autoFocus", "value", "required"]);
58034
+
58035
+ var globalProps = Object.keys(others).reduce(function (prev, key) {
58036
+ if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {
58037
+ // eslint-disable-next-line no-param-reassign
58038
+ prev[key] = others[key];
58039
+ }
58040
+
58041
+ return prev;
58042
+ }, {});
58043
+ var checked = this.state.checked;
58044
+ var classString = classnames_default()(prefixCls, className, (_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-checked"), checked), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-disabled"), disabled), _classNames));
58045
+ return /*#__PURE__*/external_react_default().createElement("span", {
58046
+ className: classString,
58047
+ style: style
58048
+ }, /*#__PURE__*/external_react_default().createElement("input", (0,esm_extends/* default */.Z)({
58049
+ name: name,
58050
+ id: id,
58051
+ type: type,
58052
+ required: required,
58053
+ readOnly: readOnly,
58054
+ disabled: disabled,
58055
+ tabIndex: tabIndex,
58056
+ className: "".concat(prefixCls, "-input"),
58057
+ checked: !!checked,
58058
+ onClick: onClick,
58059
+ onFocus: onFocus,
58060
+ onBlur: onBlur,
58061
+ onKeyUp: onKeyUp,
58062
+ onKeyDown: onKeyDown,
58063
+ onKeyPress: onKeyPress,
58064
+ onChange: this.handleChange,
58065
+ autoFocus: autoFocus,
58066
+ ref: this.saveInput,
58067
+ value: value
58068
+ }, globalProps)), /*#__PURE__*/external_react_default().createElement("span", {
58069
+ className: "".concat(prefixCls, "-inner")
58070
+ }));
58071
+ }
58072
+ }], [{
58073
+ key: "getDerivedStateFromProps",
58074
+ value: function getDerivedStateFromProps(props, state) {
58075
+ if ('checked' in props) {
58076
+ return (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, state), {}, {
58077
+ checked: props.checked
58078
+ });
58079
+ }
58080
+
58081
+ return null;
58082
+ }
58083
+ }]);
58084
+
58085
+ return Checkbox;
58086
+ }(external_react_.Component);
58087
+
58088
+ Checkbox.defaultProps = {
58089
+ prefixCls: 'rc-checkbox',
58090
+ className: '',
58091
+ style: {},
58092
+ type: 'checkbox',
58093
+ defaultChecked: false,
58094
+ onFocus: function onFocus() {},
58095
+ onBlur: function onBlur() {},
58096
+ onChange: function onChange() {},
58097
+ onKeyDown: function onKeyDown() {},
58098
+ onKeyPress: function onKeyPress() {},
58099
+ onKeyUp: function onKeyUp() {}
58100
+ };
58101
+ /* harmony default export */ var rc_checkbox_es = (Checkbox);
58102
+ // EXTERNAL MODULE: ../../node_modules/rc-field-form/es/index.js + 19 modules
58103
+ var rc_field_form_es = __webpack_require__(63735);
58104
+ ;// CONCATENATED MODULE: ./node_modules/antd/es/form/context.js
58105
+
58106
+
58107
+
58108
+
58109
+
58110
+ var FormContext = /*#__PURE__*/external_react_.createContext({
58111
+ labelAlign: 'right',
58112
+ vertical: false,
58113
+ itemRef: function itemRef() {}
58114
+ });
58115
+ var NoStyleItemContext = /*#__PURE__*/(/* unused pure expression or super */ null && (React.createContext(null)));
58116
+ var FormProvider = function FormProvider(props) {
58117
+ var providerProps = omit(props, ['prefixCls']);
58118
+ return /*#__PURE__*/React.createElement(RcFormProvider, _extends({}, providerProps));
58119
+ };
58120
+ var FormItemPrefixContext = /*#__PURE__*/external_react_.createContext({
58121
+ prefixCls: ''
58122
+ });
58123
+ var FormItemInputContext = /*#__PURE__*/external_react_.createContext({});
58124
+ var NoFormStyle = function NoFormStyle(_ref) {
58125
+ var children = _ref.children,
58126
+ status = _ref.status,
58127
+ override = _ref.override;
58128
+ var formItemInputContext = (0,external_react_.useContext)(FormItemInputContext);
58129
+ var newFormItemInputContext = (0,external_react_.useMemo)(function () {
58130
+ var newContext = (0,esm_extends/* default */.Z)({}, formItemInputContext);
58131
+ if (override) {
58132
+ delete newContext.isFormItemInput;
58133
+ }
58134
+ if (status) {
58135
+ delete newContext.status;
58136
+ delete newContext.hasFeedback;
58137
+ delete newContext.feedbackIcon;
58138
+ }
58139
+ return newContext;
58140
+ }, [status, override, formItemInputContext]);
58141
+ return /*#__PURE__*/external_react_.createElement(FormItemInputContext.Provider, {
58142
+ value: newFormItemInputContext
58143
+ }, children);
58144
+ };
58145
+ ;// CONCATENATED MODULE: ./node_modules/antd/es/checkbox/Group.js
58146
+
58147
+
58148
+
58149
+
58150
+ var Group_rest = undefined && undefined.__rest || function (s, e) {
58151
+ var t = {};
58152
+ for (var p in s) {
58153
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
58154
+ }
58155
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
58156
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
58157
+ }
58158
+ return t;
58159
+ };
58160
+
58161
+
58162
+
58163
+
58164
+
58165
+ var GroupContext = /*#__PURE__*/external_react_.createContext(null);
58166
+ var InternalCheckboxGroup = function InternalCheckboxGroup(_a, ref) {
58167
+ var defaultValue = _a.defaultValue,
58168
+ children = _a.children,
58169
+ _a$options = _a.options,
58170
+ options = _a$options === void 0 ? [] : _a$options,
58171
+ customizePrefixCls = _a.prefixCls,
58172
+ className = _a.className,
58173
+ style = _a.style,
58174
+ onChange = _a.onChange,
58175
+ restProps = Group_rest(_a, ["defaultValue", "children", "options", "prefixCls", "className", "style", "onChange"]);
58176
+ var _React$useContext = external_react_.useContext(context_ConfigContext),
58177
+ getPrefixCls = _React$useContext.getPrefixCls,
58178
+ direction = _React$useContext.direction;
58179
+ var _React$useState = external_react_.useState(restProps.value || defaultValue || []),
58180
+ _React$useState2 = (0,slicedToArray/* default */.Z)(_React$useState, 2),
58181
+ value = _React$useState2[0],
58182
+ setValue = _React$useState2[1];
58183
+ var _React$useState3 = external_react_.useState([]),
58184
+ _React$useState4 = (0,slicedToArray/* default */.Z)(_React$useState3, 2),
58185
+ registeredValues = _React$useState4[0],
58186
+ setRegisteredValues = _React$useState4[1];
58187
+ external_react_.useEffect(function () {
58188
+ if ('value' in restProps) {
58189
+ setValue(restProps.value || []);
58190
+ }
58191
+ }, [restProps.value]);
58192
+ var getOptions = function getOptions() {
58193
+ return options.map(function (option) {
58194
+ if (typeof option === 'string' || typeof option === 'number') {
58195
+ return {
58196
+ label: option,
58197
+ value: option
58198
+ };
58199
+ }
58200
+ return option;
58201
+ });
58202
+ };
58203
+ var cancelValue = function cancelValue(val) {
58204
+ setRegisteredValues(function (prevValues) {
58205
+ return prevValues.filter(function (v) {
58206
+ return v !== val;
58207
+ });
58208
+ });
58209
+ };
58210
+ var registerValue = function registerValue(val) {
58211
+ setRegisteredValues(function (prevValues) {
58212
+ return [].concat((0,toConsumableArray/* default */.Z)(prevValues), [val]);
58213
+ });
58214
+ };
58215
+ var toggleOption = function toggleOption(option) {
58216
+ var optionIndex = value.indexOf(option.value);
58217
+ var newValue = (0,toConsumableArray/* default */.Z)(value);
58218
+ if (optionIndex === -1) {
58219
+ newValue.push(option.value);
58220
+ } else {
58221
+ newValue.splice(optionIndex, 1);
58222
+ }
58223
+ if (!('value' in restProps)) {
58224
+ setValue(newValue);
58225
+ }
58226
+ var opts = getOptions();
58227
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue.filter(function (val) {
58228
+ return registeredValues.includes(val);
58229
+ }).sort(function (a, b) {
58230
+ var indexA = opts.findIndex(function (opt) {
58231
+ return opt.value === a;
58232
+ });
58233
+ var indexB = opts.findIndex(function (opt) {
58234
+ return opt.value === b;
58235
+ });
58236
+ return indexA - indexB;
58237
+ }));
58238
+ };
58239
+ var prefixCls = getPrefixCls('checkbox', customizePrefixCls);
58240
+ var groupPrefixCls = "".concat(prefixCls, "-group");
58241
+ var domProps = (0,es_omit/* default */.Z)(restProps, ['value', 'disabled']);
58242
+ if (options && options.length > 0) {
58243
+ children = getOptions().map(function (option) {
58244
+ return /*#__PURE__*/external_react_.createElement(checkbox_Checkbox, {
58245
+ prefixCls: prefixCls,
58246
+ key: option.value.toString(),
58247
+ disabled: 'disabled' in option ? option.disabled : restProps.disabled,
58248
+ value: option.value,
58249
+ checked: value.includes(option.value),
58250
+ onChange: option.onChange,
58251
+ className: "".concat(groupPrefixCls, "-item"),
58252
+ style: option.style
58253
+ }, option.label);
58254
+ });
58255
+ }
58256
+ // eslint-disable-next-line react/jsx-no-constructed-context-values
58257
+ var context = {
58258
+ toggleOption: toggleOption,
58259
+ value: value,
58260
+ disabled: restProps.disabled,
58261
+ name: restProps.name,
58262
+ // https://github.com/ant-design/ant-design/issues/16376
58263
+ registerValue: registerValue,
58264
+ cancelValue: cancelValue
58265
+ };
58266
+ var classString = node_modules_classnames_default()(groupPrefixCls, (0,defineProperty/* default */.Z)({}, "".concat(groupPrefixCls, "-rtl"), direction === 'rtl'), className);
58267
+ return /*#__PURE__*/external_react_.createElement("div", (0,esm_extends/* default */.Z)({
58268
+ className: classString,
58269
+ style: style
58270
+ }, domProps, {
58271
+ ref: ref
58272
+ }), /*#__PURE__*/external_react_.createElement(GroupContext.Provider, {
58273
+ value: context
58274
+ }, children));
58275
+ };
58276
+ var CheckboxGroup = /*#__PURE__*/external_react_.forwardRef(InternalCheckboxGroup);
58277
+ /* harmony default export */ var Group = (/*#__PURE__*/external_react_.memo(CheckboxGroup));
58278
+ ;// CONCATENATED MODULE: ./node_modules/antd/es/checkbox/Checkbox.js
58279
+
58280
+
58281
+ var Checkbox_rest = undefined && undefined.__rest || function (s, e) {
58282
+ var t = {};
58283
+ for (var p in s) {
58284
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
58285
+ }
58286
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
58287
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
58288
+ }
58289
+ return t;
58290
+ };
58291
+
58292
+
58293
+
58294
+
58295
+
58296
+
58297
+
58298
+
58299
+
58300
+ var InternalCheckbox = function InternalCheckbox(_a, ref) {
58301
+ var _classNames;
58302
+ var _b;
58303
+ var customizePrefixCls = _a.prefixCls,
58304
+ className = _a.className,
58305
+ children = _a.children,
58306
+ _a$indeterminate = _a.indeterminate,
58307
+ indeterminate = _a$indeterminate === void 0 ? false : _a$indeterminate,
58308
+ style = _a.style,
58309
+ onMouseEnter = _a.onMouseEnter,
58310
+ onMouseLeave = _a.onMouseLeave,
58311
+ _a$skipGroup = _a.skipGroup,
58312
+ skipGroup = _a$skipGroup === void 0 ? false : _a$skipGroup,
58313
+ disabled = _a.disabled,
58314
+ restProps = Checkbox_rest(_a, ["prefixCls", "className", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]);
58315
+ var _React$useContext = external_react_.useContext(context_ConfigContext),
58316
+ getPrefixCls = _React$useContext.getPrefixCls,
58317
+ direction = _React$useContext.direction;
58318
+ var checkboxGroup = external_react_.useContext(GroupContext);
58319
+ var _useContext = (0,external_react_.useContext)(FormItemInputContext),
58320
+ isFormItemInput = _useContext.isFormItemInput;
58321
+ var contextDisabled = (0,external_react_.useContext)(config_provider_DisabledContext);
58322
+ var mergedDisabled = (_b = (checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.disabled) || disabled) !== null && _b !== void 0 ? _b : contextDisabled;
58323
+ var prevValue = external_react_.useRef(restProps.value);
58324
+ external_react_.useEffect(function () {
58325
+ checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value);
58326
+ false ? 0 : void 0;
58327
+ }, []);
58328
+ external_react_.useEffect(function () {
58329
+ if (skipGroup) {
58330
+ return;
58331
+ }
58332
+ if (restProps.value !== prevValue.current) {
58333
+ checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(prevValue.current);
58334
+ checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.registerValue(restProps.value);
58335
+ prevValue.current = restProps.value;
58336
+ }
58337
+ return function () {
58338
+ return checkboxGroup === null || checkboxGroup === void 0 ? void 0 : checkboxGroup.cancelValue(restProps.value);
58339
+ };
58340
+ }, [restProps.value]);
58341
+ var prefixCls = getPrefixCls('checkbox', customizePrefixCls);
58342
+ var checkboxProps = (0,esm_extends/* default */.Z)({}, restProps);
58343
+ if (checkboxGroup && !skipGroup) {
58344
+ checkboxProps.onChange = function () {
58345
+ if (restProps.onChange) {
58346
+ restProps.onChange.apply(restProps, arguments);
58347
+ }
58348
+ if (checkboxGroup.toggleOption) {
58349
+ checkboxGroup.toggleOption({
58350
+ label: children,
58351
+ value: restProps.value
58352
+ });
58353
+ }
58354
+ };
58355
+ checkboxProps.name = checkboxGroup.name;
58356
+ checkboxProps.checked = checkboxGroup.value.includes(restProps.value);
58357
+ }
58358
+ var classString = node_modules_classnames_default()((_classNames = {}, (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper"), true), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-checked"), checkboxProps.checked), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-disabled"), mergedDisabled), (0,defineProperty/* default */.Z)(_classNames, "".concat(prefixCls, "-wrapper-in-form-item"), isFormItemInput), _classNames), className);
58359
+ var checkboxClass = node_modules_classnames_default()((0,defineProperty/* default */.Z)({}, "".concat(prefixCls, "-indeterminate"), indeterminate));
58360
+ var ariaChecked = indeterminate ? 'mixed' : undefined;
58361
+ return (
58362
+ /*#__PURE__*/
58363
+ // eslint-disable-next-line jsx-a11y/label-has-associated-control
58364
+ external_react_.createElement("label", {
58365
+ className: classString,
58366
+ style: style,
58367
+ onMouseEnter: onMouseEnter,
58368
+ onMouseLeave: onMouseLeave
58369
+ }, /*#__PURE__*/external_react_.createElement(rc_checkbox_es, (0,esm_extends/* default */.Z)({
58370
+ "aria-checked": ariaChecked
58371
+ }, checkboxProps, {
58372
+ prefixCls: prefixCls,
58373
+ className: checkboxClass,
58374
+ disabled: mergedDisabled,
58375
+ ref: ref
58376
+ })), children !== undefined && /*#__PURE__*/external_react_.createElement("span", null, children))
58377
+ );
58378
+ };
58379
+ var Checkbox_Checkbox = /*#__PURE__*/external_react_.forwardRef(InternalCheckbox);
58380
+ if (false) {}
58381
+ /* harmony default export */ var checkbox_Checkbox = (Checkbox_Checkbox);
58382
+ ;// CONCATENATED MODULE: ./node_modules/antd/es/checkbox/index.js
58383
+
58384
+
58385
+ var es_checkbox_Checkbox = checkbox_Checkbox;
58386
+ es_checkbox_Checkbox.Group = Group;
58387
+ es_checkbox_Checkbox.__ANT_CHECKBOX = true;
58388
+ /* harmony default export */ var es_checkbox = (es_checkbox_Checkbox);
58389
+ ;// CONCATENATED MODULE: ./src/components/Checkbox/checkbox.tsx
58390
+ var checkbox_excluded = ["label", "labelProps", "disabled"];
58391
+
58392
+ function checkbox_extends() { checkbox_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 checkbox_extends.apply(this, arguments); }
58393
+
58394
+ function checkbox_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = checkbox_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; }
58395
+
58396
+ function checkbox_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; }
58397
+
58398
+
58399
+
58400
+
58401
+ var CHECKBOX_CLASS_PREFIX = 'condo-checkbox';
58402
+
58403
+ var Checkbox_checkbox_Checkbox = function Checkbox(props) {
58404
+ var label = props.label,
58405
+ labelProps = props.labelProps,
58406
+ disabled = props.disabled,
58407
+ rest = checkbox_objectWithoutProperties(props, checkbox_excluded);
58408
+
58409
+ return /*#__PURE__*/external_react_default().createElement(es_checkbox, checkbox_extends({}, rest, {
58410
+ prefixCls: CHECKBOX_CLASS_PREFIX,
58411
+ disabled: disabled
58412
+ }), /*#__PURE__*/external_react_default().createElement(Typography.Text, checkbox_extends({
58413
+ size: "medium",
58414
+ disabled: disabled
58415
+ }, labelProps), label));
58416
+ };
58417
+
58418
+
58419
+ ;// CONCATENATED MODULE: ./src/components/Checkbox/index.ts
58420
+
58421
+
58422
+
57893
58423
  // EXTERNAL MODULE: ./node_modules/react-markdown/src/react-markdown.js
57894
58424
  var react_markdown = __webpack_require__(38456);
57895
58425
  var react_markdown_default = /*#__PURE__*/__webpack_require__.n(react_markdown);
@@ -57983,8 +58513,6 @@ var Markdown = function Markdown(_ref) {
57983
58513
 
57984
58514
  // EXTERNAL MODULE: ../../node_modules/rc-util/es/React/render.js
57985
58515
  var React_render = __webpack_require__(47583);
57986
- // EXTERNAL MODULE: ../../node_modules/rc-field-form/es/index.js + 19 modules
57987
- var rc_field_form_es = __webpack_require__(63735);
57988
58516
  ;// CONCATENATED MODULE: ./node_modules/rc-pagination/es/locale/en_US.js
57989
58517
  /* harmony default export */ var en_US = ({
57990
58518
  // Options.jsx
@@ -60480,47 +61008,6 @@ DialogWrap.displayName = 'Dialog';
60480
61008
 
60481
61009
 
60482
61010
  /* harmony default export */ var rc_dialog_es = (es_DialogWrap);
60483
- ;// CONCATENATED MODULE: ./node_modules/antd/es/form/context.js
60484
-
60485
-
60486
-
60487
-
60488
-
60489
- var FormContext = /*#__PURE__*/external_react_.createContext({
60490
- labelAlign: 'right',
60491
- vertical: false,
60492
- itemRef: function itemRef() {}
60493
- });
60494
- var NoStyleItemContext = /*#__PURE__*/(/* unused pure expression or super */ null && (React.createContext(null)));
60495
- var FormProvider = function FormProvider(props) {
60496
- var providerProps = omit(props, ['prefixCls']);
60497
- return /*#__PURE__*/React.createElement(RcFormProvider, _extends({}, providerProps));
60498
- };
60499
- var FormItemPrefixContext = /*#__PURE__*/external_react_.createContext({
60500
- prefixCls: ''
60501
- });
60502
- var FormItemInputContext = /*#__PURE__*/external_react_.createContext({});
60503
- var NoFormStyle = function NoFormStyle(_ref) {
60504
- var children = _ref.children,
60505
- status = _ref.status,
60506
- override = _ref.override;
60507
- var formItemInputContext = (0,external_react_.useContext)(FormItemInputContext);
60508
- var newFormItemInputContext = (0,external_react_.useMemo)(function () {
60509
- var newContext = (0,esm_extends/* default */.Z)({}, formItemInputContext);
60510
- if (override) {
60511
- delete newContext.isFormItemInput;
60512
- }
60513
- if (status) {
60514
- delete newContext.status;
60515
- delete newContext.hasFeedback;
60516
- delete newContext.feedbackIcon;
60517
- }
60518
- return newContext;
60519
- }, [status, override, formItemInputContext]);
60520
- return /*#__PURE__*/external_react_.createElement(FormItemInputContext.Provider, {
60521
- value: newFormItemInputContext
60522
- }, children);
60523
- };
60524
61011
  ;// CONCATENATED MODULE: ./node_modules/antd/es/_util/styleChecker.js
60525
61012
 
60526
61013
 
@@ -61475,6 +61962,7 @@ tag_Tag.displayName = 'Tag';
61475
61962
 
61476
61963
 
61477
61964
 
61965
+
61478
61966
  }();
61479
61967
  /******/ return __webpack_exports__;
61480
61968
  /******/ })()