@luscii-healthtech/web-ui 2.63.4 → 2.64.0

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.
@@ -14,7 +14,7 @@ import ReactDatePicker from 'react-datepicker';
14
14
  import moment from 'moment';
15
15
  import 'react-datepicker/dist/react-datepicker.css';
16
16
  import ClipboardJS from 'clipboard';
17
- import ReactSelect, { mergeStyles, components } from 'react-select';
17
+ import ReactSelect, { components, mergeStyles } from 'react-select';
18
18
  import groupBy from 'lodash-es/groupBy';
19
19
  import debounce from 'lodash.debounce';
20
20
  import { LazyLoadImage } from 'react-lazy-load-image-component';
@@ -5200,10 +5200,24 @@ var PaginationMenuSmall = function PaginationMenuSmall(props) {
5200
5200
  }));
5201
5201
  };
5202
5202
 
5203
- var css_248z$f = ".customized-select [class*=IndicatorsContainer] {\n background: url(\"data:image/svg+xml,%3Csvg width%3D%228%22 height%3D%2214%22 viewBox%3D%220 0 8 14%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath fill-rule%3D%22evenodd%22 clip-rule%3D%22evenodd%22 d%3D%22M4 0C4.26522 5.96046e-08 4.51957 0.105357 4.70711 0.292893L7.70711 3.29289C8.09763 3.68342 8.09763 4.31658 7.70711 4.70711C7.31658 5.09763 6.68342 5.09763 6.29289 4.70711L4 2.41421L1.70711 4.70711C1.31658 5.09763 0.683417 5.09763 0.292893 4.70711C-0.0976311 4.31658 -0.097631 3.68342 0.292893 3.29289L3.29289 0.292893C3.48043 0.105357 3.73478 0 4 0ZM0.292893 9.29289C0.683417 8.90237 1.31658 8.90237 1.70711 9.29289L4 11.5858L6.29289 9.29289C6.68342 8.90237 7.31658 8.90237 7.70711 9.29289C8.09763 9.68342 8.09763 10.3166 7.70711 10.7071L4.70711 13.7071C4.31658 14.0976 3.68342 14.0976 3.29289 13.7071L0.292893 10.7071C-0.0976311 10.3166 -0.0976311 9.68342 0.292893 9.29289Z%22 fill%3D%22%239CA3AF%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n opacity: 0.5;\n transition: opacity 0.3s ease-in-out;\n margin-right: 0.75rem;\n}\n\n.customized-select [class*=IndicatorsContainer] svg {\n display: none;\n}\n\n.customized-select [class*=MenuList] [class*=option]::after {\n position: absolute;\n content: \"\";\n background: url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22%3E %3Cg transform%3D%22translate(1.5%2C 0.5)%22%3E %3Cpath fill%3D%22none%22 fill-rule%3D%22evenodd%22 stroke%3D%22%230074DD%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22 stroke-width%3D%222%22 d%3D%22M12.643 3.357L6.03 9.97l-2.674 2.674L0 9.286%22%2F%3E %3C%2Fg%3E%3C%2Fsvg%3E\") no-repeat center;\n right: 12px;\n height: 1rem;\n width: 1rem;\n}";
5203
+ var css_248z$f = ".customized-select [class*=MenuList] [class*=option]::after {\n position: absolute;\n content: \"\";\n background: url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22%3E %3Cg transform%3D%22translate(1.5%2C 0.5)%22%3E %3Cpath fill%3D%22none%22 fill-rule%3D%22evenodd%22 stroke%3D%22%230074DD%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22 stroke-width%3D%222%22 d%3D%22M12.643 3.357L6.03 9.97l-2.674 2.674L0 9.286%22%2F%3E %3C%2Fg%3E%3C%2Fsvg%3E\") no-repeat center;\n right: 12px;\n height: 1rem;\n width: 1rem;\n}";
5204
5204
  styleInject(css_248z$f);
5205
5205
 
5206
- var _excluded$l = ["isError", "styles", "options", "onChange", "value", "width", "isMulti", "className"];
5206
+ var SelectDropdownIndicator = function SelectDropdownIndicator(props) {
5207
+ return /*#__PURE__*/React__default.createElement(components.DropdownIndicator, _extends({}, props), /*#__PURE__*/React__default.createElement(ChevronDownIcon, null));
5208
+ };
5209
+
5210
+ var SelectLoadingIndicator = function SelectLoadingIndicator(props) {
5211
+ return /*#__PURE__*/React__default.createElement(LoadingIndicator, _extends({
5212
+ asSpinner: true,
5213
+ spinnerColor: "gray"
5214
+ }, props.innerProps, {
5215
+ style: props.getStyles("loadingIndicator", props)
5216
+ }));
5217
+ };
5218
+
5219
+ var _excluded$l = ["isError", "styles", "options", "onChange", "value", "width", "isMulti", "className"],
5220
+ _excluded2$1 = ["children"];
5207
5221
 
5208
5222
  function generateCustomStyles(hasError, isIE11) {
5209
5223
  return {
@@ -5365,10 +5379,13 @@ var Select = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef) {
5365
5379
  return dataProps;
5366
5380
  };
5367
5381
 
5368
- var CustomContainer = function CustomContainer(commonProps) {
5382
+ var CustomContainer = function CustomContainer(_ref2) {
5383
+ var children = _ref2.children,
5384
+ commonProps = _objectWithoutPropertiesLoose(_ref2, _excluded2$1);
5385
+
5369
5386
  return /*#__PURE__*/React__default.createElement(components.SelectContainer, _extends({}, commonProps, {
5370
5387
  innerProps: Object.assign({}, commonProps.innerProps, _extends({}, getDataAttributes()))
5371
- }));
5388
+ }), children);
5372
5389
  };
5373
5390
 
5374
5391
  return /*#__PURE__*/React__default.createElement(ReactSelect, _extends({}, otherProps, {
@@ -5386,7 +5403,9 @@ var Select = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef) {
5386
5403
  "flex-grow": width === "full"
5387
5404
  }),
5388
5405
  components: {
5389
- SelectContainer: CustomContainer
5406
+ SelectContainer: CustomContainer,
5407
+ DropdownIndicator: SelectDropdownIndicator,
5408
+ LoadingIndicator: SelectLoadingIndicator
5390
5409
  }
5391
5410
  }));
5392
5411
  });
@@ -6565,11 +6584,11 @@ var BreadcrumbItem = function BreadcrumbItem(_ref) {
6565
6584
  }, /*#__PURE__*/React__default.createElement(Text, {
6566
6585
  text: name,
6567
6586
  color: "blue-800",
6568
- className: "whitespace-no-wrap"
6587
+ className: "whitespace-no-wrap truncate max-w-xs"
6569
6588
  })) : /*#__PURE__*/React__default.createElement(Text, {
6570
6589
  text: name,
6571
6590
  type: "strong",
6572
- className: "whitespace-no-wrap"
6591
+ className: "whitespace-no-wrap truncate w-full max-w-xs"
6573
6592
  }));
6574
6593
  };
6575
6594
  var BreadcrumbDividerItem = function BreadcrumbDividerItem(_ref2) {