linear-react-components-ui 1.1.2-beta.24 → 1.1.2-beta.26

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 (88) hide show
  1. package/lib/@types/SizePixels.d.ts +1 -1
  2. package/lib/assets/styles/checkbox.scss +45 -38
  3. package/lib/assets/styles/colors.scss +3 -1
  4. package/lib/assets/styles/commons.scss +1 -0
  5. package/lib/assets/styles/dialog.scss +27 -10
  6. package/lib/assets/styles/error.scss +9 -0
  7. package/lib/assets/styles/fieldset.scss +3 -0
  8. package/lib/assets/styles/gridlayout.scss +0 -2
  9. package/lib/assets/styles/hint.scss +21 -0
  10. package/lib/assets/styles/input.scss +2 -7
  11. package/lib/assets/styles/multiSelect.scss +6 -1
  12. package/lib/assets/styles/radio.scss +37 -35
  13. package/lib/assets/styles/select.scss +13 -7
  14. package/lib/assets/styles/sidenav.scss +4 -10
  15. package/lib/assets/styles/tabs.scss +3 -0
  16. package/lib/checkbox/Label.js +13 -4
  17. package/lib/checkbox/index.d.ts +1 -1
  18. package/lib/checkbox/index.js +17 -11
  19. package/lib/checkbox/types.d.ts +1 -0
  20. package/lib/dialog/base/Content.js +1 -0
  21. package/lib/dialog/base/Header.js +4 -4
  22. package/lib/dialog/base/index.js +9 -6
  23. package/lib/drawer/Drawer.js +5 -4
  24. package/lib/dropdown/Popup.d.ts +1 -1
  25. package/lib/dropdown/Popup.js +5 -2
  26. package/lib/dropdown/types.d.ts +1 -0
  27. package/lib/fieldset/index.js +4 -2
  28. package/lib/fieldset/types.d.ts +2 -0
  29. package/lib/gridlayout/GridRow.js +10 -2
  30. package/lib/gridlayout/types.d.ts +1 -1
  31. package/lib/hint/helpers.d.ts +3 -0
  32. package/lib/hint/helpers.js +21 -0
  33. package/lib/hint/index.d.ts +2 -1
  34. package/lib/hint/index.js +9 -15
  35. package/lib/hint/types.d.ts +3 -0
  36. package/lib/icons/helper.d.ts +4 -0
  37. package/lib/icons/helper.js +4 -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/date/index.js +2 -0
  43. package/lib/inputs/date/types.d.ts +1 -0
  44. package/lib/inputs/errorMessage/index.d.ts +16 -0
  45. package/lib/inputs/errorMessage/index.js +26 -0
  46. package/lib/inputs/file/DefaultFile.js +4 -2
  47. package/lib/inputs/file/DragDropFile.js +4 -2
  48. package/lib/inputs/inputHOC.d.ts +1 -0
  49. package/lib/inputs/mask/BaseMask.d.ts +1 -0
  50. package/lib/inputs/mask/Cnpj.d.ts +1 -0
  51. package/lib/inputs/mask/Cpf.d.ts +1 -0
  52. package/lib/inputs/mask/Phone.d.ts +1 -0
  53. package/lib/inputs/mask/ZipCode.d.ts +1 -0
  54. package/lib/inputs/mask/imaskHOC.d.ts +1 -0
  55. package/lib/inputs/mask/index.d.ts +1 -0
  56. package/lib/inputs/mask/types.d.ts +3 -1
  57. package/lib/inputs/multiSelect/ActionButtons.js +10 -8
  58. package/lib/inputs/multiSelect/Dropdown.js +2 -6
  59. package/lib/inputs/number/BaseNumber.d.ts +1 -0
  60. package/lib/inputs/number/Currency.d.ts +1 -0
  61. package/lib/inputs/number/Decimal.d.ts +1 -0
  62. package/lib/inputs/number/index.d.ts +1 -0
  63. package/lib/inputs/number/types.d.ts +1 -0
  64. package/lib/inputs/period/index.js +4 -1
  65. package/lib/inputs/search/index.d.ts +1 -0
  66. package/lib/inputs/select/ActionButtons.d.ts +1 -0
  67. package/lib/inputs/select/ActionButtons.js +18 -27
  68. package/lib/inputs/select/Dropdown.d.ts +1 -0
  69. package/lib/inputs/select/Dropdown.js +2 -6
  70. package/lib/inputs/select/helper.d.ts +1 -0
  71. package/lib/inputs/select/multiple/Selecteds.d.ts +1 -1
  72. package/lib/inputs/select/multiple/Selecteds.js +3 -5
  73. package/lib/inputs/select/multiple/index.js +38 -19
  74. package/lib/inputs/select/simple/index.js +60 -31
  75. package/lib/inputs/select/types.d.ts +3 -2
  76. package/lib/inputs/types.d.ts +11 -5
  77. package/lib/menus/sidenav/NavMenuGroup.d.ts +1 -1
  78. package/lib/menus/sidenav/NavMenuGroup.js +2 -4
  79. package/lib/menus/sidenav/NavMenuItem.js +3 -13
  80. package/lib/menus/sidenav/index.js +3 -3
  81. package/lib/menus/sidenav/popup_menu_search/index.js +4 -3
  82. package/lib/menus/sidenav/types.d.ts +1 -2
  83. package/lib/table/HeaderColumn.d.ts +1 -1
  84. package/lib/table/HeaderColumn.js +5 -1
  85. package/lib/table/types.d.ts +2 -0
  86. package/lib/tabs/context.js +1 -1
  87. package/lib/tabs/types.d.ts +3 -3
  88. package/package.json +1 -1
@@ -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;
@@ -1,4 +1,5 @@
1
1
  @import "commons.scss";
2
+ @import "colors.scss";
2
3
 
3
4
  .hint-component {
4
5
  @extend %hint-text;
@@ -6,4 +7,24 @@
6
7
  &.-skeletonized > span {
7
8
  @extend %skeleton-component;
8
9
  }
10
+
11
+ &.-disabled > span {
12
+ opacity: 0.4;
13
+ }
14
+
15
+ &.-primary {
16
+ color: $primary-color;
17
+ }
18
+ &.-warning {
19
+ color: $warning-color;
20
+ }
21
+ &.-danger {
22
+ color: $danger-color;
23
+ }
24
+ &.-success {
25
+ color: $success-color;
26
+ }
27
+ &.-info {
28
+ color: $info-color;
29
+ }
9
30
  }
@@ -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
+ }
@@ -8,19 +8,12 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
8
8
  @import "colors.scss";
9
9
 
10
10
  .sidenav-component {
11
- display: flex;
12
- flex-direction: column;
13
11
  height: 100%;
14
12
  width: 100%;
15
13
  overflow: hidden;
16
14
  background-color: transparent;
17
15
  border: 1px solid #eee;
18
16
 
19
- &.-expanded {
20
- display: block;
21
- flex-direction: row;
22
- }
23
-
24
17
  &.-blocked {
25
18
  opacity: 0.4;
26
19
  pointer-events: none;
@@ -81,6 +74,7 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
81
74
  >.expandedmenu.customscroll,
82
75
  >.collapsedmenu.customscroll {
83
76
  overflow-y: auto;
77
+ height: 100%;
84
78
 
85
79
  &::-webkit-scrollbar {
86
80
  width: 5px;
@@ -314,13 +308,13 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
314
308
  width: 5px;
315
309
  }
316
310
  &::-webkit-scrollbar-track {
317
- box-shadow: inset 0 0 5px grey;
311
+ box-shadow: inset 0 0 5px grey;
318
312
  border-radius: 10px;
319
313
  }
320
314
  &::-webkit-scrollbar-thumb {
321
- background: rgb(151, 142, 142);
315
+ background: rgb(151, 142, 142);
322
316
  border-radius: 10px;
323
- }
317
+ }
324
318
  }
325
319
  }
326
320
 
@@ -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);
@@ -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: ({ name, required, value, label, onChange, autofocus, hint, id, gridLayout, checked, disabled, permissionAttr, tooltip, tooltipPosition, tooltipWidth, skeletonize, targetRef, }: ICheckBoxProps) => JSX.Element | null;
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; }
@@ -38,7 +39,8 @@ const CheckBox = _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];
@@ -68,7 +70,8 @@ const CheckBox = _ref => {
68
70
  };
69
71
  };
70
72
  const renderInput = () => /*#__PURE__*/_react.default.createElement("div", _extends({}, getProps(), {
71
- className: "checkbox-component ".concat(skeletonize ? '-skeletonized' : '')
73
+ className: "checkbox-component",
74
+ "data-skeletonized": skeletonize
72
75
  }), /*#__PURE__*/_react.default.createElement("span", {
73
76
  "data-testid": "checkbox-container",
74
77
  className: "inputcontent",
@@ -92,15 +95,18 @@ const CheckBox = _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, {
@@ -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
  }));