@pedidopago/ui 1.0.6 → 1.0.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.
@@ -1 +1 @@
1
- {"version":3,"file":"RatingWithSingleValue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Rating/components/RatingWithSingleValue/RatingWithSingleValue.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAIrD,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,IAAI,EACJ,aAAa,EACb,YAAuB,EACvB,cAAuB,GACxB,EAAE,0BAA0B,eAiC5B"}
1
+ {"version":3,"file":"RatingWithSingleValue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Rating/components/RatingWithSingleValue/RatingWithSingleValue.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAIrD,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,IAAI,EACJ,aAAa,EACb,YAAuB,EACvB,cAAuB,GACxB,EAAE,0BAA0B,eAqC5B"}
@@ -50,6 +50,13 @@ function RatingWithSingleValue(_ref) {
50
50
  }
51
51
 
52
52
  return /*#__PURE__*/React.createElement(React.Fragment, null, _icons.icons.map(function (icon) {
53
+ icon.icon.props.width = size;
54
+ icon.icon.props.height = size;
55
+
56
+ icon.icon.props.onClick = function () {
57
+ return handleClick(icon.id);
58
+ };
59
+
53
60
  return /*#__PURE__*/React.createElement(_styles.RatingWrapper, {
54
61
  key: icon.id,
55
62
  disabled: disabled,
@@ -57,12 +64,6 @@ function RatingWithSingleValue(_ref) {
57
64
  active: icon.id === currentValue,
58
65
  primaryColor: primaryColor,
59
66
  secondaryColor: secondaryColor
60
- }, /*#__PURE__*/React.createElement(icon.icon, {
61
- width: size,
62
- height: size,
63
- onClick: function onClick() {
64
- return handleClick(icon.id);
65
- }
66
- }));
67
+ }, icon.icon);
67
68
  }));
68
69
  }
@@ -7,7 +7,7 @@ exports.SelectAreaWrapper = void 0;
7
7
 
8
8
  var _styled = _interopRequireDefault(require("@emotion/styled"));
9
9
 
10
- var _css = _interopRequireDefault(require("@emotion/css"));
10
+ var _react = require("@emotion/react");
11
11
 
12
12
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
13
13
 
@@ -26,13 +26,13 @@ function InputWrapperDisabledTratamentFunction(_ref2) {
26
26
  var disabled = _ref2.disabled,
27
27
  selectType = _ref2.selectType,
28
28
  theme = _ref2.theme;
29
- var disableStyle = (0, _css.default)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: ", ";\n\n label {\n color: ", ";\n }\n\n div:nth-of-type(1) {\n button {\n background-color: ", ";\n color: ", ";\n }\n }\n "])), theme ? theme.colors.neutral.neutral1 : '', theme ? theme.colors.neutral.neutral3 : '', theme ? theme.colors.neutral.white : '', theme ? theme.colors.neutral.neutral3 : '');
30
- var enableStyle = (0, _css.default)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n &:hover {\n border-color: ", ";\n }\n\n &:focus-within {\n border-color: ", ";\n box-shadow: 0 0 0 2px ", ";\n }\n\n ", "\n "])), selectType && theme ? theme.colors[selectType].blurred : theme && theme.colors.primary.hover, theme ? theme.colors.primary.focus : '', theme ? theme.colors.primary.disabled : '', alertControl(selectType, theme));
29
+ var disableStyle = (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: ", ";\n\n label {\n color: ", ";\n }\n\n div:nth-of-type(1) {\n button {\n background-color: ", ";\n color: ", ";\n }\n }\n "])), theme ? theme.colors.neutral.neutral1 : '', theme ? theme.colors.neutral.neutral3 : '', theme ? theme.colors.neutral.white : '', theme ? theme.colors.neutral.neutral3 : '');
30
+ var enableStyle = (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n &:hover {\n border-color: ", ";\n }\n\n &:focus-within {\n border-color: ", ";\n box-shadow: 0 0 0 2px ", ";\n }\n\n ", "\n "])), selectType && theme ? theme.colors[selectType].blurred : theme && theme.colors.primary.hover, theme ? theme.colors.primary.focus : '', theme ? theme.colors.primary.disabled : '', alertControl(selectType, theme));
31
31
  return disabled ? disableStyle : enableStyle;
32
32
  }
33
33
 
34
34
  function alertControl(selectType, theme) {
35
- return (0, _css.default)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-color: ", ";\n border-color: ", ";\n "])), !!selectType && !!theme ? hexToRgba(theme.colors[selectType].default, 0.2) : '', !!selectType && !!theme ? theme.colors[selectType].default : '');
35
+ return (0, _react.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-color: ", ";\n border-color: ", ";\n "])), !!selectType && !!theme ? hexToRgba(theme.colors[selectType].default, 0.2) : '', !!selectType && !!theme ? theme.colors[selectType].default : '');
36
36
  }
37
37
 
38
38
  function hexToRgba(hex, alpha) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pedidopago/ui",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Quick build beatiful Pedido Pago apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",