armtek-uikit-react 1.0.102 → 1.0.103

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  @mixin bg ($color:var(--color-gray-800), $size: 2px) {
4
4
  background:
5
- radial-gradient(farthest-side,#ffa516 94%,#0000) top/$size $size no-repeat,
5
+ radial-gradient(farthest-side, $color 94%,#0000) top/$size $size no-repeat,
6
6
  conic-gradient(#0000 30%, $color);
7
7
  -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - $size),#000 0);
8
8
  }
@@ -21,6 +21,7 @@
21
21
  .loader_color_secondary{
22
22
  @include bg(var(--color-secondary));
23
23
  }
24
+
24
25
  .loader_size_small{
25
26
  width: 20px;
26
27
  height: 20px;
@@ -36,9 +37,14 @@
36
37
  .loader_size_extraLarge{
37
38
  width: 30px;
38
39
  height: 30px;
39
- background-position: top/6px 6px;
40
- -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 6px),#000 0);
40
+ background-position: top/6px 6px !important;
41
+ -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 6px),#000 0) !important;;
41
42
  }
42
43
  @keyframes s3{
43
44
  100%{transform: rotate(1turn)}
45
+ }
46
+ .loader_theme_dark{
47
+ &.loader_color_neutral{
48
+ @include bg('#fff');
49
+ }
44
50
  }
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"armtek-uikit-react","version":"1.0.102","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.103","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,8 +1,9 @@
1
- import { ColorType, SizeType } from '../../types/theme';
1
+ import { ColorType, SizeType, ThemeType } from '../../types/theme';
2
2
  import { HTMLAttributes } from 'react';
3
3
  export type LoaderProps = {
4
4
  size?: SizeType;
5
5
  color?: ColorType;
6
+ theme?: ThemeType;
6
7
  } & HTMLAttributes<HTMLDivElement>;
7
8
  declare const Loader: (props: LoaderProps) => import("react/jsx-runtime").JSX.Element;
8
9
  export default Loader;
@@ -10,16 +10,16 @@ const Loader = props => {
10
10
  let {
11
11
  size,
12
12
  color = 'neutral',
13
+ theme,
13
14
  className,
14
15
  ...divProps
15
16
  } = props;
16
- let width = props.size === 'large' ? 25 : props.size === 'medium' ? 23 : props.size === 'small' ? 21 : 27;
17
- let height = props.size === 'large' ? 24 : props.size === 'medium' ? 22 : props.size === 'small' ? 20 : 26;
18
17
  return /*#__PURE__*/_jsx(_Fragment, {
19
18
  children: /*#__PURE__*/_jsx("div", {
20
19
  ...divProps,
21
20
  className: clsx(css.loader, {
22
21
  [css['loader_size_' + size]]: size,
22
+ [css['loader_theme_' + theme]]: theme,
23
23
  [css['loader_color_' + color]]: color
24
24
  }, 'material_icon', className)
25
25
  })