@weareconceptstudio/form 0.0.4 → 0.0.5

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 FormConfig({ fontFamily, children }: {
2
- fontFamily: any;
2
+ fontFamily?: string;
3
3
  children: any;
4
4
  }): React.JSX.Element;
5
5
  import React from 'react';
@@ -7,7 +7,7 @@ import translations from './translations';
7
7
  import theme from './styles/theme';
8
8
  import FormVariables from './styles/variables';
9
9
  import FormStyle from './styles/formStyle';
10
- export const FormConfig = ({ fontFamily, children }) => {
10
+ export const FormConfig = ({ fontFamily = 'core_Font', children }) => {
11
11
  const { addTranslation } = useTranslation();
12
12
  useEffect(() => {
13
13
  addTranslation(translations, 'prepend');
@@ -1,5 +1,5 @@
1
1
  import React, { cloneElement, isValidElement } from 'react';
2
- import lodashGet from 'lodash/get';
2
+ import lodashGet from 'lodash.get';
3
3
  import classNames from 'classnames';
4
4
  import { useTranslation } from '@weareconceptstudio/core';
5
5
  import ErrorMessage from '../../error-message';
@@ -2,7 +2,7 @@ import { createGlobalStyle, css } from 'styled-components';
2
2
  const FormVariables = createGlobalStyle `${css `
3
3
  :root {
4
4
  //! Fonts
5
- --form_Font: ${(props) => `var(--${props.fontFamily})` || `var(--core_Font)`};
5
+ --form_Font: ${(props) => css `var(--${props.fontFamily})`};
6
6
 
7
7
  //! Transition
8
8
  --form_trTime: 0.2s;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weareconceptstudio/form",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Concept Studio Form",
5
5
  "author": "Concept Studio",
6
6
  "license": "ISC",