@luscii-healthtech/web-ui 2.37.13 → 2.37.15

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.
@@ -1,4 +1,4 @@
1
- import type { Props, GroupBase } from "react-select";
1
+ import { Props, GroupBase } from "react-select";
2
2
  import React from "react";
3
3
  /**
4
4
  * Exceptional case for this file:
@@ -3789,7 +3789,26 @@ var Select = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef) {
3789
3789
  return value.includes(o.value);
3790
3790
  }) : flatmappedOptions.find(function (o) {
3791
3791
  return o.value === value;
3792
- });
3792
+ }); // Why: https://github.com/JedWatson/react-select/issues/3149
3793
+
3794
+ var getDataAttributes = function getDataAttributes() {
3795
+ var dataProps = {};
3796
+
3797
+ for (var prop in otherProps) {
3798
+ if (prop.includes("data-")) {
3799
+ dataProps[prop] = otherProps[prop];
3800
+ }
3801
+ }
3802
+
3803
+ return dataProps;
3804
+ };
3805
+
3806
+ var CustomContainer = function CustomContainer(commonProps) {
3807
+ return /*#__PURE__*/React__default.createElement(ReactSelect.components.SelectContainer, _extends({}, commonProps, {
3808
+ innerProps: Object.assign({}, commonProps.innerProps, _extends({}, getDataAttributes()))
3809
+ }));
3810
+ };
3811
+
3793
3812
  return /*#__PURE__*/React__default.createElement(ReactSelect__default, _extends({}, otherProps, {
3794
3813
  ref: innerRef,
3795
3814
  styles: mergedStyles,
@@ -3803,7 +3822,10 @@ var Select = /*#__PURE__*/React__default.forwardRef(function (_ref, innerRef) {
3803
3822
  "w-56": width === "lg",
3804
3823
  "w-80": width === "xl",
3805
3824
  "flex-grow": width === "full"
3806
- })
3825
+ }),
3826
+ components: {
3827
+ SelectContainer: CustomContainer
3828
+ }
3807
3829
  }));
3808
3830
  });
3809
3831