cecomponent 1.0.139 → 1.0.140

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.
@@ -1835,7 +1835,7 @@ const Breadcrumbs = ({ items: e, maxVisible: t = 4, onItemClick: i }) => {
1835
1835
  var O;
1836
1836
  const I = k.target.value;
1837
1837
  if (T(I), !I.trim()) {
1838
- d([]), m(!1);
1838
+ d([]), m(!1), S(!1);
1839
1839
  return;
1840
1840
  }
1841
1841
  (O = R.current) != null && O.debounceTimeout && clearTimeout(R.current.debounceTimeout), S(!0);
@@ -1897,7 +1897,7 @@ const Breadcrumbs = ({ items: e, maxVisible: t = 4, onItemClick: i }) => {
1897
1897
  m(!0), E(!0);
1898
1898
  },
1899
1899
  onBlur: j,
1900
- className: P ? "input-error" : "",
1900
+ className: "input-field",
1901
1901
  "aria-invalid": P,
1902
1902
  "aria-describedby": P ? `${e}-error` : void 0
1903
1903
  }
@@ -43883,7 +43883,14 @@ const CEAdvancedMultiSelectDropdown = ({
43883
43883
  }) => {
43884
43884
  const [l, c] = useState(!1), [f, u] = useState(!1), [x, d] = useState(""), y = useRef(null), m = useRef(null), p = t.filter(
43885
43885
  (T) => T.label.toLowerCase().includes(x.toLowerCase())
43886
- ), S = (T) => {
43886
+ );
43887
+ useEffect(() => {
43888
+ if (!s && i.length > 0) {
43889
+ const T = E(i[0]);
43890
+ d(T);
43891
+ } else s && d("");
43892
+ }, [i, s, t]);
43893
+ const S = (T) => {
43887
43894
  if (s) {
43888
43895
  const b = i.includes(T.value);
43889
43896
  n(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cecomponent",
3
3
  "description": "A React component library for building modern UIs for Cleanearth",
4
- "version": "1.0.139",
4
+ "version": "1.0.140",
5
5
  "main": "dist/ce-component-lib.js",
6
6
  "module": "dist/ce-component-lib.mjs",
7
7
  "types": "dist/index.d.ts",