@tecsinapse/react-web-kit 1.8.0 → 1.10.2

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 (91) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/dist/components/atoms/Button/Button.d.ts +3 -3
  3. package/dist/components/atoms/Button/Button.js.map +1 -1
  4. package/dist/components/atoms/Input/Input.js +5 -3
  5. package/dist/components/atoms/Input/Input.js.map +1 -1
  6. package/dist/components/atoms/Table/Header/THead.js +2 -2
  7. package/dist/components/atoms/Table/Header/THead.js.map +1 -1
  8. package/dist/components/atoms/Tooltip/Tooltip.d.ts +12 -0
  9. package/dist/components/atoms/Tooltip/Tooltip.js +50 -0
  10. package/dist/components/atoms/Tooltip/Tooltip.js.map +1 -0
  11. package/dist/components/atoms/Tooltip/index.d.ts +1 -0
  12. package/dist/components/atoms/Tooltip/index.js +24 -0
  13. package/dist/components/atoms/Tooltip/index.js.map +1 -0
  14. package/dist/components/atoms/Tooltip/styled.d.ts +9 -0
  15. package/dist/components/atoms/Tooltip/styled.js +140 -0
  16. package/dist/components/atoms/Tooltip/styled.js.map +1 -0
  17. package/dist/components/molecules/Drawer/styled.js.map +1 -1
  18. package/dist/components/molecules/InputPassword/InputPassword.js +5 -3
  19. package/dist/components/molecules/InputPassword/InputPassword.js.map +1 -1
  20. package/dist/components/molecules/Menubar/Menubar.js +1 -1
  21. package/dist/components/molecules/Menubar/Menubar.js.map +1 -1
  22. package/dist/components/molecules/Select/Dropdown/Dropdown.d.ts +1 -1
  23. package/dist/components/molecules/Select/Dropdown/Dropdown.js +39 -26
  24. package/dist/components/molecules/Select/Dropdown/Dropdown.js.map +1 -1
  25. package/dist/components/molecules/Select/Dropdown/components/SearchInput.d.ts +8 -0
  26. package/dist/components/molecules/Select/Dropdown/components/SearchInput.js +43 -0
  27. package/dist/components/molecules/Select/Dropdown/components/SearchInput.js.map +1 -0
  28. package/dist/components/molecules/Select/Dropdown/components/index.d.ts +1 -0
  29. package/dist/components/molecules/Select/Dropdown/components/index.js +16 -0
  30. package/dist/components/molecules/Select/Dropdown/components/index.js.map +1 -0
  31. package/dist/components/molecules/Select/Dropdown/styled.d.ts +2 -1
  32. package/dist/components/molecules/Select/Dropdown/styled.js +6 -3
  33. package/dist/components/molecules/Select/Dropdown/styled.js.map +1 -1
  34. package/dist/components/molecules/Select/Select.d.ts +2 -1
  35. package/dist/components/molecules/Select/Select.js +9 -11
  36. package/dist/components/molecules/Select/Select.js.map +1 -1
  37. package/dist/components/molecules/Select/SelectItem/SelectItem.d.ts +3 -3
  38. package/dist/components/molecules/Select/SelectItem/SelectItem.js +10 -9
  39. package/dist/components/molecules/Select/SelectItem/SelectItem.js.map +1 -1
  40. package/dist/components/molecules/Select/functions.d.ts +1 -1
  41. package/dist/components/molecules/Select/functions.js +1 -1
  42. package/dist/components/molecules/Select/functions.js.map +1 -1
  43. package/dist/components/molecules/Select/styled.d.ts +4 -3
  44. package/dist/components/molecules/Select/styled.js +16 -1
  45. package/dist/components/molecules/Select/styled.js.map +1 -1
  46. package/dist/components/molecules/TextArea/TextArea.d.ts +1 -2
  47. package/dist/components/molecules/TextArea/TextArea.js.map +1 -1
  48. package/dist/components/organisms/DataGrid/DataGrid.js +1 -1
  49. package/dist/components/organisms/DataGrid/DataGrid.js.map +1 -1
  50. package/dist/components/organisms/DataGrid/Footer/Footer.js +2 -1
  51. package/dist/components/organisms/DataGrid/Footer/Footer.js.map +1 -1
  52. package/dist/components/organisms/DataGrid/Header/Header.js.map +1 -1
  53. package/dist/components/organisms/DataGrid/Header/utils.d.ts +6 -8
  54. package/dist/components/organisms/DataGrid/Header/utils.js.map +1 -1
  55. package/dist/components/organisms/DataGrid/types.d.ts +2 -1
  56. package/dist/hooks/useClickAwayListener.d.ts +1 -1
  57. package/dist/hooks/useClickAwayListener.js +3 -3
  58. package/dist/hooks/useClickAwayListener.js.map +1 -1
  59. package/dist/index.d.ts +1 -0
  60. package/dist/index.js +17 -1
  61. package/dist/index.js.map +1 -1
  62. package/package.json +3 -3
  63. package/src/components/atoms/Button/Button.tsx +3 -3
  64. package/src/components/atoms/Input/Input.stories.tsx +1 -1
  65. package/src/components/atoms/Input/Input.tsx +65 -57
  66. package/src/components/atoms/Table/Header/THead.tsx +1 -1
  67. package/src/components/atoms/Tooltip/Tooltip.stories.tsx +30 -0
  68. package/src/components/atoms/Tooltip/Tooltip.tsx +51 -0
  69. package/src/components/atoms/Tooltip/index.ts +1 -0
  70. package/src/components/atoms/Tooltip/styled.ts +158 -0
  71. package/src/components/molecules/Drawer/styled.ts +1 -1
  72. package/src/components/molecules/InputPassword/InputPassword.stories.tsx +1 -1
  73. package/src/components/molecules/InputPassword/InputPassword.tsx +24 -22
  74. package/src/components/molecules/Menubar/Menubar.tsx +1 -1
  75. package/src/components/molecules/Select/Dropdown/Dropdown.tsx +45 -28
  76. package/src/components/molecules/Select/Dropdown/components/SearchInput.tsx +26 -0
  77. package/src/components/molecules/Select/Dropdown/components/index.ts +1 -0
  78. package/src/components/molecules/Select/Dropdown/styled.ts +10 -4
  79. package/src/components/molecules/Select/Select.stories.tsx +42 -16
  80. package/src/components/molecules/Select/Select.tsx +16 -12
  81. package/src/components/molecules/Select/SelectItem/SelectItem.tsx +27 -24
  82. package/src/components/molecules/Select/functions.ts +10 -18
  83. package/src/components/molecules/Select/{styled.ts → styled.tsx} +11 -1
  84. package/src/components/molecules/TextArea/TextArea.tsx +1 -2
  85. package/src/components/organisms/DataGrid/DataGrid.tsx +14 -12
  86. package/src/components/organisms/DataGrid/Footer/Footer.tsx +1 -0
  87. package/src/components/organisms/DataGrid/Header/Header.tsx +2 -2
  88. package/src/components/organisms/DataGrid/Header/utils.ts +15 -5
  89. package/src/components/organisms/DataGrid/types.ts +3 -1
  90. package/src/hooks/useClickAwayListener.ts +5 -4
  91. package/src/index.ts +1 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,70 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.10.2](https://github.com/tecsinapse/design-system/compare/@tecsinapse/react-web-kit@1.10.1...@tecsinapse/react-web-kit@1.10.2) (2021-10-08)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * all elements selected when applying search ([3ca5293](https://github.com/tecsinapse/design-system/commit/3ca5293fb6623fe87d3e92d7032040804946737b))
12
+
13
+
14
+
15
+
16
+
17
+ ## [1.10.1](https://github.com/tecsinapse/design-system/compare/@tecsinapse/react-web-kit@1.10.0...@tecsinapse/react-web-kit@1.10.1) (2021-10-08)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * individual selection not working after select all elements ([ea0f64a](https://github.com/tecsinapse/design-system/commit/ea0f64ab940fb7e5797682b55e8f4f8d696c1961))
23
+ * individual selection not working after select all elements ([b82641f](https://github.com/tecsinapse/design-system/commit/b82641f57c9fae4abf523ba07aef4bd06210b1ae))
24
+ * **select:** check for value changes for select all ([37146c1](https://github.com/tecsinapse/design-system/commit/37146c1d449229292bdabe0138570e812c247ddd))
25
+
26
+
27
+
28
+
29
+
30
+ # [1.10.0](https://github.com/tecsinapse/design-system/compare/@tecsinapse/react-web-kit@1.9.0...@tecsinapse/react-web-kit@1.10.0) (2021-10-01)
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * **data grid:** hide footer on no data ([dc4eb41](https://github.com/tecsinapse/design-system/commit/dc4eb41689addd41c12c5d22e3c528b3f9f169de))
36
+ * button interface build ([d919620](https://github.com/tecsinapse/design-system/commit/d9196201d158745bd895ded084252cf4fe425265))
37
+ * Rename mask interface to avoid mismatch ([589ce1e](https://github.com/tecsinapse/design-system/commit/589ce1e3a63dff4334b48f218d3918dfb2837026))
38
+
39
+
40
+ ### Features
41
+
42
+ * **tooltip:** add tooltip ([3b581fa](https://github.com/tecsinapse/design-system/commit/3b581fa3a611afaf07107a51ac908bef288a51a4))
43
+
44
+
45
+
46
+
47
+
48
+ # [1.9.0](https://github.com/tecsinapse/design-system/compare/@tecsinapse/react-web-kit@1.8.0...@tecsinapse/react-web-kit@1.9.0) (2021-09-29)
49
+
50
+
51
+ ### Bug Fixes
52
+
53
+ * **select/web:** searchbar on single mode ([aad7801](https://github.com/tecsinapse/design-system/commit/aad780124899ba8d87e36ece54ee5aff6b5c92f9))
54
+ * calendar starts on sunday ([d49ef09](https://github.com/tecsinapse/design-system/commit/d49ef09a2af208be888730524495e363a195b091))
55
+
56
+
57
+ ### Features
58
+
59
+ * change select anchor on datagrid ([f3b11d9](https://github.com/tecsinapse/design-system/commit/f3b11d9731e1bf0ddea13c92c2247501c6120255))
60
+
61
+
62
+ ### Performance Improvements
63
+
64
+ * select memo options ([740e8ef](https://github.com/tecsinapse/design-system/commit/740e8eff397e8b5ac7a423b6e76579b42ac6c4b4))
65
+
66
+
67
+
68
+
69
+
6
70
  # [1.8.0](https://github.com/tecsinapse/design-system/compare/@tecsinapse/react-web-kit@1.7.8...@tecsinapse/react-web-kit@1.8.0) (2021-09-28)
7
71
 
8
72
 
@@ -1,8 +1,8 @@
1
1
  import { ButtonProps } from '@tecsinapse/react-core';
2
2
  import { FC } from 'react';
3
- export interface WebButtonProps extends ButtonProps {
3
+ export declare type WebButtonProps = ButtonProps & {
4
4
  onMouseOver?: () => void;
5
5
  onMouseOut?: () => void;
6
- }
7
- declare const Button: FC<ButtonProps>;
6
+ };
7
+ declare const Button: FC<WebButtonProps>;
8
8
  export default Button;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/atoms/Button/Button.tsx"],"names":["Button","children","disabled","frozen","state","rest","_frozen","mouseOver","handleMouseOut","handleMouseOver"],"mappings":";;;;;;;AACA;;AACA;;AACA;;;;;;AAWA,MAAMA,MAAuB,GAAG,CAAC;AAC/BC,EAAAA,QAD+B;AAE/BC,EAAAA,QAF+B;AAG/BC,EAAAA,MAH+B;AAI/BC,EAAAA,KAJ+B;AAK/B,KAAGC;AAL4B,CAAD,KAMb;AACjB,QAAMC,OAAO,GAAGH,MAAM,IAAIC,KAAK,KAAK,SAApC;;AACA,QAAM;AAAEG,IAAAA,SAAF;AAAaC,IAAAA,cAAb;AAA6BC,IAAAA;AAA7B,MAAiD,kCACrD,CAACP,QAAD,IAAa,CAACI,OADuC,CAAvD;AAIA,SACE,6BAAC,uBAAD,eACMD,IADN;AAEE,IAAA,QAAQ,EAAEH,QAFZ;AAGE,IAAA,MAAM,EAAEI,OAHV;AAIE,IAAA,KAAK,EAAEF,KAJT;AAKE,IAAA,WAAW,EAAEK,eALf;AAME,IAAA,UAAU,EAAED,cANd;AAOE,IAAA,SAAS,EAAED;AAPb,MASGN,QATH,CADF;AAaD,CAzBD;;eA2BeD,M","sourcesContent":["import { ButtonProps } from '@tecsinapse/react-core';\nimport React, { FC } from 'react';\nimport { useMouseHover } from './hooks/useMouseHover';\nimport { StyledWebButton } from './styled';\n\n/**\n * TODO: Add a property 'defaultElement' to render a default\n * component and provide some button's state to it.\n */\nexport interface WebButtonProps extends ButtonProps {\n onMouseOver?: () => void;\n onMouseOut?: () => void;\n}\n\nconst Button: FC<ButtonProps> = ({\n children,\n disabled,\n frozen,\n state,\n ...rest\n}): JSX.Element => {\n const _frozen = frozen || state === 'loading';\n const { mouseOver, handleMouseOut, handleMouseOver } = useMouseHover(\n !disabled && !_frozen\n );\n\n return (\n <StyledWebButton\n {...rest}\n disabled={disabled}\n frozen={_frozen}\n state={state}\n onMouseOver={handleMouseOver}\n onMouseOut={handleMouseOut}\n mouseOver={mouseOver}\n >\n {children}\n </StyledWebButton>\n );\n};\n\nexport default Button;\n"],"file":"Button.js"}
1
+ {"version":3,"sources":["../../../../src/components/atoms/Button/Button.tsx"],"names":["Button","children","disabled","frozen","state","rest","_frozen","mouseOver","handleMouseOut","handleMouseOver"],"mappings":";;;;;;;AACA;;AACA;;AACA;;;;;;AAWA,MAAMA,MAA0B,GAAG,CAAC;AAClCC,EAAAA,QADkC;AAElCC,EAAAA,QAFkC;AAGlCC,EAAAA,MAHkC;AAIlCC,EAAAA,KAJkC;AAKlC,KAAGC;AAL+B,CAAD,KAMhB;AACjB,QAAMC,OAAO,GAAGH,MAAM,IAAIC,KAAK,KAAK,SAApC;;AACA,QAAM;AAAEG,IAAAA,SAAF;AAAaC,IAAAA,cAAb;AAA6BC,IAAAA;AAA7B,MAAiD,kCACrD,CAACP,QAAD,IAAa,CAACI,OADuC,CAAvD;AAIA,SACE,6BAAC,uBAAD,eACMD,IADN;AAEE,IAAA,QAAQ,EAAEH,QAFZ;AAGE,IAAA,MAAM,EAAEI,OAHV;AAIE,IAAA,KAAK,EAAEF,KAJT;AAKE,IAAA,WAAW,EAAEK,eALf;AAME,IAAA,UAAU,EAAED,cANd;AAOE,IAAA,SAAS,EAAED;AAPb,MASGN,QATH,CADF;AAaD,CAzBD;;eA2BeD,M","sourcesContent":["import { ButtonProps } from '@tecsinapse/react-core';\nimport React, { FC } from 'react';\nimport { useMouseHover } from './hooks/useMouseHover';\nimport { StyledWebButton } from './styled';\n\n/**\n * TODO: Add a property 'defaultElement' to render a default\n * component and provide some button's state to it.\n */\nexport type WebButtonProps = ButtonProps & {\n onMouseOver?: () => void;\n onMouseOut?: () => void;\n};\n\nconst Button: FC<WebButtonProps> = ({\n children,\n disabled,\n frozen,\n state,\n ...rest\n}): JSX.Element => {\n const _frozen = frozen || state === 'loading';\n const { mouseOver, handleMouseOut, handleMouseOver } = useMouseHover(\n !disabled && !_frozen\n );\n\n return (\n <StyledWebButton\n {...rest}\n disabled={disabled}\n frozen={_frozen}\n state={state}\n onMouseOver={handleMouseOver}\n onMouseOut={handleMouseOut}\n mouseOver={mouseOver}\n >\n {children}\n </StyledWebButton>\n );\n};\n\nexport default Button;\n"],"file":"Button.js"}
@@ -17,7 +17,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
17
17
 
18
18
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
19
 
20
- const Input = ({
20
+ const Input = _react.default.forwardRef(({
21
21
  label,
22
22
  labelColor,
23
23
  labelColorVariant,
@@ -38,7 +38,7 @@ const Input = ({
38
38
  onFocus,
39
39
  onBlur,
40
40
  ...rest
41
- }) => {
41
+ }, ref) => {
42
42
  const _hint = hintComponent || _react.default.createElement(_reactCore.Hint, {
43
43
  text: hint,
44
44
  variant: variant
@@ -68,12 +68,14 @@ const Input = ({
68
68
  disabled: disabled,
69
69
  variant: variant
70
70
  }, _react.default.createElement(_styled.StyledWebTextInput, _extends({}, rest, {
71
+ ref: ref,
71
72
  disabled: disabled,
72
73
  onFocus: handleFocus,
73
74
  onBlur: handleBlur
74
75
  }))), hint && _hint);
75
- };
76
+ });
76
77
 
78
+ Input.displayName = 'Input';
77
79
  var _default = Input;
78
80
  exports.default = _default;
79
81
  //# sourceMappingURL=Input.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/atoms/Input/Input.tsx"],"names":["Input","label","labelColor","labelColorVariant","labelColorTone","labelTypography","labelStack","labelWeight","leftComponent","rightComponent","disabled","style","borderColor","borderColorGradation","inputContainerStyle","variant","hintComponent","hint","onFocus","onBlur","rest","_hint","focused","handleBlur","handleFocus"],"mappings":";;;;;;;AAAA;;AAOA;;AACA;;AACA;;;;;;AAMA,MAAMA,KAAwB,GAAG,CAAC;AAChCC,EAAAA,KADgC;AAEhCC,EAAAA,UAFgC;AAGhCC,EAAAA,iBAHgC;AAIhCC,EAAAA,cAJgC;AAKhCC,EAAAA,eALgC;AAMhCC,EAAAA,UANgC;AAOhCC,EAAAA,WAPgC;AAQhCC,EAAAA,aARgC;AAShCC,EAAAA,cATgC;AAUhCC,EAAAA,QAVgC;AAWhCC,EAAAA,KAXgC;AAYhCC,EAAAA,WAZgC;AAahCC,EAAAA,oBAbgC;AAchCC,EAAAA,mBAdgC;AAehCC,EAAAA,OAAO,GAAG,SAfsB;AAgBhCC,EAAA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';\nimport React, { FC } from 'react';\nimport { View } from 'react-native';\nimport { StyledWebTextInput } from './styled';\n\nexport interface InputWebProps\n extends Omit<InputElementProps, 'style'>,\n InputContainerProps {}\n\nconst Input: FC<InputWebProps> = ({\n label,\n labelColor,\n labelColorVariant,\n labelColorTone,\n labelTypography,\n labelStack,\n labelWeight,\n leftComponent,\n rightComponent,\n disabled,\n style,\n borderColor,\n borderColorGradation,\n inputContainerStyle,\n variant = 'default',\n hintComponent,\n hint,\n onFocus,\n onBlur,\n ...rest\n}) => {\n const _hint = hintComponent || <Hint text={hint} variant={variant} />;\n const { focused, handleBlur, handleFocus } = useInputFocus(\n onFocus,\n onBlur,\n !disabled\n );\n\n return (\n <View style={style}>\n <InputContainer\n label={label}\n labelColor={labelColor}\n labelColorVariant={labelColorVariant}\n labelColorTone={labelColorTone}\n labelTypography={labelTypography}\n labelStack={labelStack}\n labelWeight={labelWeight}\n leftComponent={leftComponent}\n rightComponent={rightComponent}\n borderColor={borderColor}\n borderColorGradation={borderColorGradation}\n inputContainerStyle={inputContainerStyle}\n focused={focused}\n disabled={disabled}\n variant={variant}\n >\n <StyledWebTextInput\n {...rest}\n disabled={disabled}\n onFocus={handleFocus}\n onBlur={handleBlur}\n />\n </InputContainer>\n {hint && _hint}\n </View>\n );\n};\n\nexport default Input;\n"],"file":"Input.js"}
1
+ {"version":3,"sources":["../../../../src/components/atoms/Input/Input.tsx"],"names":["Input","React","forwardRef","label","labelColor","labelColorVariant","labelColorTone","labelTypography","labelStack","labelWeight","leftComponent","rightComponent","disabled","style","borderColor","borderColorGradation","inputContainerStyle","variant","hintComponent","hint","onFocus","onBlur","rest","ref","_hint","focused","handleBlur","handleFocus","displayName"],"mappings":";;;;;;;AAAA;;AAOA;;AACA;;AACA;;;;;;AAMA,MAAMA,KAAwB,GAAGC,eAAMC,UAAN,CAC/B,CACE;AACEC,EAAAA,KADF;AAEEC,EAAAA,UAFF;AAGEC,EAAAA,iBAHF;AAIEC,EAAAA,cAJF;AAK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,IAAA,GAAG,EAAEC,GAFP;AAGE,IAAA,QAAQ,EAAEX,QAHZ;AAIE,IAAA,OAAO,EAAEe,WAJX;AAKE,IAAA,MAAM,EAAED;AALV,KAjBF,CADF,EA0BGP,IAAI,IAAIK,KA1BX,CADF;AA8BD,CA/D8B,CAAjC;;AAkEAxB,KAAK,CAAC4B,WAAN,GAAoB,OAApB;eAEe5B,K","sourcesContent":["import {\n Hint,\n InputContainer,\n InputContainerProps,\n InputElementProps,\n useInputFocus,\n} from '@tecsinapse/react-core';\nimport React, { FC } from 'react';\nimport { View } from 'react-native';\nimport { StyledWebTextInput } from './styled';\n\nexport interface InputWebProps\n extends Omit<InputElementProps, 'style'>,\n InputContainerProps {}\n\nconst Input: FC<InputWebProps> = React.forwardRef(\n (\n {\n label,\n labelColor,\n labelColorVariant,\n labelColorTone,\n labelTypography,\n labelStack,\n labelWeight,\n leftComponent,\n rightComponent,\n disabled,\n style,\n borderColor,\n borderColorGradation,\n inputContainerStyle,\n variant = 'default',\n hintComponent,\n hint,\n onFocus,\n onBlur,\n ...rest\n },\n ref\n ) => {\n const _hint = hintComponent || <Hint text={hint} variant={variant} />;\n const { focused, handleBlur, handleFocus } = useInputFocus(\n onFocus,\n onBlur,\n !disabled\n );\n\n return (\n <View style={style}>\n <InputContainer\n label={label}\n labelColor={labelColor}\n labelColorVariant={labelColorVariant}\n labelColorTone={labelColorTone}\n labelTypography={labelTypography}\n labelStack={labelStack}\n labelWeight={labelWeight}\n leftComponent={leftComponent}\n rightComponent={rightComponent}\n borderColor={borderColor}\n borderColorGradation={borderColorGradation}\n inputContainerStyle={inputContainerStyle}\n focused={focused}\n disabled={disabled}\n variant={variant}\n >\n <StyledWebTextInput\n {...rest}\n ref={ref}\n disabled={disabled}\n onFocus={handleFocus}\n onBlur={handleBlur}\n />\n </InputContainer>\n {hint && _hint}\n </View>\n );\n }\n);\n\nInput.displayName = 'Input';\n\nexport default Input;\n"],"file":"Input.js"}
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _styled = require("./styled");
11
11
 
12
- var _Tr = _interopRequireDefault(require("../Row/Tr"));
12
+ var _Tr = require("../Row/Tr");
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
@@ -17,7 +17,7 @@ const THead = ({
17
17
  children,
18
18
  ...rest
19
19
  }) => {
20
- return _react.default.createElement(_styled.THeadStyled, rest, children, _react.default.createElement(_Tr.default, null, _react.default.createElement("td", {
20
+ return _react.default.createElement(_styled.THeadStyled, rest, children, _react.default.createElement(_Tr.Tr, null, _react.default.createElement("td", {
21
21
  colSpan: 99
22
22
  }, _react.default.createElement(_styled.HeaderBackground, null))));
23
23
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/components/atoms/Table/Header/THead.tsx"],"names":["THead","children","rest"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;AAEA,MAAMA,KAA8D,GAAG,CAAC;AACtEC,EAAAA,QADsE;AAEtE,KAAGC;AAFmE,CAAD,KAGjE;AACJ,SACE,6BAAC,mBAAD,EAAiBA,IAAjB,EACGD,QADH,EAEE,6BAAC,WAAD,QACE;AAAI,IAAA,OAAO,EAAE;AAAb,KACE,6BAAC,wBAAD,OADF,CADF,CAFF,CADF;AAUD,CAdD;;eAgBeD,K","sourcesContent":["import React from 'react';\nimport { HeaderBackground, THeadStyled } from './styled';\nimport Tr from '../Row/Tr';\n\nconst THead: React.FC<React.HTMLAttributes<HTMLTableSectionElement>> = ({\n children,\n ...rest\n}) => {\n return (\n <THeadStyled {...rest}>\n {children}\n <Tr>\n <td colSpan={99}>\n <HeaderBackground />\n </td>\n </Tr>\n </THeadStyled>\n );\n};\n\nexport default THead;\n"],"file":"THead.js"}
1
+ {"version":3,"sources":["../../../../../src/components/atoms/Table/Header/THead.tsx"],"names":["THead","children","rest"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;AAEA,MAAMA,KAA8D,GAAG,CAAC;AACtEC,EAAAA,QADsE;AAEtE,KAAGC;AAFmE,CAAD,KAGjE;AACJ,SACE,6BAAC,mBAAD,EAAiBA,IAAjB,EACGD,QADH,EAEE,6BAAC,MAAD,QACE;AAAI,IAAA,OAAO,EAAE;AAAb,KACE,6BAAC,wBAAD,OADF,CADF,CAFF,CADF;AAUD,CAdD;;eAgBeD,K","sourcesContent":["import React from 'react';\nimport { HeaderBackground, THeadStyled } from './styled';\nimport { Tr } from '../Row/Tr';\n\nconst THead: React.FC<React.HTMLAttributes<HTMLTableSectionElement>> = ({\n children,\n ...rest\n}) => {\n return (\n <THeadStyled {...rest}>\n {children}\n <Tr>\n <td colSpan={99}>\n <HeaderBackground />\n </td>\n </Tr>\n </THeadStyled>\n );\n};\n\nexport default THead;\n"],"file":"THead.js"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export declare type ComputedType = {
3
+ width?: number;
4
+ height?: number;
5
+ };
6
+ export declare type Position = 'top' | 'bottom' | 'right' | 'left';
7
+ export interface ITooltip {
8
+ title: string;
9
+ position?: Position;
10
+ }
11
+ declare const Tooltip: React.FC<ITooltip>;
12
+ export default Tooltip;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _reactCore = require("@tecsinapse/react-core");
11
+
12
+ var _styled = require("./styled");
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ const Tooltip = ({
17
+ children,
18
+ title,
19
+ position = 'bottom'
20
+ }) => {
21
+ const spanRef = _react.default.useRef();
22
+
23
+ const [computed, setComputed] = _react.default.useState(undefined);
24
+
25
+ _react.default.useLayoutEffect(() => {
26
+ var _spanRef$current, _spanRef$current2;
27
+
28
+ setComputed({
29
+ width: (_spanRef$current = spanRef.current) === null || _spanRef$current === void 0 ? void 0 : _spanRef$current.clientWidth,
30
+ height: (_spanRef$current2 = spanRef.current) === null || _spanRef$current2 === void 0 ? void 0 : _spanRef$current2.clientHeight
31
+ });
32
+ }, []);
33
+
34
+ return _react.default.createElement(_styled.Container, {
35
+ position: position
36
+ }, children, _react.default.createElement(_styled.TooltipSpan, {
37
+ computed: computed,
38
+ position: position,
39
+ ref: ref => spanRef.current = ref
40
+ }, _react.default.createElement(_reactCore.Text, {
41
+ fontWeight: "bold",
42
+ typography: "base",
43
+ colorVariant: "secondary",
44
+ colorTone: "xlight"
45
+ }, title)));
46
+ };
47
+
48
+ var _default = Tooltip;
49
+ exports.default = _default;
50
+ //# sourceMappingURL=Tooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/atoms/Tooltip/Tooltip.tsx"],"names":["Tooltip","children","title","position","spanRef","React","useRef","computed","setComputed","useState","undefined","useLayoutEffect","width","current","clientWidth","height","clientHeight","ref"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;AAUA,MAAMA,OAA2B,GAAG,CAAC;AACnCC,EAAAA,QADmC;AAEnCC,EAAAA,KAFmC;AAGnCC,EAAAA,QAAQ,GAAG;AAHwB,CAAD,KAI9B;AACJ,QAAMC,OAAO,GAAGC,eAAMC,MAAN,EAAhB;;AACA,QAAM,CAACC,QAAD,EAAWC,WAAX,IAA0BH,eAAMI,QAAN,CAC9BC,SAD8B,CAAhC;;AAIAL,iBAAMM,eAAN,CAAsB,MAAM;AAAA;;AAC1BH,IAAAA,WAAW,CAAC;AACVI,MAAAA,KAAK,sBAAER,OAAO,CAACS,OAAV,qDAAE,iBAAiBC,WADd;AAEVC,MAAAA,MAAM,uBAAEX,OAAO,CAACS,OAAV,sDAAE,kBAAiBG;AAFf,KAAD,CAAX;AAID,GALD,EAKG,EALH;;AAOA,SACE,6BAAC,iBAAD;AAAW,IAAA,QAAQ,EAAEb;AAArB,KACGF,QADH,EAEE,6BAAC,mBAAD;AACE,IAAA,QAAQ,EAAEM,QADZ;AAEE,IAAA,QAAQ,EAAEJ,QAFZ;AAGE,IAAA,GAAG,EAAEc,GAAG,IAAKb,OAAO,CAACS,OAAR,GAAkBI;AAHjC,KAKE,6BAAC,eAAD;AACE,IAAA,UAAU,EAAC,MADb;AAEE,IAAA,UAAU,EAAC,MAFb;AAGE,IAAA,YAAY,EAAC,WAHf;AAIE,IAAA,SAAS,EAAC;AAJZ,KAMGf,KANH,CALF,CAFF,CADF;AAmBD,CApCD;;eAsCeF,O","sourcesContent":["import React from 'react';\nimport { Text } from '@tecsinapse/react-core';\nimport { Container, TooltipSpan } from './styled';\n\nexport type ComputedType = { width?: number; height?: number };\nexport type Position = 'top' | 'bottom' | 'right' | 'left';\n\nexport interface ITooltip {\n title: string;\n position?: Position;\n}\n\nconst Tooltip: React.FC<ITooltip> = ({\n children,\n title,\n position = 'bottom',\n}) => {\n const spanRef = React.useRef<HTMLSpanElement | null>();\n const [computed, setComputed] = React.useState<ComputedType | undefined>(\n undefined\n );\n\n React.useLayoutEffect(() => {\n setComputed({\n width: spanRef.current?.clientWidth,\n height: spanRef.current?.clientHeight,\n });\n }, []);\n\n return (\n <Container position={position}>\n {children}\n <TooltipSpan\n computed={computed}\n position={position}\n ref={ref => (spanRef.current = ref)}\n >\n <Text\n fontWeight=\"bold\"\n typography=\"base\"\n colorVariant=\"secondary\"\n colorTone=\"xlight\"\n >\n {title}\n </Text>\n </TooltipSpan>\n </Container>\n );\n};\n\nexport default Tooltip;\n"],"file":"Tooltip.js"}
@@ -0,0 +1 @@
1
+ export { default as Tooltip, ITooltip } from './Tooltip';
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "Tooltip", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _Tooltip.default;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "ITooltip", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _Tooltip.ITooltip;
16
+ }
17
+ });
18
+
19
+ var _Tooltip = _interopRequireWildcard(require("./Tooltip"));
20
+
21
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
22
+
23
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/atoms/Tooltip/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA","sourcesContent":["export { default as Tooltip, ITooltip } from './Tooltip';\n"],"file":"index.js"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { Position } from './Tooltip';
3
+ export declare const TooltipSpan: import("@emotion/styled").StyledComponent<any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
+ export declare const Container: import("@emotion/styled").StyledComponent<{
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ } & {
8
+ position?: Position | undefined;
9
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Container = exports.TooltipSpan = void 0;
7
+
8
+ var _react = require("@emotion/react");
9
+
10
+ var _styled = _interopRequireDefault(require("@emotion/styled"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ const bottomOrTopStylesCommon = (width, position) => ['top', 'bottom'].includes(position) && (0, _react.css)`
15
+ left: 50%;
16
+ margin-left: -${width / 2}px;
17
+ `;
18
+
19
+ const bottomOrTopArrowCommon = position => ['top', 'bottom'].includes(position) && (0, _react.css)`
20
+ left: 50%;
21
+ margin-left: -5px;
22
+ `;
23
+
24
+ const topStyles = (theme, position) => position === 'top' && (0, _react.css)`
25
+ bottom: 100%;
26
+ margin-bottom: ${theme.spacing.centi};
27
+ transform: translateY(10%);
28
+ `;
29
+
30
+ const topArrow = (theme, position) => position === 'top' && (0, _react.css)`
31
+ top: 100%;
32
+ border-color: ${theme.color.secondary.xdark} transparent transparent
33
+ transparent;
34
+ `;
35
+
36
+ const bottomStyles = (theme, position) => position === 'bottom' && (0, _react.css)`
37
+ top: 100%;
38
+ margin-top: ${theme.spacing.centi};
39
+ transform: translateY(-10%);
40
+ `;
41
+
42
+ const bottomArrow = (theme, position) => position === 'bottom' && (0, _react.css)`
43
+ bottom: 100%;
44
+ border-color: transparent transparent ${theme.color.secondary.xdark}
45
+ transparent;
46
+ `;
47
+
48
+ const leftAndRightCommonStyles = (height, position) => ['right', 'left'].includes(position) && (0, _react.css)`
49
+ top: 50%;
50
+ margin-top: -${height / 2}px;
51
+ `;
52
+
53
+ const leftOrRightArrowCommon = position => ['right', 'left'].includes(position) && (0, _react.css)`
54
+ top: 50%;
55
+ margin-top: -5px;
56
+ `;
57
+
58
+ const leftStyles = (theme, position) => position === 'left' && (0, _react.css)`
59
+ right: 100%;
60
+ margin-right: ${theme.spacing.centi};
61
+ transform: translateX(10%);
62
+ `;
63
+
64
+ const leftArrow = (theme, position) => position === 'left' && (0, _react.css)`
65
+ left: 100%;
66
+ border-color: transparent transparent transparent
67
+ ${theme.color.secondary.xdark};
68
+ `;
69
+
70
+ const rightStyles = (theme, position) => position === 'right' && (0, _react.css)`
71
+ left: 100%;
72
+ margin-left: ${theme.spacing.centi};
73
+ transform: translateX(-10%);
74
+ `;
75
+
76
+ const rightArrow = (theme, position) => position === 'right' && (0, _react.css)`
77
+ right: 100%;
78
+ border-color: transparent ${theme.color.secondary.xdark} transparent
79
+ transparent;
80
+ `;
81
+
82
+ const TooltipSpan = (0, _styled.default)('span')(({
83
+ theme,
84
+ computed,
85
+ position
86
+ }) => {
87
+ const {
88
+ width = 0,
89
+ height = 0
90
+ } = computed || {};
91
+ return (0, _react.css)`
92
+ position: absolute;
93
+ padding: ${theme.spacing.micro} ${theme.spacing.centi};
94
+ border-radius: ${theme.borderRadius.mili};
95
+ opacity: 0;
96
+ visibility: hidden;
97
+ transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
98
+ background-color: ${theme.color.secondary.xdark};
99
+ z-index: ${theme.zIndex.absolute};
100
+
101
+ ${bottomOrTopStylesCommon(width, position)}
102
+ ${bottomStyles(theme, position)}
103
+ ${topStyles(theme, position)}
104
+
105
+ ${leftAndRightCommonStyles(height, position)}
106
+ ${leftStyles(theme, position)}
107
+ ${rightStyles(theme, position)}
108
+
109
+ &::after {
110
+ content: '';
111
+ position: absolute;
112
+ border-style: solid;
113
+ border-width: 5px;
114
+
115
+ ${bottomOrTopArrowCommon(position)}
116
+ ${bottomArrow(theme, position)}
117
+ ${topArrow(theme, position)}
118
+
119
+ ${leftOrRightArrowCommon(position)}
120
+ ${leftArrow(theme, position)}
121
+ ${rightArrow(theme, position)}
122
+ }
123
+ `;
124
+ });
125
+ exports.TooltipSpan = TooltipSpan;
126
+ const Container = (0, _styled.default)('div')`
127
+ position: relative;
128
+ &:hover {
129
+ & > span {
130
+ opacity: 1;
131
+ visibility: visible;
132
+
133
+ transform: ${({
134
+ position
135
+ }) => position === 'left' || position === 'right' ? 'translateX(0%)' : 'translateY(0%)'};
136
+ }
137
+ }
138
+ `;
139
+ exports.Container = Container;
140
+ //# sourceMappingURL=styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/atoms/Tooltip/styled.ts"],"names":["bottomOrTopStylesCommon","width","position","includes","bottomOrTopArrowCommon","topStyles","theme","spacing","centi","topArrow","color","secondary","xdark","bottomStyles","bottomArrow","leftAndRightCommonStyles","height","leftOrRightArrowCommon","leftStyles","leftArrow","rightStyles","rightArrow","TooltipSpan","computed","micro","borderRadius","mili","zIndex","absolute","Container"],"mappings":";;;;;;;AAAA;;AAEA;;;;AAMA,MAAMA,uBAAuB,GAAG,CAACC,KAAD,EAAgBC,QAAhB,KAC9B,CAAC,KAAD,EAAQ,QAAR,EAAkBC,QAAlB,CAA2BD,QAA3B,KACA,eAAI;AACN;AACA,oBAAoBD,KAAK,GAAG,CAAE;AAC9B,GALA;;AAOA,MAAMG,sBAAsB,GAAIF,QAAD,IAC7B,CAAC,KAAD,EAAQ,QAAR,EAAkBC,QAAlB,CAA2BD,QAA3B,KACA,eAAI;AACN;AACA;AACA,GALA;;AAQA,MAAMG,SAAS,GAAG,CAACC,KAAD,EAAmBJ,QAAnB,KAChBA,QAAQ,KAAK,KAAb,IACA,eAAI;AACN;AACA,qBAAqBI,KAAK,CAACC,OAAN,CAAcC,KAAM;AACzC;AACA,GANA;;AAQA,MAAMC,QAAQ,GAAG,CAACH,KAAD,EAAmBJ,QAAnB,KACfA,QAAQ,KAAK,KAAb,IACA,eAAI;AACN;AACA,oBAAoBI,KAAK,CAACI,KAAN,CAAYC,SAAZ,CAAsBC,KAAM;AAChD;AACA,GANA;;AASA,MAAMC,YAAY,GAAG,CAACP,KAAD,EAAmBJ,QAAnB,KACnBA,QAAQ,KAAK,QAAb,IACA,eAAI;AACN;AACA,kBAAkBI,KAAK,CAACC,OAAN,CAAcC,KAAM;AACtC;AACA,GANA;;AAQ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mB,CAAC;AAAE3B,EAAAA;AAAF,CAAD,KACXA,QAAQ,KAAK,MAAb,IAAuBA,QAAQ,KAAK,OAApC,GACI,gBADJ,GAEI,gBAAiB;AAC7B;AACA;AACA,CAbO","sourcesContent":["import { css } from '@emotion/react';\nimport { StyleProps, ThemeProp } from '@tecsinapse/react-core';\nimport styled from '@emotion/styled';\nimport { ComputedType, Position } from './Tooltip';\n\ntype InjectedProps = { computed?: ComputedType; position?: Position };\n\n/** Bottom/Top commons */\nconst bottomOrTopStylesCommon = (width: number, position) =>\n ['top', 'bottom'].includes(position as Position) &&\n css`\n left: 50%;\n margin-left: -${width / 2}px;\n `;\n\nconst bottomOrTopArrowCommon = (position?: Position) =>\n ['top', 'bottom'].includes(position as Position) &&\n css`\n left: 50%;\n margin-left: -5px;\n `;\n\n/** Top */\nconst topStyles = (theme: ThemeProp, position?: Position) =>\n position === 'top' &&\n css`\n bottom: 100%;\n margin-bottom: ${theme.spacing.centi};\n transform: translateY(10%);\n `;\n\nconst topArrow = (theme: ThemeProp, position?: Position) =>\n position === 'top' &&\n css`\n top: 100%;\n border-color: ${theme.color.secondary.xdark} transparent transparent\n transparent;\n `;\n\n/** Bottom */\nconst bottomStyles = (theme: ThemeProp, position?: Position) =>\n position === 'bottom' &&\n css`\n top: 100%;\n margin-top: ${theme.spacing.centi};\n transform: translateY(-10%);\n `;\n\nconst bottomArrow = (theme: ThemeProp, position?: Position) =>\n position === 'bottom' &&\n css`\n bottom: 100%;\n border-color: transparent transparent ${theme.color.secondary.xdark}\n transparent;\n `;\n\n/** Bottom/Top commons */\nconst leftAndRightCommonStyles = (height: number, position?: Position) =>\n ['right', 'left'].includes(position as Position) &&\n css`\n top: 50%;\n margin-top: -${height / 2}px;\n `;\n\nconst leftOrRightArrowCommon = (position?: Position) =>\n ['right', 'left'].includes(position as Position) &&\n css`\n top: 50%;\n margin-top: -5px;\n `;\n\n/** Left */\nconst leftStyles = (theme: ThemeProp, position?: Position) =>\n position === 'left' &&\n css`\n right: 100%;\n margin-right: ${theme.spacing.centi};\n transform: translateX(10%);\n `;\n\nconst leftArrow = (theme: ThemeProp, position?: Position) =>\n position === 'left' &&\n css`\n left: 100%;\n border-color: transparent transparent transparent\n ${theme.color.secondary.xdark};\n `;\n\n/** Right */\nconst rightStyles = (theme: ThemeProp, position?: Position) =>\n position === 'right' &&\n css`\n left: 100%;\n margin-left: ${theme.spacing.centi};\n transform: translateX(-10%);\n `;\n\nconst rightArrow = (theme: ThemeProp, position?: Position) =>\n position === 'right' &&\n css`\n right: 100%;\n border-color: transparent ${theme.color.secondary.xdark} transparent\n transparent;\n `;\n\nexport const TooltipSpan = styled('span')<Partial<StyleProps> & InjectedProps>(\n ({ theme, computed, position }) => {\n const { width = 0, height = 0 } = computed || {};\n return css`\n position: absolute;\n padding: ${theme.spacing.micro} ${theme.spacing.centi};\n border-radius: ${theme.borderRadius.mili};\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s, visibility 0.3s, transform 0.3s;\n background-color: ${theme.color.secondary.xdark};\n z-index: ${theme.zIndex.absolute};\n\n ${bottomOrTopStylesCommon(width, position)}\n ${bottomStyles(theme, position)}\n ${topStyles(theme, position)}\n \n ${leftAndRightCommonStyles(height, position)}\n ${leftStyles(theme, position)}\n ${rightStyles(theme, position)}\n\n &::after {\n content: '';\n position: absolute;\n border-style: solid;\n border-width: 5px;\n\n ${bottomOrTopArrowCommon(position)}\n ${bottomArrow(theme, position)}\n ${topArrow(theme, position)}\n \n ${leftOrRightArrowCommon(position)}\n ${leftArrow(theme, position)}\n ${rightArrow(theme, position)}\n }\n `;\n }\n);\n\nexport const Container = styled('div')<{ position?: Position }>`\n position: relative;\n &:hover {\n & > span {\n opacity: 1;\n visibility: visible;\n\n transform: ${({ position }) =>\n position === 'left' || position === 'right'\n ? 'translateX(0%)'\n : 'translateY(0%)'};\n }\n }\n`;\n"],"file":"styled.js"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/molecules/Drawer/styled.ts"],"names":["anchorLeft","theme","anchorPosition","borderRadius","centi","anchorRight","anchorTop","anchorBottom","baseStyles","includes","miscellaneous","bodyColor","zIndex","drawer","StyledContainerDrawer","props"],"mappings":";;;;;;;AAAA;;AAGA;;;;AAEA,MAAMA,UAAU,GAAG,CAAC;AAAEC,EAAAA,KAAF;AAASC,EAAAA;AAAT,CAAD,KAAyD;AAC1E,SACEA,cAAc,KAAK,MAAnB,IACA,eAAI;AACR;AACA;AACA,iCAAiCD,KAAK,CAACE,YAAN,CAAmBC,KAAM;AAC1D,oCAAoCH,KAAK,CAACE,YAAN,CAAmBC,KAAM;AAC7D,KAPE;AASD,CAVD;;AAWA,MAAMC,WAAW,GAAG,CAAC;AAAEJ,EAAAA,KAAF;AAASC,EAAAA;AAAT,CAAD,KAAyD;AAC3E,SACEA,cAAc,KAAK,OAAnB,IACA,eAAI;AACR;AACA;AACA,gCAAgCD,KAAK,CAACE,YAAN,CAAmBC,KAAM;AACzD,mCAAmCH,KAAK,CAACE,YAAN,CAAmBC,KAAM;AAC5D,KAPE;AASD,CAVD;;AAYA,MAAME,SAAS,GAAG,CAAC;AAAEL,EAAAA,KAAF;AAASC,EAAAA;AAAT,CAAD,KAAyD;AACzE,SACEA,cAAc,KAAK,KAAnB,IACA,eAAI;AACR;AACA;AACA;AACA,oCAAoCD,KAAK,CAACE,YAAN,CAAmBC,KAAM;AAC7D,mCAAmCH,KAAK,CAACE,YAAN,CAAmBC,KAAM;AAC5D,KARE;AAUD,CAXD;;AAaA,MAAMG,YAAY,GAAG,CAAC;AAAEN,EAAAA,KAAF;AAASC,EAAAA;AAAT,CAAD,KAAyD;AAC5E,SACEA,cAAc,KAAK,QAAnB,IACA,eAAI;AACR;AACA;AACA;AACA,iCAAiCD,KAAK,CAACE,YAAN,CAAmBC,KAAM;AAC1D,gCAAgCH,KAAK,CAACE,YAAN,CAAmBC,KAAM;AACzD,KARE;AAUD,CAXD;;AAaA,MAAMI,UAAU,GAAG,CAAC;AAAEP,EAAAA,KAAF;AAASC,EAAAA;AAAT,CAAD,KAAyD;AAC1E,SAAO,eAAI;AACb,cAAc,CAAC,MAAD,EAAS,OAAT,EAAkBO,QAAlB,CAA2BP,cAA3B,KAA8C,OAAQ;AACpE,aAAa,CAAC,KAAD,EAAQ,QAAR,EAAkBO,QAAlB,CAA2BP,cAA3B,KAA8C,OAAQ;AACnE;AACA;AACA,wBAAwBD,KAAK,CAACS,aAAN,CAAoBC,SAAU;AACtD,eAAeV,KAAK,CAACW,MAAN,CAAaC,MAAO;AACnC,GAPE;AAQD,CATD;;AAWO,MAAMC,qBAAqB,GAAG,qBAAO,KAAP,EAGnCC,KAAK,IAAI,eAAI;AACf,MAAMP,UAAU,CAACO,KAAD,CAAQ;AACxB,MAAMR,YAAY,CAACQ,KAAD,CAAQ;AAC1B,MAAMT,SAAS,CAACS,KAAD,CAAQ;AACvB,MAAMf,UAAU,CAACe,KAAD,CAAQ;AACxB,MAAMV,WAAW,CAACU,KAAD,CAAQ;AACzB,GATqC,CAA9B","sourcesContent":["import styled from '@emotion/styled';\nimport { hex2rgba, StyleProps } from '@tecsinapse/react-core';\nimport { DrawerProps } from './Drawer';\nimport { css } from '@emotion/react';\n\nconst anchorLeft = ({ theme, anchorPosition }: StyleProps & DrawerProps) => {\n return (\n anchorPosition === 'left' &&\n css`\n left: 0;\n top: 0;\n border-top-right-radius: ${theme.borderRadius.centi};\n border-bottom-right-radius: ${theme.borderRadius.centi};\n `\n );\n};\nconst anchorRight = ({ theme, anchorPosition }: StyleProps & DrawerProps) => {\n return (\n anchorPosition === 'right' &&\n css`\n right: 0;\n top: 0;\n border-top-left-radius: ${theme.borderRadius.centi};\n border-bottom-left-radius: ${theme.borderRadius.centi};\n `\n );\n};\n\nconst anchorTop = ({ theme, anchorPosition }: StyleProps & DrawerProps) => {\n return (\n anchorPosition === 'top' &&\n css`\n left: 0;\n right: 0;\n top: 0;\n border-bottom-right-radius: ${theme.borderRadius.centi};\n border-bottom-left-radius: ${theme.borderRadius.centi};\n `\n );\n};\n\nconst anchorBottom = ({ theme, anchorPosition }: StyleProps & DrawerProps) => {\n return (\n anchorPosition === 'bottom' &&\n css`\n left: 0;\n right: 0;\n bottom: 0;\n border-top-right-radius: ${theme.borderRadius.centi};\n border-top-left-radius: ${theme.borderRadius.centi};\n `\n );\n};\n\nconst baseStyles = ({ theme, anchorPosition }: StyleProps & DrawerProps) => {\n return css`\n height: ${['left', 'right'].includes(anchorPosition) && '100vh'};\n width: ${['top', 'bottom'].includes(anchorPosition) && '100wh'};\n position: fixed;\n overflow: hidden;\n background-color: ${theme.miscellaneous.bodyColor};\n z-index: ${theme.zIndex.drawer};\n `;\n};\n\nexport const StyledContainerDrawer = styled('div')<\n DrawerProps & Partial<StyleProps>\n>(\n props => css`\n ${baseStyles(props)}\n ${anchorBottom(props)}\n ${anchorTop(props)}\n ${anchorLeft(props)}\n ${anchorRight(props)}\n `\n);\n"],"file":"styled.js"}
1
+ {"version":3,"sources":["../../../../src/components/molecules/Drawer/styled.ts"],"names":["anchorLeft","theme","anchorPosition","borderRadius","centi","anchorRight","anchorTop","anchorBottom","baseStyles","includes","miscellaneous","bodyColor","zIndex","drawer","StyledContainerDrawer","props"],"mappings":";;;;;;;AAAA;;AAGA;;;;AAEA,MAAMA,UAAU,GAAG,CAAC;AAAEC,EAAAA,KAAF;AAASC,EAAAA;AAAT,CAAD,KAAyD;AAC1E,SACEA,cAAc,KAAK,MAAnB,IACA,eAAI;AACR;AACA;AACA,iCAAiCD,KAAK,CAACE,YAAN,CAAmBC,KAAM;AAC1D,oCAAoCH,KAAK,CAACE,YAAN,CAAmBC,KAAM;AAC7D,KAPE;AASD,CAVD;;AAWA,MAAMC,WAAW,GAAG,CAAC;AAAEJ,EAAAA,KAAF;AAASC,EAAAA;AAAT,CAAD,KAAyD;AAC3E,SACEA,cAAc,KAAK,OAAnB,IACA,eAAI;AACR;AACA;AACA,gCAAgCD,KAAK,CAACE,YAAN,CAAmBC,KAAM;AACzD,mCAAmCH,KAAK,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zB,GATqC,CAA9B","sourcesContent":["import styled from '@emotion/styled';\nimport { StyleProps } from '@tecsinapse/react-core';\nimport { DrawerProps } from './Drawer';\nimport { css } from '@emotion/react';\n\nconst anchorLeft = ({ theme, anchorPosition }: StyleProps & DrawerProps) => {\n return (\n anchorPosition === 'left' &&\n css`\n left: 0;\n top: 0;\n border-top-right-radius: ${theme.borderRadius.centi};\n border-bottom-right-radius: ${theme.borderRadius.centi};\n `\n );\n};\nconst anchorRight = ({ theme, anchorPosition }: StyleProps & DrawerProps) => {\n return (\n anchorPosition === 'right' &&\n css`\n right: 0;\n top: 0;\n border-top-left-radius: ${theme.borderRadius.centi};\n border-bottom-left-radius: ${theme.borderRadius.centi};\n `\n );\n};\n\nconst anchorTop = ({ theme, anchorPosition }: StyleProps & DrawerProps) => {\n return (\n anchorPosition === 'top' &&\n css`\n left: 0;\n right: 0;\n top: 0;\n border-bottom-right-radius: ${theme.borderRadius.centi};\n border-bottom-left-radius: ${theme.borderRadius.centi};\n `\n );\n};\n\nconst anchorBottom = ({ theme, anchorPosition }: StyleProps & DrawerProps) => {\n return (\n anchorPosition === 'bottom' &&\n css`\n left: 0;\n right: 0;\n bottom: 0;\n border-top-right-radius: ${theme.borderRadius.centi};\n border-top-left-radius: ${theme.borderRadius.centi};\n `\n );\n};\n\nconst baseStyles = ({ theme, anchorPosition }: StyleProps & DrawerProps) => {\n return css`\n height: ${['left', 'right'].includes(anchorPosition) && '100vh'};\n width: ${['top', 'bottom'].includes(anchorPosition) && '100wh'};\n position: fixed;\n overflow: hidden;\n background-color: ${theme.miscellaneous.bodyColor};\n z-index: ${theme.zIndex.drawer};\n `;\n};\n\nexport const StyledContainerDrawer = styled('div')<\n DrawerProps & Partial<StyleProps>\n>(\n props => css`\n ${baseStyles(props)}\n ${anchorBottom(props)}\n ${anchorTop(props)}\n ${anchorLeft(props)}\n ${anchorRight(props)}\n `\n);\n"],"file":"styled.js"}
@@ -17,12 +17,13 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
17
17
 
18
18
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
19
 
20
- const InputPassword = ({
20
+ const InputPassword = _react.default.forwardRef(({
21
21
  rightComponent,
22
22
  ...rest
23
- }) => {
23
+ }, ref) => {
24
24
  const [revealed, setRevealed] = (0, _react.useState)(false);
25
25
  return _react.default.createElement(_Input.Input, _extends({}, rest, {
26
+ ref: ref,
26
27
  secureTextEntry: !revealed,
27
28
  rightComponent: _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_reactCore.InputPasswordIcon, {
28
29
  onChangeState: setRevealed,
@@ -30,8 +31,9 @@ const InputPassword = ({
30
31
  effect: "none"
31
32
  }), rightComponent)
32
33
  }));
33
- };
34
+ });
34
35
 
36
+ InputPassword.displayName = 'InputPassword';
35
37
  var _default = InputPassword;
36
38
  exports.default = _default;
37
39
  //# sourceMappingURL=InputPassword.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/molecules/InputPassword/InputPassword.tsx"],"names":["InputPassword","rightComponent","rest","revealed","setRevealed"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;;;AAIA,MAAMA,aAAwC,GAAG,CAAC;AAChDC,EAAAA,cADgD;AAEhD,KAAGC;AAF6C,CAAD,KAG3C;AACJ,QAAM,CAACC,QAAD,EAAWC,WAAX,IAA0B,qBAAS,KAAT,CAAhC;AACA,SACE,6BAAC,YAAD,eACMF,IADN;AAEE,IAAA,eAAe,EAAE,CAACC,QAFpB;AAGE,IAAA,cAAc,EACZ,4DACE,6BAAC,4BAAD;AACE,MAAA,aAAa,EAAEC,WADjB;AAEE,MAAA,QAAQ,EAAED,QAFZ;AAGE,MAAA,MAAM,EAAC;AAHT,MADF,EAMGF,cANH;AAJJ,KADF;AAgBD,CArBD;;eAuBeD,a","sourcesContent":["import { InputPasswordIcon } from '@tecsinapse/react-core';\nimport React, { FC, useState } from 'react';\nimport { Input, InputWebProps } from '../../atoms/Input';\n\nexport type InputPasswordWebProps = InputWebProps;\n\nconst InputPassword: FC<InputPasswordWebProps> = ({\n rightComponent,\n ...rest\n}) => {\n const [revealed, setRevealed] = useState(false);\n return (\n <Input\n {...rest}\n secureTextEntry={!revealed}\n rightComponent={\n <>\n <InputPasswordIcon\n onChangeState={setRevealed}\n revealed={revealed}\n effect=\"none\"\n />\n {rightComponent}\n </>\n }\n />\n );\n};\n\nexport default InputPassword;\n"],"file":"InputPassword.js"}
1
+ {"version":3,"sources":["../../../../src/components/molecules/InputPassword/InputPassword.tsx"],"names":["InputPassword","React","forwardRef","rightComponent","rest","ref","revealed","setRevealed","displayName"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;;;AAIA,MAAMA,aAAwC,GAAGC,eAAMC,UAAN,CAC/C,CAAC;AAAEC,EAAAA,cAAF;AAAkB,KAAGC;AAArB,CAAD,EAA8BC,GAA9B,KAAsC;AACpC,QAAM,CAACC,QAAD,EAAWC,WAAX,IAA0B,qBAAS,KAAT,CAAhC;AACA,SACE,6BAAC,YAAD,eACMH,IADN;AAEE,IAAA,GAAG,EAAEC,GAFP;AAGE,IAAA,eAAe,EAAE,CAACC,QAHpB;AAIE,IAAA,cAAc,EACZ,4DACE,6BAAC,4BAAD;AACE,MAAA,aAAa,EAAEC,WADjB;AAEE,MAAA,QAAQ,EAAED,QAFZ;AAGE,MAAA,MAAM,EAAC;AAHT,MADF,EAMGH,cANH;AALJ,KADF;AAiBD,CApB8C,CAAjD;;AAuBAH,aAAa,CAACQ,WAAd,GAA4B,eAA5B;eAEeR,a","sourcesContent":["import { InputPasswordIcon } from '@tecsinapse/react-core';\nimport React, { FC, useState } from 'react';\nimport { Input, InputWebProps } from '../../atoms/Input';\n\nexport type InputPasswordWebProps = InputWebProps;\n\nconst InputPassword: FC<InputPasswordWebProps> = React.forwardRef(\n ({ rightComponent, ...rest }, ref) => {\n const [revealed, setRevealed] = useState(false);\n return (\n <Input\n {...rest}\n ref={ref}\n secureTextEntry={!revealed}\n rightComponent={\n <>\n <InputPasswordIcon\n onChangeState={setRevealed}\n revealed={revealed}\n effect=\"none\"\n />\n {rightComponent}\n </>\n }\n />\n );\n }\n);\n\nInputPassword.displayName = 'InputPassword';\n\nexport default InputPassword;\n"],"file":"InputPassword.js"}
@@ -51,7 +51,7 @@ const Menubar = ({
51
51
  const [open, setOpen] = _react.default.useState(false);
52
52
 
53
53
  const menuRef = (0, _react.useRef)(null);
54
- (0, _hooks.useClickAwayListener)(menuRef, setOpen);
54
+ (0, _hooks.useClickAwayListener)(menuRef, setOpen, 'mouseup');
55
55
 
56
56
  const toggleOpen = _react.default.useCallback(() => setOpen(state => !state), [setOpen]);
57
57
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/molecules/Menubar/Menubar.tsx"],"names":["Menubar","leftComponents","rightComponents","searchPlaceholder","options","mostUsed","mostUsedLabel","searchResultsLabel","searchable","rest","search","setSearch","React","useState","results","setResults","input","setInput","open","setOpen","menuRef","toggleOpen","useCallback","state","useEffect","ref","current","map","result","title","category"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AAWA;;AACA;;AACA;;AACA;;AACA;;AAIA;;;;;;;;AAcA,MAAMA,OAA+B,GAAG,CAAC;AACvCC,EAAAA,cADuC;AAEvCC,EAAAA,eAFuC;AAGvCC,EAAAA,iBAAiB,GAAG,2BAHmB;AAIvCC,EAAAA,OAJuC;AAKvCC,EAAAA,QALuC;AAMvCC,EAAAA,aAAa,GAAG,gBANuB;AAOvCC,EAAAA,kBAAkB,GAAG,qBAPkB;AAQvCC,EAAAA,UAAU,GAAG,IAR0B;AASvC,KAAGC;AAToC,CAAD,KAUlC;AACJ,QAAM,CAACC,MAAD,EAASC,SAAT,IAAsBC,eAAMC,QAAN,CAAuB,EAAvB,CAA5B;;AACA,QAAM,CAACC,OAAD,EA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;;eAwGerB,O","sourcesContent":["import React, { useRef } from 'react';\nimport { Icon, Text, useDebouncedState } from '@tecsinapse/react-core';\nimport { Transition } from 'react-transition-group';\nimport {\n StyledIconInput,\n StyledMenuBar,\n StyledMenuButton,\n StyledContainerOpenMenu,\n StyledInput,\n StyledInputContainer,\n StyledSearchResultsContainer,\n StyledSearchTextContainer,\n} from './styled';\nimport { MostUsedType, OptionsType } from './types';\nimport { MostUsed } from './MostUsed';\nimport { MenuBlock } from './MenuBlock';\nimport { SearchResultItem } from './SearchResultItem';\nimport { filterAndTransform } from './utils';\nimport {\n getContainerOpenMenuStyles,\n getInputContainerStyles,\n} from './animations';\nimport { useClickAwayListener } from '../../../hooks';\n\nexport interface MenubarProps extends React.HTMLAttributes<HTMLDivElement> {\n options: OptionsType[];\n leftComponents?: React.ReactNode;\n rightComponents?: React.ReactNode;\n /** Limited to first 4 elements */\n mostUsed?: MostUsedType[];\n mostUsedLabel?: string;\n searchable?: boolean;\n searchPlaceholder?: string;\n searchResultsLabel?: string;\n}\n\nconst Menubar: React.FC<MenubarProps> = ({\n leftComponents,\n rightComponents,\n searchPlaceholder = 'O quê você deseja buscar?',\n options,\n mostUsed,\n mostUsedLabel = 'Mais acessados',\n searchResultsLabel = 'Resultados da busca',\n searchable = true,\n ...rest\n}) => {\n const [search, setSearch] = React.useState<string>('');\n const [results, setResults] = React.useState<MostUsedType[]>([]);\n const [input, setInput] = useDebouncedState<string>('', setSearch);\n const [open, setOpen] = React.useState<boolean>(false);\n const menuRef = useRef<HTMLDivElement | null>(null);\n useClickAwayListener(menuRef, setOpen);\n\n const toggleOpen = React.useCallback(() => setOpen(state => !state), [\n setOpen,\n ]);\n\n React.useEffect(() => {\n if (search === '') return;\n setResults(filterAndTransform(options, search));\n }, [search]);\n\n return (\n <div ref={ref => (menuRef.current = ref)} {...rest}>\n <StyledMenuBar>\n <StyledMenuButton variant=\"filled\" color=\"primary\" onPress={toggleOpen}>\n {!open ? (\n <Icon\n size=\"deca\"\n name=\"menu\"\n type=\"material-community\"\n fontColor=\"light\"\n />\n ) : (\n <Icon\n size=\"deca\"\n name=\"close\"\n type=\"material-community\"\n fontColor=\"light\"\n />\n )}\n </StyledMenuButton>\n {leftComponents}\n <Transition in={open} timeout={250}>\n {state => (\n <StyledInputContainer style={getInputContainerStyles(state)}>\n {searchable && (\n <StyledInput\n placeholder={searchPlaceholder}\n leftComponent={\n <StyledIconInput>\n <Icon name=\"magnify\" type=\"material-community\" />\n </StyledIconInput>\n }\n value={input}\n onChange={setInput}\n />\n )}\n </StyledInputContainer>\n )}\n </Transition>\n {rightComponents}\n </StyledMenuBar>\n <Transition in={open} timeout={250}>\n {state => (\n <StyledContainerOpenMenu style={getContainerOpenMenuStyles(state)}>\n {!search ? (\n <>\n {mostUsed && (\n <MostUsed\n label={mostUsedLabel}\n data={mostUsed}\n toggle={toggleOpen}\n />\n )}\n <MenuBlock options={options} toggle={toggleOpen} />\n </>\n ) : (\n <StyledSearchResultsContainer>\n <StyledSearchTextContainer>\n <Text fontWeight=\"bold\">{searchResultsLabel}</Text>\n </StyledSearchTextContainer>\n {results.map(result => (\n <SearchResultItem\n key={`${result.title}-${result.category}`}\n data={result}\n searchTerm={search}\n toggle={toggleOpen}\n />\n ))}\n </StyledSearchResultsContainer>\n )}\n </StyledContainerOpenMenu>\n )}\n </Transition>\n </div>\n );\n};\n\nexport default Menubar;\n"],"file":"Menubar.js"}
1
+ {"version":3,"sources":["../../../../src/components/molecules/Menubar/Menubar.tsx"],"names":["Menubar","leftComponents","rightComponents","searchPlaceholder","options","mostUsed","mostUsedLabel","searchResultsLabel","searchable","rest","search","setSearch","React","useState","results","setResults","input","setInput","open","setOpen","menuRef","toggleOpen","useCallback","state","useEffect","ref","current","map","result","title","category"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AAWA;;AACA;;AACA;;AACA;;AACA;;AAIA;;;;;;;;AAcA,MAAMA,OAA+B,GAAG,CAAC;AACvCC,EAAAA,cADuC;AAEvCC,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ACE,6BAAC,eAAD;AAAM,IAAA,UAAU,EAAC;AAAjB,KAAyBd,kBAAzB,CADF,CADF,EAIGO,OAAO,CAACa,GAAR,CAAYC,MAAM,IACjB,6BAAC,kCAAD;AACE,IAAA,GAAG,EAAG,GAAEA,MAAM,CAACC,KAAM,IAAGD,MAAM,CAACE,QAAS,EAD1C;AAEE,IAAA,IAAI,EAAEF,MAFR;AAGE,IAAA,UAAU,EAAElB,MAHd;AAIE,IAAA,MAAM,EAAEW;AAJV,IADD,CAJH,CAbJ,CAFJ,CAxCF,CADF;AA2ED,CAtGD;;eAwGerB,O","sourcesContent":["import React, { useRef } from 'react';\nimport { Icon, Text, useDebouncedState } from '@tecsinapse/react-core';\nimport { Transition } from 'react-transition-group';\nimport {\n StyledIconInput,\n StyledMenuBar,\n StyledMenuButton,\n StyledContainerOpenMenu,\n StyledInput,\n StyledInputContainer,\n StyledSearchResultsContainer,\n StyledSearchTextContainer,\n} from './styled';\nimport { MostUsedType, OptionsType } from './types';\nimport { MostUsed } from './MostUsed';\nimport { MenuBlock } from './MenuBlock';\nimport { SearchResultItem } from './SearchResultItem';\nimport { filterAndTransform } from './utils';\nimport {\n getContainerOpenMenuStyles,\n getInputContainerStyles,\n} from './animations';\nimport { useClickAwayListener } from '../../../hooks';\n\nexport interface MenubarProps extends React.HTMLAttributes<HTMLDivElement> {\n options: OptionsType[];\n leftComponents?: React.ReactNode;\n rightComponents?: React.ReactNode;\n /** Limited to first 4 elements */\n mostUsed?: MostUsedType[];\n mostUsedLabel?: string;\n searchable?: boolean;\n searchPlaceholder?: string;\n searchResultsLabel?: string;\n}\n\nconst Menubar: React.FC<MenubarProps> = ({\n leftComponents,\n rightComponents,\n searchPlaceholder = 'O quê você deseja buscar?',\n options,\n mostUsed,\n mostUsedLabel = 'Mais acessados',\n searchResultsLabel = 'Resultados da busca',\n searchable = true,\n ...rest\n}) => {\n const [search, setSearch] = React.useState<string>('');\n const [results, setResults] = React.useState<MostUsedType[]>([]);\n const [input, setInput] = useDebouncedState<string>('', setSearch);\n const [open, setOpen] = React.useState<boolean>(false);\n const menuRef = useRef<HTMLDivElement | null>(null);\n useClickAwayListener(menuRef, setOpen, 'mouseup');\n\n const toggleOpen = React.useCallback(() => setOpen(state => !state), [\n setOpen,\n ]);\n\n React.useEffect(() => {\n if (search === '') return;\n setResults(filterAndTransform(options, search));\n }, [search]);\n\n return (\n <div ref={ref => (menuRef.current = ref)} {...rest}>\n <StyledMenuBar>\n <StyledMenuButton variant=\"filled\" color=\"primary\" onPress={toggleOpen}>\n {!open ? (\n <Icon\n size=\"deca\"\n name=\"menu\"\n type=\"material-community\"\n fontColor=\"light\"\n />\n ) : (\n <Icon\n size=\"deca\"\n name=\"close\"\n type=\"material-community\"\n fontColor=\"light\"\n />\n )}\n </StyledMenuButton>\n {leftComponents}\n <Transition in={open} timeout={250}>\n {state => (\n <StyledInputContainer style={getInputContainerStyles(state)}>\n {searchable && (\n <StyledInput\n placeholder={searchPlaceholder}\n leftComponent={\n <StyledIconInput>\n <Icon name=\"magnify\" type=\"material-community\" />\n </StyledIconInput>\n }\n value={input}\n onChange={setInput}\n />\n )}\n </StyledInputContainer>\n )}\n </Transition>\n {rightComponents}\n </StyledMenuBar>\n <Transition in={open} timeout={250}>\n {state => (\n <StyledContainerOpenMenu style={getContainerOpenMenuStyles(state)}>\n {!search ? (\n <>\n {mostUsed && (\n <MostUsed\n label={mostUsedLabel}\n data={mostUsed}\n toggle={toggleOpen}\n />\n )}\n <MenuBlock options={options} toggle={toggleOpen} />\n </>\n ) : (\n <StyledSearchResultsContainer>\n <StyledSearchTextContainer>\n <Text fontWeight=\"bold\">{searchResultsLabel}</Text>\n </StyledSearchTextContainer>\n {results.map(result => (\n <SearchResultItem\n key={`${result.title}-${result.category}`}\n data={result}\n searchTerm={search}\n toggle={toggleOpen}\n />\n ))}\n </StyledSearchResultsContainer>\n )}\n </StyledContainerOpenMenu>\n )}\n </Transition>\n </div>\n );\n};\n\nexport default Menubar;\n"],"file":"Menubar.js"}
@@ -1,5 +1,5 @@
1
1
  import { SelectProps } from '../Select';
2
- declare const Dropdown: <Data, Type extends "single" | "multi">({ options, onSearch, type, hideSearchBar, onSelect, value, keyExtractor, labelExtractor, setDropDownVisible, style, anchor, }: SelectProps<Data, Type> & {
2
+ declare const Dropdown: <Data, Type extends "single" | "multi">({ options, onSearch, type, hideSearchBar, onSelect, value, keyExtractor, labelExtractor, setDropDownVisible, style, anchor, selectAllLabel, searchBarPlaceholder, }: SelectProps<Data, Type> & {
3
3
  setDropDownVisible: (t: boolean) => void;
4
4
  }) => JSX.Element;
5
5
  export default Dropdown;