intelicoreact 0.1.11 → 0.1.14

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.
@@ -34,7 +34,7 @@ var Button = function Button(_ref) {
34
34
  var noRenderIcon = noIcon || variant === "ellipse-apply" || variant === "ellipse-cancel";
35
35
  return /*#__PURE__*/_react.default.createElement("button", {
36
36
  style: style,
37
- className: (0, _classnames.default)(className, RC, (_cn = {}, (0, _defineProperty2.default)(_cn, "".concat(RC, "_").concat(variant), variant), (0, _defineProperty2.default)(_cn, 'button_icon-right', isIconRight), _cn)),
37
+ className: (0, _classnames.default)(className, RC, (_cn = {}, (0, _defineProperty2.default)(_cn, "".concat(RC, "_").concat(variant), variant), (0, _defineProperty2.default)(_cn, 'button_icon-left', icon && !isIconRight), (0, _defineProperty2.default)(_cn, 'button_icon-right', icon && isIconRight), _cn)),
38
38
  onClick: onClick,
39
39
  disabled: disabled
40
40
  }, !noRenderIcon && icon, label && /*#__PURE__*/_react.default.createElement("div", {
@@ -92,7 +92,6 @@
92
92
 
93
93
  &__text {
94
94
  width: 100%;
95
- margin-left: 5px;
96
95
  display: flex;
97
96
  justify-content: center;
98
97
  align-items: center;
@@ -108,6 +107,12 @@
108
107
  min-width: 15px;
109
108
  }
110
109
 
110
+ &_icon-left {
111
+ .button__text {
112
+ margin-left: 5px;
113
+ }
114
+ }
115
+
111
116
  &_icon-right {
112
117
  .button__text {
113
118
  order: 1;
@@ -1,2 +1,2 @@
1
- @import "./../../node_modules/anme/scss/anme-mixins-media";
2
- @import "./../../node_modules/anme/scss/anme-mixins";
1
+ @import "~anme/scss/anme-mixins-media";
2
+ @import "~anme/scss/anme-mixins";
@@ -1,6 +1,6 @@
1
1
  @use "sass:math";
2
2
  //@import "anme/scss/anme-vars";
3
- @import "./../../node_modules/anme/scss/anme-vars";
3
+ @import "~anme/scss/anme-vars";
4
4
 
5
5
  /* THEME COLORS*/
6
6
 
@@ -1,5 +1,5 @@
1
1
  @import './fonts';
2
- @import './../../node_modules/anme/scss/anme-vars';
2
+ @import '~anme/scss/anme-vars';
3
3
 
4
4
  body {
5
5
  font-family: 'Roboto', sans-serif;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "0.1.11",
3
+ "version": "0.1.14",
4
4
  "description": "add postfix in dropdown",
5
5
  "main": "dist/index.js",
6
- "files": ["dist/*"],
6
+ "files": ["dist/*", "node_modules/anme/*", "node_modules/moment/*", "node_modules/moment-timezone/*"],
7
7
  "scripts": {
8
8
  "test": "echo \"Error: no test specified\" && exit 1",
9
9
  "build": "babel src --out-dir dist --copy-files"