labsense-ui-kit 1.1.60 → 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.
- package/dist/Container&Span/StyledComponents.d.ts +2 -0
- package/dist/Inputs/CheckBox.d.ts +5 -0
- package/dist/index.js +89 -76
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +89 -76
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
|
@@ -35,6 +35,8 @@ export declare const Container: import("styled-components/dist/types").IStyledCo
|
|
|
35
35
|
$borderRadius?: string | undefined;
|
|
36
36
|
$borderTopLeftRadius?: string | undefined;
|
|
37
37
|
$borderTopRightRadius?: string | undefined;
|
|
38
|
+
$borderBottomRightRadius?: string | undefined;
|
|
39
|
+
$borderBottomLeftRadius?: string | undefined;
|
|
38
40
|
$borderTop?: string | undefined;
|
|
39
41
|
$borderBottom?: string | undefined;
|
|
40
42
|
$borderLeft?: string | undefined;
|
|
@@ -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
|
@@ -3361,7 +3361,7 @@ var Icon = function Icon(_ref2) {
|
|
|
3361
3361
|
};
|
|
3362
3362
|
|
|
3363
3363
|
var _templateObject$1, _templateObject2$1;
|
|
3364
|
-
var Container = styled__default.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex: ", ";\n flex-wrap: ", ";\n flex-direction: ", ";\n justify-content: ", ";\n align-items: ", "; \n gap: ", ";\n font-weight: ", ";\n height: ", ";\n min-height: ", ";\n max-height: ", ";\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n padding: ", ";\n background: ", ";\n object-fit:", ";\n margin: ", ";\n border-radius: ", ";\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n cursor: ", ";\n font-size: ", ";\n opacity: ", ";\n pointer-events: ", ";\n position: ", ";\n top: ", ";\n bottom: ", ";\n left: ", ";\n right: ", ";\n text-align: ", "; \n color: ", "; \n overflow: ", ";\n overflow-y: ", ";\n z-index: ", "; \n scrollbar-width: ", ";\n border: ", "; \n border-top: ", ";\n border-bottom: ", ";\n border-left: ", ";\n transition: ", ";\n box-shadow: ", ";\n\n &:hover {\n background: ", ";\n color: ", ";\n }\n"])), function (_ref) {
|
|
3364
|
+
var Container = styled__default.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex: ", ";\n flex-wrap: ", ";\n flex-direction: ", ";\n justify-content: ", ";\n align-items: ", "; \n gap: ", ";\n font-weight: ", ";\n height: ", ";\n min-height: ", ";\n max-height: ", ";\n width: ", ";\n min-width: ", ";\n max-width: ", ";\n padding: ", ";\n background: ", ";\n object-fit:", ";\n margin: ", ";\n border-radius: ", ";\n border-top-left-radius: ", ";\n border-top-right-radius: ", ";\n border-bottom-right-radius: ", ";\n border-bottom-left-radius: ", ";\n cursor: ", ";\n font-size: ", ";\n opacity: ", ";\n pointer-events: ", ";\n position: ", ";\n top: ", ";\n bottom: ", ";\n left: ", ";\n right: ", ";\n text-align: ", "; \n color: ", "; \n overflow: ", ";\n overflow-y: ", ";\n z-index: ", "; \n scrollbar-width: ", ";\n border: ", "; \n border-top: ", ";\n border-bottom: ", ";\n border-left: ", ";\n transition: ", ";\n box-shadow: ", ";\n\n &:hover {\n background: ", ";\n color: ", ";\n }\n"])), function (_ref) {
|
|
3365
3365
|
var $flex = _ref.$flex;
|
|
3366
3366
|
return $flex;
|
|
3367
3367
|
}, function (_ref2) {
|
|
@@ -3422,104 +3422,110 @@ var Container = styled__default.div(_templateObject$1 || (_templateObject$1 = _t
|
|
|
3422
3422
|
var $borderTopRightRadius = _ref20.$borderTopRightRadius;
|
|
3423
3423
|
return $borderTopRightRadius;
|
|
3424
3424
|
}, function (_ref21) {
|
|
3425
|
-
var $
|
|
3426
|
-
return $
|
|
3425
|
+
var $borderBottomRightRadius = _ref21.$borderBottomRightRadius;
|
|
3426
|
+
return $borderBottomRightRadius;
|
|
3427
3427
|
}, function (_ref22) {
|
|
3428
|
-
var $
|
|
3429
|
-
return $
|
|
3428
|
+
var $borderBottomLeftRadius = _ref22.$borderBottomLeftRadius;
|
|
3429
|
+
return $borderBottomLeftRadius;
|
|
3430
3430
|
}, function (_ref23) {
|
|
3431
|
-
var $
|
|
3432
|
-
return $
|
|
3431
|
+
var $cursor = _ref23.$cursor;
|
|
3432
|
+
return $cursor;
|
|
3433
3433
|
}, function (_ref24) {
|
|
3434
|
-
var $
|
|
3435
|
-
return $
|
|
3434
|
+
var $fontSize = _ref24.$fontSize;
|
|
3435
|
+
return $fontSize;
|
|
3436
3436
|
}, function (_ref25) {
|
|
3437
|
-
var $
|
|
3438
|
-
return $
|
|
3437
|
+
var $opacity = _ref25.$opacity;
|
|
3438
|
+
return $opacity;
|
|
3439
3439
|
}, function (_ref26) {
|
|
3440
|
-
var $
|
|
3441
|
-
return $
|
|
3440
|
+
var $pointerEvents = _ref26.$pointerEvents;
|
|
3441
|
+
return $pointerEvents;
|
|
3442
3442
|
}, function (_ref27) {
|
|
3443
|
-
var $
|
|
3444
|
-
return $
|
|
3443
|
+
var $position = _ref27.$position;
|
|
3444
|
+
return $position;
|
|
3445
3445
|
}, function (_ref28) {
|
|
3446
|
-
var $
|
|
3447
|
-
return $
|
|
3446
|
+
var $top = _ref28.$top;
|
|
3447
|
+
return $top;
|
|
3448
3448
|
}, function (_ref29) {
|
|
3449
|
-
var $
|
|
3450
|
-
return $
|
|
3449
|
+
var $bottom = _ref29.$bottom;
|
|
3450
|
+
return $bottom;
|
|
3451
3451
|
}, function (_ref30) {
|
|
3452
|
-
var $
|
|
3453
|
-
return $
|
|
3452
|
+
var $left = _ref30.$left;
|
|
3453
|
+
return $left;
|
|
3454
3454
|
}, function (_ref31) {
|
|
3455
|
-
var $
|
|
3456
|
-
return $
|
|
3455
|
+
var $right = _ref31.$right;
|
|
3456
|
+
return $right;
|
|
3457
3457
|
}, function (_ref32) {
|
|
3458
|
-
var $
|
|
3459
|
-
return $
|
|
3458
|
+
var $textAlign = _ref32.$textAlign;
|
|
3459
|
+
return $textAlign;
|
|
3460
3460
|
}, function (_ref33) {
|
|
3461
|
-
var $
|
|
3462
|
-
return $
|
|
3461
|
+
var $color = _ref33.$color;
|
|
3462
|
+
return $color;
|
|
3463
3463
|
}, function (_ref34) {
|
|
3464
|
-
var $
|
|
3465
|
-
return $
|
|
3464
|
+
var $overflow = _ref34.$overflow;
|
|
3465
|
+
return $overflow || 'visible';
|
|
3466
3466
|
}, function (_ref35) {
|
|
3467
|
-
var $
|
|
3468
|
-
return $
|
|
3467
|
+
var $overflowY = _ref35.$overflowY;
|
|
3468
|
+
return $overflowY;
|
|
3469
3469
|
}, function (_ref36) {
|
|
3470
|
-
var $
|
|
3471
|
-
return $
|
|
3470
|
+
var $zIndex = _ref36.$zIndex;
|
|
3471
|
+
return $zIndex;
|
|
3472
3472
|
}, function (_ref37) {
|
|
3473
|
-
var $
|
|
3474
|
-
return $
|
|
3473
|
+
var $scrollbarWidth = _ref37.$scrollbarWidth;
|
|
3474
|
+
return $scrollbarWidth;
|
|
3475
3475
|
}, function (_ref38) {
|
|
3476
|
-
var $
|
|
3477
|
-
return $
|
|
3476
|
+
var $border = _ref38.$border;
|
|
3477
|
+
return $border;
|
|
3478
3478
|
}, function (_ref39) {
|
|
3479
|
-
var $
|
|
3480
|
-
return $
|
|
3479
|
+
var $borderTop = _ref39.$borderTop;
|
|
3480
|
+
return $borderTop;
|
|
3481
3481
|
}, function (_ref40) {
|
|
3482
|
-
var $
|
|
3483
|
-
return $
|
|
3482
|
+
var $borderBottom = _ref40.$borderBottom;
|
|
3483
|
+
return $borderBottom;
|
|
3484
3484
|
}, function (_ref41) {
|
|
3485
|
-
var $
|
|
3486
|
-
return $
|
|
3485
|
+
var $borderLeft = _ref41.$borderLeft;
|
|
3486
|
+
return $borderLeft;
|
|
3487
3487
|
}, function (_ref42) {
|
|
3488
|
-
var $
|
|
3489
|
-
return $
|
|
3488
|
+
var $transition = _ref42.$transition;
|
|
3489
|
+
return $transition;
|
|
3490
3490
|
}, function (_ref43) {
|
|
3491
|
-
var $
|
|
3491
|
+
var $boxShadow = _ref43.$boxShadow;
|
|
3492
|
+
return $boxShadow;
|
|
3493
|
+
}, function (_ref44) {
|
|
3494
|
+
var $hoverBackground = _ref44.$hoverBackground;
|
|
3495
|
+
return $hoverBackground;
|
|
3496
|
+
}, function (_ref45) {
|
|
3497
|
+
var $hoverColor = _ref45.$hoverColor;
|
|
3492
3498
|
return $hoverColor;
|
|
3493
3499
|
});
|
|
3494
|
-
var Span = styled__default.span(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n font-style: ", ";\n color: ", ";\n line-height: ", ";\n text-align: ", ";\n min-width: ", ";\n width: ", ";\n overflow-wrap: ", ";\n"])), function (
|
|
3495
|
-
var $fontFamily =
|
|
3500
|
+
var Span = styled__default.span(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteralLoose(["\n font-family: ", ";\n font-weight: ", ";\n font-size: ", ";\n font-style: ", ";\n color: ", ";\n line-height: ", ";\n text-align: ", ";\n min-width: ", ";\n width: ", ";\n overflow-wrap: ", ";\n"])), function (_ref46) {
|
|
3501
|
+
var $fontFamily = _ref46.$fontFamily;
|
|
3496
3502
|
return $fontFamily ? $fontFamily : 'NotoSans, sans-serif';
|
|
3497
|
-
}, function (
|
|
3498
|
-
var $fontWeight =
|
|
3503
|
+
}, function (_ref47) {
|
|
3504
|
+
var $fontWeight = _ref47.$fontWeight;
|
|
3499
3505
|
return $fontWeight ? $fontWeight : '500';
|
|
3500
|
-
}, function (
|
|
3501
|
-
var $fontSize =
|
|
3506
|
+
}, function (_ref48) {
|
|
3507
|
+
var $fontSize = _ref48.$fontSize;
|
|
3502
3508
|
return $fontSize ? $fontSize : '16px';
|
|
3503
|
-
}, function (
|
|
3504
|
-
var $fontStyle =
|
|
3509
|
+
}, function (_ref49) {
|
|
3510
|
+
var $fontStyle = _ref49.$fontStyle;
|
|
3505
3511
|
return $fontStyle ? $fontStyle : 'normal';
|
|
3506
|
-
}, function (
|
|
3507
|
-
var $color =
|
|
3512
|
+
}, function (_ref50) {
|
|
3513
|
+
var $color = _ref50.$color;
|
|
3508
3514
|
return $color ? $color : colorVariables.text.medium;
|
|
3509
|
-
}, function (
|
|
3510
|
-
var $lineHeight =
|
|
3515
|
+
}, function (_ref51) {
|
|
3516
|
+
var $lineHeight = _ref51.$lineHeight;
|
|
3511
3517
|
return $lineHeight ? $lineHeight : '100%';
|
|
3512
|
-
}, function (
|
|
3513
|
-
var $textAlign =
|
|
3518
|
+
}, function (_ref52) {
|
|
3519
|
+
var $textAlign = _ref52.$textAlign;
|
|
3514
3520
|
return $textAlign ? $textAlign : 'center';
|
|
3515
|
-
}, function (
|
|
3516
|
-
var $minWidth =
|
|
3521
|
+
}, function (_ref53) {
|
|
3522
|
+
var $minWidth = _ref53.$minWidth;
|
|
3517
3523
|
return $minWidth;
|
|
3518
|
-
}, function (
|
|
3519
|
-
var $width =
|
|
3524
|
+
}, function (_ref54) {
|
|
3525
|
+
var $width = _ref54.$width;
|
|
3520
3526
|
return $width;
|
|
3521
|
-
}, function (
|
|
3522
|
-
var $overflowWrap =
|
|
3527
|
+
}, function (_ref55) {
|
|
3528
|
+
var $overflowWrap = _ref55.$overflowWrap;
|
|
3523
3529
|
return $overflowWrap;
|
|
3524
3530
|
});
|
|
3525
3531
|
|
|
@@ -5354,7 +5360,8 @@ var SelectOption = function SelectOption(_ref32) {
|
|
|
5354
5360
|
"$gap": '8px',
|
|
5355
5361
|
"$overflow": 'visible'
|
|
5356
5362
|
}, (title || titleRightNode) && React__default.createElement(Container, {
|
|
5357
|
-
"$gap": titleRightNode === null || titleRightNode === void 0 ? void 0 : titleRightNode.gap
|
|
5363
|
+
"$gap": titleRightNode === null || titleRightNode === void 0 ? void 0 : titleRightNode.gap,
|
|
5364
|
+
"$alignItems": 'center'
|
|
5358
5365
|
}, title && React__default.createElement(TitleText$1, {
|
|
5359
5366
|
"$size": size,
|
|
5360
5367
|
htmlFor: title,
|
|
@@ -6110,7 +6117,7 @@ var TextFieldWithDropdown = function TextFieldWithDropdown(_ref8) {
|
|
|
6110
6117
|
};
|
|
6111
6118
|
|
|
6112
6119
|
var _templateObject$i, _templateObject2$f;
|
|
6113
|
-
var
|
|
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) {
|
|
6114
6121
|
var $checkboxSize = _ref.$checkboxSize;
|
|
6115
6122
|
return $checkboxSize + "px";
|
|
6116
6123
|
}, function (_ref2) {
|
|
@@ -6173,7 +6180,7 @@ var CheckBox = function CheckBox(_ref10) {
|
|
|
6173
6180
|
height: checkboxSize,
|
|
6174
6181
|
display: 'flex'
|
|
6175
6182
|
}
|
|
6176
|
-
}, React__default.createElement(
|
|
6183
|
+
}, React__default.createElement(StyledCheckBox, {
|
|
6177
6184
|
type: 'checkbox',
|
|
6178
6185
|
id: safeId,
|
|
6179
6186
|
"$checkboxSize": checkboxSize,
|
|
@@ -6748,13 +6755,16 @@ var TableRow = function TableRow(_ref) {
|
|
|
6748
6755
|
}, tableheaderconfig.isAllSelectable && React__default.createElement(Container, {
|
|
6749
6756
|
"$padding": '0px 16px 0px 0px',
|
|
6750
6757
|
"$alignItems": 'center'
|
|
6751
|
-
}, React__default.createElement(
|
|
6752
|
-
type:
|
|
6758
|
+
}, React__default.createElement(StyledCheckBox, {
|
|
6759
|
+
type: 'checkbox',
|
|
6760
|
+
"$checkboxSize": 13.5,
|
|
6753
6761
|
checked: rowconfig[Index]._checked,
|
|
6754
|
-
|
|
6755
|
-
|
|
6762
|
+
"$checked": rowconfig[Index]._checked,
|
|
6763
|
+
onChange: function onChange() {
|
|
6756
6764
|
return toggleChecked(Index);
|
|
6757
|
-
}
|
|
6765
|
+
},
|
|
6766
|
+
disabled: (_rowconfig$Index = rowconfig[Index]) === null || _rowconfig$Index === void 0 ? void 0 : _rowconfig$Index._selectable,
|
|
6767
|
+
"$borderSize": 2
|
|
6758
6768
|
})), data.rowData.map(function (cellData, cellkey) {
|
|
6759
6769
|
var _tableheaderconfig$he;
|
|
6760
6770
|
return React__default.createElement(TableCell, {
|
|
@@ -6842,10 +6852,13 @@ var Table = function Table(_ref) {
|
|
|
6842
6852
|
}, tableheaderconfig.isAllSelectable && React__default.createElement(Container, {
|
|
6843
6853
|
"$padding": '0px 16px 0px 0px',
|
|
6844
6854
|
"$alignItems": 'center'
|
|
6845
|
-
}, React__default.createElement(
|
|
6855
|
+
}, React__default.createElement(StyledCheckBox, {
|
|
6846
6856
|
type: 'checkbox',
|
|
6857
|
+
"$checkboxSize": 13.5,
|
|
6847
6858
|
checked: isAllSelected,
|
|
6848
|
-
|
|
6859
|
+
"$checked": isAllSelected,
|
|
6860
|
+
onChange: toggleSelectAll,
|
|
6861
|
+
"$borderSize": 2
|
|
6849
6862
|
})), tableheaderconfig.headerdata.map(function (columndata, index, allCols) {
|
|
6850
6863
|
var _columndata$maintext;
|
|
6851
6864
|
var currentLegend = columndata.legend || '';
|