armtek-uikit-react 1.0.20 → 1.0.22

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.
@@ -18,6 +18,12 @@
18
18
  cursor: initial;
19
19
  }
20
20
  }
21
+ .button_radius_none{
22
+ border-radius: 0;
23
+ }
24
+ .button_radius_full{
25
+ border-radius: 30px;
26
+ }
21
27
  .button_contained {
22
28
  &.button_primary{
23
29
  color: #fff;
@@ -164,7 +170,10 @@
164
170
  }
165
171
 
166
172
  .button__adornment{
167
- font-size: inherit;
173
+ font-size: 0;
174
+ & > * {
175
+ font-size: 20px;
176
+ }
168
177
  }
169
178
  .button__adornment_end{
170
179
  margin-left: $size-step;
@@ -8,15 +8,15 @@
8
8
  align-items: center;
9
9
  justify-content: center;
10
10
  font-size: 30px;
11
- &.button_large{
11
+ &.button_icon_large{
12
12
  width: $size-large;
13
13
  font-size: 24px;
14
14
  }
15
- &.button_medium{
15
+ &.button_icon_medium{
16
16
  width: $size-medium;
17
17
  font-size: 20px;
18
18
  }
19
- &.button_small{
19
+ &.button_icon_small{
20
20
  width: $size-small;
21
21
  padding: calc($size-step / 2);
22
22
  font-size: 16px;
@@ -53,7 +53,7 @@ $color-red-50: #FFF0F1;
53
53
 
54
54
  $box-shadow: 0px 8px 10px 0px rgba(0, 0, 0, 0.1);
55
55
 
56
- :root{
56
+ .app{
57
57
  --font-family: 'Roboto';
58
58
  --size-elarge: 56px;
59
59
  --size-large: 42px;
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"armtek-uikit-react","version":"1.0.20","description":"Armtek UIKit for React","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"rc-slider":"^10.2.1","react":"*","react-datepicker":"^4.16.0","react-dom":"*"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
1
+ {"name":"armtek-uikit-react","version":"1.0.22","description":"Armtek UIKit for React","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"rc-slider":"^10.2.1","react":"*","react-datepicker":"^4.16.0","react-dom":"*"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
@@ -8,6 +8,7 @@ type OwnProps<T extends ElementType = ElementType> = {
8
8
  startAdornment?: string | ReactNode;
9
9
  endAdornment?: string | ReactNode;
10
10
  group?: 'inline' | 'column';
11
+ radius?: boolean;
11
12
  as?: T;
12
13
  };
13
14
  export type ButtonProps<T extends ElementType = ElementType<HTMLAttributes<HTMLButtonElement>>> = OwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof OwnProps>;
@@ -17,6 +17,7 @@ const Button = props => {
17
17
  children,
18
18
  className,
19
19
  group,
20
+ radius,
20
21
  as,
21
22
  ...restProps
22
23
  } = props;
@@ -25,7 +26,9 @@ const Button = props => {
25
26
  children: /*#__PURE__*/_jsxs(Component, {
26
27
  ...restProps,
27
28
  className: clsx(css.button, css['button_' + size], css['button_' + variant], css['button_' + color], className, {
28
- [css['button_grouped_' + group]]: group
29
+ [css['button_grouped_' + group]]: group,
30
+ [css.button_radius_none]: radius === false,
31
+ [css.button_radius_full]: radius === true
29
32
  }),
30
33
  children: [startAdornment && /*#__PURE__*/_jsx("div", {
31
34
  className: clsx(css.button__adornment, css.button__adornment_start),
@@ -11,7 +11,7 @@ const ButtonIcon = props => {
11
11
  return /*#__PURE__*/_jsx(_Fragment, {
12
12
  children: /*#__PURE__*/_jsx(Button, {
13
13
  ...props,
14
- className: clsx(css.button_icon, props.className),
14
+ className: clsx(css.button_icon, css['button_icon_' + props.size], props.className),
15
15
  children: props.children
16
16
  })
17
17
  });