contentoh-components-library 21.3.6 → 21.3.7
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/assets/fonts/{Roboto → roboto}/LICENSE.txt +0 -0
- package/dist/assets/fonts/{Roboto → roboto}/Roboto-Black.ttf +0 -0
- package/dist/assets/fonts/{Roboto → roboto}/Roboto-BlackItalic.ttf +0 -0
- package/dist/assets/fonts/{Roboto → roboto}/Roboto-Bold.ttf +0 -0
- package/dist/assets/fonts/{Roboto → roboto}/Roboto-BoldItalic.ttf +0 -0
- package/dist/assets/fonts/{Roboto → roboto}/Roboto-Italic.ttf +0 -0
- package/dist/assets/fonts/{Roboto → roboto}/Roboto-Light.ttf +0 -0
- package/dist/assets/fonts/{Roboto → roboto}/Roboto-LightItalic.ttf +0 -0
- package/dist/assets/fonts/{Roboto → roboto}/Roboto-Medium.ttf +0 -0
- package/dist/assets/fonts/{Roboto → roboto}/Roboto-MediumItalic.ttf +0 -0
- package/dist/assets/fonts/{Roboto → roboto}/Roboto-Regular.ttf +0 -0
- package/dist/assets/fonts/{Roboto → roboto}/Roboto-Thin.ttf +0 -0
- package/dist/assets/fonts/{Roboto → roboto}/Roboto-ThinItalic.ttf +0 -0
- package/dist/components/atoms/ProgressBar/index.js +2 -2
- package/dist/components/atoms/ProgressBar/styles.js +1 -1
- package/package.json +1 -1
- package/src/assets/fonts/{Roboto → roboto}/LICENSE.txt +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-Black.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-BlackItalic.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-Bold.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-BoldItalic.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-Italic.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-Light.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-LightItalic.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-Medium.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-MediumItalic.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-Regular.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-Thin.ttf +0 -0
- package/src/assets/fonts/{Roboto → roboto}/Roboto-ThinItalic.ttf +0 -0
- package/src/components/atoms/ProgressBar/index.js +3 -1
- package/src/components/atoms/ProgressBar/styles.js +1 -0
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -16,7 +16,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
16
16
|
progressBarType = _ref.progressBarType,
|
|
17
17
|
percentRequired = _ref.percentRequired;
|
|
18
18
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
19
|
-
children: [percentRequired
|
|
19
|
+
children: [percentRequired ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
20
20
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Tooltip.Tooltip, {
|
|
21
21
|
componentTooltip: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
22
22
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
@@ -41,7 +41,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
41
41
|
transitionType: undefined,
|
|
42
42
|
followCursor: undefined
|
|
43
43
|
})
|
|
44
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
44
|
+
}) : "", /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
45
45
|
className: "status-".concat(progressBarType),
|
|
46
46
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
47
47
|
children: [percent, "%"]
|
|
@@ -21,7 +21,7 @@ var Container = _styledComponents.default.div(_templateObject || (_templateObjec
|
|
|
21
21
|
|
|
22
22
|
exports.Container = Container;
|
|
23
23
|
|
|
24
|
-
var ContainerIcon = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n @font-face {\n font-family: \"Material Symbols Outlined\";\n font-style: normal;\n font-weight: 100 700;\n src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v68/kJEhBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oFsLjBuVY.woff2)\n format(\"woff2\");\n }\n\n .hola {\n font-family: \"Material Symbols Outlined\";\n font-size: 30px;\n //line-height: 1;\n margin-top: 10px;\n }\n .hola {\n font-variation-settings: \"FILL\"\n ", ",\n \"wght\" 400, \"GRAD\" 0, \"opsz\" 48;\n color: ", ";\n }\n"])), function (props) {
|
|
24
|
+
var ContainerIcon = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n cursor: pointer;\n @font-face {\n font-family: \"Material Symbols Outlined\";\n font-style: normal;\n font-weight: 100 700;\n src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v68/kJEhBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oFsLjBuVY.woff2)\n format(\"woff2\");\n }\n\n .hola {\n font-family: \"Material Symbols Outlined\";\n font-size: 30px;\n //line-height: 1;\n margin-top: 10px;\n }\n .hola {\n font-variation-settings: \"FILL\"\n ", ",\n \"wght\" 400, \"GRAD\" 0, \"opsz\" 48;\n color: ", ";\n }\n"])), function (props) {
|
|
25
25
|
return props.percentageRequired < 100 ? 0 : 1;
|
|
26
26
|
}, function (props) {
|
|
27
27
|
return props.percentageRequired < 100 ? "#d4d1d7" : "#e33aa9";
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,7 +4,7 @@ import { Tooltip } from "../Tooltip";
|
|
|
4
4
|
export const ProgressBar = ({ percent, progressBarType, percentRequired }) => {
|
|
5
5
|
return (
|
|
6
6
|
<>
|
|
7
|
-
{percentRequired
|
|
7
|
+
{percentRequired ? (
|
|
8
8
|
<>
|
|
9
9
|
<Tooltip
|
|
10
10
|
componentTooltip={
|
|
@@ -33,6 +33,8 @@ export const ProgressBar = ({ percent, progressBarType, percentRequired }) => {
|
|
|
33
33
|
followCursor={undefined}
|
|
34
34
|
></Tooltip>
|
|
35
35
|
</>
|
|
36
|
+
) : (
|
|
37
|
+
""
|
|
36
38
|
)}
|
|
37
39
|
<Container className={`status-${progressBarType}`}>
|
|
38
40
|
<p>{percent}%</p>
|