armtek-uikit-react 1.0.106 → 1.0.107

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.
package/assets/Icon.scss CHANGED
@@ -18,4 +18,14 @@
18
18
  .Icon_color_success{color:var(--color-success)}
19
19
  .Icon_color_info{color:var(--color-info)}
20
20
  .Icon_color_warning{color:var(--color-warning)}
21
- .Icon_color_error{color:var(--color-error)}
21
+ .Icon_color_error{color:var(--color-error)}
22
+
23
+ .Icon_theme_dark {
24
+ //&.Icon_color_primary{color: var(--color-primary-contrast)}
25
+ //&.Icon_color_secondary{color: var(--color-secondary-contrast)}
26
+ &.Icon_color_neutral{color: var(--color-neutral-contrast)}
27
+ //&.Icon_color_success{color:var(--color-success-contrast)}
28
+ //&.Icon_color_info{color:var(--color-info-contrast)}
29
+ //&.Icon_color_warning{color:var(--color-warning-contrast)}
30
+ //&.Icon_color_error{color:var(--color-error-contrast)}
31
+ }
@@ -1,6 +1,7 @@
1
1
  //@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
2
2
  //@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');
3
3
 
4
+ @import "global.css";
4
5
  @import "variables";
5
6
  @import "Button";
6
7
  @import "Adornment";
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"armtek-uikit-react","version":"1.0.106","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.107","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"}}
package/ui/Icon/Icon.d.ts CHANGED
@@ -1,10 +1,11 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
- import { ColorStatusType, ColorType, SizeType, VariantType } from '../../types/theme';
2
+ import { ColorStatusType, ColorType, SizeType, ThemeType, VariantType } from '../../types/theme';
3
3
  type OwnProps = {
4
4
  icon: string;
5
5
  variant?: VariantType;
6
6
  color?: ColorType | ColorStatusType;
7
7
  size?: SizeType;
8
+ theme?: ThemeType;
8
9
  fs?: number;
9
10
  };
10
11
  export type IconProps = OwnProps & Omit<ComponentPropsWithoutRef<'span'>, keyof OwnProps>;
package/ui/Icon/Icon.js CHANGED
@@ -9,6 +9,7 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
9
9
  className,
10
10
  size,
11
11
  icon,
12
+ theme,
12
13
  variant = 'outlined',
13
14
  color,
14
15
  fs,
@@ -20,13 +21,15 @@ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
20
21
  ...spanProps,
21
22
  className: clsx(className, 'Arm-Icon', {
22
23
  [css['Icon_size_' + size]]: size,
24
+ [css['Icon_theme_' + theme]]: theme,
23
25
  'mi': variant === 'outlined',
24
26
  'mis': variant === 'contained',
25
27
  [css['Icon_color_' + color]]: color
26
28
  }),
27
29
  style: fs ? {
30
+ ...spanProps.style,
28
31
  fontSize: fs + 'px'
29
- } : undefined,
32
+ } : spanProps.style,
30
33
  children: icon || children
31
34
  })
32
35
  });