@pushwoosh/kit-typography 1.7.1 → 1.7.3

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/map.js CHANGED
@@ -6,7 +6,7 @@ export const variants = {
6
6
  h1: css(["font-family:", ";font-size:", ";font-weight:", ";line-height:", ";"], FontFamily.MAIN, FontSize.HEADING1, FontWeight.BOLD, LineHeight.HEADING1),
7
7
  h2: css(["font-family:", ";font-size:", ";font-weight:", ";line-height:", ";"], FontFamily.MAIN, FontSize.HEADING2, FontWeight.BOLD, LineHeight.HEADING2),
8
8
  h3: css(["font-family:", ";font-size:", ";font-weight:", ";line-height:", ";"], FontFamily.MAIN, FontSize.HEADING3, FontWeight.BOLD, LineHeight.HEADING3),
9
- h4: css(["font-family:", ";font-size:", ";font-weight:", ";line-height:", ";"], FontFamily.MAIN, FontSize.HEADING4, FontWeight.BOLD, LineHeight.HEADING4),
9
+ h4: css(["font-family:", ";font-size:", ";font-weight:", ";line-height:", ";"], FontFamily.MAIN, FontSize.HEADING4, FontWeight.MEDIUM, LineHeight.HEADING4),
10
10
  h5: css(["font-family:", ";font-size:", ";font-weight:", ";line-height:", ";"], FontFamily.MAIN, FontSize.HEADING5, FontWeight.MEDIUM, LineHeight.HEADING5),
11
11
  code: css(["font-family:", ";font-size:", ";font-weight:", ";line-height:", ";"], FontFamily.MONO, FontSize.REGULAR, FontWeight.REGULAR, LineHeight.REGULAR)
12
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/kit-typography",
3
- "version": "1.7.1",
3
+ "version": "1.7.3",
4
4
  "description": "React component for build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
package/text/Text.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import { type TypographyVariant } from '../map';
2
2
  export declare const Text: import("styled-components").StyledComponent<"span", any, {
3
3
  $color?: string | undefined;
4
+ $uppercase?: boolean | undefined;
5
+ $ellipsis?: boolean | undefined;
4
6
  $variant?: TypographyVariant | undefined;
5
7
  }, never>;
package/text/Text.js CHANGED
@@ -3,8 +3,12 @@ import { variants } from '../map';
3
3
  export const Text = styled.span.withConfig({
4
4
  displayName: "Text",
5
5
  componentId: "sc-s3ssy9-0"
6
- })(["", " ", "}"], ({
6
+ })(["", " ", " ", " ", ""], ({
7
7
  $color
8
8
  }) => $color && `color: ${$color};`, ({
9
9
  $variant = 'standard'
10
- }) => variants[$variant]);
10
+ }) => variants[$variant], ({
11
+ $uppercase
12
+ }) => $uppercase && 'text-transform: uppercase;', ({
13
+ $ellipsis
14
+ }) => $ellipsis && 'text-overflow: ellipsis; overflow: hidden; white-space: nowrap; display: inline-block; max-width: 100%;');