labsense-ui-kit 1.4.28 → 1.4.29
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/Dropdown/MultiSelectDropdown.d.ts +1 -0
- package/dist/index.js +219 -71
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +219 -71
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -9158,7 +9158,7 @@ var OptionComponent = function OptionComponent(_ref11) {
|
|
|
9158
9158
|
}, NoOptionsText))));
|
|
9159
9159
|
};
|
|
9160
9160
|
|
|
9161
|
-
var _templateObject$b, _templateObject2$8, _templateObject3$5, _templateObject4$4, _templateObject5$4, _templateObject6$4, _templateObject7$2, _templateObject8$2, _templateObject9$1, _templateObject10$1, _templateObject11$1;
|
|
9161
|
+
var _templateObject$b, _templateObject2$8, _templateObject3$5, _templateObject4$4, _templateObject5$4, _templateObject6$4, _templateObject7$2, _templateObject8$2, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1;
|
|
9162
9162
|
var DropdownContainer = styled.div(_templateObject$b || (_templateObject$b = _taggedTemplateLiteralLoose(["\n width: ", ";\n height: ", ";\n max-width: 100%;\n position: relative;\n // max-height: ", ";\n max-height: ", ";\n"])), function (_ref) {
|
|
9163
9163
|
var $width = _ref.$width;
|
|
9164
9164
|
return $width || '100%';
|
|
@@ -9173,8 +9173,9 @@ var DropdownContainer = styled.div(_templateObject$b || (_templateObject$b = _ta
|
|
|
9173
9173
|
return $hasTitle ? 'calc(100% - 22px)' : '100%';
|
|
9174
9174
|
});
|
|
9175
9175
|
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) {
|
|
9176
|
-
var $replaceLabel = _ref5.$replaceLabel
|
|
9177
|
-
|
|
9176
|
+
var $replaceLabel = _ref5.$replaceLabel,
|
|
9177
|
+
$showAllSelected = _ref5.$showAllSelected;
|
|
9178
|
+
return $replaceLabel ? $showAllSelected ? 'auto' : 'hidden' : '';
|
|
9178
9179
|
}, function (_ref6) {
|
|
9179
9180
|
var $size = _ref6.$size;
|
|
9180
9181
|
switch ($size) {
|
|
@@ -9328,7 +9329,7 @@ var DropdownMenu = styled.div(_templateObject6$4 || (_templateObject6$4 = _tagge
|
|
|
9328
9329
|
}
|
|
9329
9330
|
});
|
|
9330
9331
|
var SelectedOptionsWrapper = styled.div(_templateObject7$2 || (_templateObject7$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n height: 100%;\n"])));
|
|
9331
|
-
var SelectedOptionDiv = styled.div(_templateObject8$2 || (_templateObject8$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\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 (_ref27) {
|
|
9332
|
+
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 (_ref27) {
|
|
9332
9333
|
var $selectedOptionBackground = _ref27.$selectedOptionBackground,
|
|
9333
9334
|
$disabled = _ref27.$disabled,
|
|
9334
9335
|
theme = _ref27.theme;
|
|
@@ -9389,63 +9390,116 @@ var RemoveIcon = styled.div(_templateObject9$1 || (_templateObject9$1 = _taggedT
|
|
|
9389
9390
|
return $disabled ? 'not-allowed' : 'pointer';
|
|
9390
9391
|
});
|
|
9391
9392
|
var TextWrapper = styled.div(_templateObject10$1 || (_templateObject10$1 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 4px;\n"])));
|
|
9392
|
-
var
|
|
9393
|
-
|
|
9393
|
+
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"])));
|
|
9394
|
+
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"])));
|
|
9395
|
+
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"])));
|
|
9396
|
+
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 (_ref32) {
|
|
9397
|
+
var $selectedOptionBackground = _ref32.$selectedOptionBackground,
|
|
9398
|
+
$disabled = _ref32.$disabled,
|
|
9399
|
+
theme = _ref32.theme;
|
|
9400
|
+
switch ($selectedOptionBackground) {
|
|
9401
|
+
case 'dark':
|
|
9402
|
+
return theme.vms.text.dark;
|
|
9403
|
+
case 'medium':
|
|
9404
|
+
return theme.vms.text.medium;
|
|
9405
|
+
case 'light':
|
|
9406
|
+
return theme.vms.text.light;
|
|
9407
|
+
case 'white':
|
|
9408
|
+
return theme.vms.text.white;
|
|
9409
|
+
case 'warning':
|
|
9410
|
+
return $disabled ? theme.vms.disabled.warning : theme.vms["default"].warning;
|
|
9411
|
+
case 'info':
|
|
9412
|
+
return $disabled ? theme.vms.disabled.info : theme.vms["default"].info;
|
|
9413
|
+
case 'success':
|
|
9414
|
+
return $disabled ? theme.vms.disabled.success : theme.vms["default"].success;
|
|
9415
|
+
case 'error':
|
|
9416
|
+
return $disabled ? theme.vms.disabled.error : theme.vms["default"].error;
|
|
9417
|
+
default:
|
|
9418
|
+
return $selectedOptionBackground || theme.vms.accent.light_2;
|
|
9419
|
+
}
|
|
9420
|
+
}, function (_ref33) {
|
|
9421
|
+
var $selectedOptionColor = _ref33.$selectedOptionColor,
|
|
9422
|
+
theme = _ref33.theme;
|
|
9423
|
+
switch ($selectedOptionColor) {
|
|
9424
|
+
case 'dark':
|
|
9425
|
+
return theme.vms.text.dark;
|
|
9426
|
+
case 'medium':
|
|
9427
|
+
return theme.vms.text.medium;
|
|
9428
|
+
case 'light':
|
|
9429
|
+
return theme.vms.text.light;
|
|
9430
|
+
case 'white':
|
|
9431
|
+
return theme.vms.text.white;
|
|
9432
|
+
case 'warning':
|
|
9433
|
+
return theme.vms["default"].warning;
|
|
9434
|
+
case 'info':
|
|
9435
|
+
return theme.vms["default"].info;
|
|
9436
|
+
case 'success':
|
|
9437
|
+
return theme.vms["default"].success;
|
|
9438
|
+
case 'error':
|
|
9439
|
+
return theme.vms["default"].error;
|
|
9440
|
+
default:
|
|
9441
|
+
return $selectedOptionColor || theme.vms.text.medium;
|
|
9442
|
+
}
|
|
9443
|
+
});
|
|
9444
|
+
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 (_ref34) {
|
|
9445
|
+
var theme = _ref34.theme;
|
|
9394
9446
|
return theme.vms["default"].error;
|
|
9395
9447
|
});
|
|
9396
|
-
var MultiSelectDropdown = function MultiSelectDropdown(
|
|
9397
|
-
var title =
|
|
9398
|
-
titleWeight =
|
|
9399
|
-
titleSize =
|
|
9400
|
-
titleColor =
|
|
9401
|
-
|
|
9402
|
-
labelText =
|
|
9403
|
-
labelStyle =
|
|
9404
|
-
labelColor =
|
|
9405
|
-
|
|
9406
|
-
replaceLabel =
|
|
9407
|
-
options =
|
|
9408
|
-
width =
|
|
9409
|
-
optionWidth =
|
|
9410
|
-
height =
|
|
9411
|
-
placeholder =
|
|
9412
|
-
border =
|
|
9413
|
-
background =
|
|
9414
|
-
selectedOptionBackground =
|
|
9415
|
-
selectedOptionColor =
|
|
9416
|
-
menuBackground =
|
|
9417
|
-
optionsBorderRadius =
|
|
9418
|
-
borderRadius =
|
|
9419
|
-
removeIconBackground =
|
|
9420
|
-
handleSelectChange =
|
|
9421
|
-
selectedOptions =
|
|
9422
|
-
placeholderColor =
|
|
9423
|
-
optionBorder =
|
|
9424
|
-
optionColor =
|
|
9425
|
-
searchIcon =
|
|
9426
|
-
searchbarTextColor =
|
|
9427
|
-
searchBoxBackground =
|
|
9428
|
-
searchBoxBorder =
|
|
9429
|
-
searchBoxBorderRadius =
|
|
9430
|
-
size =
|
|
9431
|
-
removeIcon =
|
|
9432
|
-
type =
|
|
9433
|
-
icon =
|
|
9434
|
-
|
|
9435
|
-
disabled =
|
|
9436
|
-
|
|
9437
|
-
required =
|
|
9438
|
-
|
|
9439
|
-
searchBox =
|
|
9440
|
-
|
|
9441
|
-
searchBoxTextLength =
|
|
9442
|
-
|
|
9443
|
-
NoOptionsText =
|
|
9444
|
-
|
|
9445
|
-
selectAllOption =
|
|
9446
|
-
|
|
9447
|
-
selectAllLabel =
|
|
9448
|
-
dropdownPosition =
|
|
9448
|
+
var MultiSelectDropdown = function MultiSelectDropdown(_ref35) {
|
|
9449
|
+
var title = _ref35.title,
|
|
9450
|
+
titleWeight = _ref35.titleWeight,
|
|
9451
|
+
titleSize = _ref35.titleSize,
|
|
9452
|
+
titleColor = _ref35.titleColor,
|
|
9453
|
+
_ref35$labelText = _ref35.labelText,
|
|
9454
|
+
labelText = _ref35$labelText === void 0 ? 'Select Cameras' : _ref35$labelText,
|
|
9455
|
+
labelStyle = _ref35.labelStyle,
|
|
9456
|
+
labelColor = _ref35.labelColor,
|
|
9457
|
+
_ref35$replaceLabel = _ref35.replaceLabel,
|
|
9458
|
+
replaceLabel = _ref35$replaceLabel === void 0 ? true : _ref35$replaceLabel,
|
|
9459
|
+
options = _ref35.options,
|
|
9460
|
+
width = _ref35.width,
|
|
9461
|
+
optionWidth = _ref35.optionWidth,
|
|
9462
|
+
height = _ref35.height,
|
|
9463
|
+
placeholder = _ref35.placeholder,
|
|
9464
|
+
border = _ref35.border,
|
|
9465
|
+
background = _ref35.background,
|
|
9466
|
+
selectedOptionBackground = _ref35.selectedOptionBackground,
|
|
9467
|
+
selectedOptionColor = _ref35.selectedOptionColor,
|
|
9468
|
+
menuBackground = _ref35.menuBackground,
|
|
9469
|
+
optionsBorderRadius = _ref35.optionsBorderRadius,
|
|
9470
|
+
borderRadius = _ref35.borderRadius,
|
|
9471
|
+
removeIconBackground = _ref35.removeIconBackground,
|
|
9472
|
+
handleSelectChange = _ref35.handleSelectChange,
|
|
9473
|
+
selectedOptions = _ref35.selectedOptions,
|
|
9474
|
+
placeholderColor = _ref35.placeholderColor,
|
|
9475
|
+
optionBorder = _ref35.optionBorder,
|
|
9476
|
+
optionColor = _ref35.optionColor,
|
|
9477
|
+
searchIcon = _ref35.searchIcon,
|
|
9478
|
+
searchbarTextColor = _ref35.searchbarTextColor,
|
|
9479
|
+
searchBoxBackground = _ref35.searchBoxBackground,
|
|
9480
|
+
searchBoxBorder = _ref35.searchBoxBorder,
|
|
9481
|
+
searchBoxBorderRadius = _ref35.searchBoxBorderRadius,
|
|
9482
|
+
size = _ref35.size,
|
|
9483
|
+
removeIcon = _ref35.removeIcon,
|
|
9484
|
+
type = _ref35.type,
|
|
9485
|
+
icon = _ref35.icon,
|
|
9486
|
+
_ref35$disabled = _ref35.disabled,
|
|
9487
|
+
disabled = _ref35$disabled === void 0 ? false : _ref35$disabled,
|
|
9488
|
+
_ref35$required = _ref35.required,
|
|
9489
|
+
required = _ref35$required === void 0 ? false : _ref35$required,
|
|
9490
|
+
_ref35$searchBox = _ref35.searchBox,
|
|
9491
|
+
searchBox = _ref35$searchBox === void 0 ? true : _ref35$searchBox,
|
|
9492
|
+
_ref35$searchBoxTextL = _ref35.searchBoxTextLength,
|
|
9493
|
+
searchBoxTextLength = _ref35$searchBoxTextL === void 0 ? 50 : _ref35$searchBoxTextL,
|
|
9494
|
+
_ref35$NoOptionsText = _ref35.NoOptionsText,
|
|
9495
|
+
NoOptionsText = _ref35$NoOptionsText === void 0 ? 'No Options Available' : _ref35$NoOptionsText,
|
|
9496
|
+
_ref35$selectAllOptio = _ref35.selectAllOption,
|
|
9497
|
+
selectAllOption = _ref35$selectAllOptio === void 0 ? false : _ref35$selectAllOptio,
|
|
9498
|
+
_ref35$selectAllLabel = _ref35.selectAllLabel,
|
|
9499
|
+
selectAllLabel = _ref35$selectAllLabel === void 0 ? 'Select All' : _ref35$selectAllLabel,
|
|
9500
|
+
dropdownPosition = _ref35.dropdownPosition,
|
|
9501
|
+
_ref35$showAllSelecte = _ref35.showAllSelected,
|
|
9502
|
+
showAllSelected = _ref35$showAllSelecte === void 0 ? false : _ref35$showAllSelecte;
|
|
9449
9503
|
var themeColors = useTheme();
|
|
9450
9504
|
var _useState = useState(false),
|
|
9451
9505
|
dropUp = _useState[0],
|
|
@@ -9503,11 +9557,60 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref33) {
|
|
|
9503
9557
|
document.removeEventListener('mousedown', handleClickOutside);
|
|
9504
9558
|
};
|
|
9505
9559
|
}, []);
|
|
9506
|
-
var selectedOptionObjects =
|
|
9507
|
-
return
|
|
9508
|
-
|
|
9509
|
-
|
|
9510
|
-
|
|
9560
|
+
var selectedOptionObjects = useMemo(function () {
|
|
9561
|
+
return options.filter(function (opt) {
|
|
9562
|
+
return selectedOptions.includes(opt.value);
|
|
9563
|
+
}).sort(function (a, b) {
|
|
9564
|
+
return a.labelText.localeCompare(b.labelText);
|
|
9565
|
+
});
|
|
9566
|
+
}, [options, selectedOptions]);
|
|
9567
|
+
var _useState4 = useState(null),
|
|
9568
|
+
displayCount = _useState4[0],
|
|
9569
|
+
setDisplayCount = _useState4[1];
|
|
9570
|
+
var measureRef = useRef(null);
|
|
9571
|
+
var _useState5 = useState(0),
|
|
9572
|
+
containerResizeKey = _useState5[0],
|
|
9573
|
+
setContainerResizeKey = _useState5[1];
|
|
9574
|
+
useEffect(function () {
|
|
9575
|
+
if (showAllSelected || !dropdownRef.current) return;
|
|
9576
|
+
var observer = new ResizeObserver(function () {
|
|
9577
|
+
return setContainerResizeKey(function (k) {
|
|
9578
|
+
return k + 1;
|
|
9579
|
+
});
|
|
9580
|
+
});
|
|
9581
|
+
observer.observe(dropdownRef.current);
|
|
9582
|
+
return function () {
|
|
9583
|
+
return observer.disconnect();
|
|
9584
|
+
};
|
|
9585
|
+
}, [showAllSelected]);
|
|
9586
|
+
useLayoutEffect(function () {
|
|
9587
|
+
if (showAllSelected) {
|
|
9588
|
+
setDisplayCount(null);
|
|
9589
|
+
return;
|
|
9590
|
+
}
|
|
9591
|
+
if (!measureRef.current) return;
|
|
9592
|
+
var container = measureRef.current;
|
|
9593
|
+
var containerWidth = container.offsetWidth;
|
|
9594
|
+
var chips = Array.from(container.querySelectorAll('[data-chip]'));
|
|
9595
|
+
if (chips.length === 0) {
|
|
9596
|
+
setDisplayCount(null);
|
|
9597
|
+
return;
|
|
9598
|
+
}
|
|
9599
|
+
var GAP = 6;
|
|
9600
|
+
var BADGE_WIDTH = 40;
|
|
9601
|
+
var count = 0;
|
|
9602
|
+
for (var i = 0; i < chips.length; i++) {
|
|
9603
|
+
var chipRight = chips[i].offsetLeft + chips[i].offsetWidth;
|
|
9604
|
+
var remaining = chips.length - (i + 1);
|
|
9605
|
+
var limit = remaining > 0 ? containerWidth - BADGE_WIDTH - GAP : containerWidth;
|
|
9606
|
+
if (chipRight <= limit) {
|
|
9607
|
+
count = i + 1;
|
|
9608
|
+
} else {
|
|
9609
|
+
break;
|
|
9610
|
+
}
|
|
9611
|
+
}
|
|
9612
|
+
setDisplayCount(count < chips.length ? count : null);
|
|
9613
|
+
}, [selectedOptionObjects, showAllSelected, containerResizeKey]);
|
|
9511
9614
|
var handleOptionRemoval = function handleOptionRemoval(optionValue) {
|
|
9512
9615
|
if (handleSelectChange) {
|
|
9513
9616
|
handleSelectChange(selectedOptions.filter(function (value) {
|
|
@@ -9590,8 +9693,49 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref33) {
|
|
|
9590
9693
|
"$color": labelColor,
|
|
9591
9694
|
"$isOpen": isOpen,
|
|
9592
9695
|
"$disabled": disabled,
|
|
9593
|
-
"$replaceLabel": replaceLabel
|
|
9594
|
-
|
|
9696
|
+
"$replaceLabel": replaceLabel,
|
|
9697
|
+
"$showAllSelected": showAllSelected
|
|
9698
|
+
}, selectedOptions.length !== 0 && replaceLabel ? showAllSelected ? React.createElement(SelectedOptionsWrapper, null, selectedOptionObjects.map(function (option) {
|
|
9699
|
+
return React.createElement(SelectedOptionDiv, {
|
|
9700
|
+
key: option.value,
|
|
9701
|
+
"$disabled": disabled,
|
|
9702
|
+
"$selectedOptionBackground": selectedOptionBackground,
|
|
9703
|
+
"$selectedOptionColor": selectedOptionColor
|
|
9704
|
+
}, option.labelText, React.createElement(RemoveIcon, {
|
|
9705
|
+
removeIconBackground: removeIconBackground,
|
|
9706
|
+
"$type": type,
|
|
9707
|
+
"$disabled": disabled,
|
|
9708
|
+
onClick: function onClick(e) {
|
|
9709
|
+
e.stopPropagation();
|
|
9710
|
+
if (!disabled) handleOptionRemoval(option.value);
|
|
9711
|
+
}
|
|
9712
|
+
}, React.createElement(Icon, {
|
|
9713
|
+
icon: 'Close',
|
|
9714
|
+
size: (removeIcon === null || removeIcon === void 0 ? void 0 : removeIcon.size) || 6,
|
|
9715
|
+
color: removeIcon !== null && removeIcon !== void 0 && removeIcon.color || type === 'remove' ? themeColors.vms["default"].error : themeColors.vms.brand.primary,
|
|
9716
|
+
weight: (removeIcon === null || removeIcon === void 0 ? void 0 : removeIcon.weight) || '0',
|
|
9717
|
+
cursor: disabled ? 'not-allowed' : 'pointer'
|
|
9718
|
+
})));
|
|
9719
|
+
})) : React.createElement(ChipArea, null, React.createElement(MeasureLayer, {
|
|
9720
|
+
ref: measureRef
|
|
9721
|
+
}, selectedOptionObjects.map(function (option) {
|
|
9722
|
+
return React.createElement(SelectedOptionDiv, {
|
|
9723
|
+
key: option.value,
|
|
9724
|
+
"data-chip": true,
|
|
9725
|
+
"$disabled": disabled,
|
|
9726
|
+
"$selectedOptionBackground": selectedOptionBackground,
|
|
9727
|
+
"$selectedOptionColor": selectedOptionColor
|
|
9728
|
+
}, option.labelText, React.createElement(RemoveIcon, {
|
|
9729
|
+
"$type": type,
|
|
9730
|
+
"$disabled": disabled,
|
|
9731
|
+
removeIconBackground: removeIconBackground
|
|
9732
|
+
}, React.createElement(Icon, {
|
|
9733
|
+
icon: 'Close',
|
|
9734
|
+
size: (removeIcon === null || removeIcon === void 0 ? void 0 : removeIcon.size) || 6,
|
|
9735
|
+
color: 'transparent',
|
|
9736
|
+
weight: (removeIcon === null || removeIcon === void 0 ? void 0 : removeIcon.weight) || '0'
|
|
9737
|
+
})));
|
|
9738
|
+
})), React.createElement(SingleLineRow, null, selectedOptionObjects.slice(0, displayCount != null ? displayCount : selectedOptionObjects.length).map(function (option) {
|
|
9595
9739
|
return React.createElement(SelectedOptionDiv, {
|
|
9596
9740
|
key: option.value,
|
|
9597
9741
|
"$disabled": disabled,
|
|
@@ -9612,7 +9756,11 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref33) {
|
|
|
9612
9756
|
weight: (removeIcon === null || removeIcon === void 0 ? void 0 : removeIcon.weight) || '0',
|
|
9613
9757
|
cursor: disabled ? 'not-allowed' : 'pointer'
|
|
9614
9758
|
})));
|
|
9615
|
-
})
|
|
9759
|
+
}), displayCount !== null && displayCount < selectedOptionObjects.length && React.createElement(OverflowCountBadge, {
|
|
9760
|
+
"$selectedOptionBackground": selectedOptionBackground,
|
|
9761
|
+
"$selectedOptionColor": selectedOptionColor,
|
|
9762
|
+
"$disabled": disabled
|
|
9763
|
+
}, "+", selectedOptionObjects.length - displayCount))) : React.createElement(TextWrapper, null, icon && React.createElement(Icon, {
|
|
9616
9764
|
icon: icon.name || 'Tag',
|
|
9617
9765
|
size: icon.size || 14,
|
|
9618
9766
|
weight: icon.weight || '1',
|
|
@@ -10425,7 +10573,7 @@ var SearchBox = function SearchBox(_ref9) {
|
|
|
10425
10573
|
}));
|
|
10426
10574
|
};
|
|
10427
10575
|
|
|
10428
|
-
var _templateObject$f, _templateObject2$c, _templateObject3$8, _templateObject4$6, _templateObject5$6, _templateObject6$6, _templateObject7$4, _templateObject8$4, _templateObject9$3, _templateObject10$3, _templateObject11$2, _templateObject12$
|
|
10576
|
+
var _templateObject$f, _templateObject2$c, _templateObject3$8, _templateObject4$6, _templateObject5$6, _templateObject6$6, _templateObject7$4, _templateObject8$4, _templateObject9$3, _templateObject10$3, _templateObject11$2, _templateObject12$2, _templateObject13$2, _templateObject14$2;
|
|
10429
10577
|
var Label = styled.label(_templateObject$f || (_templateObject$f = _taggedTemplateLiteralLoose(["\n cursor: auto;\n width: 100%;\n font-weight: ", ";\n position: relative;\n white-space: nowrap;\n width: max-content;\n\n ", "\n\n color: ", ";\n"])), function (_ref) {
|
|
10430
10578
|
var $fontWeight = _ref.$fontWeight;
|
|
10431
10579
|
return $fontWeight != null ? $fontWeight : '500';
|
|
@@ -10582,11 +10730,11 @@ var TimePickerDropdown = styled.div(_templateObject10$3 || (_templateObject10$3
|
|
|
10582
10730
|
return theme.vms.text.white;
|
|
10583
10731
|
});
|
|
10584
10732
|
var SliderColumn = styled.div(_templateObject11$2 || (_templateObject11$2 = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n"])));
|
|
10585
|
-
var SliderLabel = styled.div(_templateObject12$
|
|
10733
|
+
var SliderLabel = styled.div(_templateObject12$2 || (_templateObject12$2 = _taggedTemplateLiteralLoose(["\n font-size: 12px;\n font-weight: 500;\n color: ", ";\n margin-bottom: 4px;\n"])), function (_ref19) {
|
|
10586
10734
|
var theme = _ref19.theme;
|
|
10587
10735
|
return theme.vms.text.medium;
|
|
10588
10736
|
});
|
|
10589
|
-
var SliderWrapper = styled.div(_templateObject13$
|
|
10737
|
+
var SliderWrapper = styled.div(_templateObject13$2 || (_templateObject13$2 = _taggedTemplateLiteralLoose(["\n height: 150px;\n overflow-y: auto;\n overflow-x: hidden;\n border: 1px solid ", ";\n border-radius: 6px;\n background: ", ";\n width: 60px;\n scroll-behavior: smooth;\n \n /* Custom scrollbar */\n &::-webkit-scrollbar {\n width: 4px;\n }\n \n &::-webkit-scrollbar-track {\n background: ", ";\n }\n \n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 2px;\n }\n \n &::-webkit-scrollbar-thumb:hover {\n background: ", ";\n }\n"])), function (_ref20) {
|
|
10590
10738
|
var theme = _ref20.theme;
|
|
10591
10739
|
return theme.vms.border.light;
|
|
10592
10740
|
}, function (_ref21) {
|
|
@@ -10602,7 +10750,7 @@ var SliderWrapper = styled.div(_templateObject13$1 || (_templateObject13$1 = _ta
|
|
|
10602
10750
|
var theme = _ref24.theme;
|
|
10603
10751
|
return theme.vms.text.medium;
|
|
10604
10752
|
});
|
|
10605
|
-
var SliderItem = styled.div(_templateObject14$
|
|
10753
|
+
var SliderItem = styled.div(_templateObject14$2 || (_templateObject14$2 = _taggedTemplateLiteralLoose(["\n padding: 8px 12px;\n text-align: center;\n cursor: pointer;\n font-size: 14px;\n color: ", ";\n background: ", ";\n transition: all 0.2s ease;\n \n &:hover {\n background: ", ";\n }\n"])), function (_ref25) {
|
|
10606
10754
|
var $selected = _ref25.$selected,
|
|
10607
10755
|
theme = _ref25.theme;
|
|
10608
10756
|
return $selected ? theme.vms.text.white : theme.vms.text.dark;
|