@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 +0 -1
- package/Banner/styles.d.ts +1 -3
- package/Banner/styles.js +3 -5
- package/package.json +1 -1
package/Banner/Banner.js
CHANGED
package/Banner/styles.d.ts
CHANGED
|
@@ -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 {
|
|
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:
|
|
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"
|