linear-react-components-ui 1.1.2-beta.2 → 1.1.2-beta.20

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 (82) hide show
  1. package/.eslintcache +1 -0
  2. package/.gitlab-ci.yml +1 -0
  3. package/.vscode/settings.json +10 -1
  4. package/lib/@types/SizePixels.d.ts +1 -1
  5. package/lib/assets/styles/checkbox.scss +45 -38
  6. package/lib/assets/styles/colors.scss +3 -1
  7. package/lib/assets/styles/commons.scss +1 -0
  8. package/lib/assets/styles/dialog.scss +27 -10
  9. package/lib/assets/styles/error.scss +9 -0
  10. package/lib/assets/styles/fieldset.scss +3 -0
  11. package/lib/assets/styles/gridlayout.scss +9 -2
  12. package/lib/assets/styles/hint.scss +4 -0
  13. package/lib/assets/styles/input.scss +2 -7
  14. package/lib/assets/styles/multiSelect.scss +6 -1
  15. package/lib/assets/styles/radio.scss +37 -35
  16. package/lib/assets/styles/select.scss +13 -7
  17. package/lib/assets/styles/tabs.scss +3 -0
  18. package/lib/checkbox/Label.js +13 -4
  19. package/lib/checkbox/index.d.ts +2 -2
  20. package/lib/checkbox/index.js +21 -16
  21. package/lib/checkbox/types.d.ts +1 -0
  22. package/lib/dialog/base/Content.js +1 -0
  23. package/lib/dialog/base/Header.js +4 -4
  24. package/lib/dialog/base/index.js +6 -4
  25. package/lib/drawer/Drawer.js +5 -4
  26. package/lib/dropdown/Popup.d.ts +1 -1
  27. package/lib/dropdown/Popup.js +5 -2
  28. package/lib/dropdown/types.d.ts +1 -0
  29. package/lib/fieldset/index.js +4 -2
  30. package/lib/fieldset/types.d.ts +2 -0
  31. package/lib/gridlayout/GridRow.js +10 -2
  32. package/lib/gridlayout/types.d.ts +1 -0
  33. package/lib/hint/helpers.d.ts +3 -0
  34. package/lib/hint/helpers.js +21 -0
  35. package/lib/hint/index.d.ts +1 -1
  36. package/lib/hint/index.js +5 -15
  37. package/lib/hint/types.d.ts +1 -0
  38. package/lib/inputs/base/InputTextBase.js +8 -2
  39. package/lib/inputs/base/helpers.d.ts +1 -2
  40. package/lib/inputs/base/helpers.js +1 -8
  41. package/lib/inputs/base/types.d.ts +1 -0
  42. package/lib/inputs/errorMessage/index.d.ts +16 -0
  43. package/lib/inputs/errorMessage/index.js +26 -0
  44. package/lib/inputs/file/DefaultFile.js +4 -2
  45. package/lib/inputs/file/DragDropFile.js +4 -2
  46. package/lib/inputs/inputHOC.d.ts +1 -0
  47. package/lib/inputs/mask/BaseMask.d.ts +1 -0
  48. package/lib/inputs/mask/Cnpj.d.ts +1 -0
  49. package/lib/inputs/mask/Cpf.d.ts +1 -0
  50. package/lib/inputs/mask/Phone.d.ts +1 -0
  51. package/lib/inputs/mask/ZipCode.d.ts +1 -0
  52. package/lib/inputs/mask/imaskHOC.d.ts +1 -0
  53. package/lib/inputs/mask/index.d.ts +1 -0
  54. package/lib/inputs/mask/types.d.ts +3 -1
  55. package/lib/inputs/multiSelect/ActionButtons.js +10 -8
  56. package/lib/inputs/multiSelect/Dropdown.js +2 -6
  57. package/lib/inputs/number/BaseNumber.d.ts +1 -0
  58. package/lib/inputs/number/Currency.d.ts +1 -0
  59. package/lib/inputs/number/Decimal.d.ts +1 -0
  60. package/lib/inputs/number/index.d.ts +1 -0
  61. package/lib/inputs/number/types.d.ts +1 -0
  62. package/lib/inputs/period/index.js +4 -1
  63. package/lib/inputs/search/index.d.ts +1 -0
  64. package/lib/inputs/select/ActionButtons.d.ts +1 -0
  65. package/lib/inputs/select/ActionButtons.js +18 -27
  66. package/lib/inputs/select/Dropdown.d.ts +1 -0
  67. package/lib/inputs/select/Dropdown.js +2 -6
  68. package/lib/inputs/select/helper.d.ts +1 -0
  69. package/lib/inputs/select/multiple/Selecteds.d.ts +1 -1
  70. package/lib/inputs/select/multiple/Selecteds.js +3 -5
  71. package/lib/inputs/select/multiple/index.js +38 -19
  72. package/lib/inputs/select/simple/index.js +60 -31
  73. package/lib/inputs/select/types.d.ts +3 -2
  74. package/lib/inputs/types.d.ts +11 -5
  75. package/lib/menus/sidenav/popup_menu_search/index.js +4 -3
  76. package/lib/table/HeaderColumn.d.ts +1 -1
  77. package/lib/table/HeaderColumn.js +5 -1
  78. package/lib/table/types.d.ts +2 -0
  79. package/lib/tabs/context.js +1 -1
  80. package/lib/tabs/types.d.ts +3 -3
  81. package/package.json +4 -4
  82. package/.tool-versions +0 -1
package/.gitlab-ci.yml CHANGED
@@ -8,6 +8,7 @@ cache:
8
8
  - package-lock.json
9
9
  paths:
10
10
  - .npm
11
+ - .eslintcache
11
12
 
12
13
  lint:
13
14
  stage: lint
@@ -4,9 +4,18 @@
4
4
  "coverage": true,
5
5
  "node_modules": true,
6
6
  "scripts": true,
7
- // "yarn.lock": true,
8
7
  ".eslintrc.js": true,
9
8
  ".gitignore": true,
9
+ "package-lock.json": true,
10
+ // ".gitlab-ci.yml": true,
11
+ ".nvmrc": true,
12
+ ".npmignore": true,
13
+ ".editorconfig": true,
14
+ ".stylelintrc": true,
15
+ "jest.config.js": true,
16
+ "tsup.config.ts": true,
17
+ "LICENSE": true,
18
+ "babel.config.json": true,
10
19
  },
11
20
  "editor.codeActionsOnSave": {
12
21
  "source.fixAll.eslint": "explicit"
@@ -1,3 +1,3 @@
1
- type SizePixels = 10 | 16 | 18 | 22 | 24 | 32 | 40 | 64 | 128 | 200;
1
+ type SizePixels = 10 | 12 | 14 | 16 | 18 | 22 | 24 | 32 | 40 | 64 | 128 | 200;
2
2
 
3
3
  export type { SizePixels };
@@ -4,83 +4,90 @@
4
4
 
5
5
  .checkbox-component {
6
6
  > .inputcontent {
7
+ display: flex;
7
8
  > .input {
8
- position: absolute;
9
- z-index: 0;
10
- left: -9999999999999px;
9
+ pointer-events: none;
10
+ opacity: 0;
11
+ width: 0;
12
+ height: 0;
11
13
  &:disabled + span {
12
14
  @extend %component-disabled;
15
+ border: 1px solid $component-border-color;
16
+ }
17
+ &:checked:disabled + span {
18
+ border: 1px solid $component-border-color;
19
+ > svg {
20
+ @extend %component-menu-disabled
21
+ }
13
22
  }
14
23
  &:disabled + span + .description {
15
24
  @extend %component-menu-disabled;
16
25
  }
17
- &:checked + span:before {
18
- content: "✓";
19
- display: flex;
20
- align-items: center;
21
- justify-content: center;
22
- position: static;
23
- margin-top: -5px;
24
- font-weight: 600;
25
- height: 28px;
26
+ &:checked + span > svg {
27
+ display: block;
28
+ fill: $font-color-second;
29
+ margin: 0;
26
30
  }
27
31
  + span {
28
- display: inline-block;
29
32
  position: relative;
30
- top: -1px;
33
+ min-width: 18px;
34
+ min-height: 18px;
31
35
  width: 18px;
32
36
  height: 18px;
33
- margin: -1px 0px 0 0;
34
- margin-right: 4px;
35
37
  vertical-align: middle;
36
38
  background: $font-color-second left top no-repeat;
37
39
  border: 1px solid $component-border-color;
38
40
  cursor: pointer;
41
+ display: flex;
42
+ margin-right: 6px;
43
+ align-items: center;
44
+ justify-content: center;
39
45
  &:hover {
40
46
  animation-duration: .5s;
41
47
  animation-name: blink-effect;
42
48
  animation-iteration-count: infinite;
43
49
  animation-direction: alternate;
44
50
  }
51
+ & > svg {
52
+ display: none;
53
+ }
45
54
  }
46
55
  &:checked + span {
47
- background-color: $check-background;
56
+ background-color: $checked-effect;
57
+ border-color: $checked;
48
58
  color: $font-color-second;
49
59
  animation-duration: .2s;
50
60
  animation-name: select-checkbox;
51
61
  animation-iteration-count: 1;
52
62
  animation-direction: Normal;
53
- box-shadow: inset 0 0 0 1px $checked,
54
- inset 0 0 0 0 #FFFFFF,
55
- inset 0 0 0 16px $checked-effect;
56
63
  }
57
64
  &:focus + span {
58
65
  border: 2px solid $component-selected-color;
59
66
  }
60
- &:disabled:checked + span:before {
61
- @extend %component-menu-disabled;
62
- border: 1px solid;
63
- margin-top: -1px;
64
- width: 18px;
65
- height: 18px;
66
- background-color: rgb(229, 229, 229);
67
- margin-left: -1px;
68
- }
69
67
  }
70
68
  > .description {
71
69
  @extend %input-label;
72
- margin-left: 2px;
73
70
  cursor: pointer ;
71
+ flex: 1;
72
+ line-height: 18px;
73
+
74
+ > .hint {
75
+ @extend %hint-text;
76
+ margin-top: 0;
77
+ }
74
78
  }
75
79
  }
76
80
 
77
- > .hint {
78
- @extend %hint-text;
79
- margin-top: 0;
80
- padding-left: 22px;
81
- }
82
81
 
83
- &.-skeletonized {
82
+ > .errormessages {
83
+ width: 100%;
84
+ color: red;
85
+ font-size: 13px!important;
86
+ line-height: 13px;
87
+ margin-top: 0px;
88
+ }
89
+
90
+ &[data-skeletonized="true"] {
84
91
  > .inputcontent {
85
92
  .input {
86
93
  + span {
@@ -93,8 +100,8 @@
93
100
  }
94
101
  }
95
102
  }
96
- > .inputcontent > .description,
97
- > .hint > span {
103
+ > .inputcontent > .description > span,
104
+ > .inputcontent > .description > .hint > span {
98
105
  @extend %skeleton-component;
99
106
  }
100
107
  }
@@ -4,7 +4,7 @@
4
4
  -ms-transform: translate(-50%, -50%);
5
5
  -o-transform: translate(-50%, -50%);
6
6
  transform: translate(-50%, -50%);
7
- transition: all 0.5s ease-in-out;
7
+ transition: all 0.25s ease-in-out;
8
8
  }
9
9
 
10
10
  %component-effect-click {
@@ -89,6 +89,8 @@ $alert-warning: #fff3cd;
89
89
  $alert-warning-text: #856404;
90
90
  $alert-warning-border: #f2e3b5;
91
91
 
92
+ $error-color: #ff3030;
93
+
92
94
  $danger-color: #e74c3c;
93
95
  $danger-hover-color: #dd2d1b;
94
96
  $danger-focus-color: #c0392b;
@@ -9,6 +9,7 @@
9
9
 
10
10
  %component-menu-disabled {
11
11
  color: #bbbbbb;
12
+ fill: #bbbbbb;
12
13
  background-color: transparent,
13
14
  }
14
15
 
@@ -1,6 +1,9 @@
1
1
  @import "commons.scss";
2
2
  @import "colors.scss";
3
3
  @import "effects.scss";
4
+
5
+ $shadow-button-default: 1px 1px 1px rgba(0, 0, 0, 0.2);
6
+ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-button-default;
4
7
  .modalcontainer {
5
8
  font-family: 'Roboto', sans-serif;
6
9
  line-height: 22px;
@@ -59,23 +62,37 @@
59
62
  width: 100%;
60
63
  margin-left: 2px;
61
64
  display: flex;
65
+ justify-content: space-between;
62
66
  align-items: center;
63
- &.modal-title {
64
- color: #4e4c4c;
65
- font-weight: 600;
67
+ .modal-title {
68
+ color: $font-color-default;
69
+ font-weight: 400;
66
70
  }
67
71
  }
68
72
  .close-button {
69
- margin-left: auto;
73
+ all: unset;
70
74
  line-height: 0;
71
- cursor: pointer;
72
- > svg {
73
- fill: #252424;
75
+ display: flex;
76
+ align-items: center;
77
+ justify-content: center;
78
+ width: 28px;
79
+ height: 28px;
80
+ border: none;
81
+ background-color: $default-color;
82
+ color: $font-color-soft;
83
+ border-radius: 999999px;
84
+ cursor: pointer !important;
85
+ >svg {
86
+ fill: $font-color-soft;
74
87
  pointer-events: fill;
75
88
  transition: 0.2s fill;
76
- &:hover {
77
- fill: rgba(0, 0, 0, 0.164);
78
- }
89
+ }
90
+ &:hover {
91
+ background-color: $default-hover-color;
92
+ }
93
+ &:focus {
94
+ -webkit-box-shadow: $shadow-button-inset-default;
95
+ box-shadow: $shadow-button-inset-default;
79
96
  }
80
97
  }
81
98
  }
@@ -0,0 +1,9 @@
1
+ @import "colors.scss";
2
+
3
+ p.errormessages-component {
4
+ width: 100%;
5
+ color: $error-color;
6
+ font-size: 13px!important;
7
+ line-height: 13px;
8
+ margin-top: 3px;
9
+ }
@@ -65,6 +65,9 @@
65
65
  text-transform: uppercase;
66
66
  border-radius: 0px 10px 0px 0px;
67
67
  z-index: 9;
68
+ display: flex;
69
+ align-items: center;
70
+ gap: 8px;
68
71
  }
69
72
  > .errormessage {
70
73
  position: relative;
@@ -65,8 +65,6 @@ html {
65
65
  display: flex;
66
66
  -ms-flex-wrap: wrap;
67
67
  flex-wrap: wrap;
68
- // margin-right: -15px;
69
- // margin-left: -15px;
70
68
  &.-withtrim {
71
69
  .grid-container:first-child {
72
70
  padding-left: 0;
@@ -75,6 +73,15 @@ html {
75
73
  padding-right: 0;
76
74
  }
77
75
  }
76
+ &.-items-start {
77
+ align-items: start;
78
+ }
79
+ &.-items-center {
80
+ align-items: center;
81
+ }
82
+ &.-items-end {
83
+ align-items: end;
84
+ }
78
85
  }
79
86
 
80
87
  .no-gutters {
@@ -6,4 +6,8 @@
6
6
  &.-skeletonized > span {
7
7
  @extend %skeleton-component;
8
8
  }
9
+
10
+ &.-disabled > span {
11
+ opacity: 0.4;
12
+ }
9
13
  }
@@ -5,6 +5,8 @@
5
5
  .input-base-component > .labelcontainer {
6
6
  margin: 0;
7
7
  padding: 0;
8
+ line-height: 14px;
9
+ margin-bottom: 6px;
8
10
  > .label {
9
11
  @extend %input-label;
10
12
  }
@@ -18,13 +20,6 @@
18
20
  width: 100%;
19
21
  height: 100%;
20
22
  }
21
- > .errormessages {
22
- width: 100%;
23
- color: red;
24
- font-size: 13px!important;
25
- line-height: 13px;
26
- margin-top: 3px;
27
- }
28
23
  & .icon-component {
29
24
  height: 100%;
30
25
  display: grid;
@@ -23,6 +23,10 @@
23
23
  top: 50%;
24
24
  left: 10px;
25
25
  transform: translateY(-50%);
26
+
27
+ button {
28
+ all: unset;
29
+ }
26
30
  }
27
31
  }
28
32
 
@@ -95,6 +99,7 @@
95
99
  }
96
100
 
97
101
  .menubutton {
102
+ all: unset;
98
103
  background-color: transparent;
99
104
  border: 0;
100
105
  padding: 0;
@@ -117,4 +122,4 @@
117
122
  }
118
123
  }
119
124
  }
120
- }
125
+ }
@@ -74,42 +74,44 @@ $radio-button-ripple-size: 15px;
74
74
  background: $default-color;
75
75
  }
76
76
 
77
- .-small:before{
78
- width: 16px;
79
- height: 16px;
80
- top: 0.225rem;
81
- left: 0.265rem;
82
- }
83
- .-medium:before{
84
- width: 20px;
85
- height: 20px;
86
- top: 0.245rem;
87
- left: 0.285rem;
88
- }
89
- .-large:before{
90
- width: 24px;
91
- height: 24px;
92
- top: 0.245rem;
93
- left: 0.285rem;
94
- }
77
+ .radio-button {
78
+ .-small:before{
79
+ width: 16px;
80
+ height: 16px;
81
+ top: 0.225rem;
82
+ left: 0.265rem;
83
+ }
84
+ .-medium:before{
85
+ width: 20px;
86
+ height: 20px;
87
+ top: 0.245rem;
88
+ left: 0.285rem;
89
+ }
90
+ .-large:before{
91
+ width: 24px;
92
+ height: 24px;
93
+ top: 0.245rem;
94
+ left: 0.285rem;
95
+ }
95
96
 
96
- .-small:after{
97
- width: 8px;
98
- height: 8px;
99
- top: 0.23rem;
100
- left: 0.27rem;
101
- }
102
- .-medium:after{
103
- width: 12px;
104
- height: 12px;
105
- top: 0.24rem;
106
- left: 0.26rem;
107
- }
108
- .-large:after{
109
- width: 16px;
110
- height: 16px;
111
- top: 0.245rem;
112
- left: 0.285rem;
97
+ .-small:after{
98
+ width: 8px;
99
+ height: 8px;
100
+ top: 0.23rem;
101
+ left: 0.27rem;
102
+ }
103
+ .-medium:after{
104
+ width: 12px;
105
+ height: 12px;
106
+ top: 0.24rem;
107
+ left: 0.26rem;
108
+ }
109
+ .-large:after{
110
+ width: 16px;
111
+ height: 16px;
112
+ top: 0.245rem;
113
+ left: 0.285rem;
114
+ }
113
115
  }
114
116
 
115
117
  .radio-component:checked + .description:after,
@@ -10,14 +10,15 @@
10
10
  height: auto;
11
11
  }
12
12
 
13
- .selectwrapper .actionbutton {
14
- cursor: pointer;
13
+ .selectwrapper .actionbuttonsselect {
15
14
  display: flex;
16
- align-items: center;
17
- height: 100%;
15
+ flex-direction: row;
18
16
 
19
- >.iconclear {
20
- margin: 8px -3px 2px 3px;
17
+ .actionbutton {
18
+ all: unset;
19
+ cursor: pointer;
20
+ display: flex;
21
+ align-items: center;
21
22
  }
22
23
  }
23
24
 
@@ -42,6 +43,10 @@
42
43
  float: left;
43
44
  margin: 2px;
44
45
  padding: 0px 8px 0px 5px;
46
+
47
+ .close {
48
+ all: unset;
49
+ }
45
50
  }
46
51
  }
47
52
 
@@ -118,6 +123,7 @@
118
123
  }
119
124
 
120
125
  .menubutton {
126
+ all: unset;
121
127
  background-color: transparent;
122
128
  border: 0;
123
129
  padding: 0;
@@ -145,4 +151,4 @@
145
151
  font-style: italic;
146
152
  font-size: 13px;
147
153
  }
148
- }
154
+ }
@@ -123,6 +123,9 @@ $dropdown-width: 38px;
123
123
  float: none;
124
124
  }
125
125
  }
126
+ .toolbar-component {
127
+ width: auto;
128
+ }
126
129
  }
127
130
 
128
131
  >.panel {
@@ -6,17 +6,26 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _withTooltip = _interopRequireDefault(require("../internals/withTooltip"));
9
+ var _hint = _interopRequireDefault(require("../hint"));
9
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
11
  const Label = _ref => {
11
12
  let {
12
13
  label,
13
- targetSpanRef
14
+ targetSpanRef,
15
+ disabled,
16
+ hint
14
17
  } = _ref;
15
- return /*#__PURE__*/_react.default.createElement("span", {
16
- className: "description",
18
+ return /*#__PURE__*/_react.default.createElement("div", {
19
+ className: "description"
20
+ }, /*#__PURE__*/_react.default.createElement("span", {
17
21
  ref: r => {
18
22
  if (targetSpanRef) targetSpanRef(r);
19
23
  }
20
- }, label);
24
+ }, label), /*#__PURE__*/_react.default.createElement(_hint.default, {
25
+ disabled: disabled,
26
+ visible: !!hint,
27
+ description: hint,
28
+ customClass: "hint"
29
+ }));
21
30
  };
22
31
  var _default = exports.default = (0, _withTooltip.default)(Label);
@@ -1,5 +1,5 @@
1
- import React__default from 'react';
2
1
  import { ICheckBoxProps } from './types.js';
2
+ import 'react';
3
3
  import '../@types/PermissionAttr.js';
4
4
  import '../@types/Position.js';
5
5
 
@@ -8,6 +8,6 @@ import '../@types/Position.js';
8
8
  * o componente Field dentro do componente Form, pois o mesmo leva em consideração o tipo do
9
9
  * componente para gerar propriedades customizadas.
10
10
  */
11
- declare const CheckBox: React__default.ForwardRefExoticComponent<ICheckBoxProps & React__default.RefAttributes<HTMLInputElement>>;
11
+ declare const CheckBox: ({ name, required, value, label, onChange, autofocus, hint, id, gridLayout, checked, disabled, permissionAttr, tooltip, tooltipPosition, tooltipWidth, skeletonize, targetRef, errorMessages, }: ICheckBoxProps) => JSX.Element | null;
12
12
 
13
13
  export { CheckBox as default };
@@ -5,11 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
- var _gridlayout = _interopRequireDefault(require("../gridlayout"));
9
8
  var _Label = _interopRequireDefault(require("./Label"));
10
- require("../assets/styles/checkbox.scss");
9
+ var _gridlayout = _interopRequireDefault(require("../gridlayout"));
11
10
  var _permissionValidations = require("../permissionValidations");
12
- var _hint = _interopRequireDefault(require("../hint"));
11
+ require("../assets/styles/checkbox.scss");
12
+ var _errorMessage = require("../inputs/errorMessage");
13
+ var _ = require("..");
13
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
16
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -20,7 +21,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
20
21
  * componente para gerar propriedades customizadas.
21
22
  */
22
23
 
23
- const CheckBox = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
24
+ const CheckBox = _ref => {
24
25
  let {
25
26
  name,
26
27
  required,
@@ -38,13 +39,13 @@ const CheckBox = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
38
39
  tooltipPosition = 'top',
39
40
  tooltipWidth = 'auto',
40
41
  skeletonize,
41
- targetRef
42
+ targetRef,
43
+ errorMessages
42
44
  } = _ref;
43
45
  const [isChecked, setIsChecked] = (0, _react.useState)(checked);
44
46
  const options = [_permissionValidations.OPTIONS_ON_DENIED.disabled, _permissionValidations.OPTIONS_ON_DENIED.unvisible];
45
47
  const [onDenied] = (0, _react.useState)((0, _permissionValidations.actionsOnPermissionDenied)(options, permissionAttr));
46
48
  const inputRef = (0, _react.useRef)(null);
47
- (0, _react.useImperativeHandle)(ref, () => inputRef.current, [inputRef.current]);
48
49
  (0, _react.useEffect)(() => {
49
50
  setIsChecked(checked);
50
51
  }, [checked]);
@@ -69,14 +70,16 @@ const CheckBox = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
69
70
  };
70
71
  };
71
72
  const renderInput = () => /*#__PURE__*/_react.default.createElement("div", _extends({}, getProps(), {
72
- className: "checkbox-component ".concat(skeletonize ? '-skeletonized' : '')
73
+ className: "checkbox-component",
74
+ "data-skeletonized": skeletonize
73
75
  }), /*#__PURE__*/_react.default.createElement("span", {
74
76
  "data-testid": "checkbox-container",
75
77
  className: "inputcontent",
76
78
  onClick: !shouldDisable() && !skeletonize ? () => setIsChecked(!isChecked) : undefined,
77
79
  tabIndex: -1,
78
80
  role: "checkbox",
79
- "aria-checked": "false"
81
+ "aria-checked": "false",
82
+ onKeyPress: undefined
80
83
  }, /*#__PURE__*/_react.default.createElement("input", {
81
84
  ref: r => {
82
85
  if (targetRef) targetRef(r);
@@ -92,21 +95,23 @@ const CheckBox = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
92
95
  value: value,
93
96
  id: id,
94
97
  onChange: () => {}
95
- }), /*#__PURE__*/_react.default.createElement("span", null), label && /*#__PURE__*/_react.default.createElement(_Label.default, {
98
+ }), /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement(_.Icon, {
99
+ size: 12,
100
+ name: "checkmark"
101
+ })), label && /*#__PURE__*/_react.default.createElement(_Label.default, {
96
102
  label: label,
97
103
  tooltip: tooltip,
98
104
  tooltipWidth: tooltipWidth,
99
- tooltipPosition: tooltipPosition
100
- })), /*#__PURE__*/_react.default.createElement(_hint.default, {
101
- visible: !!hint,
102
- description: hint,
103
- customClass: "hint"
105
+ tooltipPosition: tooltipPosition,
106
+ disabled: disabled,
107
+ hint: hint
108
+ })), /*#__PURE__*/_react.default.createElement(_errorMessage.ErrorMessage, {
109
+ messages: errorMessages
104
110
  }));
105
111
  if (onDenied.unvisible) return null;
106
112
  return gridLayout ? /*#__PURE__*/_react.default.createElement(_gridlayout.default, {
107
113
  customClass: "-withinput",
108
114
  cols: gridLayout
109
115
  }, renderInput()) : renderInput();
110
- });
111
- CheckBox.displayName = 'CheckBox';
116
+ };
112
117
  var _default = exports.default = CheckBox;
@@ -37,6 +37,7 @@ interface ICheckBoxProps {
37
37
  skeletonize?: boolean;
38
38
  targetRef?: (ref: HTMLInputElement | null) => void;
39
39
  targetSpanRef?: (ref: HTMLSpanElement | null) => void;
40
+ errorMessages?: string[] | undefined;
40
41
  }
41
42
 
42
43
  export type { ChangeEvent, ICheckBoxProps };
@@ -13,6 +13,7 @@ const Content = _ref => {
13
13
  styleForContent
14
14
  } = _ref;
15
15
  return /*#__PURE__*/_react.default.createElement("div", {
16
+ id: "modal-dialog-content",
16
17
  className: "dialog-content",
17
18
  style: styleForContent
18
19
  }, children);
@@ -11,11 +11,11 @@ var _base = require("../base");
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
13
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
- const getCloseButton = handleClose => /*#__PURE__*/_react.default.createElement("span", {
14
+ const getCloseButton = handleClose => /*#__PURE__*/_react.default.createElement("button", {
15
+ id: "botao-fechar-modal-cabecalho",
15
16
  className: "close-button",
16
- onClick: handleClose,
17
- role: "button",
18
- tabIndex: 0
17
+ tabIndex: 0,
18
+ onClick: handleClose
19
19
  }, /*#__PURE__*/_react.default.createElement(_icons.default, {
20
20
  name: "cancel2"
21
21
  }));