@stokr/components-library 3.0.37 → 3.0.39
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/dist/components/InfoIcon/InfoIcon.js +38 -18
- package/dist/components/InfoIcon/InfoIcon.styles.js +16 -1
- package/dist/components/icons/LinkIcon.js +2 -2
- package/dist/runtime-config.js +6 -2
- package/dist/static/country-list.json +251 -251
- package/dist/static/fonts/Ionicons/ionicons.min.css +2810 -2810
- package/dist/static/fonts/Ionicons/ionicons.min.css.js +1 -1
- package/dist/static/fonts/icomoon/selection.json +910 -910
- package/dist/static/fonts/icomoon/style.css +139 -139
- package/dist/static/images/copy_icon.svg +4 -4
- package/dist/static/images/download_icon.svg +3 -3
- package/dist/static/images/face-scan-icon.svg +7 -0
- package/dist/static/images/numbers/number_eight.svg +3 -3
- package/dist/static/images/numbers/number_five.svg +4 -4
- package/dist/static/images/numbers/number_four.svg +3 -3
- package/dist/static/images/numbers/number_nine.svg +4 -4
- package/dist/static/images/numbers/number_one.svg +4 -4
- package/dist/static/images/numbers/number_seven.svg +4 -4
- package/dist/static/images/numbers/number_six.svg +4 -4
- package/dist/static/images/numbers/number_three.svg +3 -3
- package/dist/static/images/numbers/number_two.svg +4 -4
- package/dist/static/images/numbers/number_zero.svg +3 -3
- package/dist/static/images/plus-icon.svg +4 -4
- package/dist/static/images/search-icon.svg +3 -3
- package/dist/static/images/transfer-icon.svg +10 -10
- package/dist/static/images/warning-filled.svg +3 -3
- package/dist/utils/get-cookie-domain.js +13 -2
- package/package.json +153 -153
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
2
|
+
import DOMPurify from "dompurify";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
|
+
import { useId } from "react";
|
|
5
|
+
import parse from "html-react-parser";
|
|
4
6
|
import { Tooltip } from "react-tippy";
|
|
5
|
-
import {
|
|
7
|
+
import { colors } from "../../styles/colors.js";
|
|
6
8
|
import { IoniconsStyles } from "../../styles/ioniconsStyles.js";
|
|
9
|
+
import { Container, ArrowColorGlobalStyle, Icon } from "./InfoIcon.styles.js";
|
|
7
10
|
const InfoIcon = ({
|
|
8
11
|
title = null,
|
|
9
12
|
html = null,
|
|
@@ -14,13 +17,20 @@ const InfoIcon = ({
|
|
|
14
17
|
noIcon,
|
|
15
18
|
disabled,
|
|
16
19
|
fullWidth,
|
|
20
|
+
arrow = true,
|
|
21
|
+
arrowColor = colors.blue,
|
|
22
|
+
theme = "light",
|
|
23
|
+
trigger,
|
|
17
24
|
outline = false,
|
|
18
25
|
containerStyle,
|
|
19
26
|
...props
|
|
20
27
|
}) => {
|
|
28
|
+
const htmlContent = typeof html === "string" ? parse(DOMPurify.sanitize(html)) : html;
|
|
29
|
+
const instanceToken = `info-${useId().replace(/[^a-zA-Z0-9]/g, "")}`;
|
|
30
|
+
const tippyTheme = arrowColor ? `${theme} ${instanceToken}` : theme;
|
|
21
31
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
22
32
|
/* @__PURE__ */ jsx(IoniconsStyles, {}),
|
|
23
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ jsxs(
|
|
24
34
|
Container,
|
|
25
35
|
{
|
|
26
36
|
noMargin,
|
|
@@ -28,20 +38,25 @@ const InfoIcon = ({
|
|
|
28
38
|
noMarginRight,
|
|
29
39
|
fullWidth,
|
|
30
40
|
style: containerStyle,
|
|
31
|
-
children:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
children: [
|
|
42
|
+
arrowColor && /* @__PURE__ */ jsx(ArrowColorGlobalStyle, { themeName: instanceToken, color: arrowColor }),
|
|
43
|
+
/* @__PURE__ */ jsx(
|
|
44
|
+
Tooltip,
|
|
45
|
+
{
|
|
46
|
+
...props,
|
|
47
|
+
position,
|
|
48
|
+
title,
|
|
49
|
+
trigger,
|
|
50
|
+
html: htmlContent,
|
|
51
|
+
useContext: htmlContent != null,
|
|
52
|
+
theme: tippyTheme,
|
|
53
|
+
arrow: arrowColor ? true : arrow,
|
|
54
|
+
duration: 200,
|
|
55
|
+
disabled,
|
|
56
|
+
children: noIcon ? props.children : /* @__PURE__ */ jsx(Icon, { outline })
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
]
|
|
45
60
|
}
|
|
46
61
|
)
|
|
47
62
|
] });
|
|
@@ -53,7 +68,12 @@ InfoIcon.propTypes = {
|
|
|
53
68
|
noMargin: PropTypes.bool,
|
|
54
69
|
noMarginLeft: PropTypes.bool,
|
|
55
70
|
noMarginRight: PropTypes.bool,
|
|
56
|
-
outline: PropTypes.bool
|
|
71
|
+
outline: PropTypes.bool,
|
|
72
|
+
children: PropTypes.node,
|
|
73
|
+
theme: PropTypes.string,
|
|
74
|
+
trigger: PropTypes.oneOf(["click", "focus"]),
|
|
75
|
+
arrow: PropTypes.bool,
|
|
76
|
+
arrowColor: PropTypes.string
|
|
57
77
|
};
|
|
58
78
|
export {
|
|
59
79
|
InfoIcon,
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
1
|
+
import styled, { createGlobalStyle } from "styled-components";
|
|
2
2
|
import theme from "../../styles/theme.js";
|
|
3
|
+
const ArrowColorGlobalStyle = createGlobalStyle`
|
|
4
|
+
.tippy-popper[x-placement^='top'] .tippy-tooltip.${(props) => props.themeName}-theme [x-arrow] {
|
|
5
|
+
border-top-color: ${(props) => props.color} !important;
|
|
6
|
+
}
|
|
7
|
+
.tippy-popper[x-placement^='bottom'] .tippy-tooltip.${(props) => props.themeName}-theme [x-arrow] {
|
|
8
|
+
border-bottom-color: ${(props) => props.color} !important;
|
|
9
|
+
}
|
|
10
|
+
.tippy-popper[x-placement^='left'] .tippy-tooltip.${(props) => props.themeName}-theme [x-arrow] {
|
|
11
|
+
border-left-color: ${(props) => props.color} !important;
|
|
12
|
+
}
|
|
13
|
+
.tippy-popper[x-placement^='right'] .tippy-tooltip.${(props) => props.themeName}-theme [x-arrow] {
|
|
14
|
+
border-right-color: ${(props) => props.color} !important;
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
3
17
|
const Container = styled.div.withConfig({
|
|
4
18
|
shouldForwardProp: (props) => !["noMargin", "noMarginLeft", "noMarginRight", "fullWidth"].includes(props)
|
|
5
19
|
})`
|
|
@@ -59,6 +73,7 @@ const Icon = styled.i.withConfig({
|
|
|
59
73
|
}
|
|
60
74
|
`;
|
|
61
75
|
export {
|
|
76
|
+
ArrowColorGlobalStyle,
|
|
62
77
|
Container,
|
|
63
78
|
Icon
|
|
64
79
|
};
|
|
@@ -17,13 +17,13 @@ const LinkIcon = () => /* @__PURE__ */ jsxs(
|
|
|
17
17
|
/* @__PURE__ */ jsx("g", { children: /* @__PURE__ */ jsx("g", { children: /* @__PURE__ */ jsx(
|
|
18
18
|
"path",
|
|
19
19
|
{
|
|
20
|
-
d: "M312.453,199.601c-6.066-6.102-12.792-11.511-20.053-16.128c-19.232-12.315-41.59-18.859-64.427-18.859\n c-31.697-0.059-62.106,12.535-84.48,34.987L34.949,308.23c-22.336,22.379-34.89,52.7-34.91,84.318\n c-0.042,65.98,53.41,119.501,119.39,119.543c31.648,0.11,62.029-12.424,84.395-34.816l89.6-89.6\n c1.628-1.614,2.537-3.816,2.524-6.108c-0.027-4.713-3.87-8.511-8.583-8.484h-3.413c-18.72,0.066-37.273-3.529-54.613-10.581\n c-3.195-1.315-6.867-0.573-9.301,1.877l-64.427,64.512c-20.006,20.006-52.442,20.006-72.448,0\n c-20.006-20.006-20.006-52.442,0-72.448l108.971-108.885c19.99-19.965,52.373-19.965,72.363,0\n c13.472,12.679,34.486,12.679,47.957,0c5.796-5.801,9.31-13.495,9.899-21.675C322.976,216.108,319.371,206.535,312.453,199.601z"
|
|
20
|
+
d: "M312.453,199.601c-6.066-6.102-12.792-11.511-20.053-16.128c-19.232-12.315-41.59-18.859-64.427-18.859\r\n c-31.697-0.059-62.106,12.535-84.48,34.987L34.949,308.23c-22.336,22.379-34.89,52.7-34.91,84.318\r\n c-0.042,65.98,53.41,119.501,119.39,119.543c31.648,0.11,62.029-12.424,84.395-34.816l89.6-89.6\r\n c1.628-1.614,2.537-3.816,2.524-6.108c-0.027-4.713-3.87-8.511-8.583-8.484h-3.413c-18.72,0.066-37.273-3.529-54.613-10.581\r\n c-3.195-1.315-6.867-0.573-9.301,1.877l-64.427,64.512c-20.006,20.006-52.442,20.006-72.448,0\r\n c-20.006-20.006-20.006-52.442,0-72.448l108.971-108.885c19.99-19.965,52.373-19.965,72.363,0\r\n c13.472,12.679,34.486,12.679,47.957,0c5.796-5.801,9.31-13.495,9.899-21.675C322.976,216.108,319.371,206.535,312.453,199.601z"
|
|
21
21
|
}
|
|
22
22
|
) }) }),
|
|
23
23
|
/* @__PURE__ */ jsx("g", { children: /* @__PURE__ */ jsx("g", { children: /* @__PURE__ */ jsx(
|
|
24
24
|
"path",
|
|
25
25
|
{
|
|
26
|
-
d: "M477.061,34.993c-46.657-46.657-122.303-46.657-168.96,0l-89.515,89.429c-2.458,2.47-3.167,6.185-1.792,9.387\n c1.359,3.211,4.535,5.272,8.021,5.205h3.157c18.698-0.034,37.221,3.589,54.528,10.667c3.195,1.315,6.867,0.573,9.301-1.877\n l64.256-64.171c20.006-20.006,52.442-20.006,72.448,0c20.006,20.006,20.006,52.442,0,72.448l-80.043,79.957l-0.683,0.768\n l-27.989,27.819c-19.99,19.965-52.373,19.965-72.363,0c-13.472-12.679-34.486-12.679-47.957,0\n c-5.833,5.845-9.35,13.606-9.899,21.845c-0.624,9.775,2.981,19.348,9.899,26.283c9.877,9.919,21.433,18.008,34.133,23.893\n c1.792,0.853,3.584,1.536,5.376,2.304c1.792,0.768,3.669,1.365,5.461,2.048c1.792,0.683,3.669,1.28,5.461,1.792l5.035,1.365\n c3.413,0.853,6.827,1.536,10.325,2.133c4.214,0.626,8.458,1.025,12.715,1.195h5.973h0.512l5.12-0.597\n c1.877-0.085,3.84-0.512,6.059-0.512h2.901l5.888-0.853l2.731-0.512l4.949-1.024h0.939c20.961-5.265,40.101-16.118,55.381-31.403\n l108.629-108.629C523.718,157.296,523.718,81.65,477.061,34.993z"
|
|
26
|
+
d: "M477.061,34.993c-46.657-46.657-122.303-46.657-168.96,0l-89.515,89.429c-2.458,2.47-3.167,6.185-1.792,9.387\r\n c1.359,3.211,4.535,5.272,8.021,5.205h3.157c18.698-0.034,37.221,3.589,54.528,10.667c3.195,1.315,6.867,0.573,9.301-1.877\r\n l64.256-64.171c20.006-20.006,52.442-20.006,72.448,0c20.006,20.006,20.006,52.442,0,72.448l-80.043,79.957l-0.683,0.768\r\n l-27.989,27.819c-19.99,19.965-52.373,19.965-72.363,0c-13.472-12.679-34.486-12.679-47.957,0\r\n c-5.833,5.845-9.35,13.606-9.899,21.845c-0.624,9.775,2.981,19.348,9.899,26.283c9.877,9.919,21.433,18.008,34.133,23.893\r\n c1.792,0.853,3.584,1.536,5.376,2.304c1.792,0.768,3.669,1.365,5.461,2.048c1.792,0.683,3.669,1.28,5.461,1.792l5.035,1.365\r\n c3.413,0.853,6.827,1.536,10.325,2.133c4.214,0.626,8.458,1.025,12.715,1.195h5.973h0.512l5.12-0.597\r\n c1.877-0.085,3.84-0.512,6.059-0.512h2.901l5.888-0.853l2.731-0.512l4.949-1.024h0.939c20.961-5.265,40.101-16.118,55.381-31.403\r\n l108.629-108.629C523.718,157.296,523.718,81.65,477.061,34.993z"
|
|
27
27
|
}
|
|
28
28
|
) }) }),
|
|
29
29
|
/* @__PURE__ */ jsx("g", {}),
|
package/dist/runtime-config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false
|
|
1
|
+
const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false };
|
|
2
2
|
const _overrides = {};
|
|
3
3
|
const ENV_KEY_BY_CONFIG = {
|
|
4
4
|
apiUrl: "VITE_API_URL",
|
|
@@ -55,7 +55,11 @@ function warnMissingRuntimeEnvOnce() {
|
|
|
55
55
|
);
|
|
56
56
|
}
|
|
57
57
|
function assignRuntimeConfig(config = {}) {
|
|
58
|
-
Object.
|
|
58
|
+
for (const [key, value] of Object.entries(config)) {
|
|
59
|
+
if (value !== void 0) {
|
|
60
|
+
_overrides[key] = value;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
59
63
|
warnMissingRuntimeEnvOnce();
|
|
60
64
|
}
|
|
61
65
|
function resetRuntimeConfig() {
|