@pushwoosh/dumb-components 2.5.0 → 2.5.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/Banner/Banner.js CHANGED
@@ -80,7 +80,6 @@ export function Banner(props) {
80
80
  view: "filled"
81
81
  })
82
82
  }), _jsxs(BannerContent, {
83
- "$hasTitleAndChildren": hasTitle && hasChildren,
84
83
  children: [hasTitle && _jsx(H4, {
85
84
  children: title
86
85
  }), hasChildren && _jsx("div", {
@@ -11,9 +11,7 @@ export declare const BannerBox: import("styled-components").StyledComponent<"div
11
11
  $isOpen?: boolean;
12
12
  $isLoading: boolean;
13
13
  }, never>;
14
- export declare const BannerContent: import("styled-components").StyledComponent<"div", any, {
15
- $hasTitleAndChildren?: boolean;
16
- }, never>;
14
+ export declare const BannerContent: import("styled-components").StyledComponent<"div", any, {}, never>;
17
15
  export declare const IconContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
18
16
  export declare const BannerShape: import("styled-components").StyledComponent<"div", any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
19
17
  $isOpen?: boolean;
package/Banner/styles.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import styled from 'styled-components';
2
- import { ShapeRadius, FontWeight } from '@pushwoosh/kit-constants';
2
+ import { FontSize, FontWeight, LineHeight, ShapeRadius } from '@pushwoosh/kit-constants';
3
3
  import { colors } from './colors';
4
4
  export const BannerSpinner = styled.div.withConfig({
5
5
  displayName: "BannerSpinner",
@@ -8,7 +8,7 @@ export const BannerSpinner = styled.div.withConfig({
8
8
  export const ActionButton = styled.button.withConfig({
9
9
  displayName: "ActionButton",
10
10
  componentId: "sc-9uu4ap-1"
11
- })(["appearance:none !important;border:none;background:initial;cursor:pointer;padding:6px;position:relative;font-weight:", ";white-space:nowrap;height:fit-content;> span{visibility:", ";}opacity:", ";"], FontWeight.BOLD, ({
11
+ })(["appearance:none !important;border:none;background:initial;cursor:pointer;padding:6px;position:relative;font-size:", ";line-height:", ";font-weight:", ";text-transform:uppercase;white-space:nowrap;height:fit-content;> span{visibility:", ";}opacity:", ";"], FontSize.SMALL, LineHeight.SMALL, FontWeight.BOLD, ({
12
12
  $isLoading
13
13
  }) => $isLoading ? 'hidden' : 'visible', ({
14
14
  $isPressed,
@@ -27,9 +27,7 @@ export const BannerBox = styled.div.withConfig({
27
27
  export const BannerContent = styled.div.withConfig({
28
28
  displayName: "BannerContent",
29
29
  componentId: "sc-9uu4ap-4"
30
- })(["flex-grow:1;padding:", ";color:", ";"], ({
31
- $hasTitleAndChildren
32
- }) => $hasTitleAndChildren ? '16px' : '8px 16px', colors.error.shape.base.color);
30
+ })(["flex-grow:1;padding:12px 16px;color:", ";"], colors.error.shape.base.color);
33
31
  export const IconContainer = styled.div.withConfig({
34
32
  displayName: "IconContainer",
35
33
  componentId: "sc-9uu4ap-5"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",