@caseparts-org/caseblocks 0.0.191 → 0.0.192

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,6 +1,6 @@
1
1
  import { jsx as e, jsxs as m } from "react/jsx-runtime";
2
2
  import { c as h } from "../../clsx-OuTLNxxd.js";
3
- import { Flex as r } from "../../atoms/Flex/Flex.js";
3
+ import { Flex as c } from "../../atoms/Flex/Flex.js";
4
4
  import { getHideAtStyles as u } from "../../atoms/HideAt.js";
5
5
  import { Icon as f } from "../../atoms/Icon/Icon.js";
6
6
  import '../../assets/SearchBox.css';const p = "_button_11jol_1", x = "_text_11jol_16", _ = "_input_11jol_33", d = "_inputSearch_11jol_38", g = "_searchfield_11jol_42", b = "_searchBox_11jol_49", t = {
@@ -12,31 +12,31 @@ import '../../assets/SearchBox.css';const p = "_button_11jol_1", x = "_text_11jo
12
12
  searchBox: b
13
13
  };
14
14
  function N({
15
- onSearch: n,
16
- inputName: o,
15
+ onSearch: o,
16
+ inputName: n,
17
17
  hideAt: s,
18
18
  className: a,
19
19
  ...i
20
20
  }) {
21
21
  return /* @__PURE__ */ e(
22
- r,
22
+ c,
23
23
  {
24
24
  flexDirection: "row",
25
25
  alignItems: "center",
26
26
  className: h(t.searchBox, u(s), a),
27
27
  ...i,
28
28
  children: /* @__PURE__ */ e(
29
- r,
29
+ c,
30
30
  {
31
31
  flexDirection: "row",
32
32
  alignItems: "center",
33
33
  className: t.searchfield,
34
- children: /* @__PURE__ */ e("div", { className: t.inputSearch, children: /* @__PURE__ */ e("form", { onSubmit: (c) => {
35
- c.preventDefault();
36
- const l = (new FormData(c.currentTarget).get(o ?? "search") || "").trim();
37
- n(l);
34
+ children: /* @__PURE__ */ e("div", { className: t.inputSearch, children: /* @__PURE__ */ e("form", { onSubmit: (r) => {
35
+ r.preventDefault();
36
+ const l = (new FormData(r.currentTarget).get(n ?? "search") || "").trim();
37
+ o(l), r.currentTarget.reset();
38
38
  }, children: /* @__PURE__ */ m(
39
- r,
39
+ c,
40
40
  {
41
41
  className: t.input,
42
42
  flexDirection: "row",
@@ -49,7 +49,7 @@ function N({
49
49
  type: "text",
50
50
  className: t.text,
51
51
  placeholder: "Search by keyword(s) or Part #....",
52
- name: o ?? "search"
52
+ name: n ?? "search"
53
53
  }
54
54
  )
55
55
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.191",
4
+ "version": "0.0.192",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",