@nuskin/marketing-components 1.28.0 → 1.30.0

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,6 +1,6 @@
1
1
  /**
2
2
  * BannerText Sub-Component
3
- * Renders text content (title, subtitle, bodyText) with responsive styling
3
+ * Renders text content (header, title, subtitle, bodyText) using the Typography component
4
4
  */
5
5
  import React from 'react';
6
6
  import type { BannerTextProps } from '../types';
@@ -5,27 +5,19 @@ export declare const TextContainer: import("@emotion/styled").StyledComponent<{
5
5
  } & {
6
6
  textAlignment: TextAlignment;
7
7
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
8
- export declare const HeaderText: import("@emotion/styled").StyledComponent<{
8
+ export declare const HeaderTextWrapper: import("@emotion/styled").StyledComponent<{
9
9
  theme?: import("@emotion/react").Theme;
10
10
  as?: React.ElementType;
11
- } & {
12
- fontColor: string;
13
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
14
- export declare const Title: import("@emotion/styled").StyledComponent<{
11
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
+ export declare const TitleWrapper: import("@emotion/styled").StyledComponent<{
15
13
  theme?: import("@emotion/react").Theme;
16
14
  as?: React.ElementType;
17
- } & {
18
- fontColor: string;
19
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
20
- export declare const Subtitle: import("@emotion/styled").StyledComponent<{
15
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
16
+ export declare const SubtitleWrapper: import("@emotion/styled").StyledComponent<{
21
17
  theme?: import("@emotion/react").Theme;
22
18
  as?: React.ElementType;
23
- } & {
24
- fontColor: string;
25
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
26
- export declare const BodyText: import("@emotion/styled").StyledComponent<{
19
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
20
+ export declare const BodyTextWrapper: import("@emotion/styled").StyledComponent<{
27
21
  theme?: import("@emotion/react").Theme;
28
22
  as?: React.ElementType;
29
- } & {
30
- fontColor: string;
31
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
23
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -55,6 +55,17 @@ export declare const typographyVariants: {
55
55
  };
56
56
  fontFamily: string;
57
57
  };
58
+ boxquote: {
59
+ desktop: {
60
+ fontSize: string;
61
+ lineHeight: string;
62
+ };
63
+ mobile: {
64
+ fontSize: string;
65
+ lineHeight: string;
66
+ };
67
+ fontFamily: string;
68
+ };
58
69
  };
59
70
  /**
60
71
  * Common text element styles for rich content
@@ -62,6 +73,7 @@ export declare const typographyVariants: {
62
73
  * Can be imported and used in other styled components
63
74
  */
64
75
  export declare const commonTextStyles = "\n p {\n margin: 0;\n padding: 0;\n font-size: 16px;\n line-height: 22px;\n font-family: 'Inter', sans-serif;\n }\n\n @media (max-width: 768px) {\n p {\n font-size: 16px;\n line-height: 22px;\n }\n }\n\n strong, b {\n font-weight: 600;\n }\n\n em, i {\n font-style: italic;\n }\n\n a {\n color: #008ab0;\n text-decoration: underline;\n\n &:hover {\n opacity: 0.8;\n }\n }\n\n ul, ol {\n margin: 16px 0;\n padding-left: 24px;\n }\n\n li {\n margin: 8px 0;\n }\n";
76
+ export declare const variantToElement: Record<string, string>;
65
77
  export declare const TypographyStyled: import("@emotion/styled").StyledComponent<{
66
78
  theme?: import("@emotion/react").Theme;
67
79
  as?: React.ElementType;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, CSSProperties } from 'react';
2
- export type TypographyVariant = 'h1' | 'h2' | 'h3' | 'body' | 'disclaimer';
2
+ export type TypographyVariant = 'h1' | 'h2' | 'h3' | 'body' | 'disclaimer' | 'boxquote';
3
3
  export interface TypographyStyledProps {
4
4
  variant?: TypographyVariant;
5
5
  color?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/marketing-components",
3
- "version": "1.28.0",
3
+ "version": "1.30.0",
4
4
  "description": "A React based component library for marketing components to use with content stack pagebuilding",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",