@pushwoosh/dumb-components 1.0.72 → 1.0.74

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.
@@ -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, {
@@ -7,7 +7,7 @@ import { FieldBox } from '../FieldBox';
7
7
  import EmojiIcon from './assets/EmojiIcon.svg';
8
8
  import PersonalizationIcon from './assets/PersonalizationIcon.svg';
9
9
  import { EmojiPicker } from './EmojiPicker';
10
- import { ImSpan } from './RichMessageEditor.styled';
10
+ import { DropArea, ImSpan } from './RichMessageEditor.styled';
11
11
  import { getDcByPath } from './slate/helpers';
12
12
  import { SlateEditable, SlateEditor } from './slate/SlateEditor';
13
13
  export const RichMessageEditor = ({
@@ -114,7 +114,7 @@ export const RichMessageEditor = ({
114
114
  onDelete: () => {
115
115
  setShowDrop(undefined);
116
116
  }
117
- }), showDrop && React.createElement("div", {
117
+ }), showDrop && React.createElement(DropArea, {
118
118
  style: floatingStyles,
119
119
  ref: refs.setFloating,
120
120
  key: showDrop.type
@@ -1 +1,2 @@
1
1
  export declare const ImSpan: import("styled-components").StyledComponent<"span", any, {}, never>;
2
+ export declare const DropArea: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -3,4 +3,8 @@ import { Color } from '@pushwoosh/kit-constants';
3
3
  export const ImSpan = styled.span.withConfig({
4
4
  displayName: "ImSpan",
5
5
  componentId: "sc-kdvgj9-0"
6
- })(["color:", ";position:relative;padding-left:20px;font-size:12px;font-style:normal;font-weight:500;line-height:130%;text-transform:uppercase;cursor:pointer;> svg{position:absolute;left:0;top:-1px;}"], Color.SOFT);
6
+ })(["color:", ";position:relative;padding-left:20px;font-size:12px;font-style:normal;font-weight:500;line-height:130%;text-transform:uppercase;cursor:pointer;> svg{position:absolute;left:0;top:-1px;}"], Color.SOFT);
7
+ export const DropArea = styled.div.withConfig({
8
+ displayName: "DropArea",
9
+ componentId: "sc-kdvgj9-1"
10
+ })(["z-index:1000;"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.0.72",
3
+ "version": "1.0.74",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",