@gustavo-valsechi/client 1.4.319 → 1.4.320
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.
|
@@ -37,13 +37,13 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
37
37
|
var import_styles = require("./styles");
|
|
38
38
|
var import_lodash = __toESM(require("lodash"));
|
|
39
39
|
function Badge(props) {
|
|
40
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.
|
|
40
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.Container, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "badge-container", children: [
|
|
41
41
|
(!!props.icon || !!props.img) && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "badge-identifier", children: [
|
|
42
42
|
!!props.icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("i", { "aria-hidden": true, className: props.icon }),
|
|
43
43
|
!props.icon && !!props.img && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "badge-image" })
|
|
44
44
|
] }),
|
|
45
45
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: import_lodash.default.lowerCase(props.value) })
|
|
46
|
-
] });
|
|
46
|
+
] }) });
|
|
47
47
|
}
|
|
48
48
|
// Annotate the CommonJS export names for ESM import in node:
|
|
49
49
|
0 && (module.exports = {
|
|
@@ -4,13 +4,13 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
import { Container } from "./styles";
|
|
5
5
|
import _ from "lodash";
|
|
6
6
|
function Badge(props) {
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ jsx(Container, { ...props, children: /* @__PURE__ */ jsxs("div", { className: "badge-container", children: [
|
|
8
8
|
(!!props.icon || !!props.img) && /* @__PURE__ */ jsxs("div", { className: "badge-identifier", children: [
|
|
9
9
|
!!props.icon && /* @__PURE__ */ jsx("i", { "aria-hidden": true, className: props.icon }),
|
|
10
10
|
!props.icon && !!props.img && /* @__PURE__ */ jsx("div", { className: "badge-image" })
|
|
11
11
|
] }),
|
|
12
12
|
/* @__PURE__ */ jsx("span", { children: _.lowerCase(props.value) })
|
|
13
|
-
] });
|
|
13
|
+
] }) });
|
|
14
14
|
}
|
|
15
15
|
export {
|
|
16
16
|
Badge
|
|
@@ -35,58 +35,60 @@ __export(styles_exports, {
|
|
|
35
35
|
module.exports = __toCommonJS(styles_exports);
|
|
36
36
|
var import_styled_components = __toESM(require("styled-components"));
|
|
37
37
|
const Container = import_styled_components.default.div`
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
justify-content: center;
|
|
41
|
-
height: 1.8rem;
|
|
42
|
-
padding: ${(props) => props.icon || props.img ? "0 .8rem 0 .3rem" : "0 .8rem"};
|
|
43
|
-
position: relative;
|
|
44
|
-
gap: .7rem;
|
|
45
|
-
|
|
46
|
-
.badge-identifier {
|
|
47
|
-
width: 1.3rem;
|
|
48
|
-
height: 1.3rem;
|
|
49
|
-
border-radius: 5px;
|
|
50
|
-
background: ${(props) => props.theme.t05};
|
|
51
|
-
display: flex;
|
|
38
|
+
.badge-container {
|
|
39
|
+
display: inline-flex;
|
|
52
40
|
align-items: center;
|
|
53
41
|
justify-content: center;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
42
|
+
height: 1.8rem;
|
|
43
|
+
padding: ${(props) => props.icon || props.img ? "0 .8rem 0 .3rem" : "0 .8rem"};
|
|
44
|
+
position: relative;
|
|
45
|
+
gap: .7rem;
|
|
46
|
+
|
|
47
|
+
.badge-identifier {
|
|
48
|
+
width: 1.3rem;
|
|
49
|
+
height: 1.3rem;
|
|
50
|
+
border-radius: 5px;
|
|
51
|
+
background: ${(props) => props.theme.t05};
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
|
|
56
|
+
i {
|
|
57
|
+
font-size: .7rem;
|
|
58
|
+
color: ${({ theme, textColor = "t6", color }) => theme[color || textColor]};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.badge-image {
|
|
62
|
+
width: .8rem;
|
|
63
|
+
height: .8rem;
|
|
64
|
+
background-image: url(${(props) => props.img});
|
|
65
|
+
background-size: contain;
|
|
66
|
+
background-repeat: no-repeat;
|
|
67
|
+
background-position: center;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
span {
|
|
72
|
+
position: relative;
|
|
73
|
+
z-index: 1;
|
|
57
74
|
color: ${({ theme, textColor = "t6", color }) => theme[color || textColor]};
|
|
75
|
+
font-size: .8rem;
|
|
76
|
+
font-weight: 500;
|
|
77
|
+
text-transform: capitalize;
|
|
58
78
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
79
|
+
|
|
80
|
+
&:before {
|
|
81
|
+
content: "";
|
|
82
|
+
position: absolute;
|
|
83
|
+
top: 0;
|
|
84
|
+
left: 0;
|
|
85
|
+
width: 100%;
|
|
86
|
+
height: 100%;
|
|
87
|
+
border-radius: 5px;
|
|
88
|
+
background: ${({ theme, backgroundColor = "t2", color }) => theme[color || backgroundColor]};
|
|
89
|
+
opacity: .2;
|
|
67
90
|
}
|
|
68
91
|
}
|
|
69
|
-
|
|
70
|
-
span {
|
|
71
|
-
position: relative;
|
|
72
|
-
z-index: 1;
|
|
73
|
-
color: ${({ theme, textColor = "t6", color }) => theme[color || textColor]};
|
|
74
|
-
font-size: .8rem;
|
|
75
|
-
font-weight: 500;
|
|
76
|
-
text-transform: capitalize;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&:before {
|
|
80
|
-
content: "";
|
|
81
|
-
position: absolute;
|
|
82
|
-
top: 0;
|
|
83
|
-
left: 0;
|
|
84
|
-
width: 100%;
|
|
85
|
-
height: 100%;
|
|
86
|
-
border-radius: 5px;
|
|
87
|
-
background: ${({ theme, backgroundColor = "t2", color }) => theme[color || backgroundColor]};
|
|
88
|
-
opacity: .2;
|
|
89
|
-
}
|
|
90
92
|
`;
|
|
91
93
|
// Annotate the CommonJS export names for ESM import in node:
|
|
92
94
|
0 && (module.exports = {
|
|
@@ -2,58 +2,60 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
const Container = styled.div`
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
justify-content: center;
|
|
8
|
-
height: 1.8rem;
|
|
9
|
-
padding: ${(props) => props.icon || props.img ? "0 .8rem 0 .3rem" : "0 .8rem"};
|
|
10
|
-
position: relative;
|
|
11
|
-
gap: .7rem;
|
|
12
|
-
|
|
13
|
-
.badge-identifier {
|
|
14
|
-
width: 1.3rem;
|
|
15
|
-
height: 1.3rem;
|
|
16
|
-
border-radius: 5px;
|
|
17
|
-
background: ${(props) => props.theme.t05};
|
|
18
|
-
display: flex;
|
|
5
|
+
.badge-container {
|
|
6
|
+
display: inline-flex;
|
|
19
7
|
align-items: center;
|
|
20
8
|
justify-content: center;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
9
|
+
height: 1.8rem;
|
|
10
|
+
padding: ${(props) => props.icon || props.img ? "0 .8rem 0 .3rem" : "0 .8rem"};
|
|
11
|
+
position: relative;
|
|
12
|
+
gap: .7rem;
|
|
13
|
+
|
|
14
|
+
.badge-identifier {
|
|
15
|
+
width: 1.3rem;
|
|
16
|
+
height: 1.3rem;
|
|
17
|
+
border-radius: 5px;
|
|
18
|
+
background: ${(props) => props.theme.t05};
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
|
|
23
|
+
i {
|
|
24
|
+
font-size: .7rem;
|
|
25
|
+
color: ${({ theme, textColor = "t6", color }) => theme[color || textColor]};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.badge-image {
|
|
29
|
+
width: .8rem;
|
|
30
|
+
height: .8rem;
|
|
31
|
+
background-image: url(${(props) => props.img});
|
|
32
|
+
background-size: contain;
|
|
33
|
+
background-repeat: no-repeat;
|
|
34
|
+
background-position: center;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
span {
|
|
39
|
+
position: relative;
|
|
40
|
+
z-index: 1;
|
|
24
41
|
color: ${({ theme, textColor = "t6", color }) => theme[color || textColor]};
|
|
42
|
+
font-size: .8rem;
|
|
43
|
+
font-weight: 500;
|
|
44
|
+
text-transform: capitalize;
|
|
25
45
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
46
|
+
|
|
47
|
+
&:before {
|
|
48
|
+
content: "";
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: 0;
|
|
51
|
+
left: 0;
|
|
52
|
+
width: 100%;
|
|
53
|
+
height: 100%;
|
|
54
|
+
border-radius: 5px;
|
|
55
|
+
background: ${({ theme, backgroundColor = "t2", color }) => theme[color || backgroundColor]};
|
|
56
|
+
opacity: .2;
|
|
34
57
|
}
|
|
35
58
|
}
|
|
36
|
-
|
|
37
|
-
span {
|
|
38
|
-
position: relative;
|
|
39
|
-
z-index: 1;
|
|
40
|
-
color: ${({ theme, textColor = "t6", color }) => theme[color || textColor]};
|
|
41
|
-
font-size: .8rem;
|
|
42
|
-
font-weight: 500;
|
|
43
|
-
text-transform: capitalize;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&:before {
|
|
47
|
-
content: "";
|
|
48
|
-
position: absolute;
|
|
49
|
-
top: 0;
|
|
50
|
-
left: 0;
|
|
51
|
-
width: 100%;
|
|
52
|
-
height: 100%;
|
|
53
|
-
border-radius: 5px;
|
|
54
|
-
background: ${({ theme, backgroundColor = "t2", color }) => theme[color || backgroundColor]};
|
|
55
|
-
opacity: .2;
|
|
56
|
-
}
|
|
57
59
|
`;
|
|
58
60
|
export {
|
|
59
61
|
Container
|