@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.
@@ -0,0 +1,2 @@
1
+ import { DropdownIndicatorProps } from "react-select";
2
+ export declare const SelectDropdownIndicator: (props: DropdownIndicatorProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { LoadingIndicatorProps } from "react-select";
2
+ export declare const SelectLoadingIndicator: (props: LoadingIndicatorProps) => JSX.Element;
@@ -1608,6 +1608,10 @@ video {
1608
1608
  max-width: 13.75rem;
1609
1609
  }
1610
1610
 
1611
+ .max-w-xs {
1612
+ max-width: 20rem;
1613
+ }
1614
+
1611
1615
  .max-w-3xl {
1612
1616
  max-width: 48rem;
1613
1617
  }
@@ -5208,10 +5208,24 @@ var PaginationMenuSmall = function PaginationMenuSmall(props) {
5208
5208
  }));
5209
5209
  };
5210
5210
 
5211
- 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}";
5211
+ 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}";
5212
5212
  styleInject(css_248z$f);
5213
5213
 
5214
- var _excluded$l = ["isError", "styles", "options", "onChange", "value", "width", "isMulti", "className"];
5214
+ var SelectDropdownIndicator = function SelectDropdownIndicator(props) {
5215
+ return /*#__PURE__*/React__default.createElement(ReactSelect.components.DropdownIndicator, _extends({}, props), /*#__PURE__*/React__default.createElement(ChevronDownIcon, null));
5216
+ };
5217
+
5218
+ var SelectLoadingIndicator = function SelectLoadingIndicator(props) {
5219
+ return /*#__PURE__*/React__default.createElement(LoadingIndicator, _extends({
5220
+ asSpinner: true,
5221
+ spinnerColor: "gray"
5222
+ }, props.innerProps, {
5223
+ style: props.getStyles("loadingIndicator", props)
5224
+ }));
5225
+ };
5226
+
5227
+ var _excluded$l = ["isError", "styles", "options", "onChange", "value", "width", "isMulti", "className"],
5228
+ _excluded2$1 = ["children"];
5215
5229
 
5216
5230
  function generateCustomStyles(hasError, isIE11) {
5217
5231
  return {
@@ -5373,10 +5387,13 @@ var Select = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef) {
5373
5387
  return dataProps;
5374
5388
  };
5375
5389
 
5376
- var CustomContainer = function CustomContainer(commonProps) {
5390
+ var CustomContainer = function CustomContainer(_ref2) {
5391
+ var children = _ref2.children,
5392
+ commonProps = _objectWithoutPropertiesLoose(_ref2, _excluded2$1);
5393
+
5377
5394
  return /*#__PURE__*/React__default.createElement(ReactSelect.components.SelectContainer, _extends({}, commonProps, {
5378
5395
  innerProps: Object.assign({}, commonProps.innerProps, _extends({}, getDataAttributes()))
5379
- }));
5396
+ }), children);
5380
5397
  };
5381
5398
 
5382
5399
  return /*#__PURE__*/React__default.createElement(ReactSelect__default, _extends({}, otherProps, {
@@ -5394,7 +5411,9 @@ var Select = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef) {
5394
5411
  "flex-grow": width === "full"
5395
5412
  }),
5396
5413
  components: {
5397
- SelectContainer: CustomContainer
5414
+ SelectContainer: CustomContainer,
5415
+ DropdownIndicator: SelectDropdownIndicator,
5416
+ LoadingIndicator: SelectLoadingIndicator
5398
5417
  }
5399
5418
  }));
5400
5419
  });
@@ -6573,11 +6592,11 @@ var BreadcrumbItem = function BreadcrumbItem(_ref) {
6573
6592
  }, /*#__PURE__*/React__default.createElement(Text, {
6574
6593
  text: name,
6575
6594
  color: "blue-800",
6576
- className: "whitespace-no-wrap"
6595
+ className: "whitespace-no-wrap truncate max-w-xs"
6577
6596
  })) : /*#__PURE__*/React__default.createElement(Text, {
6578
6597
  text: name,
6579
6598
  type: "strong",
6580
- className: "whitespace-no-wrap"
6599
+ className: "whitespace-no-wrap truncate w-full max-w-xs"
6581
6600
  }));
6582
6601
  };
6583
6602
  var BreadcrumbDividerItem = function BreadcrumbDividerItem(_ref2) {