@pushwoosh/dumb-components 1.1.7 → 1.1.8

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/Radio/Radio.js CHANGED
@@ -23,7 +23,8 @@ export function Radio(props) {
23
23
  });
24
24
  return React.createElement(NativeLabel, {
25
25
  htmlFor: localId,
26
- "$color": isDisabled ? 'locked' : color
26
+ "$color": isDisabled ? 'locked' : color,
27
+ "$size": size
27
28
  }, React.createElement(NativeRadio, {
28
29
  type: "radio",
29
30
  id: localId,
package/Radio/styles.d.ts CHANGED
@@ -4,4 +4,5 @@ export declare const NativeRadio: import("styled-components").StyledComponent<"i
4
4
  }, never>;
5
5
  export declare const NativeLabel: import("styled-components").StyledComponent<"label", any, {
6
6
  $color?: RadioTextColor;
7
+ $size: RadioSize;
7
8
  }, never>;
package/Radio/styles.js CHANGED
@@ -16,6 +16,8 @@ export const NativeRadio = styled.input.withConfig({
16
16
  export const NativeLabel = styled.label.withConfig({
17
17
  displayName: "NativeLabel",
18
18
  componentId: "sc-34lgtl-1"
19
- })(["display:inline-flex;align-items:center;font-size:", ";line-height:", ";user-select:none;", " & > ", "{&:not(:last-child){margin-right:", ";}}"], FontSize.REGULAR, LineHeight.REGULAR, ({
19
+ })(["display:inline-flex;align-items:center;font-size:", ";line-height:", ";user-select:none;", " & > ", "{&:not(:last-child){margin-right:", ";}}"], ({
20
+ $size
21
+ }) => $size === 'compact' ? FontSize.SMALL : FontSize.REGULAR, LineHeight.REGULAR, ({
20
22
  $color
21
23
  }) => $color && `color: ${ColorMap[$color]};`, NativeRadio, Spacing.S3);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",