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/App.jsx +104 -50
- package/ConsentPopup.jsx +21 -15
- package/Dropdown.jsx +146 -0
- package/InputConverter.jsx +365 -246
- package/dist/inter.fd2364ba.woff2 +0 -0
- package/dist/lib.js +15 -13
- package/fontStyles.js +9 -19
- package/package.json +1 -1
- package/static/additional.css +28 -9
- package/static/fonts/inter.woff2 +0 -0
- package/useEndpoint.js +11 -0
- package/yarn-error.log +9536 -0
- package/dist/Gordita-Medium.e5d1fa87.woff2 +0 -0
- package/dist/Gordita-Regular.6d2fd269.woff2 +0 -0
package/fontStyles.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
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
|
|
13
|
-
|
|
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
|
-
|
|
27
|
-
|
|
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: '
|
|
35
|
-
src: url(${getFontUrls("
|
|
36
|
-
font-weight:
|
|
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
package/static/additional.css
CHANGED
|
@@ -5,25 +5,44 @@
|
|
|
5
5
|
border-width: 0;
|
|
6
6
|
border-style: solid;
|
|
7
7
|
border-color: #e5e7eb;
|
|
8
|
-
font-family:
|
|
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(
|
|
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:
|
|
19
|
-
src: url(
|
|
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:
|
|
26
|
-
src: url(
|
|
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
|
+
}
|