wini-web-components 0.9.5 → 0.9.7

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.
@@ -50,7 +50,7 @@ var Checkbox = /** @class */ (function (_super) {
50
50
  };
51
51
  Checkbox.prototype.render = function () {
52
52
  var _this = this;
53
- var _a, _b, _c;
53
+ var _a, _b, _c, _d;
54
54
  var convertStyle = {
55
55
  width: (_a = this.props.size) !== null && _a !== void 0 ? _a : '2.4rem',
56
56
  height: (_b = this.props.size) !== null && _b !== void 0 ? _b : '2.4rem',
@@ -64,16 +64,19 @@ var Checkbox = /** @class */ (function (_super) {
64
64
  delete this.props.style.maxHeight;
65
65
  convertStyle = __assign(__assign({}, this.props.style), convertStyle);
66
66
  }
67
- return react_1.default.createElement("label", { className: "checkbox-container row", style: convertStyle },
67
+ return react_1.default.createElement("label", { className: "checkbox-container row", style: convertStyle, "is-null-value": "".concat(this.state.value == undefined) },
68
68
  react_1.default.createElement("input", { type: "checkbox", checked: this.state.value, disabled: this.props.disabled, onChange: function () {
69
69
  var newValue = !_this.state.value;
70
70
  _this.setState({ value: newValue });
71
71
  if (_this.props.onChange)
72
72
  _this.props.onChange(newValue);
73
73
  } }),
74
- react_1.default.createElement("svg", { width: "24", height: "24", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
75
- react_1.default.createElement("path", { d: "M6.72 11.52 L10.8 15.6 L18 7.2", fill: "none", strokeLinecap: "round", stroke: (_c = this.props.checkColor) !== null && _c !== void 0 ? _c : '#ffffff' })));
74
+ react_1.default.createElement("svg", { width: "100%", height: "100%", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, this.state.value == undefined ?
75
+ react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M15.07 6.49317C15.2549 6.67808 15.2549 6.97787 15.07 7.16278L8.91467 13.3181C8.72977 13.503 8.42997 13.503 8.24507 13.3181L4.93067 10.0037C4.74577 9.81878 4.74577 9.51899 4.93067 9.33408C5.11558 9.14917 5.41537 9.14917 5.60028 9.33408L8.57987 12.3137L14.4004 6.49317C14.5853 6.30827 14.8851 6.30827 15.07 6.49317Z", fill: (_c = this.props.checkColor) !== null && _c !== void 0 ? _c : '#ffffff' }) :
76
+ react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.79199 9.95298C4.79199 9.69148 5.00398 9.47949 5.26548 9.47949H14.7352C14.9967 9.47949 15.2087 9.69148 15.2087 9.95298C15.2087 10.2145 14.9967 10.4265 14.7352 10.4265H5.26548C5.00398 10.4265 4.79199 10.2145 4.79199 9.95298Z", fill: (_d = this.props.checkColor) !== null && _d !== void 0 ? _d : '#ffffff' })));
76
77
  };
77
78
  return Checkbox;
78
79
  }(react_1.default.Component));
79
80
  exports.Checkbox = Checkbox;
81
+ react_1.default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
82
+ react_1.default.createElement("rect", { width: "20", height: "20", rx: "4", fill: "#366AE2" }));
@@ -35,8 +35,6 @@ var free_solid_svg_icons_1 = require("@fortawesome/free-solid-svg-icons");
35
35
  var react_fontawesome_1 = require("@fortawesome/react-fontawesome");
36
36
  var react_dom_1 = __importDefault(require("react-dom"));
37
37
  require("./select1.css");
38
- ;
39
- ;
40
38
  var Select1 = /** @class */ (function (_super) {
41
39
  __extends(Select1, _super);
42
40
  function Select1(props) {