@open-condo/ui 1.20.1 → 1.20.3

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.
@@ -1,18 +1,22 @@
1
1
  import React from 'react';
2
2
  import type { RadioProps } from '@open-condo/ui/src';
3
3
  import type { RadioGroupProps as DefaultRadioGroupProps } from 'antd';
4
- declare type RadioGroupOptionType = Pick<RadioProps, 'value' | 'label'> & {
4
+ declare type ItemGroupOptionType = Pick<RadioProps, 'value' | 'label'> & {
5
5
  radioProps?: Partial<Pick<RadioProps, 'labelProps' | 'disabled'>>;
6
6
  };
7
- declare type RadioGroupType = {
7
+ declare type ItemGroupProps = {
8
8
  name: string;
9
- icon?: React.ReactElement;
10
- options: Array<RadioGroupOptionType>;
9
+ options: Array<ItemGroupOptionType>;
11
10
  };
12
11
  export declare type RadioGroupProps = {
13
- icon: React.ReactElement;
14
- groups: Array<RadioGroupType>;
15
- } & Pick<DefaultRadioGroupProps, 'value' | 'onChange' | 'disabled'>;
16
- declare const RadioGroup: React.FC<RadioGroupProps>;
12
+ /**
13
+ * @deprecated should use "children" and "RadioGroup.ItemGroup" instead of "groups". "groups" will be removed in the next major release (v2).
14
+ */
15
+ groups?: Array<ItemGroupProps>;
16
+ } & Pick<DefaultRadioGroupProps, 'value' | 'onChange' | 'disabled' | 'children'>;
17
+ declare type CompoundedComponent = React.FC<RadioGroupProps> & {
18
+ ItemGroup: React.FC<ItemGroupProps>;
19
+ };
20
+ declare const RadioGroup: CompoundedComponent;
17
21
  export { RadioGroup, };
18
22
  //# sourceMappingURL=radiogroup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"radiogroup.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/radiogroup.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAgC,MAAM,OAAO,CAAA;AAGpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,OAAO,KAAK,EAAE,eAAe,IAAI,sBAA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;CACtC,CAAA;AAGD,oBAAY,eAAe,GAAG;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;CACjC,GAAG,IAAI,CAAC,sBAAsB,EAAE,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC,CAAA;AAEhF,aAAK,mBAAmB,GAAG,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,GAAG;IACnD,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAAC,CAAA;CACtC,CAAA;AAiDD,QAAA,MAAM,UAAU,qBAAyC,CAAA;AAGzD,OAAO,EACH,UAAU,GACb,CAAA"}
@@ -5,17 +5,19 @@ import { SELECT_TYPES } from './constants';
5
5
  import type { SelectProps as DefaultSelectProps } from 'antd';
6
6
  declare const Option: typeof DefaultSelect.Option;
7
7
  declare const OptGroup: typeof DefaultSelect.OptGroup;
8
- export declare type OptionType = {
8
+ export declare type OptionType = React.PropsWithChildren<{
9
9
  label: React.ReactNode;
10
10
  value?: string | number | null;
11
11
  disabled?: boolean;
12
12
  textType?: TypographyTextProps['type'];
13
- };
14
- export declare type SelectProps = Pick<DefaultSelectProps, 'disabled' | 'value' | 'onChange' | 'loading' | 'children' | 'id'> & {
13
+ }>;
14
+ declare type OnChangeType = (value: OptionType['value'], option: OptionType | Array<OptionType>) => void;
15
+ export declare type SelectProps = Pick<DefaultSelectProps, 'disabled' | 'value' | 'loading' | 'children' | 'id'> & {
15
16
  placeholder: string;
16
17
  options?: Array<OptionType>;
17
18
  displayMode?: 'fill-parent' | 'fit-content';
18
19
  type?: typeof SELECT_TYPES[number];
20
+ onChange?: OnChangeType;
19
21
  };
20
22
  export interface ISelect {
21
23
  (props: SelectProps): React.ReactElement;
@@ -1 +1 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,MAAM,CA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M,MAAM,EAAE,OA6Cb,CAAA;AAED,OAAO,EACH,MAAM,EACN,MAAM,EACN,QAAQ,GACX,CAAA"}
@@ -32,7 +32,7 @@ declare type ComponentSpecificCheckEventProps = {
32
32
  declare type ComponentSpecificSelectEventProps = {
33
33
  Select: {
34
34
  value: string;
35
- label: string;
35
+ label: string | Array<string>;
36
36
  };
37
37
  };
38
38
  declare type ComponentClickData<K extends keyof ComponentSpecificClickEventProps> = ComponentSpecificClickEventProps[K] & ComponentCommonEventProps;
@@ -1 +1 @@
1
- {"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../../src/components/_utils/analytics.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,aAAK,cAAc,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;AAElD,aAAK,yBAAyB,GAAG;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,aAAK,oBAAoB,CAAC,KAAK,SAAS,cAAc,EAAE,CAAC,IAAI;IACzD,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,CAAC,CAAA;CACf,GAAG,yBAAyB,CAAA;AAE7B,aAAK,gCAAgC,GAAG;IACpC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACzB,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;IACvC,iBAAiB,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CACtD,CAAA;AAED,aAAK,gCAAgC,GAAG;IACpC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACxB,QAAQ,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;CAC9B,CAAA;AAED,aAAK,iCAAiC,GAAG;I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,SAAS,MAAM,gCAAgC,EAAG,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,IAAI,CAiB1I;AAED,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,MAAM,iCAAiC,EAAG,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,IAAI,CAiB7I"}
package/dist/index.js CHANGED
@@ -8845,6 +8845,44 @@ function trimmedEndIndex(string) {
8845
8845
  module.exports = trimmedEndIndex;
8846
8846
 
8847
8847
 
8848
+ /***/ }),
8849
+
8850
+ /***/ 60417:
8851
+ /***/ (function(module) {
8852
+
8853
+ /**
8854
+ * Creates an array with all falsey values removed. The values `false`, `null`,
8855
+ * `0`, `""`, `undefined`, and `NaN` are falsey.
8856
+ *
8857
+ * @static
8858
+ * @memberOf _
8859
+ * @since 0.1.0
8860
+ * @category Array
8861
+ * @param {Array} array The array to compact.
8862
+ * @returns {Array} Returns the new array of filtered values.
8863
+ * @example
8864
+ *
8865
+ * _.compact([0, 1, false, 2, '', 3]);
8866
+ * // => [1, 2, 3]
8867
+ */
8868
+ function compact(array) {
8869
+ var index = -1,
8870
+ length = array == null ? 0 : array.length,
8871
+ resIndex = 0,
8872
+ result = [];
8873
+
8874
+ while (++index < length) {
8875
+ var value = array[index];
8876
+ if (value) {
8877
+ result[resIndex++] = value;
8878
+ }
8879
+ }
8880
+ return result;
8881
+ }
8882
+
8883
+ module.exports = compact;
8884
+
8885
+
8848
8886
  /***/ }),
8849
8887
 
8850
8888
  /***/ 86874:
@@ -69161,6 +69199,9 @@ var Modal_modal_Modal = function Modal(props) {
69161
69199
 
69162
69200
 
69163
69201
 
69202
+ // EXTERNAL MODULE: ../../node_modules/lodash/compact.js
69203
+ var compact = __webpack_require__(60417);
69204
+ var compact_default = /*#__PURE__*/__webpack_require__.n(compact);
69164
69205
  ;// CONCATENATED MODULE: ./src/components/Select/select.tsx
69165
69206
  var select_excluded = ["options", "children", "displayMode", "type", "onChange", "id"];
69166
69207
 
@@ -69178,6 +69219,7 @@ function select_objectWithoutPropertiesLoose(source, excluded) { if (source == n
69178
69219
 
69179
69220
 
69180
69221
 
69222
+
69181
69223
  var SELECT_CLASS_PREFIX = 'condo-select';
69182
69224
  var select_Option = es_select.Option;
69183
69225
  var select_OptGroup = es_select.OptGroup;
@@ -69194,10 +69236,17 @@ var Select_select_Select = function Select(props) {
69194
69236
  id = props.id,
69195
69237
  rest = select_objectWithoutProperties(props, select_excluded);
69196
69238
 
69197
- var className = node_modules_classnames_default_0()((_classNames = {}, select_defineProperty(_classNames, "".concat(SELECT_CLASS_PREFIX, "-").concat(displayMode), displayMode), select_defineProperty(_classNames, "".concat(SELECT_CLASS_PREFIX, "-").concat(type), type), _classNames)); // TODO(DOMA-5347): Handle this value and option properly
69198
-
69239
+ var className = node_modules_classnames_default_0()((_classNames = {}, select_defineProperty(_classNames, "".concat(SELECT_CLASS_PREFIX, "-").concat(displayMode), displayMode), select_defineProperty(_classNames, "".concat(SELECT_CLASS_PREFIX, "-").concat(type), type), _classNames));
69199
69240
  var handleChange = (0,external_react_.useCallback)(function (value, option) {
69200
- var title = extractChildrenContent(option.children);
69241
+ var title;
69242
+
69243
+ if (Array.isArray(option)) {
69244
+ title = compact_default()(option.map(function (opt) {
69245
+ return extractChildrenContent(opt.children);
69246
+ }));
69247
+ } else {
69248
+ title = extractChildrenContent(option.children);
69249
+ }
69201
69250
 
69202
69251
  if (title) {
69203
69252
  sendAnalyticsSelectEvent('Select', {
@@ -69517,7 +69566,7 @@ var Radio_radio_Radio = function Radio(props) {
69517
69566
 
69518
69567
 
69519
69568
  ;// CONCATENATED MODULE: ./src/components/Radio/radiogroup.tsx
69520
- var radiogroup_excluded = ["groups", "icon"];
69569
+ var radiogroup_excluded = ["groups", "children"];
69521
69570
 
69522
69571
  function radiogroup_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = radiogroup_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; }
69523
69572
 
@@ -69541,12 +69590,12 @@ function radiogroup_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
69541
69590
 
69542
69591
 
69543
69592
 
69593
+
69544
69594
  var RADIO_GROUP_CLASS_PREFIX = 'condo-radio';
69545
69595
 
69546
- var GroupWithIcon = function GroupWithIcon(_ref) {
69596
+ var ItemGroup = function ItemGroup(_ref) {
69547
69597
  var name = _ref.name,
69548
- options = _ref.options,
69549
- icon = _ref.icon;
69598
+ options = _ref.options;
69550
69599
 
69551
69600
  var _useState = (0,external_react_.useState)(false),
69552
69601
  _useState2 = radiogroup_slicedToArray(_useState, 2),
@@ -69567,7 +69616,9 @@ var GroupWithIcon = function GroupWithIcon(_ref) {
69567
69616
  onClick: onGroupClick
69568
69617
  }, /*#__PURE__*/external_react_default().createElement("span", {
69569
69618
  className: "".concat(RADIO_GROUP_CLASS_PREFIX, "-group-icon")
69570
- }, icon), /*#__PURE__*/external_react_default().createElement(Typography.Text, null, name)), /*#__PURE__*/external_react_default().createElement(space_Space, {
69619
+ }, /*#__PURE__*/external_react_default().createElement(dist.ChevronDown, {
69620
+ size: "small"
69621
+ })), /*#__PURE__*/external_react_default().createElement(Typography.Text, null, name)), /*#__PURE__*/external_react_default().createElement(space_Space, {
69571
69622
  direction: "vertical",
69572
69623
  size: 12
69573
69624
  }, options.map(function (_ref2) {
@@ -69582,23 +69633,24 @@ var GroupWithIcon = function GroupWithIcon(_ref) {
69582
69633
  })));
69583
69634
  };
69584
69635
 
69585
- var radiogroup_RadioGroup = function RadioGroup(props) {
69636
+ var CondoRadioGroup = function CondoRadioGroup(props) {
69586
69637
  var groups = props.groups,
69587
- icon = props.icon,
69638
+ children = props.children,
69588
69639
  rest = radiogroup_objectWithoutProperties(props, radiogroup_excluded);
69589
69640
 
69590
69641
  return /*#__PURE__*/external_react_default().createElement(es_radio.Group, radiogroup_extends({}, rest, {
69591
69642
  prefixCls: RADIO_GROUP_CLASS_PREFIX
69592
- }), groups.map(function (group) {
69593
- return /*#__PURE__*/external_react_default().createElement(GroupWithIcon, {
69643
+ }), groups ? groups.map(function (group) {
69644
+ return /*#__PURE__*/external_react_default().createElement(ItemGroup, {
69594
69645
  name: group.name,
69595
69646
  options: group.options,
69596
- key: group.name,
69597
- icon: icon
69647
+ key: group.name
69598
69648
  });
69599
- }));
69649
+ }) : children);
69600
69650
  };
69601
69651
 
69652
+ var radiogroup_RadioGroup = CondoRadioGroup;
69653
+ radiogroup_RadioGroup.ItemGroup = ItemGroup;
69602
69654
 
69603
69655
  ;// CONCATENATED MODULE: ./src/components/Radio/index.ts
69604
69656
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 17 Feb 2023 11:12:15 GMT
3
+ * Generated on Mon, 27 Feb 2023 12:52:56 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Fri, 17 Feb 2023 11:12:15 GMT
3
+ // Generated on Mon, 27 Feb 2023 12:52:56 GMT
4
4
 
5
5
  @condo-global-spacing-4: 4px;
6
6
  @condo-global-spacing-8: 8px;
package/dist/styles.css CHANGED
@@ -7103,9 +7103,9 @@ span.condo-radio + * {
7103
7103
  margin-top: initial;
7104
7104
  margin-left: 0;
7105
7105
  margin-left: initial;
7106
+ background: linear-gradient(90deg, #4cd174 0%, #6db8f2 100%);
7106
7107
  border-radius: 100%;
7107
7108
  transform: translate(-50%, -50%);
7108
- background: linear-gradient(90deg, #4cd174 0%, #6db8f2 100%);
7109
7109
  }
7110
7110
  .condo-radio-wrapper .condo-radio-checked > .condo-radio-input:focus + .condo-radio-inner {
7111
7111
  border: double 1px transparent;
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "React",
9
9
  "components"
10
10
  ],
11
- "version": "1.20.1",
11
+ "version": "1.20.3",
12
12
  "repository": {
13
13
  "type": "git",
14
14
  "url": "git+https://github.com/open-condo-software/condo.git",