pager-widget 0.2.1 → 0.2.3

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/fontStyles.js CHANGED
@@ -1,5 +1,5 @@
1
- import GM from "./static/fonts/Gordita-Medium.woff2";
2
- import GR from "./static/fonts/Gordita-Regular.woff2";
1
+
2
+ import IN from "./static/fonts/inter.woff2"
3
3
  import { createGlobalStyle } from "styled-components";
4
4
  import { getPackageNameAndVersion } from "./getVersion";
5
5
 
@@ -9,12 +9,8 @@ const packageDetails = getPackageNameAndVersion();
9
9
 
10
10
  const getFontUrls = (type) => {
11
11
 
12
- if (type == "GM") {
13
- return process.env.NODE_ENV === "production" ? `https://unpkg.com/${packageDetails.name}@${packageDetails.version}/dist/Gordita-Medium.e5d1fa87.woff2` : GM
14
- }
15
-
16
- if (type == "GR") {
17
- return process.env.NODE_ENV === "production" ? `https://unpkg.com/${packageDetails.name}@${packageDetails.version}/dist/Gordita-Regular.6d2fd269.woff2` : GR
12
+ if(type == "IN"){
13
+ return process.env.NODE_ENV === "production" ? `https://unpkg.com/${packageDetails.name}@${packageDetails.version}/dist/inter.fd2364ba.woff2`: IN
18
14
  }
19
15
 
20
16
  return ""
@@ -23,19 +19,13 @@ const getFontUrls = (type) => {
23
19
 
24
20
  const FontStyles = createGlobalStyle`
25
21
 
26
- @font-face {
27
- font-family: 'Gordita-Medium';
28
- src: url(${getFontUrls("GM")}) format('woff2');
29
- font-weight: 500;
30
- font-style: normal;
31
- }
32
-
22
+
23
+
33
24
  @font-face {
34
- font-family: 'Gordita-Regular';
35
- src: url(${getFontUrls("GR")}) format('woff2');
36
- font-weight: 500;
25
+ font-family: 'Inter';
26
+ src: url(${getFontUrls("IN")}) format('woff2);
27
+ font-weight: 400;
37
28
  font-style: normal;
38
- }
39
29
  `;
40
30
 
41
31
  export default FontStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pager-widget",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "targets": {
@@ -5,25 +5,44 @@
5
5
  border-width: 0;
6
6
  border-style: solid;
7
7
  border-color: #e5e7eb;
8
- font-family: 'Open Sans', sans-serif;
8
+ font-family: "Open Sans", sans-serif;
9
9
  }
10
10
 
11
- .flex{
11
+ .flex {
12
12
  display: flex;
13
13
  }
14
14
 
15
- @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;700&display=swap');
15
+ @import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;700&display=swap");
16
+ @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
16
17
 
17
18
  @font-face {
18
- font-family: 'Gordita-Medium';
19
- src: url('./fonts/Gordita-Medium.woff2') format('woff2'), url('./fonts/Gordita-Medium.woff2') format('woff');
19
+ font-family: "Gordita-Medium";
20
+ src: url("./fonts/Gordita-Medium.woff2") format("woff2"),
21
+ url("./fonts/Gordita-Medium.woff2") format("woff");
20
22
  font-weight: 500;
21
23
  font-style: normal;
22
- }
24
+ }
23
25
 
24
26
  @font-face {
25
- font-family: 'Gordita-Regular';
26
- src: url('./fonts/Gordita-Regular.woff2') format('woff2'), url('./fonts/Gordita-Regular.woff2') format('woff');
27
+ font-family: "Gordita-Regular";
28
+ src: url("./fonts/Gordita-Regular.woff2") format("woff2"),
29
+ url("./fonts/Gordita-Regular.woff2") format("woff");
27
30
  font-weight: 500;
28
31
  font-style: normal;
29
- }
32
+ }
33
+
34
+ /* @font-face {
35
+ font-family: 'Inter';
36
+ src: url('./fonts/Inter-Regular.woff2') format('woff2'),
37
+ url('./fonts/Inter-Regular.woff') format('woff');
38
+ font-weight: 400;
39
+ font-style: normal;
40
+ }
41
+
42
+ @font-face {
43
+ font-family: 'Inter';
44
+ src: url('./fonts/Inter-Bold.woff2') format('woff2'),
45
+ url('./fonts/Inter-Bold.woff') format('woff');
46
+ font-weight: 700;
47
+ font-style: normal;
48
+ } */
Binary file
package/useEndpoint.js ADDED
@@ -0,0 +1,11 @@
1
+ import React, { createContext } from "react";
2
+
3
+ export const EndPointContext = createContext({})
4
+
5
+ export const EndPointProvider = ({children, endpoint}) => {
6
+ return(
7
+ <EndPointContext.Provider value={endpoint}>
8
+ {children}
9
+ </EndPointContext.Provider>
10
+ )
11
+ }