@pushwoosh/smart-components-kit 1.3.20 → 1.3.21

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.
@@ -1,4 +1,11 @@
1
1
  export declare const CardImage: import("styled-components").StyledComponent<"img", any, {}, never>;
2
2
  export declare const ContentBox: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const List: import("styled-components").StyledComponent<"ul", any, {}, never>;
3
+ export declare const List: import("styled-components").StyledComponent<"span", any, {
4
+ $color?: string;
5
+ $uppercase?: boolean;
6
+ $ellipsis?: boolean;
7
+ $variant?: import("@pushwoosh/kit-typography").TypographyVariant;
8
+ } & {
9
+ as: string;
10
+ }, "as">;
4
11
  export declare const Bold: import("styled-components").StyledComponent<"strong", any, {}, never>;
@@ -1,5 +1,6 @@
1
1
  import styled from 'styled-components';
2
2
  import { FontWeight, ShapeRadius } from '@pushwoosh/kit-constants';
3
+ import { Text } from '@pushwoosh/kit-typography';
3
4
  // The only rule kit-helpers cannot express: object-fit has no prop there, and it is
4
5
  // what keeps a wrongly proportioned upload from stretching the card.
5
6
  export const CardImage = styled.img.withConfig({
@@ -12,7 +13,11 @@ export const ContentBox = styled.div.withConfig({
12
13
  displayName: "ContentBox",
13
14
  componentId: "sc-11vonu6-1"
14
15
  })(["> * + *{margin-top:0.5em;}"]);
15
- export const List = styled.ul.withConfig({
16
+ // Built on Text, not on a bare <ul>: the paragraph typography lives in that variant, and
17
+ // a plain list would keep the surrounding font size — 16px next to the card's 14px.
18
+ export const List = styled(Text).attrs({
19
+ as: 'ul'
20
+ }).withConfig({
16
21
  displayName: "List",
17
22
  componentId: "sc-11vonu6-2"
18
23
  })(["margin:0;padding-left:1.25em;list-style:disc outside;li + li{margin-top:0.25em;}"]);
package/package.json CHANGED
@@ -54,5 +54,5 @@
54
54
  "react": "^16.14.0 || ^18.0.0",
55
55
  "react-dom": "^16.14.0 || ^18.0.0"
56
56
  },
57
- "version": "1.3.20"
57
+ "version": "1.3.21"
58
58
  }