labsense-ui-kit 1.4.41 → 1.4.43
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/Icons/SVGs/SyncPlayback.d.ts +4 -0
- package/dist/Icons/SVGs/index.d.ts +1 -0
- package/dist/Icons/index.d.ts +1 -1
- package/dist/index.js +155 -127
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +155 -127
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -6377,6 +6377,29 @@ var StorageDisks = function StorageDisks(_ref) {
|
|
|
6377
6377
|
}));
|
|
6378
6378
|
};
|
|
6379
6379
|
|
|
6380
|
+
var SyncPlayback = function SyncPlayback(_ref) {
|
|
6381
|
+
var size = _ref.size,
|
|
6382
|
+
color = _ref.color,
|
|
6383
|
+
weight = _ref.weight;
|
|
6384
|
+
return React.createElement("svg", {
|
|
6385
|
+
width: size,
|
|
6386
|
+
height: size,
|
|
6387
|
+
strokeWidth: weight,
|
|
6388
|
+
viewBox: '0 0 462 433',
|
|
6389
|
+
fill: 'none',
|
|
6390
|
+
xmlns: 'http://www.w3.org/2000/svg'
|
|
6391
|
+
}, React.createElement("path", {
|
|
6392
|
+
d: 'M223.118 134.904C224.82 135.91 226.523 136.917 228.226 137.922C229.977 138.957 231.724 139.997 233.471 141.039C238.923 144.283 244.43 147.431 249.93 150.591C252.097 151.841 254.264 153.091 256.43 154.341C257.503 154.96 258.575 155.579 259.68 156.216C264.555 159.029 264.555 159.029 269.43 161.841C270.504 162.461 271.578 163.08 272.684 163.718C274.839 164.961 276.993 166.205 279.147 167.449C284.158 170.341 289.17 173.231 294.189 176.108C295.948 177.117 297.706 178.126 299.463 179.136C301.655 180.395 303.848 181.651 306.042 182.906C332.539 198.137 332.539 198.137 338.18 214.779C340.558 225.825 339.287 236.922 333.387 246.63C326.832 255.601 317.573 260.641 308.055 266.029C306.319 267.021 304.582 268.013 302.846 269.006C301.055 270.03 299.263 271.051 297.47 272.071C291.944 275.221 286.438 278.408 280.93 281.591C278.764 282.841 276.597 284.091 274.43 285.341C272.822 286.269 272.822 286.269 271.18 287.216C266.305 290.029 266.305 290.029 261.43 292.841C260.356 293.461 259.283 294.08 258.176 294.719C256.023 295.961 253.869 297.203 251.715 298.444C246.688 301.343 241.663 304.244 236.646 307.16C234.881 308.185 233.114 309.21 231.348 310.234C229.141 311.514 226.935 312.796 224.731 314.082C199.932 328.45 199.932 328.45 184.79 325.474C173.909 322.561 164.935 317.134 159.075 307.322C155.452 300.262 153.815 293.378 153.79 285.439C153.784 284.338 153.778 283.236 153.773 282.101C153.771 280.907 153.77 279.713 153.769 278.483C153.764 277.214 153.759 275.945 153.754 274.638C153.741 271.166 153.735 267.695 153.73 264.223C153.727 262.049 153.723 259.875 153.719 257.701C153.705 250.884 153.695 244.067 153.691 237.249C153.687 229.408 153.669 221.567 153.64 213.726C153.619 207.647 153.609 201.568 153.607 195.489C153.606 191.867 153.601 188.245 153.583 184.623C153.563 180.573 153.567 176.525 153.574 172.476C153.565 171.294 153.555 170.112 153.546 168.895C153.613 155.418 156.428 144.853 165.618 134.904C183.07 118.175 204.4 123.572 223.118 134.904Z',
|
|
6393
|
+
fill: color
|
|
6394
|
+
}), React.createElement("path", {
|
|
6395
|
+
d: 'M329.931 25.0914C334.328 30.0858 335.282 33.0018 335.216 39.5484C334.695 44.1936 332.272 46.9128 328.868 49.9039C324.761 52.4211 320.613 52.6358 315.931 52.0914C312.846 51.1439 309.978 49.826 307.056 48.4664C261.809 28.5162 211.593 26.3588 165.072 43.911C138.331 54.4625 112.467 70.8707 93.9305 93.0914C92.7897 94.4004 92.7897 94.4004 91.6258 95.7359C60.3536 132.123 43.6974 180.605 47.1078 228.585C47.7873 236.855 48.655 245.093 50.5633 253.181C50.9305 255.091 50.9305 255.091 50.9305 259.091C52.0069 259.045 53.0833 258.999 54.1922 258.951C71.294 258.435 86.166 262.946 98.868 274.9C111.274 288.081 115.592 303.02 115.173 320.654C114.542 335.387 107.874 348.049 97.7235 358.584C84.5862 370.38 70.2493 374.055 53.0321 373.47C37.8635 372.575 24.6685 365.993 14.2547 354.959C3.49029 341.679 -1.29024 326.247 0.297712 309.134C2.28065 295.113 8.24143 282.654 18.9305 273.091C21.2001 271.826 21.2001 271.826 22.9305 271.091C22.6766 270.275 22.4226 269.459 22.161 268.619C7.02316 216.515 16.8645 157.778 42.4598 110.687C52.3938 93.1542 65.0496 77.6133 78.9305 63.0914C79.566 62.4146 80.2015 61.7379 80.8563 61.0406C110.889 29.8607 154.663 9.71689 196.931 3.09138C198.818 2.75687 198.818 2.75687 200.743 2.4156C241.123 -3.66629 295.79 0.976448 329.931 25.0914Z',
|
|
6396
|
+
fill: color
|
|
6397
|
+
}), React.createElement("path", {
|
|
6398
|
+
d: 'M435.559 67.3374C448.913 77.2151 457.963 89.4158 461.305 105.904C463.426 121.524 460.306 137.303 450.93 150.091C443.119 159.695 443.119 159.695 438.93 161.091C439.184 161.896 439.438 162.7 439.7 163.529C455.157 216.328 444.332 274.372 418.93 322.091C409.207 339.545 396.652 354.66 382.93 369.091C382.319 369.744 381.708 370.396 381.079 371.068C350.57 402.734 307.544 421.39 264.93 429.091C264.236 429.223 263.541 429.354 262.826 429.489C220.798 437.114 171.768 429.021 134.391 408.83C131.057 406.474 128.755 403.741 126.93 400.091C126.381 395.08 126.369 391.194 128.68 386.654C132.613 382.175 135.519 380.283 141.563 379.802C146.522 379.872 150.368 381.652 154.805 383.716C200.034 403.659 250.275 405.809 296.787 388.272C311.371 382.522 325.22 375.293 337.93 366.091C338.98 365.34 340.029 364.588 341.11 363.814C357.348 351.817 371.741 336.888 382.93 320.091C383.528 319.196 383.528 319.196 384.137 318.283C410.306 278.363 421.488 228.12 411.805 181.091C411.638 180.39 411.47 179.689 411.298 178.966C410.93 177.091 410.93 177.091 410.93 173.091C409.854 173.138 408.778 173.184 407.669 173.232C391.252 173.727 377.425 169.668 364.68 158.904C354.237 149.04 347.346 135.326 346.708 120.943C346.231 103.65 350.152 89.6139 361.68 76.2163C380.421 56.7386 412.647 52.3257 435.559 67.3374Z',
|
|
6399
|
+
fill: color
|
|
6400
|
+
}));
|
|
6401
|
+
};
|
|
6402
|
+
|
|
6380
6403
|
var Tag = function Tag(_ref) {
|
|
6381
6404
|
var size = _ref.size,
|
|
6382
6405
|
color = _ref.color,
|
|
@@ -7328,6 +7351,7 @@ var IconSVGs = {
|
|
|
7328
7351
|
Stopwatch: Stopwatch,
|
|
7329
7352
|
Storage_Disk: Storage_Disk,
|
|
7330
7353
|
StorageDisks: StorageDisks,
|
|
7354
|
+
SyncPlayback: SyncPlayback,
|
|
7331
7355
|
Tag: Tag,
|
|
7332
7356
|
Team_2: Team_2,
|
|
7333
7357
|
Team: Team,
|
|
@@ -9408,7 +9432,7 @@ var DropdownContainer = styled.div(_templateObject$b || (_templateObject$b = _ta
|
|
|
9408
9432
|
var $hasTitle = _ref4.$hasTitle;
|
|
9409
9433
|
return $hasTitle ? 'calc(100% - 22px)' : '100%';
|
|
9410
9434
|
});
|
|
9411
|
-
var DropdownButton = styled.div(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n overflow: ", ";\n padding: ", ";\n scrollbar-width: thin;\n gap: 8px;\n box-sizing: border-box;\n transition: all 0.3s ease;\n width: ", ";\n height: ", ";\n border: ", ";\n border-radius: ", ";\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: ", ";\n background: ", ";\n color: ", ";\n font-weight: 400;\n font-size: ", ";\n line-height: ", ";\n"])), function (_ref5) {
|
|
9435
|
+
var DropdownButton = styled.div(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose(["\n overflow: ", ";\n padding: ", ";\n min-height: ", ";\n scrollbar-width: thin;\n gap: 8px;\n box-sizing: border-box;\n transition: all 0.3s ease;\n width: ", ";\n height: ", ";\n border: ", ";\n border-radius: ", ";\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: ", ";\n background: ", ";\n color: ", ";\n font-weight: 400;\n font-size: ", ";\n line-height: ", ";\n"])), function (_ref5) {
|
|
9412
9436
|
var $replaceLabel = _ref5.$replaceLabel,
|
|
9413
9437
|
$showAllSelected = _ref5.$showAllSelected;
|
|
9414
9438
|
return $replaceLabel ? $showAllSelected ? 'auto' : 'hidden' : '';
|
|
@@ -9423,26 +9447,30 @@ var DropdownButton = styled.div(_templateObject2$8 || (_templateObject2$8 = _tag
|
|
|
9423
9447
|
return '14px 12px';
|
|
9424
9448
|
}
|
|
9425
9449
|
}, function (_ref7) {
|
|
9426
|
-
var $
|
|
9427
|
-
|
|
9450
|
+
var $replaceLabel = _ref7.$replaceLabel,
|
|
9451
|
+
$size = _ref7.$size;
|
|
9452
|
+
return !$replaceLabel ? '100%' : $size === 'small' ? '46px' : $size === 'large' ? '76px' : '56px';
|
|
9428
9453
|
}, function (_ref8) {
|
|
9429
|
-
var $
|
|
9430
|
-
return $
|
|
9454
|
+
var $width = _ref8.$width;
|
|
9455
|
+
return $width ? $width : '100%';
|
|
9431
9456
|
}, function (_ref9) {
|
|
9432
|
-
var $
|
|
9433
|
-
|
|
9434
|
-
theme = _ref9.theme;
|
|
9435
|
-
return $isOpen ? "1px solid " + theme.vms.text.dark : $border || "1px solid " + theme.vms.border.light;
|
|
9457
|
+
var $height = _ref9.$height;
|
|
9458
|
+
return $height || '100%';
|
|
9436
9459
|
}, function (_ref10) {
|
|
9437
|
-
var $
|
|
9438
|
-
|
|
9460
|
+
var $border = _ref10.$border,
|
|
9461
|
+
$isOpen = _ref10.$isOpen,
|
|
9462
|
+
theme = _ref10.theme;
|
|
9463
|
+
return $isOpen ? "1px solid " + theme.vms.text.dark : $border || "1px solid " + theme.vms.border.light;
|
|
9439
9464
|
}, function (_ref11) {
|
|
9440
|
-
var $
|
|
9441
|
-
return $
|
|
9465
|
+
var $borderRadius = _ref11.$borderRadius;
|
|
9466
|
+
return $borderRadius || '8px';
|
|
9442
9467
|
}, function (_ref12) {
|
|
9443
|
-
var $
|
|
9444
|
-
|
|
9445
|
-
|
|
9468
|
+
var $disabled = _ref12.$disabled;
|
|
9469
|
+
return $disabled ? 'not-allowed' : 'pointer';
|
|
9470
|
+
}, function (_ref13) {
|
|
9471
|
+
var $background = _ref13.$background,
|
|
9472
|
+
$disabled = _ref13.$disabled,
|
|
9473
|
+
theme = _ref13.theme;
|
|
9446
9474
|
switch ($background) {
|
|
9447
9475
|
case 'dark':
|
|
9448
9476
|
return $disabled ? theme.vms.disabled.secondary : theme.vms.text.dark;
|
|
@@ -9463,12 +9491,12 @@ var DropdownButton = styled.div(_templateObject2$8 || (_templateObject2$8 = _tag
|
|
|
9463
9491
|
default:
|
|
9464
9492
|
return $disabled ? theme.vms.disabled.secondary : $background;
|
|
9465
9493
|
}
|
|
9466
|
-
}, function (_ref13) {
|
|
9467
|
-
var $color = _ref13.$color,
|
|
9468
|
-
theme = _ref13.theme;
|
|
9469
|
-
return $color || theme.vms.text.medium;
|
|
9470
9494
|
}, function (_ref14) {
|
|
9471
|
-
var $
|
|
9495
|
+
var $color = _ref14.$color,
|
|
9496
|
+
theme = _ref14.theme;
|
|
9497
|
+
return $color || theme.vms.text.medium;
|
|
9498
|
+
}, function (_ref15) {
|
|
9499
|
+
var $size = _ref15.$size;
|
|
9472
9500
|
switch ($size) {
|
|
9473
9501
|
case 'small':
|
|
9474
9502
|
return '12px';
|
|
@@ -9477,8 +9505,8 @@ var DropdownButton = styled.div(_templateObject2$8 || (_templateObject2$8 = _tag
|
|
|
9477
9505
|
default:
|
|
9478
9506
|
return '14px';
|
|
9479
9507
|
}
|
|
9480
|
-
}, function (
|
|
9481
|
-
var $size =
|
|
9508
|
+
}, function (_ref16) {
|
|
9509
|
+
var $size = _ref16.$size;
|
|
9482
9510
|
switch ($size) {
|
|
9483
9511
|
case 'small':
|
|
9484
9512
|
return '12px';
|
|
@@ -9488,20 +9516,20 @@ var DropdownButton = styled.div(_templateObject2$8 || (_templateObject2$8 = _tag
|
|
|
9488
9516
|
return '14px';
|
|
9489
9517
|
}
|
|
9490
9518
|
});
|
|
9491
|
-
var TitleText = styled.div(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteralLoose(["\n width: max-content;\n position: relative;\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n\n color: ", ";\n"])), function (
|
|
9492
|
-
var $titleWeight =
|
|
9519
|
+
var TitleText = styled.div(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteralLoose(["\n width: max-content;\n position: relative;\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n\n color: ", ";\n"])), function (_ref17) {
|
|
9520
|
+
var $titleWeight = _ref17.$titleWeight;
|
|
9493
9521
|
return $titleWeight != null ? $titleWeight : '500';
|
|
9494
|
-
}, function (_ref17) {
|
|
9495
|
-
var $titleSize = _ref17.$titleSize,
|
|
9496
|
-
$size = _ref17.$size;
|
|
9497
|
-
return $titleSize ? $titleSize + "px" : $size === 'small' ? '14px' : $size === 'large' ? '18px' : '16px';
|
|
9498
9522
|
}, function (_ref18) {
|
|
9499
9523
|
var $titleSize = _ref18.$titleSize,
|
|
9500
9524
|
$size = _ref18.$size;
|
|
9501
9525
|
return $titleSize ? $titleSize + "px" : $size === 'small' ? '14px' : $size === 'large' ? '18px' : '16px';
|
|
9502
9526
|
}, function (_ref19) {
|
|
9503
|
-
var $
|
|
9504
|
-
|
|
9527
|
+
var $titleSize = _ref19.$titleSize,
|
|
9528
|
+
$size = _ref19.$size;
|
|
9529
|
+
return $titleSize ? $titleSize + "px" : $size === 'small' ? '14px' : $size === 'large' ? '18px' : '16px';
|
|
9530
|
+
}, function (_ref20) {
|
|
9531
|
+
var $titleColor = _ref20.$titleColor,
|
|
9532
|
+
theme = _ref20.theme;
|
|
9505
9533
|
switch ($titleColor) {
|
|
9506
9534
|
case 'dark':
|
|
9507
9535
|
return theme.vms.text.dark;
|
|
@@ -9524,29 +9552,29 @@ var TitleText = styled.div(_templateObject3$5 || (_templateObject3$5 = _taggedTe
|
|
|
9524
9552
|
}
|
|
9525
9553
|
});
|
|
9526
9554
|
var Container$2 = styled.div(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n width: 100%;\n gap: 8px;\n height: 100%;\n"])));
|
|
9527
|
-
var LabelText = styled.div(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n font-weight: 400;\n font-style:", ";\n color: ", ";\n"])), function (
|
|
9528
|
-
var $labelStyle =
|
|
9555
|
+
var LabelText = styled.div(_templateObject5$4 || (_templateObject5$4 = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n font-weight: 400;\n font-style:", ";\n color: ", ";\n"])), function (_ref21) {
|
|
9556
|
+
var $labelStyle = _ref21.$labelStyle;
|
|
9529
9557
|
return $labelStyle;
|
|
9530
|
-
}, function (
|
|
9531
|
-
var $labelColor =
|
|
9532
|
-
theme =
|
|
9558
|
+
}, function (_ref22) {
|
|
9559
|
+
var $labelColor = _ref22.$labelColor,
|
|
9560
|
+
theme = _ref22.theme;
|
|
9533
9561
|
return $labelColor || theme.vms.text.medium;
|
|
9534
9562
|
});
|
|
9535
|
-
var DropdownMenu = styled.div(_templateObject6$4 || (_templateObject6$4 = _taggedTemplateLiteralLoose(["\n max-height: 156px;\n padding: 4px;\n box-sizing: border-box;\n border: ", ";\n border-radius: ", ";\n width: ", ";\n background: ", ";\n display: flex;\n flex-direction: column;\n gap: 4px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n margin-top: 8px;\n overflow-y: auto;\n position: absolute;\n z-index: 2;\n scrollbar-width: thin;\n \n ", "\n"])), function (
|
|
9536
|
-
var theme =
|
|
9563
|
+
var DropdownMenu = styled.div(_templateObject6$4 || (_templateObject6$4 = _taggedTemplateLiteralLoose(["\n max-height: 156px;\n padding: 4px;\n box-sizing: border-box;\n border: ", ";\n border-radius: ", ";\n width: ", ";\n background: ", ";\n display: flex;\n flex-direction: column;\n gap: 4px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n margin-top: 8px;\n overflow-y: auto;\n position: absolute;\n z-index: 2;\n scrollbar-width: thin;\n \n ", "\n"])), function (_ref23) {
|
|
9564
|
+
var theme = _ref23.theme;
|
|
9537
9565
|
return "1px solid " + theme.vms.border.light;
|
|
9538
|
-
}, function (_ref23) {
|
|
9539
|
-
var $optionsBorderRadius = _ref23.$optionsBorderRadius;
|
|
9540
|
-
return $optionsBorderRadius || '8px';
|
|
9541
9566
|
}, function (_ref24) {
|
|
9542
|
-
var $
|
|
9543
|
-
return $
|
|
9567
|
+
var $optionsBorderRadius = _ref24.$optionsBorderRadius;
|
|
9568
|
+
return $optionsBorderRadius || '8px';
|
|
9544
9569
|
}, function (_ref25) {
|
|
9545
|
-
var $
|
|
9546
|
-
|
|
9547
|
-
return $menuBackground || theme.vms.accent.light_2;
|
|
9570
|
+
var $width = _ref25.$width;
|
|
9571
|
+
return $width ? $width : 'max-content';
|
|
9548
9572
|
}, function (_ref26) {
|
|
9549
|
-
var $
|
|
9573
|
+
var $menuBackground = _ref26.$menuBackground,
|
|
9574
|
+
theme = _ref26.theme;
|
|
9575
|
+
return $menuBackground || theme.vms.accent.light_2;
|
|
9576
|
+
}, function (_ref27) {
|
|
9577
|
+
var $position = _ref27.$position;
|
|
9550
9578
|
switch ($position) {
|
|
9551
9579
|
case 'topLeft':
|
|
9552
9580
|
return "\n bottom: calc(100% + 8px);\n left: 0;\n top: auto;\n ";
|
|
@@ -9565,10 +9593,10 @@ var DropdownMenu = styled.div(_templateObject6$4 || (_templateObject6$4 = _tagge
|
|
|
9565
9593
|
}
|
|
9566
9594
|
});
|
|
9567
9595
|
var SelectedOptionsWrapper = styled.div(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n height: 100%;\n"])));
|
|
9568
|
-
var SelectedOptionDiv = styled.div(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n white-space: nowrap;\n background: ", ";\n border-radius: 4px;\n padding: 6px 8px;\n box-sizing: border-box;\n gap: 6px;\n font-style: normal;\n font-weight: 400;\n font-size: 12px;\n line-height: 12px;\n color: ", ";\n"])), function (
|
|
9569
|
-
var $selectedOptionBackground =
|
|
9570
|
-
$disabled =
|
|
9571
|
-
theme =
|
|
9596
|
+
var SelectedOptionDiv = styled.div(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n white-space: nowrap;\n background: ", ";\n border-radius: 4px;\n padding: 6px 8px;\n box-sizing: border-box;\n gap: 6px;\n font-style: normal;\n font-weight: 400;\n font-size: 12px;\n line-height: 12px;\n color: ", ";\n"])), function (_ref28) {
|
|
9597
|
+
var $selectedOptionBackground = _ref28.$selectedOptionBackground,
|
|
9598
|
+
$disabled = _ref28.$disabled,
|
|
9599
|
+
theme = _ref28.theme;
|
|
9572
9600
|
switch ($selectedOptionBackground) {
|
|
9573
9601
|
case 'dark':
|
|
9574
9602
|
return theme.vms.text.dark;
|
|
@@ -9589,9 +9617,9 @@ var SelectedOptionDiv = styled.div(_templateObject8$2 || (_templateObject8$2 = _
|
|
|
9589
9617
|
default:
|
|
9590
9618
|
return $selectedOptionBackground || theme.vms.accent.light_2;
|
|
9591
9619
|
}
|
|
9592
|
-
}, function (
|
|
9593
|
-
var $selectedOptionColor =
|
|
9594
|
-
theme =
|
|
9620
|
+
}, function (_ref29) {
|
|
9621
|
+
var $selectedOptionColor = _ref29.$selectedOptionColor,
|
|
9622
|
+
theme = _ref29.theme;
|
|
9595
9623
|
switch ($selectedOptionColor) {
|
|
9596
9624
|
case 'dark':
|
|
9597
9625
|
return theme.vms.text.dark;
|
|
@@ -9613,26 +9641,26 @@ var SelectedOptionDiv = styled.div(_templateObject8$2 || (_templateObject8$2 = _
|
|
|
9613
9641
|
return $selectedOptionColor;
|
|
9614
9642
|
}
|
|
9615
9643
|
});
|
|
9616
|
-
var RemoveIcon = styled.div(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n width: 14px;\n height: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: ", ";\n border-radius: 50%;\n box-sizing: border-box;\n background: ", ";\n > div {\n cursor: ", ";\n }\n"])), function (
|
|
9617
|
-
var $disabled =
|
|
9644
|
+
var RemoveIcon = styled.div(_templateObject9$1 || (_templateObject9$1 = _taggedTemplateLiteralLoose(["\n width: 14px;\n height: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: ", ";\n border-radius: 50%;\n box-sizing: border-box;\n background: ", ";\n > div {\n cursor: ", ";\n }\n"])), function (_ref30) {
|
|
9645
|
+
var $disabled = _ref30.$disabled;
|
|
9618
9646
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
9619
|
-
}, function (_ref30) {
|
|
9620
|
-
var removeIconBackground = _ref30.removeIconBackground,
|
|
9621
|
-
$type = _ref30.$type,
|
|
9622
|
-
theme = _ref30.theme;
|
|
9623
|
-
return removeIconBackground ? removeIconBackground : $type === 'remove' ? '#5E5E5E24' : theme.vms.disabled.primary;
|
|
9624
9647
|
}, function (_ref31) {
|
|
9625
|
-
var
|
|
9648
|
+
var removeIconBackground = _ref31.removeIconBackground,
|
|
9649
|
+
$type = _ref31.$type,
|
|
9650
|
+
theme = _ref31.theme;
|
|
9651
|
+
return removeIconBackground ? removeIconBackground : $type === 'remove' ? '#5E5E5E24' : theme.vms.disabled.primary;
|
|
9652
|
+
}, function (_ref32) {
|
|
9653
|
+
var $disabled = _ref32.$disabled;
|
|
9626
9654
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
9627
9655
|
});
|
|
9628
9656
|
var TextWrapper = styled.div(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 4px;\n"])));
|
|
9629
9657
|
var ChipArea = styled.div(_templateObject11$1 || (_templateObject11$1 = _taggedTemplateLiteralLoose(["\n flex: 1;\n min-width: 0;\n overflow: hidden;\n position: relative;\n display: flex;\n align-items: center;\n"])));
|
|
9630
9658
|
var MeasureLayer = styled.div(_templateObject12$1 || (_templateObject12$1 = _taggedTemplateLiteralLoose(["\n position: absolute;\n visibility: hidden;\n pointer-events: none;\n display: flex;\n flex-wrap: nowrap;\n gap: 6px;\n width: 100%;\n top: 0;\n left: 0;\n"])));
|
|
9631
9659
|
var SingleLineRow = styled.div(_templateObject13$1 || (_templateObject13$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: nowrap;\n gap: 6px;\n overflow: hidden;\n align-items: center;\n width: 100%;\n"])));
|
|
9632
|
-
var OverflowCountBadge = styled.div(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n border-radius: 4px;\n padding: 6px 8px;\n box-sizing: border-box;\n font-size: 12px;\n line-height: 12px;\n font-weight: 400;\n white-space: nowrap;\n background: ", ";\n color: ", ";\n"])), function (
|
|
9633
|
-
var $selectedOptionBackground =
|
|
9634
|
-
$disabled =
|
|
9635
|
-
theme =
|
|
9660
|
+
var OverflowCountBadge = styled.div(_templateObject14$1 || (_templateObject14$1 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n flex-shrink: 0;\n border-radius: 4px;\n padding: 6px 8px;\n box-sizing: border-box;\n font-size: 12px;\n line-height: 12px;\n font-weight: 400;\n white-space: nowrap;\n background: ", ";\n color: ", ";\n"])), function (_ref33) {
|
|
9661
|
+
var $selectedOptionBackground = _ref33.$selectedOptionBackground,
|
|
9662
|
+
$disabled = _ref33.$disabled,
|
|
9663
|
+
theme = _ref33.theme;
|
|
9636
9664
|
switch ($selectedOptionBackground) {
|
|
9637
9665
|
case 'dark':
|
|
9638
9666
|
return theme.vms.text.dark;
|
|
@@ -9653,9 +9681,9 @@ var OverflowCountBadge = styled.div(_templateObject14$1 || (_templateObject14$1
|
|
|
9653
9681
|
default:
|
|
9654
9682
|
return $selectedOptionBackground || theme.vms.accent.light_2;
|
|
9655
9683
|
}
|
|
9656
|
-
}, function (
|
|
9657
|
-
var $selectedOptionColor =
|
|
9658
|
-
theme =
|
|
9684
|
+
}, function (_ref34) {
|
|
9685
|
+
var $selectedOptionColor = _ref34.$selectedOptionColor,
|
|
9686
|
+
theme = _ref34.theme;
|
|
9659
9687
|
switch ($selectedOptionColor) {
|
|
9660
9688
|
case 'dark':
|
|
9661
9689
|
return theme.vms.text.dark;
|
|
@@ -9677,66 +9705,66 @@ var OverflowCountBadge = styled.div(_templateObject14$1 || (_templateObject14$1
|
|
|
9677
9705
|
return $selectedOptionColor || theme.vms.text.medium;
|
|
9678
9706
|
}
|
|
9679
9707
|
});
|
|
9680
|
-
var Asterisk = styled.span(_templateObject15$1 || (_templateObject15$1 = _taggedTemplateLiteralLoose(["\n color: ", ";\n font-size: 10px;\n height: fit-content;\n position: absolute;\n top: -2px;\n right: -8px;\n"])), function (
|
|
9681
|
-
var theme =
|
|
9708
|
+
var Asterisk = styled.span(_templateObject15$1 || (_templateObject15$1 = _taggedTemplateLiteralLoose(["\n color: ", ";\n font-size: 10px;\n height: fit-content;\n position: absolute;\n top: -2px;\n right: -8px;\n"])), function (_ref35) {
|
|
9709
|
+
var theme = _ref35.theme;
|
|
9682
9710
|
return theme.vms["default"].error;
|
|
9683
9711
|
});
|
|
9684
|
-
var MultiSelectDropdown = function MultiSelectDropdown(
|
|
9685
|
-
var title =
|
|
9686
|
-
titleWeight =
|
|
9687
|
-
titleSize =
|
|
9688
|
-
titleColor =
|
|
9689
|
-
|
|
9690
|
-
labelText =
|
|
9691
|
-
labelStyle =
|
|
9692
|
-
labelColor =
|
|
9693
|
-
|
|
9694
|
-
replaceLabel =
|
|
9695
|
-
options =
|
|
9696
|
-
width =
|
|
9697
|
-
optionWidth =
|
|
9698
|
-
height =
|
|
9699
|
-
placeholder =
|
|
9700
|
-
border =
|
|
9701
|
-
background =
|
|
9702
|
-
selectedOptionBackground =
|
|
9703
|
-
selectedOptionColor =
|
|
9704
|
-
menuBackground =
|
|
9705
|
-
optionsBorderRadius =
|
|
9706
|
-
borderRadius =
|
|
9707
|
-
removeIconBackground =
|
|
9708
|
-
handleSelectChange =
|
|
9709
|
-
selectedOptions =
|
|
9710
|
-
placeholderColor =
|
|
9711
|
-
optionBorder =
|
|
9712
|
-
optionColor =
|
|
9713
|
-
searchIcon =
|
|
9714
|
-
searchbarTextColor =
|
|
9715
|
-
searchBoxBackground =
|
|
9716
|
-
searchBoxBorder =
|
|
9717
|
-
searchBoxBorderRadius =
|
|
9718
|
-
size =
|
|
9719
|
-
removeIcon =
|
|
9720
|
-
type =
|
|
9721
|
-
icon =
|
|
9722
|
-
|
|
9723
|
-
disabled =
|
|
9724
|
-
|
|
9725
|
-
required =
|
|
9726
|
-
|
|
9727
|
-
searchBox =
|
|
9728
|
-
|
|
9729
|
-
searchBoxTextLength =
|
|
9730
|
-
|
|
9731
|
-
NoOptionsText =
|
|
9732
|
-
|
|
9733
|
-
selectAllOption =
|
|
9734
|
-
|
|
9735
|
-
selectAllLabel =
|
|
9736
|
-
selectAllChecked =
|
|
9737
|
-
dropdownPosition =
|
|
9738
|
-
|
|
9739
|
-
showAllSelected =
|
|
9712
|
+
var MultiSelectDropdown = function MultiSelectDropdown(_ref36) {
|
|
9713
|
+
var title = _ref36.title,
|
|
9714
|
+
titleWeight = _ref36.titleWeight,
|
|
9715
|
+
titleSize = _ref36.titleSize,
|
|
9716
|
+
titleColor = _ref36.titleColor,
|
|
9717
|
+
_ref36$labelText = _ref36.labelText,
|
|
9718
|
+
labelText = _ref36$labelText === void 0 ? 'Select Cameras' : _ref36$labelText,
|
|
9719
|
+
labelStyle = _ref36.labelStyle,
|
|
9720
|
+
labelColor = _ref36.labelColor,
|
|
9721
|
+
_ref36$replaceLabel = _ref36.replaceLabel,
|
|
9722
|
+
replaceLabel = _ref36$replaceLabel === void 0 ? true : _ref36$replaceLabel,
|
|
9723
|
+
options = _ref36.options,
|
|
9724
|
+
width = _ref36.width,
|
|
9725
|
+
optionWidth = _ref36.optionWidth,
|
|
9726
|
+
height = _ref36.height,
|
|
9727
|
+
placeholder = _ref36.placeholder,
|
|
9728
|
+
border = _ref36.border,
|
|
9729
|
+
background = _ref36.background,
|
|
9730
|
+
selectedOptionBackground = _ref36.selectedOptionBackground,
|
|
9731
|
+
selectedOptionColor = _ref36.selectedOptionColor,
|
|
9732
|
+
menuBackground = _ref36.menuBackground,
|
|
9733
|
+
optionsBorderRadius = _ref36.optionsBorderRadius,
|
|
9734
|
+
borderRadius = _ref36.borderRadius,
|
|
9735
|
+
removeIconBackground = _ref36.removeIconBackground,
|
|
9736
|
+
handleSelectChange = _ref36.handleSelectChange,
|
|
9737
|
+
selectedOptions = _ref36.selectedOptions,
|
|
9738
|
+
placeholderColor = _ref36.placeholderColor,
|
|
9739
|
+
optionBorder = _ref36.optionBorder,
|
|
9740
|
+
optionColor = _ref36.optionColor,
|
|
9741
|
+
searchIcon = _ref36.searchIcon,
|
|
9742
|
+
searchbarTextColor = _ref36.searchbarTextColor,
|
|
9743
|
+
searchBoxBackground = _ref36.searchBoxBackground,
|
|
9744
|
+
searchBoxBorder = _ref36.searchBoxBorder,
|
|
9745
|
+
searchBoxBorderRadius = _ref36.searchBoxBorderRadius,
|
|
9746
|
+
size = _ref36.size,
|
|
9747
|
+
removeIcon = _ref36.removeIcon,
|
|
9748
|
+
type = _ref36.type,
|
|
9749
|
+
icon = _ref36.icon,
|
|
9750
|
+
_ref36$disabled = _ref36.disabled,
|
|
9751
|
+
disabled = _ref36$disabled === void 0 ? false : _ref36$disabled,
|
|
9752
|
+
_ref36$required = _ref36.required,
|
|
9753
|
+
required = _ref36$required === void 0 ? false : _ref36$required,
|
|
9754
|
+
_ref36$searchBox = _ref36.searchBox,
|
|
9755
|
+
searchBox = _ref36$searchBox === void 0 ? true : _ref36$searchBox,
|
|
9756
|
+
_ref36$searchBoxTextL = _ref36.searchBoxTextLength,
|
|
9757
|
+
searchBoxTextLength = _ref36$searchBoxTextL === void 0 ? 50 : _ref36$searchBoxTextL,
|
|
9758
|
+
_ref36$NoOptionsText = _ref36.NoOptionsText,
|
|
9759
|
+
NoOptionsText = _ref36$NoOptionsText === void 0 ? 'No Options Available' : _ref36$NoOptionsText,
|
|
9760
|
+
_ref36$selectAllOptio = _ref36.selectAllOption,
|
|
9761
|
+
selectAllOption = _ref36$selectAllOptio === void 0 ? false : _ref36$selectAllOptio,
|
|
9762
|
+
_ref36$selectAllLabel = _ref36.selectAllLabel,
|
|
9763
|
+
selectAllLabel = _ref36$selectAllLabel === void 0 ? 'Select All' : _ref36$selectAllLabel,
|
|
9764
|
+
selectAllChecked = _ref36.selectAllChecked,
|
|
9765
|
+
dropdownPosition = _ref36.dropdownPosition,
|
|
9766
|
+
_ref36$showAllSelecte = _ref36.showAllSelected,
|
|
9767
|
+
showAllSelected = _ref36$showAllSelecte === void 0 ? false : _ref36$showAllSelecte;
|
|
9740
9768
|
var themeColors = useTheme();
|
|
9741
9769
|
var _useState = useState(false),
|
|
9742
9770
|
dropUp = _useState[0],
|