armtek-uikit-react 1.0.119 → 1.0.121

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.
@@ -11,8 +11,16 @@
11
11
  align-items: center;
12
12
  justify-content: center;
13
13
  }
14
-
14
+ .BackDropBase__overlay{
15
+ width: 100%;
16
+ height: 100%;
17
+ left: 0;
18
+ top: 0;
19
+ position: absolute;
20
+ }
15
21
  .BackDropBase__inner{
22
+ position: relative;
23
+ z-index: 2;
16
24
  max-width: 500px;
17
25
  width: 100%;
18
26
  }
@@ -15,8 +15,10 @@
15
15
  display: inline-flex;
16
16
  align-items: center;
17
17
  justify-content: center;
18
+ user-select: none;
18
19
  &:disabled{
19
20
  cursor: initial;
21
+ pointer-events: none;
20
22
  }
21
23
  &_fullWidth{
22
24
  width: 100%;
@@ -39,9 +41,7 @@
39
41
  .button_radius_none{
40
42
  border-radius: 0;
41
43
  }
42
- .button_radius_full{
43
- border-radius: 30px;
44
- }
44
+
45
45
  .button_contained {
46
46
  &.button_primary{
47
47
  color: #fff;
@@ -79,7 +79,7 @@
79
79
  background: var(--color-gray-600);
80
80
  }
81
81
  &:disabled{
82
- background: var(--color-secondary-light);
82
+ background: var(--color-neutral-light);
83
83
  }
84
84
  }
85
85
  &.button_black {
@@ -92,7 +92,7 @@
92
92
  background: var(--color-gray-600);
93
93
  }
94
94
  &:disabled{
95
- background: var(--color-secondary-light);
95
+ background: var(--color-neutral-light);
96
96
  }
97
97
  }
98
98
  &.button_green {
@@ -160,8 +160,7 @@
160
160
  border-color: var(--color-gray-900);
161
161
  color: var(--color-gray-900);
162
162
  &:hover{
163
- background: var(--color-neutral);
164
- opacity: 0.1;
163
+ background-color: rgba(var(--color-neutral-rgba), 0.1);
165
164
  }
166
165
  &:active{
167
166
  background: var(--color-gray-300);
@@ -25,4 +25,7 @@
25
25
  font-size: 16px;
26
26
  & .material_icon {font-size: 16px}
27
27
  }
28
- }
28
+ }
29
+ .ButtonIcon_square{
30
+ border-radius: 0;
31
+ }
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"armtek-uikit-react","version":"1.0.119","description":"Armtek UIKit for React","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"build":"^0.1.4","clsx":"^2.0.0","rc-slider":"^10.2.1","react":"*","react-datepicker":"^4.16.0","react-dom":"*","react-transition-group":"^4.4.5"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
1
+ {"name":"armtek-uikit-react","version":"1.0.121","description":"Armtek UIKit for React","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"build":"^0.1.4","clsx":"^2.0.0","rc-slider":"^10.2.1","react":"*","react-datepicker":"^4.16.0","react-dom":"*","react-transition-group":"^4.4.5"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
@@ -1,6 +1,7 @@
1
1
  import css from "./BackDrop.module.scss";
2
2
  import clsx from 'clsx';
3
3
  import { jsx as _jsx } from "react/jsx-runtime";
4
+ import { jsxs as _jsxs } from "react/jsx-runtime";
4
5
  import { Fragment as _Fragment } from "react/jsx-runtime";
5
6
  export const BackDropBase = props => {
6
7
  const {
@@ -10,24 +11,22 @@ export const BackDropBase = props => {
10
11
  onClick
11
12
  } = props;
12
13
  const handleClick = e => {
13
- if (e.target instanceof Element) {
14
- if (e.target.classList.contains('Arm-BackDropBase')) {
15
- e.stopPropagation();
16
- if (onClick) onClick(e);
17
- }
18
- }
14
+ e.stopPropagation();
15
+ if (onClick) onClick(e);
19
16
  };
20
17
  return /*#__PURE__*/_jsx(_Fragment, {
21
- children: /*#__PURE__*/_jsx("div", {
18
+ children: /*#__PURE__*/_jsxs("div", {
22
19
  className: clsx('Arm-BackDropBase', className, css.BackDropBase),
23
- onClick: handleClick,
24
- children: /*#__PURE__*/_jsx("div", {
20
+ children: [/*#__PURE__*/_jsx("div", {
21
+ className: css.BackDropBase__overlay,
22
+ onClick: handleClick
23
+ }), /*#__PURE__*/_jsx("div", {
25
24
  className: css.BackDropBase__inner,
26
25
  style: {
27
26
  maxWidth: width + 'px'
28
27
  },
29
28
  children: children
30
- })
29
+ })]
31
30
  })
32
31
  });
33
32
  };
@@ -14,7 +14,10 @@ function ButtonIcon(props) {
14
14
  variant: 'transparent',
15
15
  ...props,
16
16
  asIcon: true,
17
- className: clsx(css.button_icon, css['button_icon_' + props.size], props.className),
17
+ className: clsx(css.button_icon, css['button_icon_' + props.size], props.className, {
18
+ [css['ButtonIcon_square']]: props.radius === false,
19
+ 'border-radius': props.radius === true
20
+ }),
18
21
  children: props.children
19
22
  })
20
23
  });