contentoh-components-library 21.3.6 → 21.3.8
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/dist/components/molecules/SelectV2/SelectV2.stories.js +2 -1
- package/dist/components/molecules/SelectV2/index.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
- package/src/components/molecules/SelectV2/SelectV2.stories.js +1 -0
- package/src/components/molecules/SelectV2/index.js +8 -1
|
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";
|
|
@@ -290,7 +290,7 @@ var SelectV2 = function SelectV2(props) {
|
|
|
290
290
|
label: labelSelect,
|
|
291
291
|
size: selectButton === null || selectButton === void 0 ? void 0 : selectButton.size,
|
|
292
292
|
icon: _freeSolidSvgIcons.faCaretDown,
|
|
293
|
-
iconPosition: "
|
|
293
|
+
iconPosition: ["left", "right", "top", "bottom"].includes(selectButton === null || selectButton === void 0 ? void 0 : selectButton.iconPosition) ? selectButton.iconPosition : "right",
|
|
294
294
|
onClick: function onClick(event) {
|
|
295
295
|
if (triggerType !== "hover") setShowDropdown(function (prev) {
|
|
296
296
|
return !prev;
|
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>
|
|
@@ -40,6 +40,7 @@ export const SelectV2 = (props) => {
|
|
|
40
40
|
disabled: boolean,
|
|
41
41
|
label: string ,
|
|
42
42
|
size: number ,
|
|
43
|
+
iconPosition: string (por default "right")
|
|
43
44
|
} */,
|
|
44
45
|
defaultItem /* {
|
|
45
46
|
label: string,
|
|
@@ -337,7 +338,13 @@ export const SelectV2 = (props) => {
|
|
|
337
338
|
label={labelSelect}
|
|
338
339
|
size={selectButton?.size}
|
|
339
340
|
icon={IconDownArrow}
|
|
340
|
-
iconPosition=
|
|
341
|
+
iconPosition={
|
|
342
|
+
["left", "right", "top", "bottom"].includes(
|
|
343
|
+
selectButton?.iconPosition
|
|
344
|
+
)
|
|
345
|
+
? selectButton.iconPosition
|
|
346
|
+
: "right"
|
|
347
|
+
}
|
|
341
348
|
onClick={(event) => {
|
|
342
349
|
if (triggerType !== "hover") setShowDropdown((prev) => !prev);
|
|
343
350
|
}}
|