labsense-ui-kit 1.1.61 → 1.1.62

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.
@@ -12,5 +12,10 @@ interface CheckBoxProps {
12
12
  color?: string;
13
13
  borderSize?: number;
14
14
  }
15
+ export declare const StyledCheckBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {
16
+ $checkboxSize: number;
17
+ $checked?: boolean | undefined;
18
+ $borderSize?: number | undefined;
19
+ }>> & string;
15
20
  declare const CheckBox: React.FC<CheckBoxProps>;
16
21
  export default CheckBox;
package/dist/index.js CHANGED
@@ -6117,7 +6117,7 @@ var TextFieldWithDropdown = function TextFieldWithDropdown(_ref8) {
6117
6117
  };
6118
6118
 
6119
6119
  var _templateObject$i, _templateObject2$f;
6120
- var StyledInput$1 = styled__default.input(_templateObject$i || (_templateObject$i = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n appearance: none;\n border: ", ";\n border-radius: 4px;\n background-color: ", ";\n cursor: pointer;\n display: inline-block;\n position: relative;\n transition: all 0.2s ease;\n font-size: ", "; // for em units\n\n &:checked::after {\n content: '';\n position: absolute;\n top: ", ";\n right: ", ";\n width: ", ";\n height: ", ";\n border: solid ", ";\n border-width: 0 0.2em 0.2em 0;\n transform: rotate(45deg);\n }\n\n &:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n"])), function (_ref) {
6120
+ var StyledCheckBox = styled__default.input(_templateObject$i || (_templateObject$i = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n appearance: none;\n border: ", ";\n border-radius: 4px;\n background-color: ", ";\n cursor: pointer;\n display: inline-block;\n position: relative;\n transition: all 0.2s ease;\n font-size: ", "; // for em units\n\n &:checked::after {\n content: '';\n position: absolute;\n top: ", ";\n right: ", ";\n width: ", ";\n height: ", ";\n border: solid ", ";\n border-width: 0 0.2em 0.2em 0;\n transform: rotate(45deg);\n }\n\n &:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n"])), function (_ref) {
6121
6121
  var $checkboxSize = _ref.$checkboxSize;
6122
6122
  return $checkboxSize + "px";
6123
6123
  }, function (_ref2) {
@@ -6180,7 +6180,7 @@ var CheckBox = function CheckBox(_ref10) {
6180
6180
  height: checkboxSize,
6181
6181
  display: 'flex'
6182
6182
  }
6183
- }, React__default.createElement(StyledInput$1, {
6183
+ }, React__default.createElement(StyledCheckBox, {
6184
6184
  type: 'checkbox',
6185
6185
  id: safeId,
6186
6186
  "$checkboxSize": checkboxSize,
@@ -6755,13 +6755,16 @@ var TableRow = function TableRow(_ref) {
6755
6755
  }, tableheaderconfig.isAllSelectable && React__default.createElement(Container, {
6756
6756
  "$padding": '0px 16px 0px 0px',
6757
6757
  "$alignItems": 'center'
6758
- }, React__default.createElement("input", {
6759
- type: "checkbox",
6758
+ }, React__default.createElement(StyledCheckBox, {
6759
+ type: 'checkbox',
6760
+ "$checkboxSize": 13.5,
6760
6761
  checked: rowconfig[Index]._checked,
6761
- disabled: (_rowconfig$Index = rowconfig[Index]) === null || _rowconfig$Index === void 0 ? void 0 : _rowconfig$Index._selectable,
6762
- onClick: function onClick() {
6762
+ "$checked": rowconfig[Index]._checked,
6763
+ onChange: function onChange() {
6763
6764
  return toggleChecked(Index);
6764
- }
6765
+ },
6766
+ disabled: (_rowconfig$Index = rowconfig[Index]) === null || _rowconfig$Index === void 0 ? void 0 : _rowconfig$Index._selectable,
6767
+ "$borderSize": 2
6765
6768
  })), data.rowData.map(function (cellData, cellkey) {
6766
6769
  var _tableheaderconfig$he;
6767
6770
  return React__default.createElement(TableCell, {
@@ -6849,10 +6852,13 @@ var Table = function Table(_ref) {
6849
6852
  }, tableheaderconfig.isAllSelectable && React__default.createElement(Container, {
6850
6853
  "$padding": '0px 16px 0px 0px',
6851
6854
  "$alignItems": 'center'
6852
- }, React__default.createElement("input", {
6855
+ }, React__default.createElement(StyledCheckBox, {
6853
6856
  type: 'checkbox',
6857
+ "$checkboxSize": 13.5,
6854
6858
  checked: isAllSelected,
6855
- onChange: toggleSelectAll
6859
+ "$checked": isAllSelected,
6860
+ onChange: toggleSelectAll,
6861
+ "$borderSize": 2
6856
6862
  })), tableheaderconfig.headerdata.map(function (columndata, index, allCols) {
6857
6863
  var _columndata$maintext;
6858
6864
  var currentLegend = columndata.legend || '';