@evlop/commons 1.0.217 → 1.0.219

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=generate-google-fonts-cache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-google-fonts-cache.d.ts","sourceRoot":"","sources":["../../bin/generate-google-fonts-cache.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const axios_1 = __importDefault(require("axios"));
7
+ const fs_1 = require("fs");
8
+ const lodash_1 = require("lodash");
9
+ const popularFontFamilies = [
10
+ "Roboto", "Open Sans", "Lato", "Montserrat", "Oswald",
11
+ "Poppins", "Merriweather", "Raleway", "Nunito", "PT Sans",
12
+ "Source Sans Pro", "Roboto Slab", "Ubuntu", "Playfair Display",
13
+ "DM Sans", "Work Sans", "Inconsolata", "Spectral", "Bitter",
14
+ "Noto Sans", "Lora", "Assistant", "Roboto Mono", "Cabin",
15
+ "Dosis", "Heebo", "Mukta", "Arvo", "Quicksand",
16
+ "Cinzel", "Fira Sans", "Nanum Gothic", "Overpass", "Zilla Slab",
17
+ "Libre Baskerville", "Rokkitt", "Abel", "Asap", "Cardo",
18
+ "Manrope", "Red Hat Display", "Martel", "Jost", "IBM Plex Sans",
19
+ "Alegreya", "Noticia Text", "Sarabun", "Exo 2", "Mulish",
20
+ "Anton", "Signika", "Inter", "Arimo", "Crimson Text",
21
+ "Amatic SC", "Varela Round", "Balsamiq Sans", "Cairo", "Karla",
22
+ "Acme", "Roboto Condensed", "Archivo", "Patua One", "Tinos",
23
+ "Cormorant Garamond", "DM Serif Display", "Chivo", "Old Standard TT",
24
+ "Rasa", "Fjalla One", "Prata", "Itim", "Maven Pro",
25
+ "Mukta Vaani", "Anonymous Pro", "Sarabun", "Recursive", "Fredericka the Great",
26
+ "Gelasio", "Atkinson Hyperlegible", "Fira Mono", "Courier Prime",
27
+ "Libre Franklin", "Comfortaa", "Marcellus", "Roboto Flex", "Cormorant",
28
+ "Gentium Book Basic", "Space Grotesk", "Tenor Sans", "Gothic A1",
29
+ "Archivo Narrow", "Federo", "Arapey", "Newsreader", "Cantarell",
30
+ "Public Sans", "Noto Serif", "Alfa Slab One", "Alata",
31
+ "Teko", "Spectral SC", "Rubik", "Belleza", "Coustard"
32
+ ];
33
+ function fontsReducer(acc, font) {
34
+ return Object.assign(Object.assign({}, acc), { [font.family]: font.variants.join(',') });
35
+ }
36
+ const fonts = axios_1.default.get('https://www.googleapis.com/webfonts/v1/webfonts?key=AIzaSyBwRrjscdahzwbFlwDBqsxWBsX76tEBCvs')
37
+ .then(res => lodash_1.keyBy(res.data.items, 'family'))
38
+ // only pick popular fonts
39
+ .then(fonts => popularFontFamilies.map(fontFamily => fonts[fontFamily]).filter(Boolean))
40
+ .then(fonts => fonts.map(font => [font.family, font.variants.join(',')]))
41
+ // save to file
42
+ .then(fonts => {
43
+ fs_1.writeFileSync('./src/constants/googleFontVariants.json', JSON.stringify(fonts, null, 2));
44
+ fs_1.writeFileSync('./src/constants/googleFontVariants.min.json', JSON.stringify(fonts));
45
+ });
46
+ //# sourceMappingURL=generate-google-fonts-cache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-google-fonts-cache.js","sourceRoot":"","sources":["../../bin/generate-google-fonts-cache.ts"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,2BAAkC;AAClC,mCAA8B;AAE9B,MAAM,mBAAmB,GAAG;IACxB,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ;IACrD,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS;IACzD,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,kBAAkB;IAC9D,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,QA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AC,GAAG,CAAC,IAAE;AAC3D,CAAC;AAED,MAAM,KAAK,GAAG,eAAK,CAAC,GAAG,CAAC,6FAA6F,CAAC;KACjH,IAAI,CAAC,GAAG,CAAA,EAAE,CAAA,cAAK,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC3C,0BAA0B;KACzB,IAAI,CAAC,KAAK,CAAA,EAAE,CAAA,mBAAmB,CAAC,GAAG,CAAC,UAAU,CAAA,EAAE,CAAA,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;KACnF,IAAI,CAAC,KAAK,CAAA,EAAE,CAAA,KAAK,CAAC,GAAG,CAAC,IAAI,CAAA,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACtE,eAAe;KACd,IAAI,CAAC,KAAK,CAAA,EAAE;IACT,kBAAa,CAAC,yCAAyC,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IACzF,kBAAa,CAAC,6CAA6C,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;AACxF,CAAC,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ [["Roboto", "100,100italic,300,300italic,regular,italic,500,500italic,700,700italic,900,900italic"], ["Open Sans", "300,regular,500,600,700,800,300italic,italic,500italic,600italic,700italic,800italic"], ["Lato", "100,100italic,300,300italic,regular,italic,700,700italic,900,900italic"], ["Montserrat", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Oswald", "200,300,regular,500,600,700"], ["Poppins", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic"], ["Merriweather", "300,300italic,regular,italic,700,700italic,900,900italic"], ["Raleway", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Nunito", "200,300,regular,500,600,700,800,900,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["PT Sans", "regular,italic,700,700italic"], ["Roboto Slab", "100,200,300,regular,500,600,700,800,900"], ["Ubuntu", "300,300italic,regular,italic,500,500italic,700,700italic"], ["Playfair Display", "regular,500,600,700,800,900,italic,500italic,600italic,700italic,800italic,900italic"], ["DM Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Work Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Inconsolata", "200,300,regular,500,600,700,800,900"], ["Spectral", "200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic"], ["Bitter", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Noto Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Lora", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Assistant", "200,300,regular,500,600,700,800"], ["Roboto Mono", "100,200,300,regular,500,600,700,100italic,200italic,300italic,italic,500italic,600italic,700italic"], ["Cabin", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Dosis", "200,300,regular,500,600,700,800"], ["Heebo", "100,200,300,regular,500,600,700,800,900"], ["Mukta", "200,300,regular,500,600,700,800"], ["Arvo", "regular,italic,700,700italic"], ["Quicksand", "300,regular,500,600,700"], ["Cinzel", "regular,500,600,700,800,900"], ["Fira Sans", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic"], ["Nanum Gothic", "regular,700,800"], ["Overpass", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Zilla Slab", "300,300italic,regular,italic,500,500italic,600,600italic,700,700italic"], ["Libre Baskerville", "regular,italic,700"], ["Rokkitt", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Abel", "regular"], ["Asap", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Cardo", "regular,italic,700"], ["Manrope", "200,300,regular,500,600,700,800"], ["Red Hat Display", "300,regular,500,600,700,800,900,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Martel", "200,300,regular,600,700,800,900"], ["Jost", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["IBM Plex Sans", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic"], ["Alegreya", "regular,500,600,700,800,900,italic,500italic,600italic,700italic,800italic,900italic"], ["Noticia Text", "regular,italic,700,700italic"], ["Sarabun", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic"], ["Exo 2", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Mulish", "200,300,regular,500,600,700,800,900,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Anton", "regular"], ["Signika", "300,regular,500,600,700"], ["Inter", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Arimo", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Crimson Text", "regular,italic,600,600italic,700,700italic"], ["Amatic SC", "regular,700"], ["Varela Round", "regular"], ["Balsamiq Sans", "regular,italic,700,700italic"], ["Cairo", "200,300,regular,500,600,700,800,900"], ["Karla", "200,300,regular,500,600,700,800,200italic,300italic,italic,500italic,600italic,700italic,800italic"], ["Acme", "regular"], ["Roboto Condensed", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Archivo", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Patua One", "regular"], ["Tinos", "regular,italic,700,700italic"], ["Cormorant Garamond", "300,300italic,regular,italic,500,500italic,600,600italic,700,700italic"], ["DM Serif Display", "regular,italic"], ["Chivo", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Old Standard TT", "regular,italic,700"], ["Rasa", "300,regular,500,600,700,300italic,italic,500italic,600italic,700italic"], ["Fjalla One", "regular"], ["Prata", "regular"], ["Itim", "regular"], ["Maven Pro", "regular,500,600,700,800,900"], ["Mukta Vaani", "200,300,regular,500,600,700,800"], ["Anonymous Pro", "regular,italic,700,700italic"], ["Sarabun", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic"], ["Recursive", "300,regular,500,600,700,800,900"], ["Fredericka the Great", "regular"], ["Gelasio", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Atkinson Hyperlegible", "regular,italic,700,700italic"], ["Fira Mono", "regular,500,700"], ["Courier Prime", "regular,italic,700,700italic"], ["Libre Franklin", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Comfortaa", "300,regular,500,600,700"], ["Marcellus", "regular"], ["Roboto Flex", "regular"], ["Cormorant", "300,regular,500,600,700,300italic,italic,500italic,600italic,700italic"], ["Space Grotesk", "300,regular,500,600,700"], ["Tenor Sans", "regular"], ["Gothic A1", "100,200,300,regular,500,600,700,800,900"], ["Archivo Narrow", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Federo", "regular"], ["Arapey", "regular,italic"], ["Newsreader", "200,300,regular,500,600,700,800,200italic,300italic,italic,500italic,600italic,700italic,800italic"], ["Cantarell", "regular,italic,700,700italic"], ["Public Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Noto Serif", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Alfa Slab One", "regular"], ["Alata", "regular"], ["Teko", "300,regular,500,600,700"], ["Spectral SC", "200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic"], ["Rubik", "300,regular,500,600,700,800,900,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Belleza", "regular"], ["Coustard", "regular,900"]]
@@ -1 +1 @@
1
- {"version":3,"file":"themeHelpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/themeHelpers.tsx"],"names":[],"mappings":"AA+BA,eAAO,MAAM,iBAAiB,aAAa,MAAM;;;;CAI/C,CAAC;AAGH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BrB,CAAA;AAED,aAAK,SAAS,GAAG,OAAO,SAAS,CAAC;AAClC,aAAK,QAAQ,GAAG,MAAM,SAAS,CAAC;AAEhC,QAAA,MAAM,WAAW;;;;;;;;;;CAUhB,CAAC;AAEF,aAAK,WAAW,GAAG,OAAO,WAAW,CAAC;AACtC,aAAK,UAAU,GAAG,MAAM,WAAW,CAAC;AAEpC,eAAO,MAAM,iBAAiB,iBAAkB,MAAM;;CAA+C,CAAC;AAGtG,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC;AACnE,aAAK,kBAAkB,GAAG,OAAO,kBAAkB,CAAC;AACpD,aAAK,UAAU,GAAG,MAAM,kBAAkB,CAAC;AAE3C,eAAO,MAAM,mBAAmB,iBAAkB,MAAM;;CAAwD,CAAC;AAIjH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B7B,CAAC;AAEF,aAAK,aAAa,GAAG,OAAO,SAAS,CAAC;AACtC,aAAK,KAAK,GAAG,MAAM,aAAa,CAAC;AAEjC,eAAO,MAAM,oBAAoB,gBAAiB,MAAM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,GAAG,eAAe,GAAG,UAAU,GAAG,MAAM,CAAC;AAe/F,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,GAAC,OAAe,MAehG;AAED,wBAAgB,wBAAwB,CAAC,KAAK,KAAA,MAM7C;AAED,wBAAgB,2BAA2B,CAAC,SAAS,EAAC,MAAM,EAAE,KAAK,EAAC,MAAM,EAAE,IAAI,GAAC,OAAe;;EAM/F;AAGH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE;IAAC,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC,EAAE,IAAI,GAAE,OAAe,MAK5F;AACD,MAAM,WAAW,KAAK;IAClB,KAAK,EAAE;SAAE,GAAG,IAAI,KAAK,GAAG,MAAM;KAAC,CAAC;IAChC,SAAS,EAAE;SAAE,GAAG,IAAI,QAAQ,GAAG,MAAM;KAAC,CAAC;IACvC,WAAW,EAAE;SAAE,GAAG,IAAI,UAAU,GAAG,MAAM;KAAC,CAAC;IAC3C,WAAW,EAAE;SAAE,GAAG,IAAI,UAAU,GAAG,MAAM;KAAC,CAAC;IAC3C,MAAM,EAAE;SAAE,GAAG,IAAI,KAAK,GAAG,MAAM;KAAC,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;CACpB"}
@@ -3,8 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getColorVariants = exports.generateColorShadesWithName = exports.generateColorAlphaShades = exports.generateColorLightDarkShades = exports.generateSpacingSizes = exports.spacingVariations = exports.generateLineHeights = exports.lineHeightVariants = exports.generateFontSizes = exports.fontSizes = exports.generateSizeScale = void 0;
4
4
  const lodash_1 = require("lodash");
5
5
  const polished_1 = require("polished");
6
+ const parseToRgb = lodash_1.memoize(polished_1.parseToRgb);
6
7
  function lightenRgb(hex, intensity) {
7
- const color = polished_1.parseToRgb(hex);
8
+ const color = parseToRgb(hex);
8
9
  if (!color) {
9
10
  return "";
10
11
  }
@@ -14,7 +15,7 @@ function lightenRgb(hex, intensity) {
14
15
  return polished_1.rgb(r, g, b);
15
16
  }
16
17
  function darkenRgb(hex, intensity) {
17
- const color = polished_1.parseToRgb(hex);
18
+ const color = parseToRgb(hex);
18
19
  if (!color) {
19
20
  return "";
20
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"themeHelpers.js","sourceRoot":"","sources":["../../../src/helpers/themeHelpers.tsx"],"names":[],"mappings":";;;AAAA,mCAA4D;AAC5D,uCAAoE;AAEpE,SAAS,UAAU,CAAC,GAAG,EAAE,SAAS;IAC9B,MAAM,KAAK,GAAG,qBAAU,CAAC,GAAG,CAAC,CAAC;IAE9B,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,EAAE,CAAC;KACX;IAED,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,CAAC;IAChE,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,CAAC;IACpE,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;IAElE,OAAO,cAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACtB,CAAC;AAED,SAAS,SAAS,CAAC,GAAG,EAAE,SAAS;IAC/B,MAAM,KAAK,GAAG,qBAAU,CAAC,GAAG,CAAC,CAAC;IAE9B,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,EAAE,CAAC;KACX;IAED,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC,GAAC,SAAS,CAAC,CAAC,CAAC;IA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AK,EAAC,EAAE,CAAA,GAAG,SAAS,IAAI,KAAK,EAAE,CAAC,GACtG,gBAAO,CAAC,4BAA4B,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAC,EAAE,CAAA,GAAG,SAAS,UAAU,KAAK,EAAE,CAAC,GAC5G,gBAAO,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAC,EAAE,CAAA,GAAG,SAAS,UAAU,KAAK,EAAE,CAAC,EAC3F;AACH,CAAC;AAND,kEAMC;AAEH,SAAS;AACT,SAAgB,gBAAgB,CAAC,MAAqC,EAAE,OAAgB,KAAK;IACzF,OAAO,eAAM,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,EAAC,EAAE;QAC9C,eAAM,CAAC,MAAM,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,KAAK,GAAG,EAAE,2BAA2B,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAA;QAC5F,OAAO,MAAM,CAAC;IAClB,CAAC,EAAE,EAAE,CAAC,CAAA;AACV,CAAC;AALD,4CAKC"}
@@ -1,7 +1,9 @@
1
- export declare const useFonts: () => {
2
- webFonts: any;
3
- appFonts: any;
4
- googleFonts: any;
5
- };
6
- export declare const useFont: (font: any) => any;
1
+ /**
2
+ * @deprecated
3
+ */
4
+ export declare const useFonts: () => void;
5
+ /**
6
+ * @deprecated
7
+ */
8
+ export declare const useFont: (font: any) => void;
7
9
  //# sourceMappingURL=useFonts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFonts.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFonts.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ;;;;CAiBpB,CAAC;AAGF,eAAO,MAAM,OAAO,oBAYnB,CAAC"}
1
+ {"version":3,"file":"useFonts.d.ts","sourceRoot":"","sources":["../../../src/hooks/useFonts.tsx"],"names":[],"mappings":"AACA;;GAEG;AACH,eAAO,MAAM,QAAQ,YAAS,CAAC;AAG/B;;GAEG;AACH,eAAO,MAAM,OAAO,qBAAa,CAAC"}
@@ -1,34 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useFont = exports.useFonts = void 0;
4
- const react_1 = require("react");
5
- const react_redux_1 = require("react-redux");
6
- const reducers_1 = require("../reducers");
7
- const useFonts = () => {
8
- const { appFonts, webFonts, googleFonts, isGoogleFontsLoading, isGoogleFontsLoaded } = react_redux_1.useSelector(s => s.fonts);
9
- const dispatch = react_redux_1.useDispatch();
10
- react_1.useEffect(() => {
11
- if (!isGoogleFontsLoading && !isGoogleFontsLoaded) {
12
- dispatch(reducers_1.loadGoogleFonts());
13
- }
14
- }, [dispatch]);
15
- return react_1.useMemo(() => ({
16
- webFonts,
17
- appFonts,
18
- googleFonts,
19
- }), [webFonts, appFonts, googleFonts]);
20
- };
4
+ /**
5
+ * @deprecated
6
+ */
7
+ const useFonts = () => { };
21
8
  exports.useFonts = useFonts;
22
- const useFont = (font) => {
23
- const { activeFonts } = react_redux_1.useSelector(s => s.fonts);
24
- const isFontActive = react_1.useMemo(() => activeFonts.find(f => font && font.value === f.value), [font, activeFonts]);
25
- const dispatch = react_redux_1.useDispatch();
26
- react_1.useEffect(() => {
27
- if (font && !isFontActive) {
28
- dispatch(reducers_1.activateFont(font));
29
- }
30
- }, [isFontActive, font]);
31
- return isFontActive;
32
- };
9
+ /**
10
+ * @deprecated
11
+ */
12
+ const useFont = (font) => { };
33
13
  exports.useFont = useFont;
34
14
  //# sourceMappingURL=useFonts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFonts.js","sourceRoot":"","sources":["../../../src/hooks/useFonts.tsx"],"names":[],"mappings":";;;AAAA,iCAA2C;AAC3C,6CAAuD;AACvD,0CAA4D;AAErD,MAAM,QAAQ,GAAG,GAAE,EAAE;IAExB,MAAM,EAAC,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QAAA,OAAO,WAYlB"}
1
+ {"version":3,"file":"useFonts.js","sourceRoot":"","sources":["../../../src/hooks/useFonts.tsx"],"names":[],"mappings":";;;AACA;;GAEG;AACI,MAAM,QAAQ,GAAG,GAAE,EAAE,GAAC,CAAC,CAAC;AAAlB,QAAA,QAAQ,YAAU;AAG/B;;GAEG;AACI,MAAM,OAAO,GAAG,CAAC,IAAI,EAAC,EAAE,GAAC,CAAC,CAAC;AAArB,QAAA,OAAO,WAAc"}
@@ -4,30 +4,21 @@ export declare const ACTIVATE_FONT = "REGISTER_FONT";
4
4
  export declare const LOAD_GOOGLE_FONTS_STARTED = "LOAD_GOOGLE_FONTS_STARTED";
5
5
  export declare const LOAD_GOOGLE_FONTS_SUCCESS = "LOAD_GOOGLE_FONTS_SUCCESS";
6
6
  export declare const LOAD_GOOGLE_FONTS_FAILED = "LOAD_GOOGLE_FONTS_FAILED";
7
- export declare function registerWebFonts(fonts: any): {
7
+ interface Font {
8
+ family: string;
9
+ stylesheetUrl: string;
10
+ }
11
+ export declare function registerWebFonts(fonts: Font[]): {
8
12
  type: string;
9
- fonts: any;
13
+ fonts: Font[];
10
14
  };
11
- export declare function registerAppFonts(fonts: any): {
15
+ export declare function registerAppFonts(fonts: Font[]): {
12
16
  type: string;
13
- fonts: any;
17
+ fonts: Font[];
14
18
  };
15
- export declare function activateFont(font: any): {
19
+ export declare function activateFont(font: Font | string): {
16
20
  type: string;
17
- font: any;
18
- };
19
- export declare function loadGoogleFonts(): {
20
- method: string;
21
- types: string[] | ([string, string, string] & {
22
- length: 3;
23
- });
24
- pathParams?: {
25
- [key: string]: any;
26
- };
27
- key?: string;
28
- isRestRequest: boolean;
29
- endpoint: string;
30
- data: any;
21
+ font: string | Font;
31
22
  };
32
23
  declare const _default: (state: any, action: any) => any;
33
24
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../src/reducers/fonts.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAE7C,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AAInE,wBAAgB,gBAAgB,CAAC,KAAK,KAAA;;;EAKrC;AAED,wBAAgB,gBAAgB,CAAC,KAAK,KAAA;;;EAKrC;AAED,wBAAgB,YAAY,CAAC,IAAI,KAAA;;;EAKhC;AAED,wBAAgB,eAAe;;;;;;;;;;;;EAI9B;;AAgCD,wBA4CC"}
1
+ {"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../src/reducers/fonts.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAE7C,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AACrE,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AAEnE,UAAU,IAAI;IACV,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;CACzB;AAOD,wBAAgB,gBAAgB,CAAC,KAAK,EAAC,IAAI,EAAE;;;EAK5C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAC,IAAI,EAAE;;;EAK5C;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAC,IAAI,GAAG,MAAM;;;EAK9C;;AAgBD,wBA2CC"}
@@ -1,15 +1,20 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.loadGoogleFonts = exports.activateFont = exports.registerAppFonts = exports.registerWebFonts = exports.LOAD_GOOGLE_FONTS_FAILED = exports.LOAD_GOOGLE_FONTS_SUCCESS = exports.LOAD_GOOGLE_FONTS_STARTED = exports.ACTIVATE_FONT = exports.REGISTER_APP_FONTS = exports.REGISTER_WEB_FONTS = void 0;
4
- const restApi_1 = require("../actions/restApi");
5
- const change_case_1 = require("change-case");
6
+ exports.activateFont = exports.registerAppFonts = exports.registerWebFonts = exports.LOAD_GOOGLE_FONTS_FAILED = exports.LOAD_GOOGLE_FONTS_SUCCESS = exports.LOAD_GOOGLE_FONTS_STARTED = exports.ACTIVATE_FONT = exports.REGISTER_APP_FONTS = exports.REGISTER_WEB_FONTS = void 0;
7
+ const googleFontVariants_min_json_1 = __importDefault(require("../constants/googleFontVariants.min.json"));
6
8
  exports.REGISTER_WEB_FONTS = 'REGISTER_WEB_FONTS';
7
9
  exports.REGISTER_APP_FONTS = 'REGISTER_APP_FONTS';
8
10
  exports.ACTIVATE_FONT = 'REGISTER_FONT';
9
11
  exports.LOAD_GOOGLE_FONTS_STARTED = 'LOAD_GOOGLE_FONTS_STARTED';
10
12
  exports.LOAD_GOOGLE_FONTS_SUCCESS = 'LOAD_GOOGLE_FONTS_SUCCESS';
11
13
  exports.LOAD_GOOGLE_FONTS_FAILED = 'LOAD_GOOGLE_FONTS_FAILED';
12
- const apiKey = 'AIzaSyBwRrjscdahzwbFlwDBqsxWBsX76tEBCvs';
14
+ const googleFonts = googleFontVariants_min_json_1.default.map(([family, variants]) => ({
15
+ family,
16
+ stylesheetUrl: `https://fonts.googleapis.com/css?family=${family.replace(/ /g, '+')}:${variants}`,
17
+ }));
13
18
  function registerWebFonts(fonts) {
14
19
  return {
15
20
  type: exports.REGISTER_WEB_FONTS,
@@ -31,36 +36,15 @@ function activateFont(font) {
31
36
  };
32
37
  }
33
38
  exports.activateFont = activateFont;
34
- function loadGoogleFonts() {
35
- return restApi_1.request(`https://www.googleapis.com/webfonts/v1/webfonts?key=${apiKey}`, { key: apiKey }, {
36
- types: [exports.LOAD_GOOGLE_FONTS_STARTED, exports.LOAD_GOOGLE_FONTS_SUCCESS, exports.LOAD_GOOGLE_FONTS_FAILED],
37
- });
38
- }
39
- exports.loadGoogleFonts = loadGoogleFonts;
40
- function mapGoogleFonts(font) {
41
- const apiUrl = [];
42
- apiUrl.push('https://fonts.googleapis.com/css?family=');
43
- apiUrl.push(font.family.replace(/ /g, '+'));
44
- apiUrl.push(':');
45
- apiUrl.push(font.variants.join(','));
46
- const url = apiUrl.join('');
47
- let [variant] = font.variants;
48
- variant = variant === 'regular' ? '400' : variant;
49
- const previewFileName = `${change_case_1.pascalCase(font.family)}-${variant}.${font.version}`;
50
- return {
51
- url,
52
- label: font.family,
53
- value: font.family,
54
- previewUrl: `https://cdn.jsdelivr.net/npm/google-webfonts-preview/${previewFileName}.png`
55
- };
56
- }
57
39
  let initialState = {
58
40
  isLoading: false,
59
41
  isGoogleFontsLoading: false,
60
42
  isGoogleFontsLoaded: false,
61
- googleFonts: [],
43
+ googleFonts,
62
44
  appFonts: [],
63
- webFonts: [],
45
+ webFonts: [
46
+ ...googleFonts,
47
+ ],
64
48
  activeFonts: [],
65
49
  };
66
50
  exports.default = (state = initialState, action) => {
@@ -77,15 +61,19 @@ exports.default = (state = initialState, action) => {
77
61
  ...action.fonts
78
62
  ] });
79
63
  }
80
- case exports.LOAD_GOOGLE_FONTS_STARTED:
81
- return Object.assign(Object.assign({}, state), { isGoogleFontsLoading: true });
82
- case exports.LOAD_GOOGLE_FONTS_SUCCESS:
83
- return Object.assign(Object.assign({}, state), { isGoogleFontsLoading: false, googleFonts: action.response.items.map(mapGoogleFonts), isGoogleFontsLoaded: true });
84
- case exports.ACTIVATE_FONT:
64
+ case exports.ACTIVATE_FONT: {
65
+ let fontToActivate = action.font;
66
+ if (typeof fontToActivate === 'string') {
67
+ fontToActivate = state.webFonts.find(f => f.family === fontToActivate);
68
+ }
69
+ if (!fontToActivate) {
70
+ return state;
71
+ }
85
72
  return Object.assign(Object.assign({}, state), { activeFonts: [
86
73
  ...state.activeFonts,
87
- action.font
74
+ fontToActivate
88
75
  ] });
76
+ }
89
77
  default:
90
78
  return state;
91
79
  }
@@ -1 +1 @@
1
- {"version":3,"file":"fonts.js","sourceRoot":"","sources":["../../../src/reducers/fonts.tsx"],"names":[],"mappings":";;;AAAA,gDAA2C;AAC3C,6CAAuC;AAE1B,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,aAAa,GAAG,eAAe,CAAC;AAEhC,QAAA,yBAAyB,GAAG,2BAA2B,CAAC;AACxD,QAAA,yBAAyB,GAAG,2BAA2B,CAAC;AACxD,QAAA,wBAAwB,GAAG,0BAA0B,CAAC;AAEnE,MAAM,MAAM,GAAI,yCAAyC,CAAC;AAE1D,SAAgB,gBAAgB,CAAC,KAAK;IAClC,OAAO;QACH,IAAI,EAAE,0BAAkB;QACxB,KAAK;KACR,CAAC;AACN,CAAC;AALD,4CAKC;AAED,SAAgB,gBAAgB,CAAC,KAAK;IAClC,OAAO;QACH,IAAI,EAAE,0BAAkB;QACxB,KAAK;KACR,CAAC;AACN,CAAC;AALD,4CAKC;AAED,SAAgB,YAAY,CAAC,IAAI;IAC7B,OAAO;QACH,IAAI,EAAE,qBAAa;QACnB,IAAI;KACP,CAAC;AACN,CAAC;AALD,oCAKC;AAED,SAAgB,eAAe;IAC3B,OAAO,iBAAO,CAAC,uDAAuD,MAAM,EAAE,EAAC,EAAC,GAAG,EAAE,MAAM,EAAC,EAAC;QACzF,KAAK,EAAC,CAAC,iCAAyB,EAAE,iCAAyB,EAAE,gCAAwB,CAAC;KACzF,CAAC,CAAC;AACP,CAAC;AAJD,0CAIC;AAED,SAAS,cAAc,CAAC,IAAI;IAExB,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,MAAM,CAAC,IAAI,CAAC,0CAA0C,CAAC,CAAC;IACxD,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MA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KACpB;AACL,CAAC,CAAA"}
@@ -6,6 +6,7 @@ export interface AppModal {
6
6
  component: any;
7
7
  props: any;
8
8
  closeable: boolean;
9
+ zIndex?: number;
9
10
  }
10
11
  export declare const showModal: (options: Partial<AppModal>) => {
11
12
  type: string;
@@ -1 +1 @@
1
- {"version":3,"file":"modals.d.ts","sourceRoot":"","sources":["../../../src/reducers/modals.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,WAAW,gBAAgB,CAAC;AAEzC,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,GAAG,CAAC;IACf,KAAK,EAAE,GAAG,CAAC;IACX,SAAS,EAAE,OAAO,CAAC;CACtB;AAGD,eAAO,MAAM,SAAS,YAAa,QAAQ,QAAQ,CAAC;;;CAiBnD,CAAC;AAEF,eAAO,MAAM,WAAW,OAAQ,QAAQ,CAAC,IAAI,CAAC,WAAW,QAAQ,QAAQ,CAAC;;;;CAMzE,CAAA;AAED,eAAO,MAAM,UAAU;;;CAGrB,CAAC;;AAIH,wBAcC"}
1
+ {"version":3,"file":"modals.d.ts","sourceRoot":"","sources":["../../../src/reducers/modals.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,WAAW,gBAAgB,CAAC;AAEzC,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,GAAG,CAAC;IACf,KAAK,EAAE,GAAG,CAAC;IACX,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAGD,eAAO,MAAM,SAAS,YAAa,QAAQ,QAAQ,CAAC;;;CAkBnD,CAAC;AAEF,eAAO,MAAM,WAAW,OAAQ,QAAQ,CAAC,IAAI,CAAC,WAAW,QAAQ,QAAQ,CAAC;;;;CAMzE,CAAA;AAED,eAAO,MAAM,UAAU;;;CAGrB,CAAC;;AAIH,wBAoBC"}
@@ -7,7 +7,7 @@ exports.UPDATE_MODAL = 'modal/update';
7
7
  exports.CLOSE_MODAL = 'modal/close';
8
8
  // export const showModal = (component, props = {})=>({
9
9
  const showModal = (options) => {
10
- const { id = lodash_1.random(Number.MAX_SAFE_INTEGER), component, props = {}, closeable = true } = options;
10
+ const { id = lodash_1.random(Number.MAX_SAFE_INTEGER), component, props = {}, closeable = true, zIndex = 0 } = options;
11
11
  if (!component) {
12
12
  throw new Error('Modal component is required');
13
13
  }
@@ -16,6 +16,7 @@ const showModal = (options) => {
16
16
  component,
17
17
  props,
18
18
  closeable,
19
+ zIndex,
19
20
  };
20
21
  return {
21
22
  type: exports.SHOW_MODAL,
@@ -39,13 +40,19 @@ exports.closeModal = closeModal;
39
40
  let initialState = [];
40
41
  exports.default = (state = initialState, action) => {
41
42
  switch (action.type) {
42
- case exports.SHOW_MODAL:
43
- return [
43
+ case exports.SHOW_MODAL: {
44
+ const newState = [
44
45
  ...state.filter(m => m.id !== action.modal.id),
45
46
  action.modal,
46
47
  ];
47
- case exports.UPDATE_MODAL:
48
- return state.map(m => m.id === action.id ? Object.assign(Object.assign({}, m), action.modalUpdates) : m);
48
+ // sort modals by zIndex
49
+ return lodash_1.sortBy(newState, 'zIndex');
50
+ }
51
+ case exports.UPDATE_MODAL: {
52
+ const newState = state.map(m => m.id === action.id ? Object.assign(Object.assign({}, m), action.modalUpdates) : m);
53
+ // sort modals by zIndex
54
+ return lodash_1.sortBy(newState, 'zIndex');
55
+ }
49
56
  case exports.CLOSE_MODAL:
50
57
  return state.filter(m => m.id !== action.id);
51
58
  default:
@@ -1 +1 @@
1
- {"version":3,"file":"modals.js","sourceRoot":"","sources":["../../../src/reducers/modals.tsx"],"names":[],"mappings":";;;AAAA,mCAAwC;AAE3B,QAAA,UAAU,GAAG,YAAY,CAAC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"main": "dist/main.js",
6
6
  "peerDependencies": {
@@ -23,7 +23,7 @@
23
23
  "docs": "jsdoc -c jsdoc.json",
24
24
  "dev": "tsc --watch",
25
25
  "test": "mocha -r ts-node/register src/**/*.test.ts",
26
- "build": "ts-node bin/generate-icons-cache.ts && tsc"
26
+ "build": "ts-node bin/generate-icons-cache.ts && ts-node bin/generate-google-fonts-cache.ts && tsc"
27
27
  },
28
28
  "files": [
29
29
  "dist/*"