armtek-uikit-react 1.0.86 → 1.0.88

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.
@@ -205,10 +205,10 @@
205
205
  &.button_primary{
206
206
  color: var(--color-primary);
207
207
  &:hover{
208
- background-color: rgba(var(--color-blue-800), 0.1);
208
+ background-color: rgba(var(--color-blue-800-rgba), 0.1);
209
209
  }
210
210
  &:active{
211
- background-color: rgba(var(--color-blue-800), 0.2);
211
+ background-color: rgba(var(--color-blue-800-rgba), 0.2);
212
212
  }
213
213
  &:disabled{
214
214
  opacity: 0.6;
@@ -218,10 +218,10 @@
218
218
  &.button_secondary {
219
219
  color: var(--color-secondary);
220
220
  &:hover{
221
- background-color: rgba(var(--color-secondary), 0.1);
221
+ background-color: rgba(var(--color-secondary-rgba), 0.1);
222
222
  }
223
223
  &:active{
224
- background-color: rgba(var(--color-secondary-light), 0.2);
224
+ background-color: rgba(var(--color-secondary-light-rgb), 0.2);
225
225
  }
226
226
  &:disabled{
227
227
  opacity: 0.4;
@@ -231,20 +231,20 @@
231
231
  &.button_black {
232
232
  color: var(--color-gray-900);
233
233
  &:hover{
234
- background: rgba($color-neutral, 0.1);
234
+ background: rgba(var(--color-neutral-rgba), 0.1);
235
235
  }
236
236
  &:active{
237
- background: $color-gray-300;
237
+ background: var(--color-gray-300);
238
238
  }
239
239
  &:disabled{
240
- color: $color-neutral-light;
240
+ color: var(--color-neutral-light);
241
241
  background: none;
242
242
  }
243
243
  }
244
244
  &.button_green {
245
245
  color: var(--color-success);
246
246
  &:hover{
247
- background-color: rgba(var(--color-success), 0.1);
247
+ background-color: rgba(var(--color-success-rgb), 0.1);
248
248
  }
249
249
  &:active{
250
250
  background-color: var(--color-green-100);
@@ -256,7 +256,7 @@
256
256
  &.button_red {
257
257
  color: var(--color-error);
258
258
  &:hover{
259
- background-color: rgba(var(--color-error), 0.1);
259
+ background-color: rgba(var(--color-error-rgba), 0.1);
260
260
  }
261
261
  &:active{
262
262
  background-color: var(--color-red-100);
@@ -0,0 +1,21 @@
1
+ @import "variables";
2
+
3
+ .Icon_size_small{
4
+ font-size: 11px;
5
+ }
6
+ .Icon_size_medium{
7
+ font-size: 13px;
8
+ }
9
+ .Icon_size_large{
10
+ font-size: 14px;
11
+ }
12
+ .Icon_size_extraLarge{
13
+ font-size: 16px;
14
+ }
15
+ .Icon_color_primary{color: var(--color-primary)}
16
+ .Icon_color_secondary{color: var(--color-secondary)}
17
+ .Icon_color_neutral{color: var(--color-neutral)}
18
+ .Icon_color_success{color:var(--color-success)}
19
+ .Icon_color_info{color:var(--color-info)}
20
+ .Icon_color_warning{color:var(--color-warning)}
21
+ .Icon_color_error{color:var(--color-error)}
@@ -14,5 +14,6 @@
14
14
  font-size: 12px;
15
15
  left: 50%;
16
16
  bottom: 100%;
17
+ display: inline-flex;
17
18
  //transform: translateX(-50%);
18
19
  }
package/assets/global.css CHANGED
@@ -35,6 +35,7 @@ body{
35
35
  --color-secondary: #FF7F00;
36
36
  --color-secondary-rgba: 255, 127, 0;
37
37
  --color-secondary-light: #FFA140;
38
+ --color-secondary-light-rgb: 255, 161, 64;
38
39
  --color-secondary-dark: #D96C00;
39
40
  --color-secondary-opacity: rgba(255, 127, 0, 0.08);
40
41
  --color-secondary-contrast: #ffffff;
@@ -66,6 +67,7 @@ body{
66
67
  --color-info-contrast: #ffffff;
67
68
 
68
69
  --color-success: #0BD998;
70
+ --color-success-rgb: 11, 217, 152;
69
71
  --color-success-light: #38E6A4;
70
72
  --color-success-dark: #00A66F;
71
73
  --color-success-opacity: rgba(11, 196, 127, 0.08);
@@ -95,6 +97,7 @@ body{
95
97
  --color-blue-d2: #1841BE;
96
98
  --color-blue-d1: #1D49D5;
97
99
  --color-blue-900: #254FE9;
100
+ --color-blue-800-rgba: 47, 97, 248;
98
101
  --color-blue-800: #2F61F8;
99
102
  --color-blue-700: #4277FD;
100
103
  --color-blue-600: #6092FF;
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"armtek-uikit-react","version":"1.0.86","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.88","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"}}
@@ -0,0 +1,12 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ import { ColorStatusType, ColorType, SizeType, VariantType } from '../../types/theme';
3
+ type OwnProps = {
4
+ icon: string;
5
+ variant?: VariantType;
6
+ color?: ColorType | ColorStatusType;
7
+ size?: SizeType;
8
+ fs?: number;
9
+ };
10
+ export type IconProps = OwnProps & Omit<ComponentPropsWithoutRef<'span'>, keyof OwnProps>;
11
+ declare const Icon: import("react").ForwardRefExoticComponent<OwnProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, keyof OwnProps> & import("react").RefAttributes<HTMLSpanElement>>;
12
+ export default Icon;
@@ -0,0 +1,34 @@
1
+ import { forwardRef } from 'react';
2
+ import clsx from 'clsx';
3
+ import css from "./Icon.module.scss";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ import { Fragment as _Fragment } from "react/jsx-runtime";
6
+ const Icon = /*#__PURE__*/forwardRef((props, ref) => {
7
+ let {
8
+ children,
9
+ className,
10
+ size,
11
+ icon,
12
+ variant = 'outlined',
13
+ color,
14
+ fs,
15
+ ...spanProps
16
+ } = props;
17
+ return /*#__PURE__*/_jsx(_Fragment, {
18
+ children: /*#__PURE__*/_jsx("span", {
19
+ ref: ref,
20
+ ...spanProps,
21
+ className: clsx(className, 'Arm-Icon', {
22
+ [css['Icon_size_' + size]]: size,
23
+ 'mi': variant === 'outlined',
24
+ 'mis': variant === 'contained',
25
+ [css['Icon_color_' + color]]: color
26
+ }),
27
+ style: fs ? {
28
+ fontSize: fs + 'px'
29
+ } : undefined,
30
+ children: icon || children
31
+ })
32
+ });
33
+ });
34
+ export default Icon;
@@ -0,0 +1 @@
1
+ @import "./../../assets/Icon";
@@ -0,0 +1,6 @@
1
+ import { IconProps } from './Icon';
2
+ import { TooltipProps } from '../../ui/Tooltip';
3
+ export type MiProps = {
4
+ tooltipProps?: Omit<TooltipProps, 'text' | 'children'>;
5
+ } & IconProps;
6
+ export declare const Mi: (props: MiProps) => import("react/jsx-runtime").JSX.Element;
package/ui/Icon/Mi.js ADDED
@@ -0,0 +1,24 @@
1
+ import Icon from "./Icon";
2
+ import Tooltip from "../Tooltip";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ import { Fragment as _Fragment } from "react/jsx-runtime";
5
+ export const Mi = props => {
6
+ const {
7
+ tooltipProps,
8
+ title,
9
+ ...iconProps
10
+ } = props;
11
+ return /*#__PURE__*/_jsx(_Fragment, {
12
+ children: title ? /*#__PURE__*/_jsx(Tooltip, {
13
+ ...tooltipProps,
14
+ text: title,
15
+ children: /*#__PURE__*/_jsx(Icon, {
16
+ ...iconProps,
17
+ variant: 'outlined'
18
+ })
19
+ }) : /*#__PURE__*/_jsx(Icon, {
20
+ ...iconProps,
21
+ variant: 'outlined'
22
+ })
23
+ });
24
+ };
@@ -0,0 +1,2 @@
1
+ import { MiProps } from './Mi';
2
+ export declare const Mis: (props: Omit<MiProps, 'variant'>) => import("react/jsx-runtime").JSX.Element;
package/ui/Icon/Mis.js ADDED
@@ -0,0 +1,11 @@
1
+ import { Mi } from "./Mi";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { Fragment as _Fragment } from "react/jsx-runtime";
4
+ export const Mis = props => {
5
+ return /*#__PURE__*/_jsx(_Fragment, {
6
+ children: /*#__PURE__*/_jsx(Mi, {
7
+ ...props,
8
+ variant: 'contained'
9
+ })
10
+ });
11
+ };
@@ -0,0 +1,4 @@
1
+ export { default } from './Icon';
2
+ export { Mi } from './Mi';
3
+ export { Mis } from './Mis';
4
+ export * from './Icon';
@@ -0,0 +1,4 @@
1
+ export { default } from "./Icon";
2
+ export { Mi } from "./Mi";
3
+ export { Mis } from "./Mis";
4
+ export * from "./Icon";