armtek-uikit-react 1.0.21 → 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;
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"armtek-uikit-react","version":"1.0.21","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),