@pushwoosh/dumb-components 1.0.71 → 1.0.73

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.
@@ -32,4 +32,4 @@ export const UnorderedListIcon = styled.div.withConfig({
32
32
  export const Image = styled.img.withConfig({
33
33
  displayName: "Image",
34
34
  componentId: "sc-6jf7u0-7"
35
- })(["width:400px;"]);
35
+ })(["width:400px;height:400px;object-fit:contain;"]);
@@ -3,7 +3,7 @@ import { Color, FontSize, FontWeight, ShapeRadius, Spacing, UnitSize } from '@pu
3
3
  const PaginationControl = styled.button.withConfig({
4
4
  displayName: "PaginationControl",
5
5
  componentId: "sc-o79vko-0"
6
- })(["height:", ";appearance:none;border:1px solid ", ";border-right:none;background-color:", ";color:", ";font-weight:", ";font-size:", ";&:hover{background-color:", ";color:", ";}&:disabled{background-color:", ";color:", ";}user-select:none;"], UnitSize.FIELD_HEIGHT, Color.DIVIDER, Color.CLEAR, Color.MAIN, FontWeight.MEDIUM, FontSize.REGULAR, ({
6
+ })(["height:", ";appearance:none;border:1px solid ", ";border-right:none;background-color:", ";color:", ";font-weight:", ";font-size:", ";cursor:pointer;user-select:none;&:hover{background-color:", ";color:", ";}&:disabled{background-color:", ";color:", ";}"], UnitSize.FIELD_HEIGHT, Color.DIVIDER, Color.CLEAR, Color.MAIN, FontWeight.MEDIUM, FontSize.REGULAR, ({
7
7
  $isActive
8
8
  }) => $isActive ? Color.MAIN : Color.BRIGHT_LIGHT, ({
9
9
  $isActive
@@ -15,7 +15,7 @@ export const PaginationBox = styled.div.withConfig({
15
15
  export const PaginationArrow = styled(PaginationControl).withConfig({
16
16
  displayName: "PaginationArrow",
17
17
  componentId: "sc-o79vko-2"
18
- })(["padding:0 ", ";&:first-child{border-radius:", " 0 0 ", ";}&:last-child{border-right:1px solid ", ";border-radius:0 ", " ", " 0;}user-select:none;"], Spacing.S2, ShapeRadius.CONTROL, ShapeRadius.CONTROL, Color.DIVIDER, ShapeRadius.CONTROL, ShapeRadius.CONTROL);
18
+ })(["padding:0 ", ";&:first-child{border-radius:", " 0 0 ", ";}&:last-child{border-right:1px solid ", ";border-radius:0 ", " ", " 0;}"], Spacing.S2, ShapeRadius.CONTROL, ShapeRadius.CONTROL, Color.DIVIDER, ShapeRadius.CONTROL, ShapeRadius.CONTROL);
19
19
  export const PaginationDivider = styled.div.withConfig({
20
20
  displayName: "PaginationDivider",
21
21
  componentId: "sc-o79vko-3"
package/Radio/Radio.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import React, { useState } from 'react';
2
2
  import { NativeLabel, NativeRadio } from './styles';
3
- // eslint-disable-next-line prefer-const
4
3
  let counter = 0;
5
4
  export function Radio(props) {
6
5
  const {
@@ -18,7 +17,7 @@ export function Radio(props) {
18
17
  if (id) {
19
18
  return id;
20
19
  }
21
- const newCounter = counter + 1;
20
+ const newCounter = counter++;
22
21
  return `radio-id-${newCounter}`;
23
22
  });
24
23
  return React.createElement(NativeLabel, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.0.71",
3
+ "version": "1.0.73",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",