@luscii-healthtech/web-ui 2.45.0 → 2.45.2

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/README.md CHANGED
@@ -80,3 +80,21 @@ We have configured at lot of magic for your convenience.
80
80
  1. Draft a github release
81
81
  2. Version bump of the package
82
82
  3. Publish new package to NPM
83
+
84
+ ---
85
+
86
+ ## IE11
87
+
88
+ This package includes [dnd-kit](https://dndkit.com) as a peer dependency. The bundle of dnd-kit contains syntax which isn't compatible with IE11, therefore any application needing to support IE11 has to transpile dnd-kit.
89
+
90
+ It should also at least include the following polyfills to make it work:
91
+
92
+ - [core-js](https://www.npmjs.com/package/core-js)
93
+ - [regenerator-runtime](https://www.npmjs.com/package/regenerator-runtime)
94
+ - [smoothscroll-polyfill](https://www.npmjs.com/package/smoothscroll-polyfill)
95
+
96
+ Optional:
97
+
98
+ - [web-animations-js](https://www.npmjs.com/package/web-animations-js)
99
+
100
+ This isn't necessary if the [drop animation is disabled](https://github.com/clauderic/dnd-kit/issues/705#issuecomment-1103056336). Check out [this ticket](https://github.com/clauderic/dnd-kit/issues/271) for more information on IE11.
@@ -1,4 +1,4 @@
1
- import { Props, GroupBase } from "react-select";
1
+ import { GroupBase, Props } from "react-select";
2
2
  import React from "react";
3
3
  /**
4
4
  * Exceptional case for this file:
@@ -3709,6 +3709,21 @@ function generateCustomStyles(hasError, isIE11) {
3709
3709
  flexGrow: isIE11 ? 0.5 : "initial"
3710
3710
  });
3711
3711
  },
3712
+ input: function input(baseStyles) {
3713
+ return _extends({}, baseStyles, {
3714
+ padding: 0
3715
+ });
3716
+ },
3717
+ multiValue: function multiValue(baseStyles) {
3718
+ return _extends({}, baseStyles, {
3719
+ lineHeight: isIE11 ? "25px" : "1rem"
3720
+ });
3721
+ },
3722
+ valueContainer: function valueContainer(baseStyles) {
3723
+ return _extends({}, baseStyles, {
3724
+ padding: ".5rem"
3725
+ });
3726
+ },
3712
3727
  control: function control(baseStyles, state) {
3713
3728
  var defaultBorderColor = state.isFocused ? "#045baa" : "#D1D5DB";
3714
3729
  var validatedBorderColor = hasError ? "#c53030" : defaultBorderColor;
@@ -3717,7 +3732,6 @@ function generateCustomStyles(hasError, isIE11) {
3717
3732
  return _extends({}, baseStyles, {
3718
3733
  fontSize: "14px",
3719
3734
  transition: "border 0.3s ease-in-out",
3720
- height: isIE11 ? "50px" : "2.75rem",
3721
3735
  // primary outline
3722
3736
  outline: validatedOutline,
3723
3737
  borderColor: validatedBorderColor,