@pushwoosh/dumb-components 4.9.1 → 4.10.1
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/ChatPreview/constants.js
CHANGED
|
@@ -46,8 +46,8 @@ export const CHAT_CHANNELS = {
|
|
|
46
46
|
skin: {
|
|
47
47
|
headerBackground: '#06C755',
|
|
48
48
|
headerText: '#FFFFFF',
|
|
49
|
-
chatBackground: '#
|
|
50
|
-
bubble: '#
|
|
49
|
+
chatBackground: '#FFFFFF',
|
|
50
|
+
bubble: '#F1F2F4',
|
|
51
51
|
bubbleText: '#111111',
|
|
52
52
|
accent: '#06C755',
|
|
53
53
|
chipBorder: '#06C755'
|
|
@@ -19,6 +19,7 @@ export const DropdownMenuButton = ({
|
|
|
19
19
|
openOnMount,
|
|
20
20
|
menuZIndex,
|
|
21
21
|
menuPlacement,
|
|
22
|
+
windowWidth,
|
|
22
23
|
onClose,
|
|
23
24
|
children,
|
|
24
25
|
...buttonProps
|
|
@@ -28,6 +29,7 @@ export const DropdownMenuButton = ({
|
|
|
28
29
|
openOnMount: openOnMount,
|
|
29
30
|
menuZIndex: menuZIndex,
|
|
30
31
|
menuPlacement: menuPlacement,
|
|
32
|
+
windowWidth: windowWidth,
|
|
31
33
|
onClose: onClose,
|
|
32
34
|
renderHandler: ({
|
|
33
35
|
ref,
|
|
@@ -17,6 +17,8 @@ export type DropdownMenuButtonProps = {
|
|
|
17
17
|
menuZIndex?: number;
|
|
18
18
|
/** Force a specific floating placement. */
|
|
19
19
|
menuPlacement?: Placement;
|
|
20
|
+
/** Fixed menu width in pixels; `fit-content` when omitted. */
|
|
21
|
+
windowWidth?: number;
|
|
20
22
|
/** Fires when the menu closes. */
|
|
21
23
|
onClose?: () => void;
|
|
22
24
|
/** Button color (see {@link RequiredButtonProps}). */
|