@pedidopago/ui 1.1.4 → 1.1.5

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.
Files changed (76) hide show
  1. package/dist/components/Badge/badge.test.js +22 -5
  2. package/dist/components/Badge/index.js +3 -5
  3. package/dist/components/Badge/styles.d.ts +0 -4
  4. package/dist/components/Badge/styles.d.ts.map +1 -1
  5. package/dist/components/Badge/styles.js +3 -11
  6. package/dist/components/Badge/types.d.ts +2 -1
  7. package/dist/components/Badge/types.d.ts.map +1 -1
  8. package/dist/components/Button/index.d.ts +2 -2
  9. package/dist/components/Button/index.d.ts.map +1 -1
  10. package/dist/components/Button/styles.d.ts.map +1 -1
  11. package/dist/components/Button/styles.js +10 -7
  12. package/dist/components/Icon/types.d.ts +1 -1
  13. package/dist/components/Icon/types.d.ts.map +1 -1
  14. package/dist/components/Input/styles.d.ts.map +1 -1
  15. package/dist/components/Input/styles.js +114 -31
  16. package/dist/components/List/styles.d.ts.map +1 -1
  17. package/dist/components/List/styles.js +8 -2
  18. package/dist/components/List/types.d.ts +1 -2
  19. package/dist/components/List/types.d.ts.map +1 -1
  20. package/dist/components/Modal/index.d.ts +1 -1
  21. package/dist/components/Modal/index.d.ts.map +1 -1
  22. package/dist/components/Modal/index.js +5 -1
  23. package/dist/components/Modal/modal.test.js +13 -0
  24. package/dist/components/Modal/styles.d.ts +2 -0
  25. package/dist/components/Modal/styles.d.ts.map +1 -1
  26. package/dist/components/Modal/styles.js +1 -1
  27. package/dist/components/Modal/types.d.ts +4 -0
  28. package/dist/components/Modal/types.d.ts.map +1 -1
  29. package/dist/components/Progress/style.d.ts.map +1 -1
  30. package/dist/components/Progress/style.js +1 -1
  31. package/dist/components/RadioInput/components/ChoiceList/index.d.ts.map +1 -1
  32. package/dist/components/RadioInput/components/ChoiceList/index.js +3 -0
  33. package/dist/components/RadioInput/styles.d.ts.map +1 -1
  34. package/dist/components/RadioInput/styles.js +4 -1
  35. package/dist/components/SelectInput/components/OptionsArea/OptionsArea.d.ts.map +1 -1
  36. package/dist/components/SelectInput/components/OptionsArea/OptionsArea.js +27 -9
  37. package/dist/components/SelectInput/components/OptionsArea/index.js +1 -1
  38. package/dist/components/SelectInput/components/SelectArea/ButtonsArea.d.ts.map +1 -1
  39. package/dist/components/SelectInput/components/SelectArea/ButtonsArea.js +2 -2
  40. package/dist/components/SelectInput/components/SelectArea/Label.d.ts.map +1 -1
  41. package/dist/components/SelectInput/components/SelectArea/Label.js +10 -10
  42. package/dist/components/SelectInput/components/SelectArea/SelectAreaWrapper.d.ts.map +1 -1
  43. package/dist/components/SelectInput/components/SelectArea/SelectAreaWrapper.js +5 -2
  44. package/dist/components/SelectInput/components/SelectArea/SelectedOptionsArea.d.ts +4 -0
  45. package/dist/components/SelectInput/components/SelectArea/SelectedOptionsArea.d.ts.map +1 -1
  46. package/dist/components/SelectInput/components/SelectArea/SelectedOptionsArea.js +35 -10
  47. package/dist/components/SelectInput/components/SelectArea/index.d.ts +2 -1
  48. package/dist/components/SelectInput/components/SelectArea/index.d.ts.map +1 -1
  49. package/dist/components/SelectInput/components/SelectArea/index.js +9 -2
  50. package/dist/components/SelectInput/index.d.ts.map +1 -1
  51. package/dist/components/SelectInput/index.js +9 -9
  52. package/dist/components/SelectInput/types.d.ts +1 -0
  53. package/dist/components/SelectInput/types.d.ts.map +1 -1
  54. package/dist/components/Slider/components/SliderPointer.js +2 -1
  55. package/dist/components/Switch/index.d.ts.map +1 -1
  56. package/dist/components/Switch/index.js +12 -8
  57. package/dist/components/Switch/styles.d.ts.map +1 -1
  58. package/dist/components/Switch/styles.js +14 -2
  59. package/dist/components/Switch/switch.test.d.ts +2 -0
  60. package/dist/components/Switch/switch.test.d.ts.map +1 -0
  61. package/dist/components/Switch/switch.test.js +276 -0
  62. package/dist/components/Switch/types.d.ts +4 -2
  63. package/dist/components/Switch/types.d.ts.map +1 -1
  64. package/dist/components/Table/index.d.ts +1 -1
  65. package/dist/components/Table/index.d.ts.map +1 -1
  66. package/dist/components/Table/index.js +17 -16
  67. package/dist/components/Table/styles.js +4 -2
  68. package/dist/components/Table/table.test.js +48 -16
  69. package/dist/components/Table/types.d.ts +6 -4
  70. package/dist/components/Table/types.d.ts.map +1 -1
  71. package/dist/components/TextAreaInput/index.d.ts +2 -2
  72. package/dist/components/TextAreaInput/index.d.ts.map +1 -1
  73. package/dist/components/TextAreaInput/index.js +19 -11
  74. package/dist/components/TextAreaInput/styles.d.ts.map +1 -1
  75. package/dist/components/TextAreaInput/styles.js +4 -1
  76. package/package.json +1 -1
@@ -8,6 +8,8 @@ var _ = _interopRequireDefault(require("."));
8
8
 
9
9
  var _jsxRuntime = require("react/jsx-runtime");
10
10
 
11
+ var _excluded = ["children"];
12
+
11
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
14
 
13
15
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -16,22 +18,35 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
16
18
 
17
19
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
20
 
19
- var setup = function setup(props) {
20
- var utils = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, _objectSpread({}, props)));
21
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
22
+
23
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
24
+
25
+ var setup = function setup(_ref) {
26
+ var children = _ref.children,
27
+ props = _objectWithoutProperties(_ref, _excluded);
28
+
29
+ var utils = (0, _testUtils.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, _objectSpread(_objectSpread({}, props), {}, {
30
+ children: children
31
+ })));
21
32
  return utils;
22
33
  };
23
34
 
24
35
  describe('Badge', function () {
25
36
  it('should it render the badge component', function () {
26
37
  var utils = setup({
27
- text: 'Teste badge',
38
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
39
+ children: "Teste badge"
40
+ }),
28
41
  type: 'primary'
29
42
  });
30
43
  expect(utils.container).toBeInTheDocument();
31
44
  });
32
45
  it('should it render the badge component in loading state', function () {
33
46
  var utils = setup({
34
- text: 'Teste badge',
47
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
48
+ children: "Teste badge"
49
+ }),
35
50
  type: 'primary',
36
51
  isLoading: true
37
52
  });
@@ -40,7 +55,9 @@ describe('Badge', function () {
40
55
  it('should it render multiply badges', function () {
41
56
  var utils = function utils(type) {
42
57
  return setup({
43
- text: 'Teste badge',
58
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
59
+ children: "Teste badge"
60
+ }),
44
61
  type: type,
45
62
  isLoading: true
46
63
  });
@@ -18,15 +18,13 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
18
18
  // Styles
19
19
  var Badge = function Badge(_ref) {
20
20
  var type = _ref.type,
21
- text = _ref.text,
22
- isLoading = _ref.isLoading;
21
+ isLoading = _ref.isLoading,
22
+ children = _ref.children;
23
23
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.BadgeContainer, {
24
24
  children: !isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
25
25
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.BadgeCircle, {
26
26
  type: type
27
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.BadgeText, {
28
- children: text
29
- })]
27
+ }), children]
30
28
  }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Flex.default, {
31
29
  spacing: "2",
32
30
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Skeleton.default, {
@@ -8,10 +8,6 @@ export declare const BadgeCircle: import("@emotion/styled").StyledComponent<{
8
8
  theme?: import("@emotion/react").Theme | undefined;
9
9
  as?: import("react").ElementType<any> | undefined;
10
10
  } & BadgeStyledProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
11
- export declare const BadgeText: import("@emotion/styled").StyledComponent<{
12
- theme?: import("@emotion/react").Theme | undefined;
13
- as?: import("react").ElementType<any> | undefined;
14
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
15
11
  export declare const BadgeSkeleton: import("@emotion/styled").StyledComponent<{
16
12
  theme?: import("@emotion/react").Theme | undefined;
17
13
  as?: import("react").ElementType<any> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/styles.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,cAAc;;;yGAG1B,CAAC;AAEF,eAAO,MAAM,WAAW;;;4HAetB,CAAC;AAEH,eAAO,MAAM,SAAS;;;2GAMrB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;yGAoCzB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/styles.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,cAAc;;;yGAG1B,CAAC;AAEF,eAAO,MAAM,WAAW;;;4HAetB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;yGAoCzB,CAAC"}
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.BadgeText = exports.BadgeSkeleton = exports.BadgeContainer = exports.BadgeCircle = void 0;
6
+ exports.BadgeSkeleton = exports.BadgeContainer = exports.BadgeCircle = void 0;
7
7
 
8
8
  var _styled = _interopRequireDefault(require("@emotion/styled"));
9
9
 
10
- var _templateObject, _templateObject2, _templateObject3;
10
+ var _templateObject, _templateObject2;
11
11
 
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
 
@@ -26,15 +26,7 @@ var BadgeCircle = _styled.default.div(function (props) {
26
26
 
27
27
  exports.BadgeCircle = BadgeCircle;
28
28
 
29
- var BadgeText = _styled.default.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-size: ", ";\n color: ", ";\n"])), function (props) {
30
- return props.theme.fontSizes.xxs;
31
- }, function (props) {
32
- return props.theme.colorMode === 'light' ? props.theme.colors.neutral.neutral5 : props.theme.colors.neutral.white;
33
- });
34
-
35
- exports.BadgeText = BadgeText;
36
-
37
- var BadgeSkeleton = _styled.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: ", ";\n height: 10px;\n display: block;\n border-radius: ", ";\n background-color: ", ";\n overflow: hidden;\n\n &:not(:last-child) {\n margin-right: 8px;\n }\n\n &::after {\n content: '';\n inset: 0px;\n width: 100%;\n height: 100%;\n display: block;\n animation: 1.6s linear 0.5s infinite normal none running move;\n transform: translateX(-100%);\n background: linear-gradient(\n 90deg,\n transparent,\n ", ",\n transparent\n );\n }\n\n @keyframes move {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(100%);\n }\n }\n"])), function (props) {
29
+ var BadgeSkeleton = _styled.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", ";\n height: 10px;\n display: block;\n border-radius: ", ";\n background-color: ", ";\n overflow: hidden;\n\n &:not(:last-child) {\n margin-right: 8px;\n }\n\n &::after {\n content: '';\n inset: 0px;\n width: 100%;\n height: 100%;\n display: block;\n animation: 1.6s linear 0.5s infinite normal none running move;\n transform: translateX(-100%);\n background: linear-gradient(\n 90deg,\n transparent,\n ", ",\n transparent\n );\n }\n\n @keyframes move {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(100%);\n }\n }\n"])), function (props) {
38
30
  return props.circle ? '10px' : '4rem';
39
31
  }, function (props) {
40
32
  return props.circle ? '999999px' : '2px';
@@ -1,8 +1,9 @@
1
+ import { ReactNode } from 'react';
1
2
  declare type BadgeTypes = 'primary' | 'secondary' | 'tertiary' | 'neutral' | 'informative' | 'success' | 'success_secondary' | 'warning' | 'warning_secondary' | 'error' | 'critical';
2
3
  export declare type IBadgeProps = {
3
4
  type: BadgeTypes;
4
- text: string;
5
5
  isLoading?: boolean;
6
+ children: ReactNode;
6
7
  };
7
8
  export declare type BadgeStyledProps = {
8
9
  type: BadgeTypes;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/types.ts"],"names":[],"mappings":"AAAA,aAAK,UAAU,GACX,SAAS,GACT,WAAW,GACX,UAAU,GACV,SAAS,GACT,aAAa,GACb,SAAS,GACT,mBAAmB,GACnB,SAAS,GACT,mBAAmB,GACnB,OAAO,GACP,UAAU,CAAC;AAEf,oBAAY,WAAW,GAAG;IACxB,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,aAAK,UAAU,GACX,SAAS,GACT,WAAW,GACX,UAAU,GACV,SAAS,GACT,aAAa,GACb,SAAS,GACT,mBAAmB,GACnB,SAAS,GACT,mBAAmB,GACnB,OAAO,GACP,UAAU,CAAC;AAEf,oBAAY,WAAW,GAAG;IACxB,IAAI,EAAE,UAAU,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC7B,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC"}
@@ -1,5 +1,5 @@
1
- import { FC, HTMLAttributes } from 'react';
1
+ import { FC, ButtonHTMLAttributes } from 'react';
2
2
  import { IButtonProps } from './types';
3
- declare const Button: FC<HTMLAttributes<HTMLButtonElement> & IButtonProps>;
3
+ declare const Button: FC<ButtonHTMLAttributes<HTMLButtonElement> & IButtonProps>;
4
4
  export default Button;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAO3C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,cAAc,CAAC,iBAAiB,CAAC,GAAG,YAAY,CA+DhE,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAOjD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,GAAG,YAAY,CA+DtE,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Button/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,eAAO,MAAM,OAAO;;;qIA4HnB,CAAC;AAEF,eAAO,MAAM,aAAa;;;yGAIzB,CAAC;AAEF,eAAO,MAAM,WAAW;;;yGAIvB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Button/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,eAAO,MAAM,OAAO;;;qIA0InB,CAAC;AAEF,eAAO,MAAM,aAAa;;;yGAKzB,CAAC;AAEF,eAAO,MAAM,WAAW;;;yGAIvB,CAAC"}
@@ -11,7 +11,7 @@ var _react = require("@emotion/react");
11
11
 
12
12
  var _invertColor = require("../../utils/invertColor");
13
13
 
14
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
14
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
@@ -19,7 +19,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
19
19
 
20
20
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
21
21
 
22
- var Buttons = _styled.default.button(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-family: Poppins;\n font-style: normal;\n font-weight: ", ";\n font-size: ", ";\n border-radius: 8px;\n border: 0px;\n cursor: pointer;\n padding-left: 24px;\n padding-right: 24px;\n\n color: ", ";\n\n background-color: ", ";\n\n height: ", ";\n\n width: ", ";\n\n &:hover {\n filter: brightness(0.8);\n }\n\n &:focus {\n filter: brightness(0.8);\n }\n\n &:disabled {\n filter: opacity(0.5);\n cursor: not-allowed;\n }\n\n ", "\n\n @media screen and (min-width: ", ") {\n width: ", ";\n }\n\n @media screen and (min-width: ", ") {\n width: ", ";\n }\n\n @media screen and (min-width: ", ") {\n width: ", ";\n }\n\n @media screen and (min-width: ", ") {\n width: ", ";\n }\n"])), function (_ref) {
22
+ var Buttons = _styled.default.button(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-family: Poppins;\n font-style: normal;\n font-weight: ", ";\n font-size: ", ";\n border-radius: 8px;\n border: 0px;\n cursor: pointer;\n padding-inline: 24px;\n\n transition: all 0.15s ease-in-out;\n\n color: ", ";\n\n background-color: ", ";\n\n height: ", ";\n\n width: ", ";\n\n &:disabled {\n filter: opacity(0.5);\n cursor: not-allowed;\n }\n\n ", "\n\n @media screen and (min-width: ", ") {\n width: ", ";\n }\n\n @media screen and (min-width: ", ") {\n width: ", ";\n }\n\n @media screen and (min-width: ", ") {\n width: ", ";\n }\n\n @media screen and (min-width: ", ") {\n width: ", ";\n }\n"])), function (_ref) {
23
23
  var theme = _ref.theme;
24
24
  return theme.fontWeight.normal;
25
25
  }, function (_ref2) {
@@ -58,14 +58,17 @@ var Buttons = _styled.default.button(_templateObject || (_templateObject = _tagg
58
58
  theme = _ref7.theme;
59
59
 
60
60
  switch (button.variant) {
61
+ case 'solid':
62
+ return (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n &:hover,\n &:focus {\n box-shadow: inset 0 0 40px 40px rgba(0, 0, 0, 0.2);\n }\n "])));
63
+
61
64
  case 'outline':
62
- return (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: transparent;\n color: ", ";\n border: 3px ", " solid;\n "])), button.bgColor || button.textColor || theme.colors.primary.default, button.bgColor || button.textColor || theme.colors.primary.default);
65
+ return (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-color: transparent;\n color: ", ";\n border: 3px ", " solid;\n box-shadow: none;\n &:hover,\n &:focus {\n filter: brightness(0.85);\n }\n "])), button.bgColor || button.textColor || theme.colors.primary.default, button.bgColor || button.textColor || theme.colors.primary.default);
63
66
 
64
67
  case 'ghost':
65
- return (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-color: transparent;\n color: ", ";\n "])), button.bgColor || button.textColor || theme.colors.primary.default);
68
+ return (0, _react.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding-inline: 0;\n background-color: transparent;\n color: ", ";\n &:hover,\n &:focus {\n filter: brightness(0.85);\n }\n "])), button.bgColor || button.textColor || theme.colors.primary.default);
66
69
 
67
70
  case 'link':
68
- return (0, _react.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n text-decoration: underline;\n background-color: transparent;\n color: ", ";\n "])), button.bgColor || button.textColor || theme.colors.primary.default);
71
+ return (0, _react.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding-inline: 0;\n text-decoration: underline;\n background-color: transparent;\n color: ", ";\n &:hover,\n &:focus {\n filter: brightness(0.85);\n }\n "])), button.bgColor || button.textColor || theme.colors.primary.default);
69
72
  }
70
73
  }, function (_ref8) {
71
74
  var theme = _ref8.theme;
@@ -115,10 +118,10 @@ var Buttons = _styled.default.button(_templateObject || (_templateObject = _tagg
115
118
 
116
119
  exports.Buttons = Buttons;
117
120
 
118
- var IconContainer = _styled.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n gap: 5px;\n"])));
121
+ var IconContainer = _styled.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 0.25em;\n"])));
119
122
 
120
123
  exports.IconContainer = IconContainer;
121
124
 
122
- var IconWrapper = _styled.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n"])));
125
+ var IconWrapper = _styled.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n"])));
123
126
 
124
127
  exports.IconWrapper = IconWrapper;
@@ -1,7 +1,7 @@
1
1
  import { GlobalColorsProps } from '../../shared/theme';
2
2
  export declare type IconName = 'activity' | 'airplay' | 'alert-circle' | 'alert-octagon' | 'alert-triangle' | 'align-center' | 'align-justify' | 'align-left' | 'align-right' | 'anchor' | 'aperture' | 'archive' | 'arrow-down-circle' | 'arrow-down-left' | 'arrow-down-right' | 'arrow-down' | 'arrow-left-circle' | 'arrow-left' | 'arrow-right-circle' | 'arrow-right' | 'arrow-up-circle' | 'arrow-up-left' | 'arrow-up-right' | 'arrow-up' | 'at-sign' | 'award' | 'bank' | 'bar-chart-2' | 'bar-chart' | 'barcode' | 'barcode1' | 'battery-charging' | 'battery' | 'bell-off' | 'bell' | 'bluetooth' | 'bold' | 'book-open' | 'book' | 'bookmark' | 'box' | 'briefcase' | 'calendar' | 'camera-off' | 'camera' | 'card-and-code' | 'card1' | 'card2' | 'cardcredit' | 'cash' | 'cast' | 'check-circle' | 'check-square' | 'check' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'chevrons-down' | 'chevrons-left' | 'chevrons-right' | 'chevrons-up' | 'chrome' | 'circle' | 'clipboard' | 'clock' | 'cloud-drizzle' | 'cloud-off' | 'cloud-snow' | 'cloud' | 'code' | 'codepen' | 'codesandbox' | 'coffee' | 'coin' | 'color' | 'columns' | 'command' | 'compass' | 'copy' | 'corner-down-left' | 'corner-down-right' | 'corner-left-down' | 'corner-left-up' | 'corner-right-down' | 'corner-right-up' | 'corner-up-left' | 'corner-up-right' | 'cpu' | 'crop' | 'crosshair' | 'csv' | 'database' | 'delete' | 'desktop' | 'disc' | 'dollar-sign' | 'download-cloud' | 'download' | 'droplet' | 'duplicate' | 'edit-3' | 'edit' | 'equal' | 'expand' | 'external-link' | 'eye-off' | 'eye' | 'facebook' | 'fast-forward' | 'feather' | 'fi_youtube' | 'figma' | 'file-plus' | 'file-text' | 'file' | 'film' | 'filter' | 'flag' | 'folder-minus' | 'folder-plus' | 'folder' | 'framer' | 'frown' | 'gift' | 'git-branch' | 'git-commit' | 'git-pull-request' | 'github' | 'gitlab' | 'globe' | 'grid' | 'hard-drive' | 'hash' | 'headphones' | 'heart' | 'help-circle' | 'hexagon' | 'home' | 'id' | 'image' | 'inbox' | 'inf' | 'info' | 'instagram' | 'italic' | 'key' | 'layers' | 'layout' | 'life-buoy' | 'link-2' | 'link' | 'linkedin' | 'list-2' | 'list' | 'listagem' | 'loader' | 'lock' | 'log-in' | 'log-out' | 'mail' | 'map-pin' | 'map' | 'maximize-2' | 'maximize' | 'medical' | 'meh' | 'menu' | 'message-square' | 'mic-off' | 'mic' | 'minimize-2' | 'minimize' | 'minus-circle' | 'minus-square' | 'minus' | 'moneylist' | 'monitor' | 'moon' | 'more-horizontal' | 'more-vertical' | 'mouse-pointer' | 'move' | 'music' | 'navigation-2' | 'navigation' | 'octagon' | 'package' | 'paperclip' | 'pause-circle' | 'pause' | 'pdf' | 'pen-tool' | 'percent' | 'phone-call' | 'pie-chart' | 'pix' | 'play-circle' | 'play' | 'plug' | 'plus-circle' | 'plus-square' | 'plus' | 'pocket' | 'power' | 'printer' | 'radio' | 'real' | 'refresh-ccw' | 'refresh-cw' | 'repeat' | 'revenue' | 'rewind' | 'rotate-ccw' | 'rotate-cw' | 'rotate' | 'rss' | 'save' | 'scissors' | 'search' | 'send' | 'server' | 'settings' | 'share-2' | 'share' | 'shield-off' | 'shield' | 'shop' | 'shopping-bag' | 'shopping-cart' | 'shuffle' | 'sidebar' | 'skip-back' | 'skip-forward' | 'slack' | 'slash' | 'sliders' | 'smartphone' | 'smile' | 'speaker' | 'square' | 'star' | 'stop-circle' | 'sun' | 'sunrise' | 'sunset' | 'tablet' | 'tag' | 'target' | 'terminal' | 'thermometer' | 'thumbs-down' | 'thumbs-up' | 'toggle-left' | 'toggle-right' | 'tool' | 'trash-2' | 'trash' | 'trello' | 'trending-down' | 'trending-up' | 'triangle' | 'truck' | 'tv' | 'twitch' | 'twitter' | 'type' | 'umbrella' | 'underline' | 'unlock' | 'upload-cloud' | 'upload' | 'user-check' | 'user-minus' | 'user-plus' | 'user-x' | 'user' | 'user2-out' | 'users' | 'video-off' | 'video' | 'voicemail' | 'volume-1' | 'volume-2' | 'volume-x' | 'volume' | 'whatsapp' | 'wifi-off' | 'wifi' | 'wind' | 'x-circle' | 'x-octagon' | 'x-square' | 'x' | 'xls' | 'zap-off' | 'zap' | 'zoom-in' | 'zoom-out' | 'zoom' | 'ecc-budget' | 'ecc-card' | 'ecc-cart' | 'ecc-client' | 'ecc-logout' | 'ecc-loock' | 'ecc-medical' | 'ecc-star' | 'ecc-table' | 'ecc-truck' | 'ecc-user' | 'ecc-www' | 'scl-facebook' | 'scl-google' | 'pmt-amex' | 'pmt-aura' | 'pmt-dinersclub' | 'pmt-discover' | 'pmt-elo' | 'pmt-hipercard' | 'pmt-jcb' | 'pmt-mastercard' | 'pmt-paypal' | 'pmt-pix' | 'pmt-visa' | 'illust-banking-billet' | 'illust-budget-analysis' | 'illust-budget-available' | 'illust-budget-error' | 'illust-budget-incomplete' | 'illust-card' | 'illust-check-prescription' | 'illust-date' | 'illust-error-prescription' | 'illust-inclusion-order' | 'illust-incomplete-prescription' | 'illust-order-canceled' | 'illust-order-error' | 'illust-order-success' | 'illust-order-withdrawal' | 'illust-pix' | 'illust-preparation-order' | 'illust-retention-prescription' | 'illust-sent-order' | 'illust-success-prescription' | 'bty-baldness' | 'bty-beard' | 'bty-beauty' | 'bty-blue-light' | 'bty-breasts-and-ass' | 'bty-dandruff' | 'bty-deodorants' | 'bty-eyebags-darkcircles' | 'bty-eyebrows-lashes' | 'bty-filler' | 'bty-hair-growth' | 'bty-hair-loss' | 'bty-hair-strengthener' | 'bty-hand-sanitizer' | 'bty-illuminator' | 'bty-moisturizer' | 'bty-mycosis-chilblains' | 'bty-nail-strengthener' | 'bty-neck-arms' | 'bty-pimples' | 'bty-repellent' | 'bty-sunscreen' | 'bty-varicose-veins' | 'bty-warts' | 'bty-white-hair' | 'bty-whitening' | 'bty-wound-healing' | 'bty-wrinkles' | 'hlt-ansiety-stress' | 'hlt-antiemetic' | 'hlt-bach-florals' | 'hlt-bacillus-lacto' | 'hlt-bad-breath' | 'hlt-builder-vase' | 'hlt-cholesterol' | 'hlt-depression' | 'hlt-diabetes' | 'hlt-digestion-reflux' | 'hlt-diuretics' | 'hlt-gases' | 'hlt-gastric-protector' | 'hlt-hangover' | 'hlt-health' | 'hlt-heart-health' | 'hlt-high-pressure' | 'hlt-homeopathy' | 'hlt-immunity' | 'hlt-intestinal-health' | 'hlt-intimate-hygiene' | 'hlt-libido' | 'hlt-live-protector' | 'hlt-longevity' | 'hlt-memory' | 'hlt-menopause' | 'hlt-nutritional-supplement' | 'hlt-pms-cramps' | 'hlt-prostate' | 'hlt-roast' | 'hlt-sexual-health' | 'hlt-sleep-well' | 'hlt-stress' | 'hlt-urinary-tract' | 'hlt-vitamins-minerals' | 'men-baldness' | 'men-beard' | 'men-dough' | 'men-gynecomastia' | 'men-libido' | 'men-men' | 'wmn-breasts-and-ass' | 'wmn-cellulite' | 'wmn-eyelashes-brows' | 'wmn-filler' | 'wmn-hair-growth' | 'wmn-hair-strengthener' | 'wmn-menopause' | 'wmn-pms-cramps' | 'wmn-whitening' | 'wmn-woman' | 'smr-dry-belly' | 'smr-hair' | 'smr-moisturizer' | 'smr-summer' | 'smr-sunscreen' | 'smr-tanning' | 'sts-budget-analysis' | 'sts-budget-available' | 'sts-budget-expired' | 'sts-budget-incomplete' | 'sts-inclusion-order' | 'sts-medication-performed' | 'sts-order-canceled' | 'sts-order-preparation' | 'sts-order-sent' | 'sts-order-withdrawal' | 'sts-revenue-check' | 'sts-revenue-retention' | 'sts-waiting-billet' | 'sts-waiting-card' | 'sts-waiting-repeat-date' | 'ppe-accelerate-metabolism' | 'ppe-articulations' | 'ppe-binge-eating' | 'ppe-bones' | 'ppe-bruises' | 'ppe-candy-will' | 'ppe-carbohydrate-blocker' | 'ppe-carbohydrate-blocker2' | 'ppe-cellulite-stretch-marks' | 'ppe-cellulite' | 'ppe-conductive-vessel' | 'ppe-detox' | 'ppe-dough' | 'ppe-dry-belly' | 'ppe-energy' | 'ppe-fatty-acids' | 'ppe-fibers' | 'ppe-gh' | 'ppe-gynecomastia' | 'ppe-increase-satiety' | 'ppe-increased-appetite' | 'ppe-inhibit-appetite' | 'ppe-laxative' | 'ppe-lipolitical-action' | 'ppe-localized-fat' | 'ppe-muscle-definition' | 'ppe-pain' | 'ppe-physical-perfomance' | 'ppe-post-workout' | 'ppe-pre-workout' | 'ppe-pro-hormonal' | 'ppe-reduction-measures' | 'ppe-slimming-chocolates' | 'ppe-slimming-gums' | 'ppe-slimming' | 'ppe-strength' | 'ppe-tcp' | 'ppe-thermogenic' | 'ppe-vasodilation';
3
3
  export declare type IIconComponentProps = {
4
- name: IconName;
4
+ name: IconName | (string & {});
5
5
  size?: number | string;
6
6
  color?: GlobalColorsProps | (string & {});
7
7
  secondColor?: GlobalColorsProps | (string & {});
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,oBAAY,QAAQ,GAChB,UAAU,GACV,SAAS,GACT,cAAc,GACd,eAAe,GACf,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,YAAY,GACZ,aAAa,GACb,QAAQ,GACR,UAAU,GACV,SAAS,GACT,mBAAmB,GACnB,iBAAiB,GACjB,kBAAkB,GAClB,YAAY,GACZ,mBAAmB,GACnB,YAAY,GACZ,oBAAoB,GACpB,aAAa,GACb,iBAAiB,GACjB,eAAe,GACf,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AAsB,GACtB,mBAAmB,GACnB,uBAAuB,GACvB,oBAAoB,GACpB,kBAAkB,GAClB,yBAAyB,GACzB,2BAA2B,GAC3B,mBAAmB,GACnB,kBAAkB,GAClB,WAAW,GACX,aAAa,GACb,gBAAgB,GAChB,0BAA0B,GAC1B,2BAA2B,GAC3B,6BAA6B,GAC7B,eAAe,GACf,uBAAuB,GACvB,WAAW,GACX,WAAW,GACX,eAAe,GACf,YAAY,GACZ,iBAAiB,GACjB,YAAY,GACZ,QAAQ,GACR,kBAAkB,GAClB,sBAAsB,GACtB,wBAAwB,GACxB,sBAAsB,GACtB,cAAc,GACd,wBAAwB,GACxB,mBAAmB,GACnB,uBAAuB,GACvB,UAAU,GACV,yBAAyB,GACzB,kBAAkB,GAClB,iBAAiB,GACjB,kBAAkB,GAClB,wBAAwB,GACxB,yBAAyB,GACzB,mBAAmB,GACnB,cAAc,GACd,cAAc,GACd,SAAS,GACT,iBAAiB,GACjB,kBAAkB,CAAC;AAEvB,oBAAY,mBAAmB,GAAG;IAChC,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;CACjD,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,oBAAY,QAAQ,GAChB,UAAU,GACV,SAAS,GACT,cAAc,GACd,eAAe,GACf,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,YAAY,GACZ,aAAa,GACb,QAAQ,GACR,UAAU,GACV,SAAS,GACT,mBAAmB,GACnB,iBAAiB,GACjB,kBAAkB,GAClB,YAAY,GACZ,mBAAmB,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,GACrB,0BAA0B,GAC1B,oBAAoB,GACpB,uBAAuB,GACvB,gBAAgB,GAChB,sBAAsB,GACtB,mBAAmB,GACnB,uBAAuB,GACvB,oBAAoB,GACpB,kBAAkB,GAClB,yBAAyB,GACzB,2BAA2B,GAC3B,mBAAmB,GACnB,kBAAkB,GAClB,WAAW,GACX,aAAa,GACb,gBAAgB,GAChB,0BAA0B,GAC1B,2BAA2B,GAC3B,6BAA6B,GAC7B,eAAe,GACf,uBAAuB,GACvB,WAAW,GACX,WAAW,GACX,eAAe,GACf,YAAY,GACZ,iBAAiB,GACjB,YAAY,GACZ,QAAQ,GACR,kBAAkB,GAClB,sBAAsB,GACtB,wBAAwB,GACxB,sBAAsB,GACtB,cAAc,GACd,wBAAwB,GACxB,mBAAmB,GACnB,uBAAuB,GACvB,UAAU,GACV,yBAAyB,GACzB,kBAAkB,GAClB,iBAAiB,GACjB,kBAAkB,GAClB,wBAAwB,GACxB,yBAAyB,GACzB,mBAAmB,GACnB,cAAc,GACd,cAAc,GACd,SAAS,GACT,iBAAiB,GACjB,kBAAkB,CAAC;AAEvB,oBAAY,mBAAmB,GAAG;IAChC,IAAI,EAAE,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,CAAC,EAAE,iBAAiB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;CACjD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Input/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAyB,WAAW,EAAE,MAAM,SAAS,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,eAAO,MAAM,iBAAiB;;;;;;;;;;;yGA+F7B,CAAC;AAE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B,CAAC"}
@@ -9,20 +9,44 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
9
9
 
10
10
  var _react = require("@emotion/react");
11
11
 
12
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18;
12
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
16
16
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
17
17
 
18
- var InputGroupElement = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n max-width: 100%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 8px;\n border-radius: ", ";\n font-weight: ", ";\n\n transition: all 0.2s ease-in-out;\n\n &:hover fieldset {\n border-color: ", ";\n }\n\n &:hover > div > div:first-of-type {\n border-color: ", ";\n }\n\n &:focus-within > div > div:first-of-type {\n background: ", ";\n border-color: ", ";\n }\n\n &:focus-within > div > div:first-of-type span {\n color: ", ";\n }\n\n &:focus-within {\n border-radius: 2px solid ", ";\n }\n\n &:focus-within > div {\n box-shadow: 0 0 0 2px\n ", ";\n }\n\n &:focus-within label {\n transform: translate(19px, -11px) scale(0.8);\n background-color: ", ";\n background-color: ", ";\n height: 16px;\n }\n\n &:focus-within fieldset {\n border-width: 2px;\n border-color: ", ";\n }\n\n ", "\n\n & label {\n transform: ", ";\n\n ", "\n }\n"])), function (props) {
18
+ var InputGroupElement = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n max-width: 100%;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 8px;\n border-radius: ", ";\n font-weight: ", ";\n\n transition: all 0.2s ease-in-out;\n\n &:hover fieldset {\n border-color: ", ";\n }\n\n &:hover > div > div:first-of-type {\n border-color: ", ";\n }\n\n &:focus-within > div > div:first-of-type {\n background: ", ";\n border-color: ", ";\n }\n\n &:focus-within > div > div:first-of-type span {\n color: ", ";\n }\n\n &:focus-within {\n border-radius: 2px solid ", ";\n }\n\n &:focus-within > div {\n box-shadow: 0 0 0 2px\n ", ";\n }\n\n &:focus-within label {\n transform: translate(19px, -11px) scale(0.8);\n background-color: ", ";\n background-color: ", ";\n height: 16px;\n }\n\n &:focus-within fieldset {\n border-width: 2px;\n border-color: ", ";\n }\n\n ", "\n\n & label {\n transform: ", ";\n\n background-color: ", ";\n\n height: ", ";\n }\n"])), function (props) {
19
19
  return props.theme.borderRadius.default;
20
20
  }, function (props) {
21
21
  return props.theme.fontWeight[400];
22
- }, function (props) {
23
- return !props.alert && props.theme.colors.primary.hover;
24
- }, function (props) {
25
- return props.hasDisabled || props.alert ? 'auto' : props.theme.colors.primary.hover;
22
+ }, function (_ref) {
23
+ var theme = _ref.theme,
24
+ alert = _ref.alert,
25
+ hasDisabled = _ref.hasDisabled;
26
+
27
+ if (alert && !hasDisabled) {
28
+ return theme.colors[alert].default + '66';
29
+ }
30
+
31
+ if (hasDisabled) {
32
+ return 'none';
33
+ }
34
+
35
+ return theme.colors.primary.hover;
36
+ }, function (_ref2) {
37
+ var theme = _ref2.theme,
38
+ alert = _ref2.alert,
39
+ hasDisabled = _ref2.hasDisabled;
40
+
41
+ if (alert && !hasDisabled) {
42
+ return theme.colors[alert].default + '66';
43
+ }
44
+
45
+ if (hasDisabled) {
46
+ return 'none';
47
+ }
48
+
49
+ return theme.colors.primary.hover;
26
50
  }, function (props) {
27
51
  return !props.alert && props.withAddon && props.theme.colors.primary.disabled;
28
52
  }, function (props) {
@@ -36,7 +60,11 @@ var InputGroupElement = _styled.default.div(_templateObject || (_templateObject
36
60
  }, function (props) {
37
61
  return props.theme.colorMode === 'dark' ? props.theme.colors.neutral.black : props.theme.colors.body.light;
38
62
  }, function (props) {
39
- return props.labelBackground && props.labelBackground[props.theme.colorMode] || (props.theme.colorMode === 'dark' ? props.theme.colors.neutral.black : props.theme.colors.body.light);
63
+ if (props.labelBackground) return props.labelBackground[props.theme.colorMode];
64
+ return {
65
+ dark: props.theme.colors.neutral.black,
66
+ light: props.theme.colors.neutral.white
67
+ }[props.theme.colorMode];
40
68
  }, function (props) {
41
69
  return !props.alert && props.theme.colors.primary.hover;
42
70
  }, function (props) {
@@ -44,29 +72,37 @@ var InputGroupElement = _styled.default.div(_templateObject || (_templateObject
44
72
  }, function (props) {
45
73
  return props.hasValueOnInput ? 'translate(19px, -11px) scale(0.8) !important' : 'translate(20px, calc(100% - 10px))';
46
74
  }, function (props) {
47
- return props.hasValueOnInput && (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-color: ", ";\n\n background-color: ", ";\n height: 16px;\n "])), props.theme.colorMode === 'dark' ? props.theme.colors.neutral.black : props.theme.colors.body.light, props.labelBackground && props.labelBackground[props.theme.colorMode] || (props.theme.colorMode === 'dark' ? props.theme.colors.neutral.black : props.theme.colors.body.light));
75
+ if (!props.hasValueOnInput) return 'unset';
76
+ if (props.labelBackground) return props.labelBackground[props.theme.colorMode];
77
+ return {
78
+ dark: props.theme.colors.neutral.black,
79
+ light: props.theme.colors.neutral.white
80
+ }[props.theme.colorMode];
81
+ }, function (_ref3) {
82
+ var hasValueOnInput = _ref3.hasValueOnInput;
83
+ return hasValueOnInput ? '16px' : 'unset';
48
84
  });
49
85
 
50
86
  exports.InputGroupElement = InputGroupElement;
51
87
 
52
- var InputColumn = _styled.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: relative;\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n align-items: center;\n border-radius: ", ";\n\n width: 100%;\n min-height: 50px;\n"])), function (props) {
88
+ var InputColumn = _styled.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n display: grid;\n grid-template-columns: repeat(12, 1fr);\n align-items: center;\n border-radius: ", ";\n\n width: 100%;\n min-height: 50px;\n"])), function (props) {
53
89
  return props.theme.borderRadius.default;
54
90
  });
55
91
 
56
92
  exports.InputColumn = InputColumn;
57
93
 
58
- var InputContent = _styled.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: 100%;\n position: relative;\n grid-column: ", ";\n height: 100%;\n"])), function (props) {
94
+ var InputContent = _styled.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 100%;\n position: relative;\n grid-column: ", ";\n height: 100%;\n"])), function (props) {
59
95
  return props.withAddon ? '2 / end' : '1 / end';
60
96
  });
61
97
 
62
98
  exports.InputContent = InputContent;
63
99
 
64
- var InputContentRow = _styled.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n position: relative;\n align-items: center;\n height: 100%;\n"])));
100
+ var InputContentRow = _styled.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n position: relative;\n align-items: center;\n height: 100%;\n"])));
65
101
 
66
102
  exports.InputContentRow = InputContentRow;
67
103
 
68
- var InputIcon = _styled.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n position: relative;\n z-index: ", ";\n display: flex;\n margin: auto;\n padding: 0 20px;\n align-items: center;\n justify-content: center;\n cursor: ", ";\n color: ", ";\n"])), function (props) {
69
- return props.theme.zIndex.level2;
104
+ var InputIcon = _styled.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n position: relative;\n z-index: ", ";\n display: flex;\n margin: auto;\n padding: 0 20px;\n align-items: center;\n justify-content: center;\n cursor: ", ";\n color: ", ";\n"])), function (props) {
105
+ return props.theme.zIndex.level1;
70
106
  }, function (props) {
71
107
  return props.clickable ? 'pointer' : 'default';
72
108
  }, function (props) {
@@ -75,7 +111,7 @@ var InputIcon = _styled.default.div(_templateObject7 || (_templateObject7 = _tag
75
111
 
76
112
  exports.InputIcon = InputIcon;
77
113
 
78
- var Input = _styled.default.input(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n width: 100%;\n padding: ", ";\n flex: 1;\n height: 100%;\n border: none;\n color: ", ";\n\n &::placeholder {\n color: ", ";\n }\n\n font-family: inherit;\n outline: none;\n font-size: ", ";\n background-color: transparent;\n position: relative;\n z-index: ", ";\n"])), function (props) {
114
+ var Input = _styled.default.input(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n width: 100%;\n padding: ", ";\n flex: 1;\n height: 100%;\n border: none;\n color: ", ";\n\n &::placeholder {\n color: ", ";\n }\n\n font-family: inherit;\n outline: none;\n font-size: ", ";\n background-color: transparent;\n position: relative;\n z-index: ", ";\n"])), function (props) {
79
115
  return props.withIcon ? props.hiddenContent ? '0 0' : '0 20px 0 0' : props.hiddenContent ? '0 0 0 20px' : '0 20px';
80
116
  }, function (props) {
81
117
  return props.theme.colorMode === 'dark' ? props.theme.colors.neutral.white : props.theme.colors.neutral.black;
@@ -89,7 +125,7 @@ var Input = _styled.default.input(_templateObject8 || (_templateObject8 = _tagge
89
125
 
90
126
  exports.Input = Input;
91
127
 
92
- var InputLabel = _styled.default.label(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n top: 0;\n left: 0;\n height: auto;\n padding: 0 6px;\n position: absolute;\n z-index: ", ";\n pointer-events: none;\n color: ", ";\n background-color: transparent;\n transition: transform 0.2s ease, background-color 0.1s cubic-bezier(0.075, 0.82, 0.165, 1);\n"])), function (props) {
128
+ var InputLabel = _styled.default.label(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n top: 0;\n left: 0;\n height: auto;\n padding: 0 6px;\n position: absolute;\n z-index: ", ";\n pointer-events: none;\n color: ", ";\n background-color: transparent;\n transition: transform 0.2s ease, background-color 0.1s cubic-bezier(0.075, 0.82, 0.165, 1);\n"])), function (props) {
93
129
  return props.theme.zIndex.level1;
94
130
  }, function (props) {
95
131
  return props.hasDisabled ? props.theme.colors.neutral.neutral3 : props.theme.colorMode === 'dark' ? props.theme.colors.neutral.white : props.theme.colors.neutral.black;
@@ -97,39 +133,56 @@ var InputLabel = _styled.default.label(_templateObject9 || (_templateObject9 = _
97
133
 
98
134
  exports.InputLabel = InputLabel;
99
135
 
100
- var Fieldset = _styled.default.fieldset(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n margin: 0;\n top: 0;\n pointer-events: none;\n padding: 0 17px;\n overflow: hidden;\n\n ", "\n\n border-radius: ", ";\n border: 2px solid\n ", ";\n border-left: ", ";\n\n transition: all 0.2s ease;\n"])), function (_ref) {
101
- var alert = _ref.alert,
102
- theme = _ref.theme,
103
- hasDisabled = _ref.hasDisabled;
136
+ var Fieldset = _styled.default.fieldset(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n margin: 0;\n top: 0;\n pointer-events: none;\n padding: 0 17px;\n overflow: hidden;\n\n background-color: ", ";\n\n border-radius: ", ";\n border: 2px solid\n ", ";\n border-left: ", ";\n\n transition: all 0.2s ease;\n"])), function (_ref4) {
137
+ var alert = _ref4.alert,
138
+ theme = _ref4.theme,
139
+ hasDisabled = _ref4.hasDisabled;
104
140
 
105
141
  if (alert && !hasDisabled) {
106
- return (0, _react.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n background-color: ", ";\n "])), theme.colorMode === 'dark' ? theme.colors[alert].dark : theme.colors[alert].blurred);
142
+ return {
143
+ light: theme.colors[alert].blurred,
144
+ dark: theme.colors[alert].dark
145
+ }[theme.colorMode];
107
146
  }
108
147
 
109
148
  if (hasDisabled) {
110
- return (0, _react.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n background-color: ", ";\n "])), theme.colorMode === 'dark' ? theme.colors.neutral.neutral5 : theme.colors.neutral.neutral1);
149
+ return {
150
+ light: theme.colors.neutral.neutral1,
151
+ dark: theme.colors.neutral.neutral4
152
+ }[theme.colorMode];
111
153
  }
112
154
 
113
- return (0, _react.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n background-color: 'transparent';\n "])));
155
+ return 'transparent';
114
156
  }, function (props) {
115
157
  return props.withAddon ? "0 ".concat(props.theme.borderRadius.default, " ").concat(props.theme.borderRadius.default, " 0") : props.theme.borderRadius.default;
116
- }, function (props) {
117
- return props.hasDisabled ? "".concat(props.theme.colors.neutral.neutral2, " !important") : props.alert ? "".concat(props.theme.colors[props.alert].default) : props.theme.colors.neutral.neutral2;
158
+ }, function (_ref5) {
159
+ var theme = _ref5.theme,
160
+ hasDisabled = _ref5.hasDisabled,
161
+ alert = _ref5.alert;
162
+
163
+ if (alert && !hasDisabled) {
164
+ return theme.colors[alert].default;
165
+ }
166
+
167
+ return {
168
+ light: theme.colors.neutral.neutral2,
169
+ dark: theme.colors.neutral.neutral5
170
+ }[theme.colorMode];
118
171
  }, function (props) {
119
172
  return props.withAddon ? 'none !important' : 'auto';
120
173
  });
121
174
 
122
175
  exports.Fieldset = Fieldset;
123
176
 
124
- var Legend = _styled.default.legend(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n padding: 0;\n width: auto;\n max-width: 0.01px;\n font-size: 14px;\n height: 0px;\n visibility: hidden;\n transition: all 0.1s;\n"])));
177
+ var Legend = _styled.default.legend(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n padding: 0;\n width: auto;\n max-width: 0.01px;\n font-size: 14px;\n height: 0px;\n visibility: hidden;\n transition: all 0.1s;\n"])));
125
178
 
126
179
  exports.Legend = Legend;
127
180
 
128
- var LegendText = _styled.default.span(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n padding: 0 2px;\n display: inline-block;\n visibility: hidden;\n"])));
181
+ var LegendText = _styled.default.span(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n padding: 0 2px;\n display: inline-block;\n visibility: hidden;\n"])));
129
182
 
130
183
  exports.LegendText = LegendText;
131
184
 
132
- var HelperText = _styled.default.span(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n font-size: ", ";\n\n color: ", ";\n padding: 0 20px;\n"])), function (props) {
185
+ var HelperText = _styled.default.span(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n font-size: ", ";\n\n color: ", ";\n padding: 0 20px;\n"])), function (props) {
133
186
  return props.theme.fontSizes.xxs;
134
187
  }, function (props) {
135
188
  return props.alert && props.alert !== 'success' ? props.theme.colors[props.alert].default : props.theme.colorMode === 'dark' ? props.theme.colors.neutral.neutral2 : props.theme.colors.neutral.neutral4;
@@ -137,8 +190,35 @@ var HelperText = _styled.default.span(_templateObject16 || (_templateObject16 =
137
190
 
138
191
  exports.HelperText = HelperText;
139
192
 
140
- var AddonElement = _styled.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n padding: 0 20px;\n height: 100%;\n\n background-color: ", ";\n\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ease;\n border: 2px solid transparent;\n border-right: none;\n\n border-radius: ", " 0 0\n ", ";\n"])), function (props) {
141
- return props.alert && !props.hasDisabled ? props.theme.colors[props.alert].default : props.theme.colors.neutral.neutral3;
193
+ var AddonElement = _styled.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n padding: 0 20px;\n height: 100%;\n\n background-color: ", ";\n\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ease;\n border: 2px solid\n ", ";\n border-right: none;\n\n border-radius: ", " 0 0\n ", ";\n"])), function (props) {
194
+ if (props.alert && !props.hasDisabled) {
195
+ return props.theme.colors[props.alert].default;
196
+ }
197
+
198
+ if (props.hasDisabled) {
199
+ return {
200
+ light: props.theme.colors.neutral.neutral2,
201
+ dark: props.theme.colors.neutral.neutral5
202
+ }[props.theme.colorMode];
203
+ }
204
+
205
+ return {
206
+ light: props.theme.colors.neutral.neutral1,
207
+ dark: props.theme.colors.neutral.neutral6
208
+ }[props.theme.colorMode];
209
+ }, function (_ref6) {
210
+ var theme = _ref6.theme,
211
+ hasDisabled = _ref6.hasDisabled,
212
+ alert = _ref6.alert;
213
+
214
+ if (alert && !hasDisabled) {
215
+ return theme.colors[alert].default;
216
+ }
217
+
218
+ return {
219
+ light: theme.colors.neutral.neutral2,
220
+ dark: theme.colors.neutral.neutral5
221
+ }[theme.colorMode];
142
222
  }, function (props) {
143
223
  return props.theme.borderRadius.default;
144
224
  }, function (props) {
@@ -147,10 +227,13 @@ var AddonElement = _styled.default.div(_templateObject17 || (_templateObject17 =
147
227
 
148
228
  exports.AddonElement = AddonElement;
149
229
 
150
- var AddonContent = _styled.default.span(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n font-size: ", ";\n color: ", ";\n"])), function (props) {
230
+ var AddonContent = _styled.default.span(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n font-size: ", ";\n color: ", ";\n"])), function (props) {
151
231
  return props.theme.fontSizes.xs;
152
232
  }, function (props) {
153
- return props.theme.colors.neutral.white;
233
+ return {
234
+ light: props.theme.colors.neutral.black,
235
+ dark: props.theme.colors.neutral.white
236
+ }[props.theme.colorMode];
154
237
  });
155
238
 
156
239
  exports.AddonContent = AddonContent;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/List/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,UAAU;;;mJA6BrB,CAAC;AAEH,eAAO,MAAM,cAAc;;;8HAsBzB,CAAC;AAEH,eAAO,MAAM,eAAe;;;sIAW1B,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/List/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,UAAU;;;mJAiCrB,CAAC;AAEH,eAAO,MAAM,cAAc;;;8HAsBzB,CAAC;AAEH,eAAO,MAAM,eAAe;;;sIAe1B,CAAC"}
@@ -16,7 +16,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
16
16
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
17
17
 
18
18
  var StyledList = _styled.default.ul(function (props) {
19
- return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n list-style: none;\n padding: ", ";\n margin: 0;\n\n border-radius: ", ";\n border: 2px solid ", ";\n box-sizing: border-box;\n\n ", ";\n "])), props.theme.spacingest.xs, props.theme.borderRadius.default, props.theme.colors.neutral.neutral1, props.maxHeight && (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n max-height: ", ";\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n width: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n border-radius: ", ";\n background: ", ";\n }\n "])), props.theme.spacing[props.maxHeight], props.theme.borderRadius.default, props.theme.colors.primary.default));
19
+ return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n list-style: none;\n padding: ", ";\n margin: 0;\n\n border-radius: ", ";\n border: 2px solid\n ", ";\n box-sizing: border-box;\n\n ", ";\n "])), props.theme.spacingest.xs, props.theme.borderRadius.default, {
20
+ light: props.theme.colors.neutral.neutral2,
21
+ dark: props.theme.colors.neutral.neutral5
22
+ }[props.theme.colorMode], props.maxHeight && (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n max-height: ", ";\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n width: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n border-radius: ", ";\n background: ", ";\n }\n "])), props.maxHeight, props.theme.borderRadius.default, props.theme.colors.primary.default));
20
23
  });
21
24
 
22
25
  exports.StyledList = StyledList;
@@ -28,7 +31,10 @@ var StyledListItem = _styled.default.li(function (props) {
28
31
  exports.StyledListItem = StyledListItem;
29
32
 
30
33
  var StyledListTitle = _styled.default.h3(function (props) {
31
- return (0, _react.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin: 0;\n color: ", ";\n font-weight: ", ";\n font-size: ", ";\n padding: ", ";\n border-bottom: 2px solid ", ";\n "])), props.theme.colorMode === 'dark' ? props.theme.colors.neutral.neutral2 : props.theme.colors.neutral.neutral5, props.theme.fontWeight['500'], props.theme.fontSizes.xs, props.theme.spacingest.xs, props.theme.colors.neutral.neutral1);
34
+ return (0, _react.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin: 0;\n color: ", ";\n font-weight: ", ";\n font-size: ", ";\n padding: ", ";\n border-bottom: 2px solid\n ", ";\n "])), props.theme.colorMode === 'dark' ? props.theme.colors.neutral.neutral2 : props.theme.colors.neutral.neutral5, props.theme.fontWeight['500'], props.theme.fontSizes.xs, props.theme.spacingest.xs, {
35
+ light: props.theme.colors.neutral.neutral2,
36
+ dark: props.theme.colors.neutral.neutral5
37
+ }[props.theme.colorMode]);
32
38
  });
33
39
 
34
40
  exports.StyledListTitle = StyledListTitle;
@@ -1,7 +1,6 @@
1
- import { ExtendThemeProps } from 'src';
2
1
  export declare type IListComponent = {
3
2
  title?: string;
4
- maxHeight?: keyof ExtendThemeProps['spacing'];
3
+ maxHeight?: string;
5
4
  item?: boolean;
6
5
  };
7
6
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/List/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAEvC,oBAAY,cAAc,GAAG;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAC9C,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/List/types.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc,GAAG;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { IModalProps } from './types';
3
- export declare function Modal({ open, left, top, anchorX, anchorY, offsetX, offsetY, maxWidth, onClose, children, }: IModalProps): JSX.Element;
3
+ export declare function Modal({ open, left, top, anchorX, anchorY, offsetX, offsetY, hideScrollBar, maxWidth, maxHeight, onClose, children, }: IModalProps): JSX.Element;
4
4
  //# sourceMappingURL=index.d.ts.map