@jetshop/template-trend 5.17.0-alpha.63e16fd6 → 5.17.0-alpha.72f771f3
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": "@jetshop/template-trend",
|
|
3
|
-
"version": "5.17.0-alpha.
|
|
3
|
+
"version": "5.17.0-alpha.72f771f3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "react-scripts build",
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
]
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@jetshop/core": "^5.17.0-alpha.
|
|
48
|
+
"@jetshop/core": "^5.17.0-alpha.72f771f3",
|
|
49
49
|
"@jetshop/flight-shortcodes": "^2.0.10",
|
|
50
|
-
"@jetshop/intl": "^5.17.0-alpha.
|
|
51
|
-
"@jetshop/react-scripts": "^5.17.0-alpha.
|
|
52
|
-
"@jetshop/ui": "^5.17.0-alpha.
|
|
53
|
-
"@react-google-maps/api": "~
|
|
50
|
+
"@jetshop/intl": "^5.17.0-alpha.72f771f3",
|
|
51
|
+
"@jetshop/react-scripts": "^5.17.0-alpha.72f771f3",
|
|
52
|
+
"@jetshop/ui": "^5.17.0-alpha.72f771f3",
|
|
53
|
+
"@react-google-maps/api": "~2.18.1",
|
|
54
54
|
"prop-types": "^15.6.2",
|
|
55
55
|
"react": "^18",
|
|
56
56
|
"react-dom": "^18",
|
|
57
57
|
"react-modal": "^3.4.5",
|
|
58
|
-
"react-slider": "^
|
|
58
|
+
"react-slider": "^2.0.6",
|
|
59
59
|
"striptags": "^3.1.1"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@graphql-codegen/schema-ast": "^1.18.1",
|
|
64
64
|
"@testing-library/cypress": "^6.0.0",
|
|
65
65
|
"cypress": "^8.5.0",
|
|
66
|
-
"graphql": "^
|
|
66
|
+
"graphql": "^15.3.0",
|
|
67
67
|
"graphql-cli": "^4.1.0",
|
|
68
68
|
"graphql-config": "3.0.3",
|
|
69
69
|
"lint-staged": "^8.1.5",
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { css } from 'linaria';
|
|
3
|
-
import Tooltip from 'react-tooltip-lite';
|
|
4
|
-
import { Below } from '@jetshop/ui/Breakpoints';
|
|
5
|
-
|
|
6
|
-
const tipContentClassName = css`
|
|
7
|
-
.react-tooltip-lite {
|
|
8
|
-
color: #ffffff;
|
|
9
|
-
background-color: #000000;
|
|
10
|
-
font-size: 14px;
|
|
11
|
-
padding: 0px 20px !important;
|
|
12
|
-
display: flex !important;
|
|
13
|
-
align-items: center;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
height: 30px;
|
|
16
|
-
}
|
|
17
|
-
.react-tooltip-lite-right-arrow {
|
|
18
|
-
margin-top: -5px;
|
|
19
|
-
}
|
|
20
|
-
.react-tooltip-lite-left-arrow {
|
|
21
|
-
margin-top: -5px;
|
|
22
|
-
}
|
|
23
|
-
.react-tooltip-lite-down-arrow {
|
|
24
|
-
margin-top: 5px;
|
|
25
|
-
}
|
|
26
|
-
.react-tooltip-lite-up-arrow {
|
|
27
|
-
margin-top: -5px;
|
|
28
|
-
}
|
|
29
|
-
`;
|
|
30
|
-
const ValidationTooltip = ({ direction = 'right', ...props }) => {
|
|
31
|
-
return (
|
|
32
|
-
<Below breakpoint="md">
|
|
33
|
-
{matches => {
|
|
34
|
-
const newDirection = matches ? 'bottom' : direction;
|
|
35
|
-
return (
|
|
36
|
-
<Tooltip
|
|
37
|
-
arrowSize={15}
|
|
38
|
-
distance={matches ? 10 : 20}
|
|
39
|
-
useDefaultStyles={false}
|
|
40
|
-
tipContentClassName={tipContentClassName}
|
|
41
|
-
useHover={false}
|
|
42
|
-
direction={newDirection}
|
|
43
|
-
{...props}
|
|
44
|
-
/>
|
|
45
|
-
);
|
|
46
|
-
}}
|
|
47
|
-
</Below>
|
|
48
|
-
);
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export default ValidationTooltip;
|