acsi-core 0.1.14 → 0.1.15

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,6 +1,6 @@
1
1
  import React from "react";
2
2
  interface IProps {
3
- type?: "primary" | "secondary" | "text";
3
+ type?: "primary" | "secondary" | "text" | "danger";
4
4
  children: string | JSX.Element;
5
5
  onClick?: any;
6
6
  icon?: JSX.Element | string;
package/dist/index.css CHANGED
@@ -155,6 +155,10 @@
155
155
  background-color: transparent;
156
156
  color: #101129; }
157
157
 
158
+ ._2uYm1 {
159
+ background-color: #DA0004;
160
+ color: #fff; }
161
+
158
162
  ._1WdX2 {
159
163
  display: flex;
160
164
  flex-direction: column; }
package/dist/index.js CHANGED
@@ -974,7 +974,7 @@ var CustomPagination = function CustomPagination(_ref) {
974
974
  })));
975
975
  };
976
976
 
977
- var styles = {"core-button":"_xvNBN","primary":"_U9Qyp","secondary":"_1VzMy","text":"_pZNuj"};
977
+ var styles = {"core-button":"_xvNBN","primary":"_U9Qyp","secondary":"_1VzMy","text":"_pZNuj","danger":"_2uYm1"};
978
978
 
979
979
  var CoreButton = function CoreButton(props) {
980
980
  var _props$type = props.type,
@@ -982,21 +982,15 @@ var CoreButton = function CoreButton(props) {
982
982
  children = props.children,
983
983
  onClick = props.onClick,
984
984
  icon = props.icon,
985
- background = props.background,
986
985
  _props$disabled = props.disabled,
987
986
  disabled = _props$disabled === void 0 ? false : _props$disabled,
988
- color = props.color,
989
987
  _props$htmlType = props.htmlType,
990
988
  htmlType = _props$htmlType === void 0 ? "button" : _props$htmlType;
991
989
  return React__default.createElement("button", {
992
990
  className: styles["core-button"] + " " + styles[type],
993
991
  onClick: onClick,
994
992
  disabled: disabled,
995
- type: htmlType,
996
- style: {
997
- background: background,
998
- color: color
999
- }
993
+ type: htmlType
1000
994
  }, icon && icon, children);
1001
995
  };
1002
996