@nuskin/marketing-components 1.40.0 → 1.40.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.
Files changed (130) hide show
  1. package/dist/index.d.mts +446 -0
  2. package/dist/index.d.ts +446 -11
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +1 -1
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +1 -1
  8. package/dist/button/Button.d.ts +0 -4
  9. package/dist/button/Button.stories.d.ts +0 -28
  10. package/dist/button/Button.styled.d.ts +0 -47
  11. package/dist/button/ButtonWrapper.d.ts +0 -9
  12. package/dist/button/helpers.d.ts +0 -59
  13. package/dist/button/index.d.ts +0 -3
  14. package/dist/button/specs/Button.spec.d.ts +0 -1
  15. package/dist/button/specs/ButtonWrapper.spec.d.ts +0 -1
  16. package/dist/button/types.d.ts +0 -42
  17. package/dist/bynder-media/BynderMedia.d.ts +0 -3
  18. package/dist/bynder-media/BynderMedia.styled.d.ts +0 -36
  19. package/dist/bynder-media/index.d.ts +0 -3
  20. package/dist/bynder-media/specs/bynder-utils.spec.d.ts +0 -1
  21. package/dist/bynder-media/specs/mockData.d.ts +0 -139
  22. package/dist/bynder-media/types.d.ts +0 -61
  23. package/dist/bynder-media/utils.d.ts +0 -3
  24. package/dist/carousel/Carousel.d.ts +0 -6
  25. package/dist/carousel/Carousel.stories.d.ts +0 -14
  26. package/dist/carousel/CarouselLayout.styled.d.ts +0 -50
  27. package/dist/carousel/hooks/useCarouselLayout.d.ts +0 -31
  28. package/dist/carousel/hooks/useCarouselResize.d.ts +0 -6
  29. package/dist/carousel/index.d.ts +0 -2
  30. package/dist/carousel/mocks/MockContentCard.d.ts +0 -20
  31. package/dist/carousel/mocks/MockHeroBanner.d.ts +0 -18
  32. package/dist/carousel/mocks/MockProductCard.d.ts +0 -9
  33. package/dist/carousel/mocks/index.d.ts +0 -7
  34. package/dist/carousel/mocks/mockAssets.d.ts +0 -15
  35. package/dist/carousel/shared.d.ts +0 -27
  36. package/dist/carousel/specs/Carousel.spec.d.ts +0 -1
  37. package/dist/carousel/specs/useCarouselResize.spec.d.ts +0 -1
  38. package/dist/carousel/specs/utils.spec.d.ts +0 -1
  39. package/dist/carousel/types.d.ts +0 -56
  40. package/dist/carousel/utils.d.ts +0 -47
  41. package/dist/column-control/ColumnControl.d.ts +0 -4
  42. package/dist/column-control/ColumnControl.stories.d.ts +0 -13
  43. package/dist/column-control/ColumnControl.styled.d.ts +0 -49
  44. package/dist/column-control/index.d.ts +0 -2
  45. package/dist/column-control/mocks/MockContentCard.d.ts +0 -13
  46. package/dist/column-control/mocks/MockProductCard.d.ts +0 -9
  47. package/dist/column-control/mocks/index.d.ts +0 -5
  48. package/dist/column-control/specs/ColumnControl.spec.d.ts +0 -1
  49. package/dist/column-control/specs/utils.spec.d.ts +0 -1
  50. package/dist/column-control/types.d.ts +0 -48
  51. package/dist/column-control/utils.d.ts +0 -24
  52. package/dist/content-card/ContentCard.d.ts +0 -4
  53. package/dist/content-card/ContentCard.stories.d.ts +0 -12
  54. package/dist/content-card/ContentCard.styled.d.ts +0 -35
  55. package/dist/content-card/constants.d.ts +0 -3
  56. package/dist/content-card/index.d.ts +0 -2
  57. package/dist/content-card/specs/ContentCard.spec.d.ts +0 -1
  58. package/dist/content-card/specs/helpers.spec.d.ts +0 -1
  59. package/dist/content-card/types.d.ts +0 -31
  60. package/dist/content-card/utils/helpers.d.ts +0 -20
  61. package/dist/hero-banner/HeroBanner.d.ts +0 -4
  62. package/dist/hero-banner/HeroBanner.stories.d.ts +0 -17
  63. package/dist/hero-banner/HeroBanner.styled.d.ts +0 -35
  64. package/dist/hero-banner/components/TypographyFields.d.ts +0 -13
  65. package/dist/hero-banner/constants.d.ts +0 -5
  66. package/dist/hero-banner/helpers.d.ts +0 -12
  67. package/dist/hero-banner/index.d.ts +0 -2
  68. package/dist/hero-banner/specs/HeroBanner.spec.d.ts +0 -1
  69. package/dist/hero-banner/specs/helpers.spec.d.ts +0 -1
  70. package/dist/hero-banner/types.d.ts +0 -26
  71. package/dist/hooks/index.d.ts +0 -3
  72. package/dist/hooks/use-toggle-font-color/useMainContrast.d.ts +0 -8
  73. package/dist/hooks/use-toggle-font-color/useMainContrast.spec.d.ts +0 -1
  74. package/dist/hooks/use-toggle-font-color/useToggleFontColor.d.ts +0 -8
  75. package/dist/hooks/use-toggle-font-color/useToggleFontColor.spec.d.ts +0 -1
  76. package/dist/hooks/useRouteReplacer.d.ts +0 -10
  77. package/dist/hooks/useRouteReplacer.spec.d.ts +0 -1
  78. package/dist/image/CsImage.d.ts +0 -4
  79. package/dist/image/CsImage.stories.d.ts +0 -7
  80. package/dist/image/CsImage.styled.d.ts +0 -8
  81. package/dist/image/index.d.ts +0 -1
  82. package/dist/image/specs/CsImage.spec.d.ts +0 -1
  83. package/dist/image/types.d.ts +0 -73
  84. package/dist/marketing-banner/MarketingBanner.d.ts +0 -7
  85. package/dist/marketing-banner/MarketingBanner.stories.d.ts +0 -206
  86. package/dist/marketing-banner/MarketingBanner.styled.d.ts +0 -62
  87. package/dist/marketing-banner/components/BannerText.d.ts +0 -7
  88. package/dist/marketing-banner/components/BannerText.styled.d.ts +0 -23
  89. package/dist/marketing-banner/components/index.d.ts +0 -1
  90. package/dist/marketing-banner/components/specs/BannerText.spec.d.ts +0 -5
  91. package/dist/marketing-banner/constants.d.ts +0 -22
  92. package/dist/marketing-banner/hooks/index.d.ts +0 -2
  93. package/dist/marketing-banner/hooks/useCarousel.d.ts +0 -14
  94. package/dist/marketing-banner/hooks/useReducedMotion.d.ts +0 -5
  95. package/dist/marketing-banner/index.d.ts +0 -3
  96. package/dist/marketing-banner/specs/MarketingBanner.spec.d.ts +0 -5
  97. package/dist/marketing-banner/specs/mockData.d.ts +0 -22
  98. package/dist/marketing-banner/specs/useCarousel.spec.d.ts +0 -5
  99. package/dist/marketing-banner/specs/utils.spec.d.ts +0 -1
  100. package/dist/marketing-banner/styles/mixins.d.ts +0 -53
  101. package/dist/marketing-banner/styles/theme.d.ts +0 -99
  102. package/dist/marketing-banner/types.d.ts +0 -57
  103. package/dist/marketing-banner/utils/index.d.ts +0 -1
  104. package/dist/marketing-banner/utils/utils.d.ts +0 -4
  105. package/dist/rich-text/RichText.d.ts +0 -27
  106. package/dist/rich-text/RichText.stories.d.ts +0 -8
  107. package/dist/rich-text/index.d.ts +0 -1
  108. package/dist/rich-text/specs/RichText.spec.d.ts +0 -1
  109. package/dist/spacing-divider/SpacingDivider.d.ts +0 -4
  110. package/dist/spacing-divider/SpacingDivider.stories.d.ts +0 -6
  111. package/dist/spacing-divider/SpacingDivider.styled.d.ts +0 -9
  112. package/dist/spacing-divider/index.d.ts +0 -2
  113. package/dist/spacing-divider/specs/SpacingDivider.spec.d.ts +0 -1
  114. package/dist/spacing-divider/types.d.ts +0 -26
  115. package/dist/spacing-divider/utils/specs/utils.spec.d.ts +0 -1
  116. package/dist/spacing-divider/utils/utils.d.ts +0 -13
  117. package/dist/text/CsText.d.ts +0 -15
  118. package/dist/text/CsText.stories.d.ts +0 -7
  119. package/dist/text/index.d.ts +0 -1
  120. package/dist/text/specs/CsText.spec.d.ts +0 -1
  121. package/dist/typography/Typography.d.ts +0 -18
  122. package/dist/typography/Typography.stories.d.ts +0 -6
  123. package/dist/typography/Typography.styled.d.ts +0 -80
  124. package/dist/typography/index.d.ts +0 -3
  125. package/dist/typography/specs/Typography.spec.d.ts +0 -1
  126. package/dist/typography/types.d.ts +0 -18
  127. package/dist/utils/deviceConstants.d.ts +0 -13
  128. package/dist/utils/route-utils.d.ts +0 -18
  129. package/dist/utils/specs/route-utils.spec.d.ts +0 -1
  130. package/dist/utils/viewportLayoutUtils.d.ts +0 -4
@@ -1,99 +0,0 @@
1
- /**
2
- * Marketing Banner Theme Constants
3
- * Centralized design tokens for all components
4
- */
5
- export declare const BREAKPOINTS: {
6
- readonly mobile: 0;
7
- readonly tablet: 768;
8
- readonly desktop: 1024;
9
- readonly wide: 1440;
10
- };
11
- export declare const FONT_STACKS: {
12
- readonly lora: "'Lora', Georgia, 'Times New Roman', serif";
13
- readonly inter: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif";
14
- };
15
- export declare const FONT_SIZES: {
16
- readonly header: {
17
- readonly mobile: "12px";
18
- readonly tablet: "14px";
19
- readonly desktop: "14px";
20
- readonly wide: "16px";
21
- };
22
- readonly title: {
23
- readonly mobile: "24px";
24
- readonly tablet: "32px";
25
- readonly desktop: "40px";
26
- readonly wide: "48px";
27
- };
28
- readonly subtitle: {
29
- readonly mobile: "16px";
30
- readonly tablet: "18px";
31
- readonly desktop: "20px";
32
- readonly wide: "22px";
33
- };
34
- readonly body: {
35
- readonly mobile: "14px";
36
- readonly tablet: "16px";
37
- readonly desktop: "18px";
38
- readonly wide: "20px";
39
- };
40
- readonly cta: {
41
- readonly mobile: "18px";
42
- readonly tablet: "22px";
43
- readonly wide: "24px";
44
- };
45
- };
46
- export declare const SPACING: {
47
- readonly headerMargin: "0 0 0.25rem 0";
48
- readonly titleMargin: "0 0 0.75rem 0";
49
- readonly subtitleMargin: "0 0 0.5rem 0";
50
- readonly bodyMargin: "0";
51
- readonly textGap: "1.5rem";
52
- readonly desktopPadding: "3rem";
53
- readonly mobilePadding: "2rem";
54
- readonly carouselGap: "0.75rem";
55
- readonly ctaPaddingDesktop: "16px 32px";
56
- readonly ctaPaddingTablet: "12px 28px";
57
- readonly ctaPaddingWide: "18px 36px";
58
- };
59
- export declare const DIMENSIONS: {
60
- readonly bannerHeightDesktop: "600px";
61
- readonly bannerHeightMobile: "400px";
62
- readonly textMaxWidth: "600px";
63
- readonly indicatorSize: "12px";
64
- readonly indicatorBorder: "2px";
65
- };
66
- export declare const COLORS: {
67
- readonly textWhite: "#ffffff";
68
- readonly textDark: "#1D1D1B";
69
- readonly textGray: "#666";
70
- readonly ctaDark: "#888888";
71
- readonly ctaBorder: "#888888";
72
- readonly fallbackBg: "#f0f0f0";
73
- readonly indicatorBorder: "rgba(255, 255, 255, 0.9)";
74
- readonly indicatorActive: "rgba(255, 255, 255, 0.9)";
75
- readonly indicatorInactive: "transparent";
76
- };
77
- export declare const TEXT_COLOR_MAP: {
78
- readonly white: "#ffffff";
79
- readonly dark: "#1D1D1B";
80
- };
81
- export declare const TRANSITIONS: {
82
- readonly fast: "0.1s ease";
83
- readonly default: "0.3s ease";
84
- readonly slow: "0.6s cubic-bezier(0.4, 0, 0.2, 1)";
85
- };
86
- export declare const Z_INDEX: {
87
- readonly background: 0;
88
- readonly media: 0;
89
- readonly gradient: 1;
90
- readonly content: 2;
91
- readonly controls: 3;
92
- };
93
- export declare const MEDIA_QUERIES: {
94
- readonly tablet: `@media (min-width: ${number}px) and (max-width: ${number}px)`;
95
- readonly desktop: `@media (min-width: 1024px) and (max-width: ${number}px)`;
96
- readonly wide: "@media (min-width: 1440px)";
97
- readonly mobileAndBelow: "@media (max-width: 768px)";
98
- readonly desktopAndUp: "@media (min-width: 1024px)";
99
- };
@@ -1,57 +0,0 @@
1
- import { ButtonBlockProp } from '../button/types';
2
- export type CSEditTags = Record<string, any>;
3
- export type GradientDirection = 'leftToRight' | 'rightToLeft' | 'radial';
4
- export type GradientDepth = 'sm' | 'md' | 'lg';
5
- export type ColorTheme = 'primary' | 'secondary';
6
- export type TextColor = 'white' | 'dark';
7
- export type MediaType = 'image' | 'gif' | 'video';
8
- export type BannerAlignment = 'left' | 'center' | 'right';
9
- export type TextAlignment = 'left' | 'center' | 'right';
10
- export interface BannerData {
11
- header_text?: string;
12
- title?: string;
13
- subtitle?: string;
14
- body_text?: string;
15
- cta_button?: ButtonBlockProp;
16
- bynder_media?: string;
17
- position?: 'left' | 'center' | 'right';
18
- text_color?: 'white' | 'dark';
19
- gradient?: {
20
- show_gradient?: boolean;
21
- gradient_depth?: 'sm' | 'md' | 'lg';
22
- $?: CSEditTags;
23
- };
24
- content_position?: 'left' | 'center' | 'right';
25
- $?: CSEditTags;
26
- isEditing?: boolean;
27
- }
28
- export interface MarketingBannerData {
29
- readonly banners: BannerData[];
30
- readonly rotation_interval?: number;
31
- }
32
- export interface MarketingBannerProps extends MarketingBannerData {
33
- readonly isEditing?: boolean;
34
- readonly $?: CSEditTags;
35
- }
36
- export interface BannerTextProps {
37
- readonly headerText?: string;
38
- readonly title?: string;
39
- readonly subtitle?: string;
40
- readonly bodyText?: string;
41
- readonly textColor?: string;
42
- readonly textAlignment?: TextAlignment;
43
- readonly testId?: string;
44
- readonly $?: CSEditTags;
45
- readonly isEditing?: boolean;
46
- }
47
- export interface UseCarouselReturn {
48
- currentIndex: number;
49
- isPaused: boolean;
50
- totalSlides: number;
51
- goToNext: () => void;
52
- goToPrevious: () => void;
53
- goToSlide: (index: number) => void;
54
- pause: () => void;
55
- resume: () => void;
56
- handleKeyDown: (event: React.KeyboardEvent) => void;
57
- }
@@ -1 +0,0 @@
1
- export * from './utils';
@@ -1,4 +0,0 @@
1
- import { MarketingBannerProps, BannerData } from '../types';
2
- export declare function hasCTA(banner: BannerData): boolean;
3
- export declare function isCarouselMode(props: MarketingBannerProps): boolean;
4
- export declare function hasMedia(banner: BannerData): boolean;
@@ -1,27 +0,0 @@
1
- import { ReactElement } from 'react';
2
- import CsText from '../text/CsText';
3
- import type { ComponentProps } from 'react';
4
- type CsTextProps = ComponentProps<typeof CsText>;
5
- interface RichTextProps extends Omit<CsTextProps, 'text_editor' | 'font_color'> {
6
- text_editor: string;
7
- font_color?: 'Light' | 'Dark';
8
- }
9
- /**
10
- * RichText Component
11
- *
12
- * Wrapper component that sanitizes Rich Text Editor content before passing to CsText.
13
- * Uses DOMPurify to remove dangerous markup (scripts, styles, event handlers, etc.)
14
- * while preserving allowed formatting tags and attributes.
15
- *
16
- * SECURITY FEATURES:
17
- * - Removes script tags and event handlers
18
- * - Strips dangerous attributes and tags
19
- * - Allows only specified tags: p, div, span, a, br, strong, em, i, u, h1, h2, h3, ul, ol, li
20
- * - Allows only specified attributes: href, target, rel, title, class, style, data-cslp
21
- * - Sanitization is applied before rendering in CsText
22
- *
23
- * @param props - CsText component props with sanitizable text_editor content
24
- * @returns Rendered component with sanitized content
25
- */
26
- declare const RichText: ({ text_editor, font_color, ...restProps }: RichTextProps) => ReactElement | null;
27
- export default RichText;
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import RichText from './RichText';
3
- import 'react-quill/dist/quill.snow.css';
4
- declare const meta: Meta<typeof RichText>;
5
- export default meta;
6
- type Story = StoryObj<typeof RichText>;
7
- export declare const CMSForm: Story;
8
- export declare const Sandbox: Story;
@@ -1 +0,0 @@
1
- export { default as RichTextComponent } from './RichText';
@@ -1 +0,0 @@
1
- import '@testing-library/jest-dom';
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { SpacingDividerProps } from './types';
3
- declare const SpacingDivider: (props: SpacingDividerProps) => React.ReactElement | null;
4
- export default SpacingDivider;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import SpacingDivider from './SpacingDivider';
3
- declare const meta: Meta<typeof SpacingDivider>;
4
- export default meta;
5
- type Story = StoryObj<typeof SpacingDivider>;
6
- export declare const Default: Story;
@@ -1,9 +0,0 @@
1
- import type { StyledSpacingProps, StyledDividerProps } from './types';
2
- export declare const StyledSpacingContainer: import("@emotion/styled").StyledComponent<{
3
- theme?: import("@emotion/react").Theme;
4
- as?: React.ElementType;
5
- } & StyledSpacingProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
- export declare const StyledDividerLine: import("@emotion/styled").StyledComponent<{
7
- theme?: import("@emotion/react").Theme;
8
- as?: React.ElementType;
9
- } & StyledDividerProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,2 +0,0 @@
1
- export { default as SpacingDivider } from './SpacingDivider';
2
- export type { SpacingDividerProps } from './types';
@@ -1 +0,0 @@
1
- import '@testing-library/jest-dom';
@@ -1,26 +0,0 @@
1
- export type PaddingScale = 'none' | 'small' | 'medium' | 'large';
2
- export type DividerStyle = 'solid' | 'dashed' | 'dotted' | 'none';
3
- export type DividerThickness = 'thin' | 'medium' | 'thick';
4
- export type BreakpointName = 'mobile' | 'tablet' | 'desktop' | 'ultra';
5
- export interface SpacingDividerProps {
6
- vertical_padding?: PaddingScale;
7
- divider_style?: DividerStyle;
8
- divider_thickness?: DividerThickness;
9
- divider_color?: string;
10
- divider_gradient_preset?: 'none' | 'soft' | 'bold' | 'faint';
11
- divider_width_percent?: number;
12
- divider_alignment?: 'left' | 'center' | 'right';
13
- }
14
- export interface StyledSpacingProps {
15
- vertical_padding: PaddingScale;
16
- divider_alignment: 'left' | 'center' | 'right';
17
- }
18
- export interface StyledDividerProps {
19
- divider_style: DividerStyle;
20
- divider_thickness_px: number;
21
- divider_color: string;
22
- divider_gradient?: string;
23
- divider_width_percent: number;
24
- }
25
- export declare const THICKNESS_PX: Record<DividerThickness, number>;
26
- export declare const BREAKPOINTS: Record<BreakpointName, string>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- /**
2
- * Validates if a string is a valid hex color
3
- * @param value - The string to validate
4
- * @returns true if valid hex color, false otherwise
5
- */
6
- export declare const isValidHex: (value?: string) => boolean;
7
- /**
8
- * Generates CSS gradient string based on preset and base color
9
- * @param preset - The gradient preset type
10
- * @param baseHex - The base hex color for the gradient
11
- * @returns CSS gradient string or undefined
12
- */
13
- export declare const gradientPresetCss: (preset?: "none" | "soft" | "bold" | "faint", baseHex?: string) => string | undefined;
@@ -1,15 +0,0 @@
1
- import { ReactElement } from 'react';
2
- import { RegionLanguageQuery } from '../utils/route-utils';
3
- interface CsTextProps {
4
- full_width?: boolean;
5
- container_background_color?: unknown;
6
- alignment?: 'left' | 'center' | 'right';
7
- text_editor: string;
8
- font_color?: boolean;
9
- $?: {
10
- text_editor?: Record<string, unknown>;
11
- };
12
- }
13
- export declare const rewriteLinks: (html: string, replacer?: RegionLanguageQuery) => string;
14
- declare const CsText: ({ full_width, container_background_color, alignment, text_editor, font_color, $ }: CsTextProps) => ReactElement | null;
15
- export default CsText;
@@ -1,7 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import CsText from './CsText';
3
- import 'react-quill/dist/quill.snow.css';
4
- declare const meta: Meta<typeof CsText>;
5
- export default meta;
6
- type Story = StoryObj<typeof CsText>;
7
- export declare const CMSForm: Story;
@@ -1 +0,0 @@
1
- export { default as CsTextComponent } from './CsText';
@@ -1 +0,0 @@
1
- import '@testing-library/jest-dom';
@@ -1,18 +0,0 @@
1
- import { TypographyProps } from './types';
2
- /**
3
- * Centralized Typography Component
4
- *
5
- * Supports multiple variants with responsive font sizes for desktop and mobile/tablet.
6
- * Includes ADA compliance features like semantic HTML and ARIA attributes.
7
- *
8
- * @param variant - Typography variant
9
- * @param inputText - Text content to display
10
- * @param color - Text color (hex code, default: #1D1D1B)
11
- * @param className - Additional CSS class
12
- * @param role - ARIA role for accessibility
13
- * @param ariaLabel - ARIA label for screen readers
14
- * @param ariaDescribedBy - ARIA described-by attribute
15
- * @param dataTestId - Data attribute for testing
16
- */
17
- export declare const Typography: ({ variant, inputText, color, className, dataTestId, ...props }: TypographyProps) => import("react/jsx-runtime").JSX.Element;
18
- export default Typography;
@@ -1,6 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import { Typography } from './Typography';
3
- declare const meta: Meta<typeof Typography>;
4
- export default meta;
5
- type Story = StoryObj<typeof Typography>;
6
- export declare const Default: Story;
@@ -1,80 +0,0 @@
1
- import { TypographyStyledProps } from './types';
2
- export declare const typographyVariants: {
3
- h1: {
4
- desktop: {
5
- fontSize: string;
6
- lineHeight: string;
7
- };
8
- mobile: {
9
- fontSize: string;
10
- lineHeight: string;
11
- };
12
- fontFamily: string;
13
- };
14
- h2: {
15
- desktop: {
16
- fontSize: string;
17
- lineHeight: string;
18
- };
19
- mobile: {
20
- fontSize: string;
21
- lineHeight: string;
22
- };
23
- fontFamily: string;
24
- };
25
- h3: {
26
- desktop: {
27
- fontSize: string;
28
- lineHeight: string;
29
- };
30
- mobile: {
31
- fontSize: string;
32
- lineHeight: string;
33
- };
34
- fontFamily: string;
35
- };
36
- body: {
37
- desktop: {
38
- fontSize: string;
39
- lineHeight: string;
40
- };
41
- mobile: {
42
- fontSize: string;
43
- lineHeight: string;
44
- };
45
- fontFamily: string;
46
- };
47
- disclaimer: {
48
- desktop: {
49
- fontSize: string;
50
- lineHeight: string;
51
- };
52
- mobile: {
53
- fontSize: string;
54
- lineHeight: string;
55
- };
56
- fontFamily: string;
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
- };
69
- };
70
- /**
71
- * Common text element styles for rich content
72
- * Includes styling for paragraphs, links, lists, and text formatting
73
- * Can be imported and used in other styled components
74
- */
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>;
77
- export declare const TypographyStyled: import("@emotion/styled").StyledComponent<{
78
- theme?: import("@emotion/react").Theme;
79
- as?: React.ElementType;
80
- } & TypographyStyledProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,3 +0,0 @@
1
- export { default as Typography } from './Typography';
2
- export { typographyVariants } from './Typography.styled';
3
- export * from './types';
@@ -1 +0,0 @@
1
- import '@testing-library/jest-dom';
@@ -1,18 +0,0 @@
1
- import { ReactNode, CSSProperties } from 'react';
2
- export type TypographyVariant = 'h1' | 'h2' | 'h3' | 'body' | 'disclaimer' | 'boxquote';
3
- export interface TypographyStyledProps {
4
- variant?: TypographyVariant;
5
- color?: string;
6
- }
7
- export interface TypographyProps {
8
- variant?: TypographyVariant;
9
- inputText?: ReactNode;
10
- color?: string;
11
- className?: string;
12
- role?: string;
13
- ariaLabel?: string;
14
- ariaDescribedBy?: string;
15
- dataTestId?: string;
16
- style?: CSSProperties;
17
- [key: string]: any;
18
- }
@@ -1,13 +0,0 @@
1
- /** Shared breakpoints and layout constants for column-control and carousel. */
2
- export declare const DEVICE_SIZES: {
3
- readonly ULTRA_SMALL: 320;
4
- readonly EXTRA_SMALL: 480;
5
- readonly SMALL: 600;
6
- readonly MEDIUM: 768;
7
- readonly LARGE: 1024;
8
- readonly EXTRA_LARGE: 1200;
9
- readonly ULTRA_LARGE: 1440;
10
- readonly SUPER_LARGE: 1920;
11
- };
12
- /** Max height of a slide/card when height is content-driven. */
13
- export declare const MAX_SLIDE_HEIGHT_PX = 750;
@@ -1,18 +0,0 @@
1
- export type RegionLanguageQuery = {
2
- region?: string;
3
- language?: string;
4
- slug?: string;
5
- };
6
- /**
7
- * Replace {%region}, {%language} placeholders in text
8
- */
9
- export declare const replaceRegionAndLanguage: (text: string, replacer?: RegionLanguageQuery) => string;
10
- /**
11
- * Replace dynamic pathname segments like [region], [language]
12
- */
13
- export declare const replacePathnameWithQueryParams: (pathname: string, queryParams: RegionLanguageQuery) => string;
14
- /**
15
- * Extract region & language from a query object
16
- */
17
- export declare const getRegionAndLanguageFromQuery: (query?: Record<string, string | string[] | undefined>) => RegionLanguageQuery | undefined;
18
- export declare const getRegionAndLanguageFromLocation: () => RegionLanguageQuery;
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- /** Preset name used by both column-control and carousel. */
2
- type PresetName = 'single-full' | 'two-equal' | 'two-small-large' | 'three-equal' | 'three-small-medium-large' | 'four-equal';
3
- export declare function getPresetColumns(preset: PresetName | undefined): number;
4
- export {};