armtek-uikit-react 1.0.88 → 1.0.90

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/Modal.scss CHANGED
@@ -23,6 +23,7 @@
23
23
  padding: calc($size-step * 4)
24
24
  }
25
25
  .Modal__footer{
26
+ margin-top: calc(var(--size-step) * 4);
26
27
  padding: 0 calc($size-step * 4) calc($size-step * 4) calc($size-step * 4)
27
28
  }
28
29
  .Modal__close{
package/package.json CHANGED
@@ -1 +1 @@
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"}}
1
+ {"name":"armtek-uikit-react","version":"1.0.90","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;
@@ -1,6 +1,6 @@
1
1
  import { ButtonProps } from '../../../ui/Button';
2
2
  import { ComponentPropsWithoutRef, MouseEvent } from 'react';
3
- export type FormControlsProps = {
3
+ type OwnProps = {
4
4
  onSubmit: (e: MouseEvent<HTMLButtonElement>) => void;
5
5
  onCancel?: (e: MouseEvent<HTMLButtonElement>) => void;
6
6
  submitProps?: Omit<ButtonProps<'button'>, 'children'> & {
@@ -14,5 +14,6 @@ export type FormControlsProps = {
14
14
  cancelBtn?: string;
15
15
  };
16
16
  } & ComponentPropsWithoutRef<'div'>;
17
+ export type FormControlsProps = OwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof OwnProps>;
17
18
  declare const FormControls: (props: FormControlsProps) => import("react/jsx-runtime").JSX.Element;
18
19
  export default FormControls;
@@ -1,6 +1,6 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
2
  type SkeletonProps = {
3
- width: number | string;
3
+ width?: number | string;
4
4
  height: number | string;
5
5
  circle?: boolean;
6
6
  } & ComponentPropsWithoutRef<'div'>;
@@ -3,7 +3,7 @@ import clsx from 'clsx';
3
3
  import { jsx as _jsx } from "react/jsx-runtime";
4
4
  const Skeleton = props => {
5
5
  const {
6
- width,
6
+ width = '100%',
7
7
  height,
8
8
  className,
9
9
  circle,