linear-react-components-ui 1.1.20-beta.14 → 1.1.20-beta.16

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 (148) hide show
  1. package/lib/alerts/BaseAlert.js +1 -1
  2. package/lib/alerts/Message.js +1 -1
  3. package/lib/assets/styles/input.scss +2 -2
  4. package/lib/assets/styles/popover.scss +3 -0
  5. package/lib/assets/styles/wizard.scss +1 -3
  6. package/lib/avatar/index.js +9 -8
  7. package/lib/badge/index.js +4 -4
  8. package/lib/buttons/DangerButton.js +1 -1
  9. package/lib/buttons/DefaultButton.js +13 -3
  10. package/lib/buttons/InfoButton.js +1 -1
  11. package/lib/buttons/PrimaryButton.js +1 -1
  12. package/lib/buttons/SuccessButton.js +1 -1
  13. package/lib/buttons/WarningButton.js +1 -1
  14. package/lib/buttons/button_container/index.js +1 -1
  15. package/lib/buttons/split_button/index.js +1 -1
  16. package/lib/calendar/base/Day.js +1 -1
  17. package/lib/calendar/base/Month.js +1 -1
  18. package/lib/calendar/base/helpers.js +2 -2
  19. package/lib/calendar/base/index.js +1 -1
  20. package/lib/checkbox/index.js +46 -19
  21. package/lib/checkbox/types.d.ts +4 -0
  22. package/lib/dialog/Custom.js +1 -1
  23. package/lib/dialog/base/Content.js +1 -1
  24. package/lib/dialog/base/Header.js +2 -2
  25. package/lib/dialog/base/index.js +3 -4
  26. package/lib/dialog/form/index.js +1 -1
  27. package/lib/dialog/types.d.ts +0 -2
  28. package/lib/dialog/wizard/index.d.ts +1 -1
  29. package/lib/dialog/wizard/index.js +4 -8
  30. package/lib/dialog/wizard/progressbar.js +1 -1
  31. package/lib/dialog/wizard/step.js +1 -1
  32. package/lib/drawer/Drawer.js +3 -3
  33. package/lib/drawer/Header.js +1 -1
  34. package/lib/dropdown/Popup.js +6 -6
  35. package/lib/dropdown/helper.js +1 -1
  36. package/lib/dropdown/withDropdown.js +2 -2
  37. package/lib/fieldset/index.js +7 -7
  38. package/lib/form/FieldArray.js +1 -1
  39. package/lib/form/FieldNumber.js +3 -3
  40. package/lib/form/FieldPeriod.js +2 -2
  41. package/lib/form/index.js +2 -2
  42. package/lib/form/types.d.ts +14 -1
  43. package/lib/gridlayout/GridCol.js +5 -5
  44. package/lib/gridlayout/GridRow.js +4 -1
  45. package/lib/hint/index.js +7 -1
  46. package/lib/icons/index.js +24 -27
  47. package/lib/inputs/base/InputTextBase.js +39 -15
  48. package/lib/inputs/base/Label.js +1 -1
  49. package/lib/inputs/base/helpers.js +7 -3
  50. package/lib/inputs/base/types.d.ts +3 -0
  51. package/lib/inputs/color/types.d.ts +5 -0
  52. package/lib/inputs/date/helpers.js +4 -1
  53. package/lib/inputs/date/index.js +9 -15
  54. package/lib/inputs/date/types.d.ts +4 -0
  55. package/lib/inputs/errorMessage/index.js +1 -1
  56. package/lib/inputs/file/DefaultFile.js +5 -6
  57. package/lib/inputs/file/DragDropFile.js +17 -18
  58. package/lib/inputs/file/File.js +3 -4
  59. package/lib/inputs/file/types.d.ts +3 -0
  60. package/lib/inputs/mask/BaseMask.js +1 -1
  61. package/lib/inputs/mask/helpers.d.ts +4 -0
  62. package/lib/inputs/mask/types.d.ts +4 -0
  63. package/lib/inputs/multiSelect/Dropdown.js +9 -10
  64. package/lib/inputs/multiSelect/helper.js +1 -2
  65. package/lib/inputs/multiSelect/index.js +7 -9
  66. package/lib/inputs/multiSelect/types.d.ts +4 -0
  67. package/lib/inputs/number/BaseNumber.d.ts +1 -1
  68. package/lib/inputs/number/Currency.d.ts +1 -1
  69. package/lib/inputs/number/Decimal.d.ts +1 -1
  70. package/lib/inputs/number/index.d.ts +1 -1
  71. package/lib/inputs/number/index.js +7 -3
  72. package/lib/inputs/number/types.d.ts +14 -2
  73. package/lib/inputs/period/PeriodList.js +1 -1
  74. package/lib/inputs/period/helper.js +3 -1
  75. package/lib/inputs/period/index.js +40 -18
  76. package/lib/inputs/period/types.d.ts +3 -0
  77. package/lib/inputs/search/index.js +1 -1
  78. package/lib/inputs/select/Dropdown.js +1 -1
  79. package/lib/inputs/select/helper.js +10 -13
  80. package/lib/inputs/select/multiple/Selecteds.js +1 -1
  81. package/lib/inputs/select/multiple/index.js +18 -16
  82. package/lib/inputs/select/simple/index.js +10 -17
  83. package/lib/inputs/select/types.d.ts +6 -0
  84. package/lib/inputs/textarea/index.js +1 -1
  85. package/lib/internals/withTooltip.js +9 -9
  86. package/lib/labelMessages/index.js +4 -3
  87. package/lib/labels/DefaultLabel.js +4 -1
  88. package/lib/labels/label_container/index.js +1 -1
  89. package/lib/list/Header.d.ts +1 -0
  90. package/lib/list/Header.js +1 -1
  91. package/lib/list/Item.d.ts +6 -2
  92. package/lib/list/Item.js +24 -10
  93. package/lib/list/helpers.d.ts +1 -0
  94. package/lib/list/index.d.ts +1 -0
  95. package/lib/list/index.js +3 -2
  96. package/lib/list/types.d.ts +6 -0
  97. package/lib/menus/float/MenuItem.js +2 -2
  98. package/lib/menus/float/SubMenuContainer.js +1 -1
  99. package/lib/menus/float/index.js +1 -1
  100. package/lib/menus/sidenav/ExpandMenu.js +1 -1
  101. package/lib/menus/sidenav/NavMenuGroup.js +1 -1
  102. package/lib/menus/sidenav/NavMenuItem.js +7 -9
  103. package/lib/menus/sidenav/NavSubMenuItem.js +1 -1
  104. package/lib/menus/sidenav/helpers.js +1 -1
  105. package/lib/menus/sidenav/index.js +5 -5
  106. package/lib/panel/Content.js +5 -7
  107. package/lib/panel/Default.js +2 -2
  108. package/lib/panel/Header.js +3 -3
  109. package/lib/permissionValidations.js +1 -1
  110. package/lib/popover/index.js +4 -6
  111. package/lib/popover/types.d.ts +2 -1
  112. package/lib/progress/Bar.js +6 -6
  113. package/lib/radio/index.d.ts +1 -1
  114. package/lib/radio/index.js +34 -3
  115. package/lib/radio/types.d.ts +6 -0
  116. package/lib/shortcuts/index.js +1 -1
  117. package/lib/skeleton/SkeletonContainer.js +2 -1
  118. package/lib/skeleton/index.js +4 -1
  119. package/lib/spinner/index.js +2 -2
  120. package/lib/split/Split.js +1 -1
  121. package/lib/split/SplitSide.js +3 -3
  122. package/lib/table/Body.js +3 -3
  123. package/lib/table/Header.js +8 -11
  124. package/lib/table/HeaderColumn.js +7 -7
  125. package/lib/table/Row.js +3 -3
  126. package/lib/table/RowColumn.js +1 -1
  127. package/lib/table/index.js +6 -1
  128. package/lib/table/types.d.ts +0 -2
  129. package/lib/tabs/DropdownTabs.js +1 -1
  130. package/lib/tabs/Menu.js +1 -1
  131. package/lib/tabs/MenuTabs.js +2 -2
  132. package/lib/tabs/Panel.js +5 -7
  133. package/lib/tabs/context.js +3 -6
  134. package/lib/textContent/index.d.ts +18 -4
  135. package/lib/textContent/index.js +15 -5
  136. package/lib/toolbar/ButtonBar.js +1 -1
  137. package/lib/toolbar/index.js +1 -1
  138. package/lib/tooltip/index.js +7 -7
  139. package/lib/treetable/Body.js +1 -1
  140. package/lib/treetable/Header.js +2 -2
  141. package/lib/treetable/Row.js +8 -8
  142. package/lib/treeview/Header.js +1 -1
  143. package/lib/treeview/Node.js +5 -5
  144. package/lib/treeview/index.js +4 -4
  145. package/lib/uitour/index.js +6 -8
  146. package/package.json +1 -1
  147. package/lib/checkbox/Label.d.ts +0 -11
  148. package/lib/checkbox/Label.js +0 -31
@@ -26,7 +26,7 @@ const BaseAlert = _ref => {
26
26
  alert.appendChild(messageContainerEl);
27
27
  }
28
28
  return () => {
29
- alert === null || alert === void 0 ? void 0 : alert.removeChild(messageContainerEl);
29
+ alert?.removeChild(messageContainerEl);
30
30
  };
31
31
  }, []);
32
32
  return /*#__PURE__*/_reactDom.default.createPortal(children, messageContainerEl);
@@ -15,7 +15,7 @@ const getClass = _ref => {
15
15
  customClass,
16
16
  className
17
17
  } = _ref;
18
- return "".concat(className, " ").concat(customClass);
18
+ return `${className} ${customClass}`;
19
19
  };
20
20
  const getIcon = (icon, iconName, color) => {
21
21
  if (icon !== null) {
@@ -2,7 +2,7 @@
2
2
  @import "fonts.scss";
3
3
  @import "colors.scss";
4
4
  @import "effects";
5
- .input-base-component > .labelcontainer {
5
+ .input-base-component > .labelcontainer > .text-content {
6
6
  margin: 0;
7
7
  padding: 0;
8
8
  line-height: 14px;
@@ -115,7 +115,7 @@
115
115
  }
116
116
 
117
117
  .input-base-component.-skeletonized {
118
- > .labelcontainer > .label,
118
+ > .labelcontainer > .text-content > .label,
119
119
  > .hint {
120
120
  @extend %skeleton-component;
121
121
  color: transparent;
@@ -38,4 +38,7 @@
38
38
  color: rgb(59, 59, 59);
39
39
  }
40
40
  }
41
+ &.-hint {
42
+ width: 100% !important;
43
+ }
41
44
  }
@@ -5,9 +5,6 @@
5
5
  .wizard-content {
6
6
  display: flex !important;
7
7
  flex-direction: column;
8
- .wizard-body{
9
- overflow: auto;
10
- }
11
8
  .wizard-progresbar {
12
9
  width: 100%;
13
10
  display: grid;
@@ -18,6 +15,7 @@
18
15
  margin-bottom: 20px;
19
16
  border-bottom: 2px solid $component-border-color;
20
17
  gap: 10px;
18
+ overflow: hidden;
21
19
  > .title {
22
20
  font-size: 16px;
23
21
  font-weight: 600;
@@ -23,7 +23,8 @@ const getClass = _ref => {
23
23
  disabled,
24
24
  size = 'default'
25
25
  } = _ref;
26
- return "avatar-component ".concat(className).concat(disabled && '-disabled', " \n ").concat(square && '-square', " ").concat(size && "-".concat(size));
26
+ return `avatar-component ${className}${disabled && '-disabled'}
27
+ ${square && '-square'} ${size && `-${size}`}`;
27
28
  };
28
29
  const getIcon = (iconName, icon) => {
29
30
  if (icon) {
@@ -70,18 +71,18 @@ const Avatar = props => {
70
71
  if (targetRef) targetRef(r);
71
72
  dropdownRef.current = r;
72
73
  },
73
- className: "".concat(getClass(props), " ").concat(customClass),
74
+ className: `${getClass(props)} ${customClass}`,
74
75
  style: _objectSpread({
75
- width: "".concat(width),
76
- height: "".concat(height),
77
- backgroundColor: "".concat(color),
78
- cursor: "".concat(dropdown ? 'pointer' : 'normal')
76
+ width: `${width}`,
77
+ height: `${height}`,
78
+ backgroundColor: `${color}`,
79
+ cursor: `${dropdown ? 'pointer' : 'normal'}`
79
80
  }, style)
80
81
  }, (iconName || icon) && !src && getIcon(iconName, icon), src && /*#__PURE__*/_react.default.createElement("img", {
81
82
  className: "imgavatar",
82
83
  style: {
83
- width: "".concat(width),
84
- height: "".concat(height)
84
+ width: `${width}`,
85
+ height: `${height}`
85
86
  },
86
87
  src: src,
87
88
  alt: srcAlt
@@ -18,12 +18,12 @@ const Badge = props => {
18
18
  right = '-11px'
19
19
  } = props;
20
20
  return /*#__PURE__*/_react.default.createElement("div", {
21
- className: "badge-component ".concat(customClass)
21
+ className: `badge-component ${customClass}`
22
22
  }, children, /*#__PURE__*/_react.default.createElement("span", {
23
- className: "badge -".concat(color, " ").concat(customClassForBadge),
23
+ className: `badge -${color} ${customClassForBadge}`,
24
24
  style: {
25
- top: "".concat(top),
26
- right: "".concat(right)
25
+ top: `${top}`,
26
+ right: `${right}`
27
27
  }
28
28
  }, content));
29
29
  };
@@ -17,7 +17,7 @@ const DangerButton = _ref => {
17
17
  } = _ref,
18
18
  rest = _objectWithoutProperties(_ref, _excluded);
19
19
  return /*#__PURE__*/_react.default.createElement(_Button.default, _extends({
20
- customClass: "-danger ".concat(customClass)
20
+ customClass: `-danger ${customClass}`
21
21
  }, rest));
22
22
  };
23
23
  var _default = exports.default = DangerButton;
@@ -72,7 +72,16 @@ const DefaultButton = _ref => {
72
72
  const {
73
73
  handlerSetOnDeniedText
74
74
  } = (0, _react.useContext)(_withTooltip.TooltipContext);
75
- const getClass = () => "button-component ".concat(className, "\n ").concat(customClass, "\n ").concat(transparent && '-transparent', "\n ").concat(isDisabled && '-disabled', "\n ").concat(size && "-".concat(size), "\n ").concat(dropdown && !round && 'icon-right', "\n ").concat(dropdown && round && 'icon-center', "\n ").concat(iconAlign && !dropdown && "icon-".concat(iconAlign), "\n ").concat(boxShadow ? '' : '-shadowsdisabled', "\n ").concat(round && '-round');
75
+ const getClass = () => `button-component ${className}
76
+ ${customClass}
77
+ ${transparent && '-transparent'}
78
+ ${isDisabled && '-disabled'}
79
+ ${size && `-${size}`}
80
+ ${dropdown && !round && 'icon-right'}
81
+ ${dropdown && round && 'icon-center'}
82
+ ${iconAlign && !dropdown && `icon-${iconAlign}`}
83
+ ${boxShadow ? '' : '-shadowsdisabled'}
84
+ ${round && '-round'}`;
76
85
  const returnPadlockIcon = resultantStyle => /*#__PURE__*/_react.default.createElement(_icons.default, {
77
86
  name: "padlock",
78
87
  size: 16,
@@ -89,8 +98,9 @@ const DefaultButton = _ref => {
89
98
  }
90
99
  if (dropdown && showIconDropdown) {
91
100
  const openDropDownRule = isDropdownOpened ? 'mini_up' : 'mini_down';
101
+ const dropdownIcon = iconName || openDropDownRule;
92
102
  return /*#__PURE__*/_react.default.createElement(_icons.default, {
93
- name: openDropDownRule,
103
+ name: dropdownIcon,
94
104
  size: 16,
95
105
  customClass: "dropdown-icon",
96
106
  pointerEvents: "none",
@@ -133,7 +143,7 @@ const DefaultButton = _ref => {
133
143
  if (dropdown && showDropdown) showDropdown();
134
144
  if (onClick && toggleable) setActiveButton(!activeButton);
135
145
  },
136
- className: "".concat(getClass(), " ").concat(activeButton ? '-toggleable' : '', " ").concat(skeletonize ? '-skeletonized' : ''),
146
+ className: `${getClass()} ${activeButton ? '-toggleable' : ''} ${skeletonize ? '-skeletonized' : ''}`,
137
147
  ref: r => {
138
148
  if (buttonRef) {
139
149
  if (!_lodash.default.isFunction(buttonRef)) {
@@ -17,7 +17,7 @@ const InfoButton = _ref => {
17
17
  } = _ref,
18
18
  rest = _objectWithoutProperties(_ref, _excluded);
19
19
  return /*#__PURE__*/_react.default.createElement(_Button.default, _extends({
20
- customClass: "-info ".concat(customClass)
20
+ customClass: `-info ${customClass}`
21
21
  }, rest));
22
22
  };
23
23
  var _default = exports.default = InfoButton;
@@ -17,7 +17,7 @@ const PrimaryButton = _ref => {
17
17
  } = _ref,
18
18
  rest = _objectWithoutProperties(_ref, _excluded);
19
19
  return /*#__PURE__*/_react.default.createElement(_Button.default, _extends({
20
- customClass: "-primary ".concat(customClass)
20
+ customClass: `-primary ${customClass}`
21
21
  }, rest));
22
22
  };
23
23
  var _default = exports.default = PrimaryButton;
@@ -17,7 +17,7 @@ const SuccessButton = _ref => {
17
17
  } = _ref,
18
18
  rest = _objectWithoutProperties(_ref, _excluded);
19
19
  return /*#__PURE__*/_react.default.createElement(_Button.default, _extends({}, rest, {
20
- customClass: "-success ".concat(customClass)
20
+ customClass: `-success ${customClass}`
21
21
  }));
22
22
  };
23
23
  var _default = exports.default = SuccessButton;
@@ -17,7 +17,7 @@ const WarningButton = _ref => {
17
17
  } = _ref,
18
18
  rest = _objectWithoutProperties(_ref, _excluded);
19
19
  return /*#__PURE__*/_react.default.createElement(_Button.default, _extends({}, rest, {
20
- customClass: "-warning ".concat(customClass)
20
+ customClass: `-warning ${customClass}`
21
21
  }));
22
22
  };
23
23
  var _default = exports.default = WarningButton;
@@ -23,7 +23,7 @@ const ButtonContainer = _ref => {
23
23
  } = _ref;
24
24
  return /*#__PURE__*/_react.default.createElement("div", {
25
25
  "data-testid": "button-container",
26
- className: "btn-container ".concat(customClass),
26
+ className: `btn-container ${customClass}`,
27
27
  style: getStyles(style, position)
28
28
  }, children);
29
29
  };
@@ -37,7 +37,7 @@ const SplitButton = props => {
37
37
  }
38
38
  })), /*#__PURE__*/_react.default.createElement(_DefaultButton.default, _extends({}, splitProps, {
39
39
  iconName: "down",
40
- customClass: "".concat(customClass, " -transparenttext"),
40
+ customClass: `${customClass} -transparenttext`,
41
41
  iconStyle: {
42
42
  marginRight: -7,
43
43
  marginLeft: 0
@@ -25,7 +25,7 @@ const Day = _ref => {
25
25
  onClick: () => {
26
26
  if (handleDateChange) handleDateChange(day);
27
27
  },
28
- customClass: " ".concat((0, _helpers.getDayCssClass)(currentDate, day), " numberdaycalendar"),
28
+ customClass: ` ${(0, _helpers.getDayCssClass)(currentDate, day)} numberdaycalendar`,
29
29
  label: day.format('D')
30
30
  }));
31
31
  };
@@ -21,7 +21,7 @@ const Month = _ref => {
21
21
  const week = /*#__PURE__*/_react.default.createElement(_Week.default, {
22
22
  currentDate: currentDate,
23
23
  weekStartDate: startOfWeek,
24
- key: "week-".concat(startOfWeek.format('YYYYMMDD'))
24
+ key: `week-${startOfWeek.format('YYYYMMDD')}`
25
25
  });
26
26
  weeks = [...weeks, week];
27
27
  weekIndex += 1;
@@ -89,8 +89,8 @@ function getCalendarCssClass(_ref) {
89
89
  customClass,
90
90
  colorStyle
91
91
  } = _ref;
92
- let cssClass = "calendar-component ".concat(customClass);
93
- cssClass += " -".concat(colorStyle);
92
+ let cssClass = `calendar-component ${customClass}`;
93
+ cssClass += ` -${colorStyle}`;
94
94
  cssClass += unpadding ? ' -unpadding' : '';
95
95
  cssClass += drawGridLines ? ' -draw-grid-lines' : '';
96
96
  return cssClass;
@@ -71,7 +71,7 @@ const Calendar = props => {
71
71
  })), /*#__PURE__*/_react.default.createElement("div", {
72
72
  className: "daynames"
73
73
  }, (0, _helpers.dayNames)().map(name => /*#__PURE__*/_react.default.createElement("div", {
74
- key: "day-".concat(name)
74
+ key: `day-${name}`
75
75
  }, name))), /*#__PURE__*/_react.default.createElement(_Month.default, {
76
76
  currentDate: dataAtual
77
77
  })));
@@ -5,12 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
- var _Label = _interopRequireDefault(require("./Label"));
9
8
  var _gridlayout = _interopRequireDefault(require("../gridlayout"));
10
9
  var _permissionValidations = require("../permissionValidations");
11
10
  require("../assets/styles/checkbox.scss");
12
11
  var _errorMessage = require("../inputs/errorMessage");
13
12
  var _ = require("..");
13
+ var _textContent = _interopRequireDefault(require("../textContent"));
14
+ var _popover = _interopRequireDefault(require("../popover"));
15
+ var _hint = _interopRequireDefault(require("../hint"));
14
16
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
17
  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); }
16
18
  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; }
@@ -40,7 +42,11 @@ const CheckBox = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
40
42
  tooltipWidth = 'auto',
41
43
  skeletonize,
42
44
  targetRef,
43
- errorMessages
45
+ errorMessages,
46
+ customClassForLabel,
47
+ hintPosition = 'below',
48
+ themePopover = 'light',
49
+ popoverAlign = 'left'
44
50
  } = _ref;
45
51
  const [isChecked, setIsChecked] = (0, _react.useState)(checked);
46
52
  const options = [_permissionValidations.OPTIONS_ON_DENIED.disabled, _permissionValidations.OPTIONS_ON_DENIED.unvisible];
@@ -52,7 +58,7 @@ const CheckBox = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
52
58
  }, [checked]);
53
59
  const shouldDisable = () => disabled || onDenied.disabled;
54
60
  const getProps = () => {
55
- if (!onChange || shouldDisable()) return null;
61
+ if (shouldDisable()) return null;
56
62
  const target = {
57
63
  checked: !isChecked,
58
64
  id,
@@ -61,26 +67,30 @@ const CheckBox = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
61
67
  };
62
68
  return {
63
69
  onClick: () => {
64
- onChange({
65
- target
66
- });
70
+ if (!shouldDisable() && !skeletonize) {
71
+ setIsChecked(!isChecked);
72
+ onChange?.({
73
+ target
74
+ });
75
+ }
67
76
  },
68
77
  onKeyDown: undefined,
69
78
  role: 'checkbox',
70
79
  tabIndex: -1
71
80
  };
72
81
  };
73
- const renderInput = () => /*#__PURE__*/_react.default.createElement("div", _extends({}, getProps(), {
82
+ const renderInput = () => /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", {
83
+ "data-skeletonized": skeletonize,
74
84
  className: "checkbox-component",
75
- "data-skeletonized": skeletonize
76
- }), /*#__PURE__*/_react.default.createElement("span", {
85
+ style: {
86
+ display: 'flex',
87
+ alignItems: 'center'
88
+ }
89
+ }, /*#__PURE__*/_react.default.createElement("span", _extends({
77
90
  "data-testid": "checkbox-container",
78
91
  className: "inputcontent",
79
- onClick: !shouldDisable() && !skeletonize ? () => setIsChecked(!isChecked) : undefined,
80
- tabIndex: -1,
81
- role: "checkbox",
82
- "aria-checked": "false"
83
- }, /*#__PURE__*/_react.default.createElement("input", {
92
+ "aria-checked": isChecked
93
+ }, getProps()), /*#__PURE__*/_react.default.createElement("input", {
84
94
  id: id || undefined,
85
95
  ref: r => {
86
96
  if (targetRef) targetRef(r);
@@ -98,14 +108,31 @@ const CheckBox = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
98
108
  }), /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement(_.Icon, {
99
109
  size: 12,
100
110
  name: "checkmark"
101
- })), label && /*#__PURE__*/_react.default.createElement(_Label.default, {
102
- label: label,
111
+ })), label && /*#__PURE__*/_react.default.createElement("div", {
112
+ className: "description"
113
+ }, /*#__PURE__*/_react.default.createElement(_textContent.default, {
114
+ required: required,
115
+ disabled: shouldDisable(),
116
+ className: customClassForLabel,
103
117
  tooltip: tooltip,
104
118
  tooltipWidth: tooltipWidth,
105
- tooltipPosition: tooltipPosition,
119
+ tooltipPosition: tooltipPosition
120
+ }), label, /*#__PURE__*/_react.default.createElement(_textContent.default, null), /*#__PURE__*/_react.default.createElement(_hint.default, {
106
121
  disabled: disabled,
107
- hint: hint
108
- })), /*#__PURE__*/_react.default.createElement(_errorMessage.ErrorMessage, {
122
+ visible: !!hint && hintPosition === 'below',
123
+ description: hint,
124
+ customClass: "hint"
125
+ }))), !!hint && hintPosition === 'onLabelRight' && !skeletonize && /*#__PURE__*/_react.default.createElement(_popover.default, {
126
+ theme: themePopover,
127
+ align: popoverAlign,
128
+ customClass: "-hint",
129
+ iconColor: "#03bde2",
130
+ style: {
131
+ margin: '0px 5px',
132
+ height: 'auto',
133
+ width: 20
134
+ }
135
+ }, hint)), /*#__PURE__*/_react.default.createElement(_errorMessage.ErrorMessage, {
109
136
  messages: errorMessages
110
137
  }));
111
138
  if (onDenied.unvisible) return null;
@@ -29,6 +29,7 @@ interface ICheckBoxProps {
29
29
  children?: ReactElement;
30
30
  autofocus?: boolean;
31
31
  hint?: string;
32
+ hintPosition?: 'below' | 'onLabelRight';
32
33
  gridLayout?: string;
33
34
  permissionAttr?: PermissionAttr | PermissionAttr[];
34
35
  tooltip?: string;
@@ -38,6 +39,9 @@ interface ICheckBoxProps {
38
39
  targetRef?: (ref: HTMLInputElement | null) => void;
39
40
  targetSpanRef?: (ref: HTMLSpanElement | null) => void;
40
41
  errorMessages?: string[] | undefined;
42
+ customClassForLabel?: string;
43
+ themePopover?: 'light' | 'dark';
44
+ popoverAlign?: 'right' | 'left';
41
45
  }
42
46
 
43
47
  export { ChangeEvent, ICheckBoxProps };
@@ -48,7 +48,7 @@ const Custom = props => {
48
48
  }, props.text)), props.buttons && props.buttons.length > 0 && /*#__PURE__*/_react.default.createElement(_Footer.default, props, /*#__PURE__*/_react.default.createElement(_buttons.ButtonContainer, {
49
49
  position: "right"
50
50
  }, props.buttons.map(button => /*#__PURE__*/_react.default.cloneElement(button, {
51
- key: "button-".concat(uuid.v1())
51
+ key: `button-${uuid.v1()}`
52
52
  })))));
53
53
  };
54
54
  var _default = exports.default = Custom;
@@ -15,7 +15,7 @@ const Content = _ref => {
15
15
  } = _ref;
16
16
  return /*#__PURE__*/_react.default.createElement("div", {
17
17
  id: "modal-dialog-content",
18
- className: "dialog-content ".concat(className),
18
+ className: `dialog-content ${className}`,
19
19
  style: styleForContent
20
20
  }, children);
21
21
  };
@@ -46,10 +46,10 @@ const Header = _ref => {
46
46
  tabIndex: -1,
47
47
  onFocus: () => {},
48
48
  onBlur: () => {},
49
- ref: formDialogContext === null || formDialogContext === void 0 ? void 0 : formDialogContext.headerRef,
49
+ ref: formDialogContext?.headerRef,
50
50
  className: "dialog-header"
51
51
  }, /*#__PURE__*/_react.default.createElement("div", {
52
- className: "".concat(icon !== null || titleIcon !== null ? 'left' : '')
52
+ className: `${icon !== null || titleIcon !== null ? 'left' : ''}`
53
53
  }, getIcon(titleIcon, icon)), /*#__PURE__*/_react.default.createElement("div", {
54
54
  className: "right"
55
55
  }, /*#__PURE__*/_react.default.createElement("h5", {
@@ -75,7 +75,7 @@ const BaseDialog = props => {
75
75
  let y = positionY <= 0 ? 0 : positionY;
76
76
  if (x + width >= window.innerWidth) x = window.innerWidth - width;
77
77
  if (y + height >= window.innerHeight) y = window.innerHeight - height;
78
- wrapperEl.current.style.transform = "translate(".concat(x, "px, ").concat(y, "px)");
78
+ wrapperEl.current.style.transform = `translate(${x}px, ${y}px)`;
79
79
  wrapperEl.current.style.transition = 'none';
80
80
  wrapperEl.current.style.left = '0';
81
81
  wrapperEl.current.style.top = '0';
@@ -95,9 +95,8 @@ const BaseDialog = props => {
95
95
  }
96
96
  };
97
97
  const onMouseDown = event => {
98
- var _headerRef$current;
99
98
  const element = event.target;
100
- const isHeader = headerRef === null || headerRef === void 0 ? void 0 : (_headerRef$current = headerRef.current) === null || _headerRef$current === void 0 ? void 0 : _headerRef$current.contains(element);
99
+ const isHeader = headerRef?.current?.contains(element);
101
100
  if (wrapperEl.current && isHeader) setIsDragging(true);
102
101
  };
103
102
  const onMouseUp = () => {
@@ -113,7 +112,7 @@ const BaseDialog = props => {
113
112
  className: "modal-overlay",
114
113
  "data-testid": "modal-overlay"
115
114
  }), /*#__PURE__*/_react.default.createElement("div", {
116
- className: "dialog ".concat(className),
115
+ className: `dialog ${className}`,
117
116
  "data-testid": "dialog-component"
118
117
  }, /*#__PURE__*/_react.default.createElement("div", {
119
118
  className: wrapperClassName,
@@ -59,7 +59,7 @@ const ModalForm = props => {
59
59
  width: width,
60
60
  height: height
61
61
  }, props, {
62
- wrapperClassName: "dialog-form-wrapper ".concat(wrapperClassName),
62
+ wrapperClassName: `dialog-form-wrapper ${wrapperClassName}`,
63
63
  className: className
64
64
  }), props.title && /*#__PURE__*/_react.default.createElement("div", {
65
65
  className: "header-form"
@@ -76,8 +76,6 @@ interface WizardComponentProps extends Omit<IFormProps, 'content'> {
76
76
  title?: string;
77
77
  handlerClose?: () => void;
78
78
  controls: WizardControls;
79
- customStyleForProgressBar?: CSSProperties;
80
- customStyleForBody?: CSSProperties;
81
79
  }
82
80
  interface WizardStepComponentProps {
83
81
  children: React.ReactNode;
@@ -8,6 +8,6 @@ import '../../icons/helper.js';
8
8
 
9
9
  declare const WizardContext: React__default.Context<WizardControls | null>;
10
10
  declare const useWizardContext: () => WizardControls | null;
11
- declare function Wizard({ children, controls, showProgressbar, customStyleForProgressBar, customStyleForBody, ...dialogProps }: Readonly<WizardComponentProps>): JSX.Element;
11
+ declare function Wizard({ children, controls, showProgressbar, ...dialogProps }: Readonly<WizardComponentProps>): JSX.Element;
12
12
 
13
13
  export { Wizard as Container, WizardContext, Wizard as default, useWizardContext };
@@ -25,7 +25,7 @@ var _progressbar = require("./progressbar");
25
25
  require("../../assets/styles/wizard.scss");
26
26
  var _step = require("./step");
27
27
  var _useWizard = require("./useWizard");
28
- const _excluded = ["children", "controls", "showProgressbar", "customStyleForProgressBar", "customStyleForBody"];
28
+ const _excluded = ["children", "controls", "showProgressbar"];
29
29
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
30
30
  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); }
31
31
  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; }
@@ -39,9 +39,7 @@ function Wizard(_ref) {
39
39
  let {
40
40
  children,
41
41
  controls,
42
- showProgressbar = true,
43
- customStyleForProgressBar,
44
- customStyleForBody
42
+ showProgressbar = true
45
43
  } = _ref,
46
44
  dialogProps = _objectWithoutProperties(_ref, _excluded);
47
45
  const {
@@ -68,11 +66,9 @@ function Wizard(_ref) {
68
66
  wrapperClassName: "wizard-wrapper",
69
67
  contentClassName: "wizard-content"
70
68
  }, dialogProps), showProgressbar && /*#__PURE__*/_react.default.createElement(_progressbar.Progressbar, {
71
- stepsTitle: stepsTitle,
72
- customStyle: customStyleForProgressBar
69
+ stepsTitle: stepsTitle
73
70
  }), /*#__PURE__*/_react.default.createElement("div", {
74
- className: "wizard-body",
75
- style: customStyleForBody
71
+ className: "wizard-body"
76
72
  }, currentStepElement)));
77
73
  }
78
74
  var _default = exports.default = Wizard;
@@ -19,7 +19,7 @@ function Progressbar(_ref) {
19
19
  currentStep
20
20
  } = context;
21
21
  return /*#__PURE__*/_react.default.createElement("div", {
22
- className: "wizard-progresbar ".concat(customClass),
22
+ className: `wizard-progresbar ${customClass}`,
23
23
  style: customStyle
24
24
  }, stepsTitle.map(step => /*#__PURE__*/_react.default.createElement("div", {
25
25
  key: step.number,
@@ -16,7 +16,7 @@ function WizardStep(_ref) {
16
16
  const context = (0, _.useWizardContext)();
17
17
  if (!context) throw new Error('WizardStep must be used within a Wizard component');
18
18
  return /*#__PURE__*/_react.default.createElement("div", {
19
- className: "wizard-step-component ".concat(customClass),
19
+ className: `wizard-step-component ${customClass}`,
20
20
  style: customStyle
21
21
  }, children);
22
22
  }
@@ -83,7 +83,7 @@ const BaseDrawer = _ref => {
83
83
  };
84
84
  const closeDrawerOnEsc = e => {
85
85
  if (closeOnEsc && e.key === 'Escape') {
86
- handlerClose === null || handlerClose === void 0 ? void 0 : handlerClose();
86
+ handlerClose?.();
87
87
  e.stopPropagation();
88
88
  }
89
89
  };
@@ -124,12 +124,12 @@ const BaseDrawer = _ref => {
124
124
  value: contextValues
125
125
  }, /*#__PURE__*/_react.default.createElement("div", {
126
126
  "data-testid": "drawercontainer-component",
127
- className: "".concat(position, " ").concat(customClass),
127
+ className: `${position} ${customClass}`,
128
128
  style: style
129
129
  }, /*#__PURE__*/_react.default.createElement("div", {
130
130
  style: overlayStyle,
131
131
  "data-testid": "drawercontent",
132
- className: "drawercontent ".concat(skeletonize ? '-skeletonized' : '', " ").concat(customClassForContent)
132
+ className: `drawercontent ${skeletonize ? '-skeletonized' : ''} ${customClassForContent}`
133
133
  }, title && /*#__PURE__*/_react.default.createElement(_.DrawerHeader, _extends({}, headerProps, {
134
134
  customClass: customClassForDrawer
135
135
  })), content ? /*#__PURE__*/_react.default.createElement(_.DrawerContent, null, content) : children, getSpinner())));
@@ -61,7 +61,7 @@ const Header = _ref => {
61
61
  };
62
62
  const checkHandlerClose = () => handlerClose ? handlerClose() : undefined;
63
63
  return /*#__PURE__*/_react.default.createElement("div", {
64
- className: "drawerheader ".concat(customClass),
64
+ className: `drawerheader ${customClass}`,
65
65
  "data-testid": "drawerheader"
66
66
  }, /*#__PURE__*/_react.default.createElement("div", {
67
67
  className: "left"
@@ -20,11 +20,11 @@ const getCalendarDropdownStyle = _ref => {
20
20
  isFloatMenu,
21
21
  minWidth
22
22
  } = _ref;
23
- let style = "top: ".concat(topPosition + (isFloatMenu ? 6 : 2), "px; min-width: ").concat(minWidth, "px;");
23
+ let style = `top: ${topPosition + (isFloatMenu ? 6 : 2)}px; min-width: ${minWidth}px;`;
24
24
  if (align === 'left') {
25
- style += "left: ".concat(leftPosition, "px;");
25
+ style += `left: ${leftPosition}px;`;
26
26
  } else if (align === 'right') {
27
- style += "right: ".concat(rightPosition, "px;");
27
+ style += `right: ${rightPosition}px;`;
28
28
  }
29
29
  return style;
30
30
  };
@@ -42,7 +42,7 @@ const DropdownPopup = _ref2 => {
42
42
  } = _ref2,
43
43
  props = _objectWithoutProperties(_ref2, _excluded);
44
44
  const popup = (0, _react.useRef)(document.createElement('div'));
45
- popup.current.className = "dropdown-component ".concat(customClassForDropdown);
45
+ popup.current.className = `dropdown-component ${customClassForDropdown}`;
46
46
  popup.current.dataset.testid = 'dropdown-component';
47
47
  popup.current.style.cssText = getCalendarDropdownStyle({
48
48
  topPosition,
@@ -55,11 +55,11 @@ const DropdownPopup = _ref2 => {
55
55
  if (popup && popup.current) {
56
56
  const modalContainers = document.body.getElementsByClassName('modalcontainer');
57
57
  const lastModalContainer = modalContainers[modalContainers.length - 1];
58
- popup.current.style.zIndex = "".concat(modalContainers.length ? Number(lastModalContainer.style.zIndex) + 1 : 99999);
58
+ popup.current.style.zIndex = `${modalContainers.length ? Number(lastModalContainer.style.zIndex) + 1 : 99999}`;
59
59
  }
60
60
  (0, _react.useEffect)(() => {
61
61
  body.appendChild(popup.current);
62
- popup.current.id = id || "dropdown-component-".concat((0, _uuid.v1)());
62
+ popup.current.id = id || `dropdown-component-${(0, _uuid.v1)()}`;
63
63
  return () => {
64
64
  body.removeChild(popup.current);
65
65
  };