@ludo.ninja/components 2.3.93 → 2.3.95
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/build/api/server-search/mutations/useDislikeAsset/index.js +1 -1
- package/build/api/server-search/mutations/useLikeAsset/index.js +1 -1
- package/build/components/userBadges/ambassadorBadge/index.d.ts +6 -0
- package/build/components/userBadges/ambassadorBadge/index.js +34 -0
- package/build/components/userBadges/curatorBadge/index.d.ts +6 -0
- package/build/components/userBadges/curatorBadge/index.js +34 -0
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ const useDisLikeAsset = () => {
|
|
|
7
7
|
const [isDisLiked, setDisLiked] = (0, react_1.useState)(false);
|
|
8
8
|
const [mutate, { error }] = (0, client_1.useMutation)(api_1.searchSchema.DislikeAssetDocument, {
|
|
9
9
|
context: {
|
|
10
|
-
uri: api_1.hosts.
|
|
10
|
+
uri: api_1.hosts.searchHost,
|
|
11
11
|
},
|
|
12
12
|
fetchPolicy: 'no-cache',
|
|
13
13
|
onCompleted: ({ dislikeAsset }) => {
|
|
@@ -7,7 +7,7 @@ const useLikeAsset = () => {
|
|
|
7
7
|
const [isLiked, setLike] = (0, react_1.useState)(false);
|
|
8
8
|
const [mutate, { error }] = (0, client_1.useMutation)(api_1.searchSchema.LikeAssetDocument, {
|
|
9
9
|
context: {
|
|
10
|
-
uri: api_1.hosts.
|
|
10
|
+
uri: api_1.hosts.searchHost,
|
|
11
11
|
},
|
|
12
12
|
fetchPolicy: 'no-cache',
|
|
13
13
|
// refetchQueries: [schema.FetchLikedDocument],
|
|
@@ -0,0 +1,34 @@
|
|
|
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 jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const index_1 = require("../../../system/index");
|
|
8
|
+
const ScreenWidth_1 = require("../../../styles/ScreenWidth");
|
|
9
|
+
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
10
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
11
|
+
const Wrapper = styled_components_1.default.div `
|
|
12
|
+
display: flex;
|
|
13
|
+
padding: 3px 11px;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
|
|
17
|
+
border-radius: 16px;
|
|
18
|
+
border: 2px solid transparent;
|
|
19
|
+
color: #4357C5;
|
|
20
|
+
background: linear-gradient(to right, #f3f4f9, #f3f4f9),
|
|
21
|
+
linear-gradient(160deg, #15D2FF 0%, #4C6DFF 100%);
|
|
22
|
+
background-clip: padding-box, border-box;
|
|
23
|
+
background-origin: padding-box, border-box;
|
|
24
|
+
|
|
25
|
+
${ScreenWidth_1.mediaQuery.minWidthFourK} {
|
|
26
|
+
padding: ${(0, _4k_1.adaptiveValueCalc)(3)} ${(0, _4k_1.adaptiveValueCalc)(11)};
|
|
27
|
+
border-radius: ${(0, _4k_1.adaptiveValueCalc)(16)};
|
|
28
|
+
border: ${(0, _4k_1.adaptiveValueCalc)(2)} solid transparent;
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
31
|
+
const AmbassadorBadge = ({ className }) => {
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)(Wrapper, { className: className, children: (0, jsx_runtime_1.jsx)(index_1.H6, { children: "Ambassador" }) }));
|
|
33
|
+
};
|
|
34
|
+
exports.default = AmbassadorBadge;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const index_1 = require("../../../system/index");
|
|
8
|
+
const ScreenWidth_1 = require("../../../styles/ScreenWidth");
|
|
9
|
+
const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
|
|
10
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
11
|
+
const Wrapper = styled_components_1.default.div `
|
|
12
|
+
display: flex;
|
|
13
|
+
padding: 3px 11px;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: center;
|
|
16
|
+
|
|
17
|
+
border-radius: 16px;
|
|
18
|
+
border: 2px solid transparent;
|
|
19
|
+
color: #32A73C;
|
|
20
|
+
background: linear-gradient(to right, #f3f4f9, #f3f4f9),
|
|
21
|
+
linear-gradient(160deg, #6BEB2E 0%, #29AF33 100%);
|
|
22
|
+
background-clip: padding-box, border-box;
|
|
23
|
+
background-origin: padding-box, border-box;
|
|
24
|
+
|
|
25
|
+
${ScreenWidth_1.mediaQuery.minWidthFourK} {
|
|
26
|
+
padding: ${(0, _4k_1.adaptiveValueCalc)(3)} ${(0, _4k_1.adaptiveValueCalc)(11)};
|
|
27
|
+
border-radius: ${(0, _4k_1.adaptiveValueCalc)(16)};
|
|
28
|
+
border: ${(0, _4k_1.adaptiveValueCalc)(2)} solid transparent;
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
31
|
+
const CuratorBadge = ({ className }) => {
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)(Wrapper, { className: className, children: (0, jsx_runtime_1.jsx)(index_1.H6, { children: "Curator" }) }));
|
|
33
|
+
};
|
|
34
|
+
exports.default = CuratorBadge;
|