@hortiview/shared-components 0.0.9195 → 0.0.9233

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,13 +1,14 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { Modal as l } from "@element/react-components";
3
3
  import { s as m } from "../../modal.module-BlDp1Wiq.js";
4
- const t = (a) => /* @__PURE__ */ o(
4
+ const d = (a) => /* @__PURE__ */ o(
5
5
  l,
6
6
  {
7
7
  ...a,
8
+ "data-testid": "modal",
8
9
  className: `${a.className ?? ""} ${a.modalSize === "fullscreen" ? m.modal : ""}`
9
10
  }
10
11
  );
11
12
  export {
12
- t as Modal
13
+ d as Modal
13
14
  };
@@ -1,31 +1,32 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { Textfield as e, IconButton as s } from "@element/react-components";
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { Textfield as l, IconButton as s } from "@element/react-components";
3
3
  import { s as c } from "../../searchBar.module-9gKyrZRT.js";
4
- const m = ({
4
+ const p = ({
5
5
  className: i = "",
6
- dense: l = !1,
7
- searchTerm: o,
8
- setSearchTerm: t,
6
+ dense: r = !1,
7
+ searchTerm: t,
8
+ setSearchTerm: a,
9
9
  placeholder: n
10
- }) => /* @__PURE__ */ a(
11
- e,
10
+ }) => /* @__PURE__ */ o(
11
+ l,
12
12
  {
13
+ "data-testid": "search-bar-input",
13
14
  className: `${i ?? ""} ${c.searchbar}`,
14
- dense: l,
15
+ dense: r,
15
16
  variant: "outlined",
16
17
  placeholder: n,
17
- value: o,
18
- onChange: (r) => t(r.target.value),
18
+ value: t,
19
+ onChange: (e) => a(e.target.value),
19
20
  fullWidth: !0,
20
- trailingIcon: /* @__PURE__ */ a(
21
+ trailingIcon: /* @__PURE__ */ o(
21
22
  s,
22
23
  {
23
- icon: o ? "close" : "search",
24
- onClick: () => o ? t("") : void 0
24
+ icon: t ? "close" : "search",
25
+ onClick: () => t ? a("") : void 0
25
26
  }
26
27
  )
27
28
  }
28
29
  );
29
30
  export {
30
- m as SearchBar
31
+ p as SearchBar
31
32
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hortiview/shared-components",
3
3
  "description": "This is a shared component library. It should used in the HortiView platform and its modules.",
4
- "version": "0.0.9195",
4
+ "version": "0.0.9233",
5
5
  "type": "module",
6
6
  "repository": "https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared",
7
7
  "author": "Falk Menge <falk.menge.ext@bayer.com>",