@pushwoosh/dumb-components 2.9.0 → 2.9.2
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/RadioCard/RadioCard.js +1 -1
- package/RadioCard/{styled.js → styles.js} +1 -1
- package/RichMessageEditor/EditorEmojiPicker.js +1 -1
- package/RichMessageEditor/{EditorEmojiPicker.styled.js → EditorEmojiPicker.styles.js} +1 -1
- package/RichMessageEditor/RichMessageEditor.js +1 -1
- package/RichMessageEditor/{RichMessageEditor.styled.js → RichMessageEditor.styles.js} +4 -4
- package/RichMessageEditor/slate/SlateEditor.js +1 -1
- package/RichMessageEditor/slate/{SlateEditor.styled.js → SlateEditor.styles.js} +1 -1
- package/hooks/useOnClickOutside.d.ts +1 -1
- package/package.json +1 -1
- /package/RadioCard/{styled.d.ts → styles.d.ts} +0 -0
- /package/RichMessageEditor/{EditorEmojiPicker.styled.d.ts → EditorEmojiPicker.styles.d.ts} +0 -0
- /package/RichMessageEditor/{RichMessageEditor.styled.d.ts → RichMessageEditor.styles.d.ts} +0 -0
- /package/RichMessageEditor/slate/{SlateEditor.styled.d.ts → SlateEditor.styles.d.ts} +0 -0
package/RadioCard/RadioCard.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Horizontal, Vertical } from '@pushwoosh/kit-helpers';
|
|
|
3
3
|
import { H4, Paragraph } from '@pushwoosh/kit-typography';
|
|
4
4
|
import { Radio } from '../Radio';
|
|
5
5
|
import { TooltipTrigger } from '../Tooltip';
|
|
6
|
-
import { RootBox } from './
|
|
6
|
+
import { RootBox } from './styles';
|
|
7
7
|
/**
|
|
8
8
|
* Selectable card with a title, optional description and a radio indicator — a richer
|
|
9
9
|
* alternative to {@link Radio} for choosing one option among cards.
|
|
@@ -9,7 +9,7 @@ export const RootBox = styled(Vertical).attrs({
|
|
|
9
9
|
$gap: 0
|
|
10
10
|
}).withConfig({
|
|
11
11
|
displayName: "RootBox",
|
|
12
|
-
componentId: "sc-
|
|
12
|
+
componentId: "sc-1woucxa-0"
|
|
13
13
|
})(["width:", ";height:100%;box-sizing:border-box;outline:", ";cursor:", ";opacity:", ";pointer-events:", ";&:hover{background:", ";}"], ({
|
|
14
14
|
$width
|
|
15
15
|
}) => toCssValue($width), ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useRef } from 'react';
|
|
3
|
-
import { EditorEmojiPickerStyled } from './EditorEmojiPicker.
|
|
3
|
+
import { EditorEmojiPickerStyled } from './EditorEmojiPicker.styles';
|
|
4
4
|
import { EmojiPicker } from '../EmojiPicker';
|
|
5
5
|
import { useThemeName } from '../hooks';
|
|
6
6
|
export const EditorEmojiPicker = ({
|
|
@@ -3,7 +3,7 @@ import { Color, getThemeColors, Shadow, ShapeRadius } from '@pushwoosh/kit-const
|
|
|
3
3
|
import { rgbChannels } from './EditorEmojiPicker.helpers';
|
|
4
4
|
export const EditorEmojiPickerStyled = styled.div.withConfig({
|
|
5
5
|
displayName: "EditorEmojiPickerStyled",
|
|
6
|
-
componentId: "sc-
|
|
6
|
+
componentId: "sc-1jl3t23-0"
|
|
7
7
|
})(["min-width:352px;em-emoji-picker{border:1px solid ", ";--border-radius:", ";--shadow:", ";background-color:", ";--rgb-background:", ";}"], Color.FORM, ShapeRadius.CONTROL, Shadow.REGULAR, Color.FROZEN, ({
|
|
8
8
|
$theme
|
|
9
9
|
}) => rgbChannels(getThemeColors($theme).FROZEN));
|
|
@@ -10,7 +10,7 @@ import EmojiIcon from './assets/EmojiIcon.svg';
|
|
|
10
10
|
import PersonalizationIcon from './assets/PersonalizationIcon.svg';
|
|
11
11
|
import { EditorEmojiPicker } from './EditorEmojiPicker';
|
|
12
12
|
import { placementToDirection } from './RichMessageEditor.helpers';
|
|
13
|
-
import { Arrow, DropArea, DropContent, ImSpan } from './RichMessageEditor.
|
|
13
|
+
import { Arrow, DropArea, DropContent, ImSpan } from './RichMessageEditor.styles';
|
|
14
14
|
import { getDcByPath } from './slate/helpers';
|
|
15
15
|
import { SlateEditable, SlateEditor } from './slate/SlateEditor';
|
|
16
16
|
/**
|
|
@@ -3,15 +3,15 @@ import { Color, Shadow, ShapeRadius } from '@pushwoosh/kit-constants';
|
|
|
3
3
|
import { Horizontal } from '@pushwoosh/kit-helpers';
|
|
4
4
|
export const ImSpan = styled.span.withConfig({
|
|
5
5
|
displayName: "ImSpan",
|
|
6
|
-
componentId: "sc-
|
|
6
|
+
componentId: "sc-1l3r9n8-0"
|
|
7
7
|
})(["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);
|
|
8
8
|
export const DropArea = styled.div.withConfig({
|
|
9
9
|
displayName: "DropArea",
|
|
10
|
-
componentId: "sc-
|
|
10
|
+
componentId: "sc-1l3r9n8-1"
|
|
11
11
|
})(["z-index:1000;"]);
|
|
12
12
|
export const DropContent = styled.div.withConfig({
|
|
13
13
|
displayName: "DropContent",
|
|
14
|
-
componentId: "sc-
|
|
14
|
+
componentId: "sc-1l3r9n8-2"
|
|
15
15
|
})(["border:1px solid ", ";border-radius:", ";box-shadow:", ";background-color:", ";"], Color.FORM, ShapeRadius.CONTROL, Shadow.REGULAR, Color.FROZEN);
|
|
16
16
|
const transforms = {
|
|
17
17
|
left: 'scaleX(-1)',
|
|
@@ -23,7 +23,7 @@ export const Arrow = styled(Horizontal).attrs({
|
|
|
23
23
|
$placeItems: 'center'
|
|
24
24
|
}).withConfig({
|
|
25
25
|
displayName: "Arrow",
|
|
26
|
-
componentId: "sc-
|
|
26
|
+
componentId: "sc-1l3r9n8-3"
|
|
27
27
|
})(["position:absolute;width:20px;height:20px;transform:", " translateX(11px);", ":0;"], ({
|
|
28
28
|
$direction
|
|
29
29
|
}) => transforms[$direction], ({
|
|
@@ -4,7 +4,7 @@ import { Slate } from 'slate-react';
|
|
|
4
4
|
import { usePersistentFunction } from '@pushwoosh/kit-helpers';
|
|
5
5
|
import { renderElement } from './DynamicContentElement';
|
|
6
6
|
import { content2string, string2content } from './helpers';
|
|
7
|
-
import { EditableStyled } from './SlateEditor.
|
|
7
|
+
import { EditableStyled } from './SlateEditor.styles';
|
|
8
8
|
import { createMKEditor } from './SlateEditor.utils';
|
|
9
9
|
export const SlateEditor = ({
|
|
10
10
|
initialValue: initialValueString,
|
|
@@ -3,7 +3,7 @@ import styled from 'styled-components';
|
|
|
3
3
|
import { Color, FontSize, FontWeight, ShapeRadius } from '@pushwoosh/kit-constants';
|
|
4
4
|
export const EditableStyled = styled(Editable).withConfig({
|
|
5
5
|
displayName: "EditableStyled",
|
|
6
|
-
componentId: "sc-
|
|
6
|
+
componentId: "sc-13jikil-0"
|
|
7
7
|
})(["font-weight:", ";font-size:", ";line-height:140%;padding:8px;color:", ";background:", ";caret-color:", ";border:1px solid ", ";border-radius:", ";overflow-x:auto;& [data-slate-placeholder='true']{color:", ";opacity:1 !important;}&:focus{border-color:", ";outline:none;}& > p{position:relative;margin:4px 0;&:first-child{margin-top:0;}&:last-child{margin-bottom:0;}}"], FontWeight.REGULAR, FontSize.REGULAR, Color.MAIN, Color.CLEAR, Color.BRIGHT, ({
|
|
8
8
|
$isErrored
|
|
9
9
|
}) => $isErrored ? Color.DANGER : Color.FORM, ShapeRadius.CONTROL, Color.PHANTOM, Color.BRIGHT);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type RefObject } from 'react';
|
|
2
|
-
type Ref = RefObject<HTMLElement> | RefObject<HTMLElement>[];
|
|
2
|
+
type Ref = RefObject<HTMLElement | null> | RefObject<HTMLElement | null>[];
|
|
3
3
|
/**
|
|
4
4
|
* Calls `handler` on a mousedown/touchstart outside the referenced element(s).
|
|
5
5
|
* Pass a single ref or an array of refs to treat several elements as "inside".
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|