wini-web-components 2.4.8 → 2.4.9

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.
@@ -5,6 +5,8 @@ interface ButtonProps {
5
5
  prefix?: ReactNode;
6
6
  suffix?: ReactNode;
7
7
  disabled?: boolean;
8
+ linkTo?: string;
9
+ target?: string;
8
10
  style?: CSSProperties;
9
11
  type?: "button" | "reset" | "submit";
10
12
  /**
@@ -28,8 +28,11 @@ var Button = /** @class */ (function (_super) {
28
28
  return _super !== null && _super.apply(this, arguments) || this;
29
29
  }
30
30
  Button.prototype.render = function () {
31
- var _a, _b;
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 },
31
+ var _a, _b, _c;
32
+ return this.props.linkTo ? react_1.default.createElement("a", { id: this.props.id, href: this.props.disabled ? undefined : this.props.linkTo, target: this.props.target, className: "".concat(button_module_css_1.default['button-container'], " row ").concat((_a = this.props.className) !== null && _a !== void 0 ? _a : "button-text-3"), style: this.props.style },
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) : react_1.default.createElement("button", { id: this.props.id, type: (_b = this.props.type) !== null && _b !== void 0 ? _b : "button", disabled: this.props.disabled, className: "".concat(button_module_css_1.default['button-container'], " row ").concat((_c = this.props.className) !== null && _c !== void 0 ? _c : "button-text-3"), style: this.props.style, onClick: this.props.onClick },
33
36
  this.props.prefix,
34
37
  react_1.default.createElement(text_1.Text, { maxLine: 1, className: button_module_css_1.default['button-label'] }, this.props.label),
35
38
  this.props.suffix);
@@ -296,7 +296,7 @@ var TSelectMultiple = /** @class */ (function (_super) {
296
296
  }, className: 'row' },
297
297
  react_1.default.createElement(winicon_1.Winicon, { src: this.state.isOpen ? "fill/arrows/up-arrow" : "fill/arrows/down-arrow", size: '1.2rem' })),
298
298
  this.state.isOpen &&
299
- react_dom_1.default.createPortal(react_1.default.createElement(popup_1.PopupOverlay, { className: "".concat(input_multi_select_module_css_1.default['select-multi-popup'], " select-multi-popup col ").concat((_e = this.props.popupClassName) !== null && _e !== void 0 ? _e : ""), style: (_f = this.state.style) !== null && _f !== void 0 ? _f : {
299
+ react_dom_1.default.createPortal(react_1.default.createElement(popup_1.PopupOverlay, { className: "".concat(input_multi_select_module_css_1.default['select-multi-popup'], " hidden-overlay select-multi-popup col ").concat((_e = this.props.popupClassName) !== null && _e !== void 0 ? _e : ""), style: (_f = this.state.style) !== null && _f !== void 0 ? _f : {
300
300
  top: this.state.offset.y + this.state.offset.height + 2 + 'px',
301
301
  left: this.state.offset.x + 'px',
302
302
  width: this.state.offset.width,
@@ -279,7 +279,7 @@ var TSelect1 = /** @class */ (function (_super) {
279
279
  }, className: 'row' },
280
280
  react_1.default.createElement(winicon_1.Winicon, { src: this.state.isOpen ? "fill/arrows/up-arrow" : "fill/arrows/down-arrow", size: "1.2rem" })),
281
281
  this.state.isOpen &&
282
- react_dom_1.default.createPortal(react_1.default.createElement(popup_1.PopupOverlay, { onOpen: this.props.onOpenOptions, className: "".concat(select1_module_css_1.default['select1-popup'], " select1-popup col ").concat((_f = this.props.popupClassName) !== null && _f !== void 0 ? _f : ""), style: (_g = this.state.style) !== null && _g !== void 0 ? _g : {
282
+ react_dom_1.default.createPortal(react_1.default.createElement(popup_1.PopupOverlay, { onOpen: this.props.onOpenOptions, className: "".concat(select1_module_css_1.default['select1-popup'], " hidden-overlay select1-popup col ").concat((_f = this.props.popupClassName) !== null && _f !== void 0 ? _f : ""), style: (_g = this.state.style) !== null && _g !== void 0 ? _g : {
283
283
  top: this.state.offset.y + this.state.offset.height + 2 + 'px',
284
284
  left: this.state.offset.x + 'px',
285
285
  width: this.state.offset.width,