armtek-uikit-react 1.0.87 → 1.0.89

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.
@@ -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/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"armtek-uikit-react","version":"1.0.87","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.89","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,3 +1,4 @@
1
1
  import { ButtonProps } from '../Button/Button';
2
- declare const ButtonIcon: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
2
+ import { ElementType } from 'react';
3
+ declare function ButtonIcon<T extends ElementType = 'button'>(props: ButtonProps<T>): import("react/jsx-runtime").JSX.Element;
3
4
  export default ButtonIcon;
@@ -7,7 +7,7 @@ const ButtonIconClasses = ['button_icon'];
7
7
 
8
8
  // const css = getCssPrefix(ButtonIconClasses)
9
9
 
10
- const ButtonIcon = props => {
10
+ function ButtonIcon(props) {
11
11
  return /*#__PURE__*/_jsx(_Fragment, {
12
12
  children: /*#__PURE__*/_jsx(Button, {
13
13
  ...props,
@@ -16,5 +16,5 @@ const ButtonIcon = props => {
16
16
  children: props.children
17
17
  })
18
18
  });
19
- };
19
+ }
20
20
  export default ButtonIcon;
@@ -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";