@nuskin/foundation-ui-components 1.19.0-medium-card.2 → 1.19.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/foundation-ui-components",
3
- "version": "1.19.0-medium-card.2",
3
+ "version": "1.19.0",
4
4
  "description": "It is a foundation library written in react, that provides common components to all UI pages",
5
5
  "main": "src/common/index.ts",
6
6
  "repository": {
@@ -1,4 +1,5 @@
1
- import { styled, ColorUtils, FoundationTheme } from '@nuskin/foundation-theme';
1
+ import { ColorUtils, FoundationTheme, styled } from '@nuskin/foundation-theme';
2
+
2
3
  import { NsTypographyProps } from './types.d';
3
4
 
4
5
  const { paletteColor } = ColorUtils;
@@ -161,7 +162,7 @@ const getVariantStyle = (
161
162
  themeTypographyVariants: Record<FoundationTheme.TypographyVariants, TypographyConfig>,
162
163
  variant: FoundationTheme.TypographyVariants
163
164
  ) => {
164
- const variantStyles = themeTypographyVariants[variant as FoundationTheme.TypographyVariants];
165
+ const variantStyles = themeTypographyVariants?.[variant as FoundationTheme.TypographyVariants];
165
166
  if (variantStyles) {
166
167
  return variantStyles;
167
168
  }