intelicoreact 0.1.6 → 0.1.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.
@@ -1,5 +1,4 @@
1
- // @import "../../../scss/vars";
2
- @import "~anme/scss/_anme-vars";
1
+ @import "../../../scss/vars";
3
2
 
4
3
  .dropdown {
5
4
  display: inline-flex;
@@ -1,5 +1,4 @@
1
- // @import "../../../scss/vars";
2
- @import "~anme/scss/_anme-vars";
1
+ @import "../../../scss/vars";
3
2
 
4
3
  .radio-input {
5
4
  display: inline-flex;
@@ -1,5 +1,4 @@
1
- // @import "../../../scss/vars";
2
- @import "~anme/scss/_anme-vars";
1
+ @import "../../../scss/vars";
3
2
 
4
3
  .switcher {
5
4
  display: inline-flex;
@@ -1,4 +1,4 @@
1
- @import '~anme/scss/_anme-vars';
1
+ @import "../../../scss/vars";
2
2
 
3
3
  .table-header {
4
4
  &--weight-actions {
@@ -1,5 +1,4 @@
1
- // @import "../../../scss/vars";
2
- @import "~anme/scss/_anme-vars";
1
+ @import "../../../scss/vars";
3
2
 
4
3
  .tag {
5
4
  display: inline-flex;
@@ -1,5 +1,4 @@
1
- // @import "../../../scss/vars";
2
- @import "~anme/scss/_anme-vars";
1
+ @import "../../../scss/vars";
3
2
 
4
3
  .tags-dropdown {
5
4
  display: inline-flex;
@@ -1,5 +1,5 @@
1
- @import "../../../scss/_vars";
2
- @import "~anme/scss/_anme-mixins";
1
+ @import "../../../scss/vars";
2
+ @import "../../../scss/mixins";
3
3
 
4
4
  .textarea {
5
5
  border: 1px solid #e2e5ec;
@@ -1,5 +1,5 @@
1
- @import "~anme/scss/_anme-vars";
2
- @import "~anme/scss/_anme-mixins";
1
+ @import "../../scss/vars";
2
+ @import "../../scss/mixins";
3
3
 
4
4
  .main-menu {
5
5
  display: flex;
@@ -1,5 +1,5 @@
1
- @import '~anme/scss/_anme-vars';
2
- @import '~anme/scss/_anme-mixins';
1
+ @import '../../../scss/vars';
2
+ @import '../../../scss/mixins';
3
3
 
4
4
  .accordion {
5
5
  &--item {
@@ -15,7 +15,11 @@ var _classnames = _interopRequireDefault(require("classnames"));
15
15
 
16
16
  require("./Button.scss");
17
17
 
18
+ var RC = 'button';
19
+
18
20
  var Button = function Button(_ref) {
21
+ var _cn;
22
+
19
23
  var label = _ref.label,
20
24
  _ref$variant = _ref.variant,
21
25
  variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
@@ -25,11 +29,12 @@ var Button = function Button(_ref) {
25
29
  className = _ref.className,
26
30
  children = _ref.children,
27
31
  style = _ref.style,
28
- noIcon = _ref.noIcon;
32
+ noIcon = _ref.noIcon,
33
+ isIconRight = _ref.isIconRight;
29
34
  var noRenderIcon = noIcon || variant === "ellipse-apply" || variant === "ellipse-cancel";
30
35
  return /*#__PURE__*/_react.default.createElement("button", {
31
36
  style: style,
32
- className: (0, _classnames.default)(className, 'button', (0, _defineProperty2.default)({}, "button_".concat(variant), variant)),
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)),
33
38
  onClick: onClick,
34
39
  disabled: disabled
35
40
  }, !noRenderIcon && icon, label && /*#__PURE__*/_react.default.createElement("div", {
@@ -58,5 +58,5 @@ ButtonTemplate.args = {
58
58
  },
59
59
  label: 'Button',
60
60
  icon: /*#__PURE__*/_react.default.createElement(_reactFeather.Check, null),
61
- isIconRight: false
61
+ isIconRight: true
62
62
  };
@@ -1,4 +1,4 @@
1
- @import "~anme/scss/_anme-vars";
1
+ @import "../../../scss/vars";
2
2
 
3
3
  .status {
4
4
  display: inline-flex;
@@ -50,6 +50,7 @@
50
50
  background-color: #e2e6f8;
51
51
  }
52
52
 
53
+ &--pending,
53
54
  &--primary,
54
55
  &--warning {
55
56
  color: #f59a2f;
@@ -0,0 +1,2 @@
1
+ @import "anme/scss/anme-mixins-media";
2
+ @import "anme/scss/anme-mixins";
@@ -1,7 +1,8 @@
1
- @import "~anme/scss/_anme-vars";
1
+ @use "sass:math";
2
+ @import "anme/scss/anme-vars";
3
+ // @import "../../node_modules/anme/scss/anme-vars";
2
4
 
3
5
  /* THEME COLORS*/
4
- @use "sass:math";
5
6
 
6
7
  $color--secondary: #f06d8d;
7
8
  $color--primary: #6b81dd;
@@ -1,5 +1,6 @@
1
1
  @import './fonts';
2
- @import '~anme/scss/styles.scss';
2
+ @import 'anme/scss/styles.scss';
3
+ // @import '../../node_modules/anme/scss/anme-vars';
3
4
 
4
5
  body {
5
6
  font-family: 'Roboto', sans-serif;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "add postfix in dropdown",
5
5
  "main": "dist/index.js",
6
6
  "files": ["dist/*"],
@@ -23,6 +23,6 @@
23
23
  "@babel/core": "^7.15.5",
24
24
  "@babel/polyfill": "^7.12.1",
25
25
  "@babel/preset-env": "^7.15.6",
26
- "anme": "^1.0.0"
26
+ "anme": "^1.0.1"
27
27
  }
28
28
  }