@open-condo/ui 2.0.1 → 2.2.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.
@@ -8,6 +8,7 @@ export declare type BannerProps = {
8
8
  imgUrl?: string;
9
9
  invertText?: boolean;
10
10
  id?: string;
11
+ size?: 'small' | 'medium';
11
12
  };
12
13
  export declare const Banner: React.FC<BannerProps>;
13
14
  //# sourceMappingURL=banner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../src/components/Banner/banner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,MAAM,OAAO,CAAA;AAO1C,oBAAY,WAAW,GAAG;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,EAAE,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAuBD,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA6ExC,CAAA"}
1
+ {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../src/components/Banner/banner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,MAAM,OAAO,CAAA;AAU1C,oBAAY,WAAW,GAAG;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;CAC5B,CAAA;AAyDD,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAiGxC,CAAA"}
@@ -4,6 +4,7 @@ import type { RadioProps as DefaultRadioProps } from 'antd';
4
4
  declare type CondoRadioProps = {
5
5
  label?: string;
6
6
  labelProps?: TypographyTextProps;
7
+ icon?: React.ReactNode;
7
8
  };
8
9
  export declare type RadioProps = Pick<DefaultRadioProps, 'autoFocus' | 'defaultChecked' | 'disabled' | 'onChange' | 'checked' | 'value' | 'children' | 'id'> & CondoRadioProps;
9
10
  export interface IRadio {
@@ -1 +1 @@
1
- {"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/radio.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,MAAM,OAAO,CAAA;AAK1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACxD,OAAO,KAAK,EAAE,UAAU,IAAI,iBAAiB,EAAoB,MAAM,MAAM,CAAA;AAI7E,aAAK,eAAe,GAAG;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,mBAAmB,CAAA;CACnC,CAAA;AAED,oBAAY,UAAU,GAAG,IAAI,CAAC,iBAAiB,EAAE,WAAW,GAAG,gBAAgB,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,IAAI,CAAC,GAClJ,eAAe,CAAA;AAEjB,MAAM,WAAW,MAAM;IACnB,CAAC,KAAK,EAAE,UAAU,GAAG,KAAK,CAAC,YAAY,CAAA;CAC1C;AAED,QAAA,MAAM,KAAK,EAAE,MA6BZ,CAAA;AAED,OAAO,EACH,KAAK,GACR,CAAA"}
1
+ {"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/radio.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,MAAM,OAAO,CAAA;AAK1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACxD,OAAO,KAAK,EAAE,UAAU,IAAI,iBAAiB,EAAoB,MAAM,MAAM,CAAA;AAI7E,aAAK,eAAe,GAAG;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,mBAAmB,CAAA;IAChC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACzB,CAAA;AAED,oBAAY,UAAU,GAAG,IAAI,CAAC,iBAAiB,EAAE,WAAW,GAAG,gBAAgB,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,IAAI,CAAC,GAClJ,eAAe,CAAA;AAEjB,MAAM,WAAW,MAAM;IACnB,CAAC,KAAK,EAAE,UAAU,GAAG,KAAK,CAAC,YAAY,CAAA;CAC1C;AAED,QAAA,MAAM,KAAK,EAAE,MAqCZ,CAAA;AAED,OAAO,EACH,KAAK,GACR,CAAA"}
@@ -8,7 +8,7 @@ export declare type ItemGroupProps = {
8
8
  name: string;
9
9
  options: Array<ItemGroupOptionType>;
10
10
  };
11
- export declare type RadioGroupProps = Pick<DefaultRadioGroupProps, 'value' | 'onChange' | 'disabled' | 'children'>;
11
+ export declare type RadioGroupProps = Pick<DefaultRadioGroupProps, 'value' | 'onChange' | 'disabled' | 'children' | 'optionType'>;
12
12
  declare type CompoundedComponent = React.FC<RadioGroupProps> & {
13
13
  ItemGroup: React.FC<ItemGroupProps>;
14
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"radiogroup.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/radiogroup.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAgC,MAAM,OAAO,CAAA;AAIpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,OAAO,KAAK,EAAE,eAAe,IAAI,sBAAsB,EAAE,MAAM,MAAM,CAAA;AAIrE,aAAK,mBAAmB,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG;IAC7D,UAAU,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,YAAY,GAAG,UAAU,CAAC,CAAC,CAAA;CACpE,CAAA;AAED,oBAAY,cAAc,GAAG;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAA;CACtC,CAAA;AAED,oBAAY,eAAe,GAAG,IAAI,CAAC,sBAAsB,EAAE,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC,CAAA;AAE1G,aAAK,mBAAmB,GAAG,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,GAAG;IACnD,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAAC,CAAA;CACtC,CAAA;AA4CD,QAAA,MAAM,UAAU,qBAAyC,CAAA;AAGzD,OAAO,EACH,UAAU,GACb,CAAA"}
1
+ {"version":3,"file":"radiogroup.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/radiogroup.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAgC,MAAM,OAAO,CAAA;AAIpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,OAAO,KAAK,EAAE,eAAe,IAAI,sBAAsB,EAAE,MAAM,MAAM,CAAA;AAIrE,aAAK,mBAAmB,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG;IAC7D,UAAU,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,YAAY,GAAG,UAAU,CAAC,CAAC,CAAA;CACpE,CAAA;AAED,oBAAY,cAAc,GAAG;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAA;CACtC,CAAA;AAED,oBAAY,eAAe,GAAG,IAAI,CAAC,sBAAsB,EAAE,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,YAAY,CAAC,CAAA;AAEzH,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"}
package/dist/index.js CHANGED
@@ -48661,6 +48661,10 @@ var alert_Alert = function Alert(props) {
48661
48661
 
48662
48662
 
48663
48663
 
48664
+ // EXTERNAL MODULE: ../icons/dist/index.js
48665
+ var dist = __webpack_require__(66162);
48666
+ // EXTERNAL MODULE: ./src/colors/index.ts + 2 modules
48667
+ var colors = __webpack_require__(41740);
48664
48668
  ;// CONCATENATED MODULE: ./src/components/_utils/hooks/usePatchElement.ts
48665
48669
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
48666
48670
 
@@ -49606,6 +49610,8 @@ function banner_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
49606
49610
 
49607
49611
 
49608
49612
 
49613
+
49614
+
49609
49615
  // NOTE: Some ad blockers block elements containing "banner" in classes
49610
49616
  var CLASS_PREFIX = 'condo-promo-block';
49611
49617
  var LG_BARRIER = 875;
@@ -49627,8 +49633,42 @@ var getSize = function getSize(width) {
49627
49633
  }
49628
49634
  };
49629
49635
 
49636
+ var getTextSize = function getTextSize(width, bannerSize) {
49637
+ if (bannerSize === 'small') {
49638
+ return 'medium';
49639
+ }
49640
+
49641
+ return width >= LG_BARRIER || width < MD_BARRIER ? 'large' : 'medium';
49642
+ };
49643
+
49644
+ var getTitleLevel = function getTitleLevel(width, bannerSize) {
49645
+ if (bannerSize === 'small') {
49646
+ return 4;
49647
+ }
49648
+
49649
+ return width >= LG_BARRIER || width < MD_BARRIER && width >= SM_BARRIER ? 2 : 3;
49650
+ };
49651
+
49652
+ var getTitleRows = function getTitleRows(width, bannerSize) {
49653
+ if (bannerSize === 'small') {
49654
+ return width < SM_BARRIER ? 2 : 1;
49655
+ }
49656
+
49657
+ return 3;
49658
+ };
49659
+
49660
+ var getShowImage = function getShowImage(width, bannerSize, imgUrl) {
49661
+ if (!imgUrl) return false;
49662
+
49663
+ if (bannerSize === 'small') {
49664
+ return width >= LG_BARRIER;
49665
+ }
49666
+
49667
+ return width >= MD_BARRIER;
49668
+ };
49669
+
49630
49670
  var Banner = function Banner(_ref) {
49631
- var _classNames, _classNames2;
49671
+ var _classNames;
49632
49672
 
49633
49673
  var backgroundColor = _ref.backgroundColor,
49634
49674
  actionText = _ref.actionText,
@@ -49637,18 +49677,21 @@ var Banner = function Banner(_ref) {
49637
49677
  subtitle = _ref.subtitle,
49638
49678
  imgUrl = _ref.imgUrl,
49639
49679
  invertText = _ref.invertText,
49640
- id = _ref.id;
49680
+ id = _ref.id,
49681
+ _ref$size = _ref.size,
49682
+ size = _ref$size === void 0 ? 'medium' : _ref$size;
49641
49683
 
49642
49684
  var _useContainerSize = useContainerSize(),
49643
49685
  _useContainerSize2 = banner_slicedToArray(_useContainerSize, 2),
49644
49686
  width = _useContainerSize2[0].width,
49645
49687
  setRef = _useContainerSize2[1];
49646
49688
 
49647
- var showImage = imgUrl && width >= MD_BARRIER;
49648
- var bannerClasses = node_modules_classnames_default()((_classNames = {}, banner_defineProperty(_classNames, "".concat(CLASS_PREFIX), true), banner_defineProperty(_classNames, "".concat(CLASS_PREFIX, "-no-image"), !showImage), _classNames));
49649
- var contentContainerClasses = node_modules_classnames_default()((_classNames2 = {}, banner_defineProperty(_classNames2, "".concat(CLASS_PREFIX, "-content-container"), true), banner_defineProperty(_classNames2, "".concat(CLASS_PREFIX, "-content-container-").concat(getSize(width)), getSize(width)), _classNames2));
49650
- var titleLevel = width >= LG_BARRIER || width < MD_BARRIER && width >= SM_BARRIER ? 2 : 3;
49651
- var textSize = width >= LG_BARRIER || width < MD_BARRIER ? 'large' : 'medium';
49689
+ var showImage = getShowImage(width, size, imgUrl);
49690
+ var bannerClasses = node_modules_classnames_default()((_classNames = {}, banner_defineProperty(_classNames, "".concat(CLASS_PREFIX), true), banner_defineProperty(_classNames, "".concat(CLASS_PREFIX, "-no-image"), !showImage), banner_defineProperty(_classNames, "".concat(CLASS_PREFIX, "-").concat(size), size), banner_defineProperty(_classNames, "".concat(CLASS_PREFIX, "-").concat(getSize(width)), getSize(width)), _classNames));
49691
+ var contentContainerClasses = node_modules_classnames_default()(banner_defineProperty({}, "".concat(CLASS_PREFIX, "-content-container"), true));
49692
+ var titleLevel = getTitleLevel(width, size);
49693
+ var titleRows = getTitleRows(width, size);
49694
+ var textSize = getTextSize(width, size);
49652
49695
  var handleClick = (0,external_react_.useCallback)(function (event) {
49653
49696
  sendAnalyticsClickEvent('Banner', {
49654
49697
  title: title,
@@ -49671,21 +49714,29 @@ var Banner = function Banner(_ref) {
49671
49714
  }, /*#__PURE__*/external_react_default().createElement("div", {
49672
49715
  className: "".concat(CLASS_PREFIX, "-text-container")
49673
49716
  }, /*#__PURE__*/external_react_default().createElement(Typography.Title, {
49674
- type: invertText ? 'inverted' : undefined,
49717
+ type: invertText ? 'inverted' : 'primary',
49675
49718
  level: titleLevel,
49676
49719
  ellipsis: {
49677
- rows: 3
49720
+ rows: titleRows
49678
49721
  }
49679
49722
  }, title), /*#__PURE__*/external_react_default().createElement(Typography.Paragraph, {
49680
- type: invertText ? 'inverted' : undefined,
49723
+ type: invertText ? 'inverted' : 'secondary',
49681
49724
  ellipsis: {
49682
- rows: 3
49725
+ rows: size === 'small' ? 2 : 3
49683
49726
  },
49684
49727
  size: textSize
49685
- }, subtitle)), Boolean(actionText) && /*#__PURE__*/external_react_default().createElement(button_Button, {
49728
+ }, subtitle)), Boolean(actionText) && (size === 'small' ? /*#__PURE__*/external_react_default().createElement("div", {
49729
+ className: "".concat(CLASS_PREFIX, "-action-link")
49730
+ }, /*#__PURE__*/external_react_default().createElement(Typography.Text, {
49731
+ type: invertText ? 'inverted' : 'primary'
49732
+ }, actionText), /*#__PURE__*/external_react_default().createElement(dist.ChevronRight, {
49733
+ color: invertText ? colors.colors.white : colors.colors.black,
49734
+ size: "small",
49735
+ className: "".concat(CLASS_PREFIX, "-action-icon")
49736
+ })) : /*#__PURE__*/external_react_default().createElement(button_Button, {
49686
49737
  type: "primary",
49687
49738
  stateless: true
49688
- }, actionText)), imgUrl && width > MD_BARRIER && /*#__PURE__*/external_react_default().createElement("div", {
49739
+ }, actionText))), showImage && /*#__PURE__*/external_react_default().createElement("div", {
49689
49740
  className: "".concat(CLASS_PREFIX, "-image-container")
49690
49741
  }, /*#__PURE__*/external_react_default().createElement("img", {
49691
49742
  src: imgUrl,
@@ -59350,8 +59401,6 @@ var Carousel = /*#__PURE__*/external_react_.forwardRef(function (_a, ref) {
59350
59401
  })));
59351
59402
  });
59352
59403
  /* harmony default export */ var carousel = (Carousel);
59353
- // EXTERNAL MODULE: ../icons/dist/index.js
59354
- var dist = __webpack_require__(66162);
59355
59404
  ;// CONCATENATED MODULE: ./src/components/_utils/controls/arrows.tsx
59356
59405
  var arrows_excluded = ["className", "size", "type"];
59357
59406
 
@@ -66919,8 +66968,6 @@ List_list_List.displayName = 'List';
66919
66968
 
66920
66969
 
66921
66970
 
66922
- // EXTERNAL MODULE: ./src/colors/index.ts + 2 modules
66923
- var colors = __webpack_require__(41740);
66924
66971
  ;// CONCATENATED MODULE: ./node_modules/antd/es/_util/colors.js
66925
66972
 
66926
66973
  var PresetStatusColorTypes = tuple('success', 'processing', 'error', 'default', 'warning');
@@ -70584,7 +70631,7 @@ radio_Radio.Group = group;
70584
70631
  radio_Radio.__ANT_RADIO = true;
70585
70632
  /* harmony default export */ var es_radio = (radio_Radio);
70586
70633
  ;// CONCATENATED MODULE: ./src/components/Radio/radio.tsx
70587
- var radio_excluded = ["label", "labelProps", "disabled", "onChange", "children", "id"];
70634
+ var radio_excluded = ["label", "icon", "labelProps", "disabled", "onChange", "children", "id"];
70588
70635
 
70589
70636
  function radio_extends() { radio_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 radio_extends.apply(this, arguments); }
70590
70637
 
@@ -70600,6 +70647,7 @@ var RADIO_CLASS_PREFIX = 'condo-radio';
70600
70647
 
70601
70648
  var Radio_radio_Radio = function Radio(props) {
70602
70649
  var label = props.label,
70650
+ icon = props.icon,
70603
70651
  labelProps = props.labelProps,
70604
70652
  disabled = props.disabled,
70605
70653
  onChange = props.onChange,
@@ -70621,19 +70669,32 @@ var Radio_radio_Radio = function Radio(props) {
70621
70669
  onChange(event);
70622
70670
  }
70623
70671
  }, [label, children, onChange, id]);
70672
+ var wrappedIcon = icon ? /*#__PURE__*/external_react_default().createElement("span", {
70673
+ className: "".concat(RADIO_CLASS_PREFIX, "-icon")
70674
+ }, icon) : null;
70624
70675
  return /*#__PURE__*/external_react_default().createElement(es_radio, radio_extends({}, rest, {
70625
70676
  id: id,
70626
70677
  prefixCls: RADIO_CLASS_PREFIX,
70627
70678
  disabled: disabled,
70628
70679
  onChange: handleChange
70629
- }), label ? /*#__PURE__*/external_react_default().createElement(Typography.Text, radio_extends({
70680
+ }), label ? /*#__PURE__*/external_react_default().createElement("div", {
70681
+ className: "".concat(RADIO_CLASS_PREFIX, "-label-container")
70682
+ }, wrappedIcon, /*#__PURE__*/external_react_default().createElement(Typography.Text, radio_extends({
70630
70683
  size: "medium",
70631
70684
  disabled: disabled
70632
- }, labelProps), label) : children);
70685
+ }, labelProps), label)) : children);
70633
70686
  };
70634
70687
 
70635
70688
 
70636
70689
  ;// CONCATENATED MODULE: ./src/components/Radio/radiogroup.tsx
70690
+ var radiogroup_excluded = ["optionType"];
70691
+
70692
+ function radiogroup_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; }
70693
+
70694
+ 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; }
70695
+
70696
+ function radiogroup_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; }
70697
+
70637
70698
  function radiogroup_extends() { radiogroup_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 radiogroup_extends.apply(this, arguments); }
70638
70699
 
70639
70700
  function radiogroup_slicedToArray(arr, i) { return radiogroup_arrayWithHoles(arr) || radiogroup_iterableToArrayLimit(arr, i) || radiogroup_unsupportedIterableToArray(arr, i) || radiogroup_nonIterableRest(); }
@@ -70695,9 +70756,15 @@ var ItemGroup = function ItemGroup(_ref) {
70695
70756
  })));
70696
70757
  };
70697
70758
 
70698
- var CondoRadioGroup = function CondoRadioGroup(props) {
70759
+ var CondoRadioGroup = function CondoRadioGroup(_ref3) {
70760
+ var optionType = _ref3.optionType,
70761
+ props = radiogroup_objectWithoutProperties(_ref3, radiogroup_excluded);
70762
+
70763
+ var groupClassName = node_modules_classnames_default()(radiogroup_defineProperty({}, "".concat(RADIO_GROUP_CLASS_PREFIX, "-button"), optionType === 'button'));
70699
70764
  return /*#__PURE__*/external_react_default().createElement(es_radio.Group, radiogroup_extends({}, props, {
70700
- prefixCls: RADIO_GROUP_CLASS_PREFIX
70765
+ className: groupClassName,
70766
+ prefixCls: RADIO_GROUP_CLASS_PREFIX,
70767
+ optionType: optionType
70701
70768
  }));
70702
70769
  };
70703
70770
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 17 May 2023 10:11:02 GMT
3
+ * Generated on Thu, 18 May 2023 15:11:14 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Wed, 17 May 2023 10:11:02 GMT
3
+ // Generated on Thu, 18 May 2023 15:11:14 GMT
4
4
 
5
5
  @condo-global-spacing-4: 4px;
6
6
  @condo-global-spacing-8: 8px;
package/dist/styles.css CHANGED
@@ -3373,29 +3373,68 @@ a.condo-btn-secondary {
3373
3373
  flex-direction: column;
3374
3374
  align-items: flex-start;
3375
3375
  justify-content: space-between;
3376
- padding: 60px 12px 60px 60px;
3376
+ padding: 60px 32px 60px 60px;
3377
3377
  }
3378
- .condo-promo-block-content-container-md,
3379
- .condo-promo-block-content-container-sm {
3380
- padding: 52px 12px 52px 40px;
3378
+ .condo-promo-block-md > .condo-promo-block-content-container,
3379
+ .condo-promo-block-sm > .condo-promo-block-content-container {
3380
+ padding: 52px 32px 52px 40px;
3381
3381
  }
3382
- .condo-promo-block-content-container-xs {
3382
+ .condo-promo-block-xs > .condo-promo-block-content-container {
3383
3383
  padding: 40px;
3384
3384
  }
3385
- .condo-promo-block-content-container-xxs {
3385
+ .condo-promo-block-xxs > .condo-promo-block-content-container {
3386
3386
  padding: 40px 32px;
3387
3387
  }
3388
3388
  .condo-promo-block-no-image > .condo-promo-block-content-container {
3389
3389
  width: 100%;
3390
3390
  padding-right: 60px;
3391
3391
  }
3392
- .condo-promo-block-no-image > .condo-promo-block-content-container-md,
3393
- .condo-promo-block-no-image > .condo-promo-block-content-container-sm {
3394
- padding-right: 52px;
3395
- }
3396
3392
  .condo-promo-block-text-container > *:not(:last-child) {
3397
3393
  margin-bottom: 16px;
3398
3394
  }
3395
+ .condo-promo-block-small {
3396
+ height: 180px;
3397
+ }
3398
+ .condo-promo-block-small .condo-promo-block-content-container {
3399
+ padding: 32px 40px 32px 40px;
3400
+ }
3401
+ .condo-promo-block-small .condo-promo-block-content-container .condo-promo-block-text-container {
3402
+ width: 100%;
3403
+ }
3404
+ .condo-promo-block-small .condo-promo-block-content-container .condo-promo-block-text-container h4.condo-typography {
3405
+ margin-bottom: 12px;
3406
+ }
3407
+ .condo-promo-block-sm.condo-promo-block-small,
3408
+ .condo-promo-block-xs.condo-promo-block-small,
3409
+ .condo-promo-block-xxs.condo-promo-block-small {
3410
+ height: 172px;
3411
+ }
3412
+ .condo-promo-block-sm.condo-promo-block-small .condo-promo-block-content-container,
3413
+ .condo-promo-block-xs.condo-promo-block-small .condo-promo-block-content-container,
3414
+ .condo-promo-block-xxs.condo-promo-block-small .condo-promo-block-content-container {
3415
+ padding: 24px 24px 32px;
3416
+ }
3417
+ .condo-promo-block-xs.condo-promo-block-small,
3418
+ .condo-promo-block-xxs.condo-promo-block-small {
3419
+ height: 196px;
3420
+ }
3421
+ .condo-promo-block-md.condo-promo-block-no-image > .condo-promo-block-content-container,
3422
+ .condo-promo-block-sm.condo-promo-block-no-image > .condo-promo-block-content-container {
3423
+ padding-right: 52px;
3424
+ }
3425
+ .condo-promo-block:not(.condo-promo-block-no-image) .condo-promo-block-text-container {
3426
+ max-width: 420px;
3427
+ }
3428
+ .condo-promo-block-action-link {
3429
+ display: flex;
3430
+ align-items: center;
3431
+ }
3432
+ .condo-promo-block-action-link > .condo-typography {
3433
+ margin-right: 4px;
3434
+ }
3435
+ .condo-promo-block-action-link .condo-promo-block-action-icon {
3436
+ margin-top: 3px;
3437
+ }
3399
3438
  .condo-promo-block-image-container > img {
3400
3439
  width: 100%;
3401
3440
  height: 100%;
@@ -4076,12 +4115,15 @@ a.condo-btn-secondary {
4076
4115
  }
4077
4116
  .condo-carousel .slick-dots li button {
4078
4117
  background: transparent;
4079
- border: 1px solid #fff;
4118
+ border: 1px solid #222;
4080
4119
  border-radius: 4px;
4081
4120
  opacity: 0.5;
4082
4121
  }
4122
+ .condo-carousel .slick-dots li.slick-active button {
4123
+ background-color: #222;
4124
+ }
4083
4125
  .condo-carousel .slick-dots-bottom {
4084
- bottom: 40px;
4126
+ bottom: 12px;
4085
4127
  margin-top: 0;
4086
4128
  margin-bottom: 0;
4087
4129
  }
@@ -4117,7 +4159,7 @@ a.condo-btn-secondary {
4117
4159
  }
4118
4160
  .condo-carousel .slick-list {
4119
4161
  margin: 0 -20px;
4120
- padding: 20px 0;
4162
+ padding: 0;
4121
4163
  }
4122
4164
  .condo-carousel .slick-list > .slick-track {
4123
4165
  display: flex;
@@ -6176,6 +6218,11 @@ span.condo-radio + * {
6176
6218
  border: double 1px transparent;
6177
6219
  box-shadow: none;
6178
6220
  }
6221
+ .condo-radio-icon {
6222
+ display: inline-flex;
6223
+ margin-right: 8px;
6224
+ color: #222;
6225
+ }
6179
6226
  .condo-radio-group {
6180
6227
  display: flex;
6181
6228
  flex-direction: column;
@@ -6206,6 +6253,71 @@ span.condo-radio + * {
6206
6253
  .condo-radio-group > .condo-radio-group-container:not(:first-child) {
6207
6254
  margin-top: 24px;
6208
6255
  }
6256
+ .condo-radio-group.condo-radio-button {
6257
+ display: inline-flex;
6258
+ flex-direction: row;
6259
+ width: 100%;
6260
+ min-height: calc(40px + 8px);
6261
+ padding: 4px;
6262
+ white-space: nowrap;
6263
+ background: #e1e5ed;
6264
+ border-radius: 12px;
6265
+ }
6266
+ .condo-radio-group.condo-radio-button > .condo-radio-button-wrapper,
6267
+ .condo-radio-group.condo-radio-button > .condo-radio-button-wrapper .condo-typography {
6268
+ line-height: 40px;
6269
+ }
6270
+ .condo-radio-group.condo-radio-button > .condo-radio-button-wrapper .condo-typography {
6271
+ font-weight: 600;
6272
+ font-size: 14px;
6273
+ font-family: "Open Sans", var(--condo-font-fallback);
6274
+ line-height: 22px;
6275
+ letter-spacing: -0.01em;
6276
+ margin: 0;
6277
+ }
6278
+ .condo-radio-group.condo-radio-button > .condo-radio-button-wrapper > span:not(.condo-radio-button) {
6279
+ display: flex;
6280
+ flex: 1;
6281
+ justify-content: center;
6282
+ height: 100%;
6283
+ min-height: 40px;
6284
+ }
6285
+ .condo-radio-group.condo-radio-button > .condo-radio-button-wrapper .condo-radio-label-container {
6286
+ display: inline-flex;
6287
+ flex-direction: row;
6288
+ align-items: center;
6289
+ justify-content: center;
6290
+ }
6291
+ .condo-radio-group.condo-radio-button > .condo-radio-button-wrapper {
6292
+ flex: 1;
6293
+ height: 100%;
6294
+ background: #e1e5ed;
6295
+ border: none;
6296
+ box-shadow: none;
6297
+ transition: none;
6298
+ }
6299
+ .condo-radio-group.condo-radio-button > .condo-radio-button-wrapper::before {
6300
+ display: none;
6301
+ }
6302
+ .condo-radio-group.condo-radio-button > .condo-radio-button-wrapper.condo-radio-button-wrapper-disabled .condo-typography,
6303
+ .condo-radio-group.condo-radio-button > .condo-radio-button-wrapper.condo-radio-button-wrapper-disabled .condo-radio-icon {
6304
+ color: #707695;
6305
+ }
6306
+ .condo-radio-group.condo-radio-button > .condo-radio-button-wrapper:not(.condo-radio-button-wrapper-disabled):not(.condo-radio-button-wrapper-checked):hover .condo-radio-icon {
6307
+ color: #39ce66;
6308
+ }
6309
+ .condo-radio-group.condo-radio-button > .condo-radio-button-wrapper:not(.condo-radio-button-wrapper-disabled):not(.condo-radio-button-wrapper-checked):hover .condo-typography {
6310
+ background-color: #222;
6311
+ background-image: linear-gradient(90deg, #4cd174 0%, #6db8f2 100%);
6312
+ background-size: 100%;
6313
+ -webkit-background-clip: text;
6314
+ -webkit-text-fill-color: transparent;
6315
+ }
6316
+ .condo-radio-button-wrapper-checked:not(.condo-radio-group.condo-radio-button-disabled).condo-radio-button-wrapper {
6317
+ background: #fff;
6318
+ border-radius: 8px;
6319
+ box-shadow: 0 4px 14px 0 rgba(178,185,217,0.4);
6320
+ }
6209
6321
 
6210
6322
  /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
6211
6323
  /* stylelint-disable no-duplicate-selectors */