@spothero/ui 15.3.1-beta.0 → 15.4.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": "@spothero/ui",
3
- "version": "15.3.1-beta.0",
3
+ "version": "15.4.0",
4
4
  "description": "SpotHero's React component UI library.",
5
5
  "main": "v2/index.js",
6
6
  "repository": "https://github.com/spothero/fe-monorepo",
@@ -3,4 +3,8 @@ export default {
3
3
  zIndex: 'layer8',
4
4
  justifyContent: 'center',
5
5
  alignItems: {base: 'flex-end', tablet: 'center'},
6
+ height: '100%',
7
+ minHeight: '-moz-available',
8
+ minHeight: '-webkit-fill-available',
9
+ minHeight: 'fill-available',
6
10
  };
@@ -9,7 +9,7 @@ import merge from 'lodash/merge';
9
9
  const ThemeProvider = forwardRef(
10
10
  ({theme, useLegacyOverrides, children, ...props}, ref) => (
11
11
  <ChakraProvider {...props} ref={ref} theme={merge(THEME, theme)}>
12
- {props.fonts ? props.fonts : <Fonts />}
12
+ <Fonts />
13
13
  <LegacyOverrides useLegacyOverrides={useLegacyOverrides} />
14
14
  {children}
15
15
  </ChakraProvider>
@@ -1,6 +1,6 @@
1
1
  export const fonts = {
2
- heading: `'Open Sans', sans-serif`,
3
- body: `'Open Sans', sans-serif`,
2
+ heading: 'Open Sans',
3
+ body: 'Open Sans',
4
4
  };
5
5
 
6
6
  export const fontSizes = {
@@ -2,10 +2,6 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import {Global} from '@emotion/react';
4
4
  import {colors, fontSizes, fontWeights} from 'v2/theme/base';
5
- import './fonts/OpenSans-Light.ttf';
6
- import './fonts/OpenSans-Regular.ttf';
7
- import './fonts/OpenSans-Bold.ttf';
8
- import './fonts/OpenSans-SemiBold.ttf';
9
5
 
10
6
  const global = {
11
7
  'html, body': {
@@ -27,12 +23,14 @@ export default global;
27
23
  export const Fonts = () => (
28
24
  <Global
29
25
  styles={`
26
+ @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');
27
+ /* Copied from https://fonts.googleapis.com/css2?family=Open+Sans:wght@700&display=swap */
30
28
  /* latin-ext */
31
29
  @font-face {
32
30
  font-family: 'Open Sans';
33
31
  font-style: normal;
34
32
  font-weight: 700;
35
- src: url(./fonts/OpenSans-Bold.ttf) format('ttf');
33
+ src: url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOXOhpKKSTj5PW.woff2) format('woff2');
36
34
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
37
35
  }
38
36
  /* latin-ext */
@@ -40,7 +38,7 @@ export const Fonts = () => (
40
38
  font-family: 'Open Sans';
41
39
  font-style: normal;
42
40
  font-weight: 600;
43
- src: url(./fonts/OpenSans-SemiBold.ttf) format('ttf');
41
+ src: url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UNirkOXOhpKKSTj5PW.woff2) format('woff2');
44
42
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
45
43
  }
46
44
  /* latin-ext */
@@ -48,7 +46,7 @@ export const Fonts = () => (
48
46
  font-family: 'Open Sans';
49
47
  font-style: normal;
50
48
  font-weight: 400;
51
- src: url(./fonts/OpenSans-Regular.ttf) format('ttf');
49
+ src: url(https://fonts.gstatic.com/s/opensans/v18/mem8YaGs126MiZpBA-UFW50bf8pkAp6a.woff2) format('woff2');
52
50
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
53
51
  }
54
52
  /* latin-ext */
@@ -56,7 +54,7 @@ export const Fonts = () => (
56
54
  font-family: 'Open Sans';
57
55
  font-style: normal;
58
56
  font-weight: 300;
59
- src: url(./fonts/OpenSans-Light.ttf) format('ttf');
57
+ src: url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OXOhpKKSTj5PW.woff2) format('woff2');
60
58
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
61
59
  }
62
60
  `}
@@ -1,8 +1,4 @@
1
1
  {
2
- "fonts/opensans-bold.ttf": "fonts/OpenSans-Bold.ttf",
3
- "fonts/opensans-light.ttf": "fonts/OpenSans-Light.ttf",
4
- "fonts/opensans-regular.ttf": "fonts/OpenSans-Regular.ttf",
5
- "fonts/opensans-semibold.ttf": "fonts/OpenSans-SemiBold.ttf",
6
2
  "index.html": "index.html",
7
3
  "index.js.license.txt": "index.js.LICENSE.txt",
8
4
  "main.js": "index.js"