wini-web-components 1.5.3 → 1.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,7 +30,9 @@ var Button = /** @class */ (function (_super) {
30
30
  Button.prototype.render = function () {
31
31
  var _a, _b;
32
32
  return react_1.default.createElement("button", { id: this.props.id, type: (_a = this.props.type) !== null && _a !== void 0 ? _a : "button", disabled: this.props.disabled, className: "".concat(button_module_css_1.default['button-container'], " row ").concat((_b = this.props.className) !== null && _b !== void 0 ? _b : "button-text-3"), style: this.props.style, onClick: this.props.onClick },
33
- react_1.default.createElement(text_1.Text, { maxLine: 1, className: button_module_css_1.default['button-label'] }, this.props.label));
33
+ this.props.prefix,
34
+ react_1.default.createElement(text_1.Text, { maxLine: 1, className: button_module_css_1.default['button-label'] }, this.props.label),
35
+ this.props.suffix);
34
36
  };
35
37
  return Button;
36
38
  }(react_1.default.Component));
@@ -1,5 +1,4 @@
1
1
  import React, { CSSProperties } from 'react';
2
- import './radio-button.css';
3
2
  import { UseFormRegister } from 'react-hook-form';
4
3
  interface RadioButtonProps {
5
4
  id?: string;
@@ -31,7 +31,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
32
  exports.RadioButton = void 0;
33
33
  var react_1 = __importDefault(require("react"));
34
- require("./radio-button.css");
34
+ var radio_button_module_css_1 = __importDefault(require("./radio-button.module.css"));
35
35
  var RadioButton = /** @class */ (function (_super) {
36
36
  __extends(RadioButton, _super);
37
37
  function RadioButton() {
@@ -53,11 +53,11 @@ var RadioButton = /** @class */ (function (_super) {
53
53
  delete this.props.style.maxHeight;
54
54
  convertStyle = __assign(__assign({}, this.props.style), convertStyle);
55
55
  }
56
- return react_1.default.createElement("label", { id: this.props.id, className: "radio-btn-container row ".concat((_c = this.props.className) !== null && _c !== void 0 ? _c : ''), style: convertStyle },
56
+ return react_1.default.createElement("label", { id: this.props.id, className: "row ".concat(radio_button_module_css_1.default['radio-btn-container'], " ").concat((_c = this.props.className) !== null && _c !== void 0 ? _c : ''), style: convertStyle },
57
57
  this.props.register ?
58
58
  react_1.default.createElement("input", __assign({}, this.props.register, { type: "radio", value: this.props.value, disabled: this.props.disabled })) :
59
59
  react_1.default.createElement("input", { type: "radio", name: this.props.name, value: this.props.value, defaultChecked: this.props.defaultChecked, disabled: this.props.disabled, onChange: this.props.onChange }),
60
- react_1.default.createElement("span", { className: "checkmark" }));
60
+ react_1.default.createElement("span", { className: radio_button_module_css_1.default['checkmark'] }));
61
61
  };
62
62
  return RadioButton;
63
63
  }(react_1.default.Component));