@weareconceptstudio/account 0.0.1 → 0.0.2

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,5 +1,5 @@
1
1
  export function AccountConfig({ fontFamily, children }: {
2
- fontFamily: any;
2
+ fontFamily?: string;
3
3
  children: any;
4
4
  }): React.JSX.Element;
5
5
  import React from 'react';
@@ -8,7 +8,7 @@ import theme from './styles/theme';
8
8
  import AccountHelperClass from './styles/helperClass';
9
9
  import AccountVariables from './styles/variables';
10
10
  import AccountTypography from './styles/typography';
11
- export const AccountConfig = ({ fontFamily, children }) => {
11
+ export const AccountConfig = ({ fontFamily = 'core_Font', children }) => {
12
12
  const { addTranslation } = useTranslation();
13
13
  useEffect(() => {
14
14
  addTranslation(translations, 'prepend');
@@ -2,7 +2,7 @@ import { createGlobalStyle, css } from 'styled-components';
2
2
  const AccountVariables = createGlobalStyle `${css `
3
3
  :root {
4
4
  //! Fonts
5
- --account_Font: ${(props) => `var(--${props.fontFamily})` || `var(--core_Font)`};
5
+ --account_Font: ${(props) => css `var(--${props.fontFamily})`};
6
6
 
7
7
  //! Transition
8
8
  --account_trTime: 0.2s;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weareconceptstudio/account",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Concept Studio Account",
5
5
  "author": "Concept Studio",
6
6
  "license": "ISC",