fina-react-ds 1.0.35 → 1.0.36

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,30 +1,30 @@
1
- var l = Object.defineProperty;
2
- var r = (i, o) => l(i, "name", { value: o, configurable: !0 });
1
+ var n = Object.defineProperty;
2
+ var r = (d, l) => n(d, "name", { value: l, configurable: !0 });
3
3
  import { jsx as m } from "react/jsx-runtime";
4
4
  import p from "clsx";
5
5
  import f from "react-select";
6
- function y({
7
- options: i,
8
- placeholder: o = "Sélectionner",
9
- onChange: d,
10
- value: a,
11
- ...c
6
+ function g({
7
+ options: d,
8
+ placeholder: l = "Sélectionner",
9
+ onChange: t,
10
+ value: u,
11
+ ...o
12
12
  }) {
13
- const u = /* @__PURE__ */ r((e) => {
14
- Array.isArray(e) ? d == null || d(
15
- e.map((t) => t.value)
16
- ) : d == null || d(e == null ? void 0 : e.value);
17
- }, "handleChange"), n = /* @__PURE__ */ r(() => c.isMulti ? Array.isArray(a) ? (i == null ? void 0 : i.filter((e) => a.includes(e.value))) ?? [] : [] : i.find((e) => e.value === a) ?? null, "getSelectedOptions"), s = /* @__PURE__ */ r((e) => {
18
- const t = e.relatedTarget;
19
- t && (t.tagName === "A" || t.tagName === "BUTTON" || t.tagName === "TEXTAREA" || t.tagName === "INPUT") && t.focus();
13
+ const c = /* @__PURE__ */ r((e) => {
14
+ Array.isArray(e) ? t == null || t(
15
+ e.map((i) => i.value)
16
+ ) : e === null ? t == null || t(null) : t == null || t(e.value);
17
+ }, "handleChange"), a = /* @__PURE__ */ r(() => o.isMulti ? Array.isArray(u) ? (d == null ? void 0 : d.filter((e) => u.includes(e.value))) ?? [] : [] : d.find((e) => e.value === u) ?? null, "getSelectedOptions"), s = /* @__PURE__ */ r((e) => {
18
+ const i = e.relatedTarget;
19
+ i && (i.tagName === "A" || i.tagName === "BUTTON" || i.tagName === "TEXTAREA" || i.tagName === "INPUT") && i.focus();
20
20
  }, "onBlurWorkaround");
21
21
  return /* @__PURE__ */ m(
22
22
  f,
23
23
  {
24
- ...c,
25
- options: i,
26
- onChange: u,
27
- value: n(),
24
+ ...o,
25
+ options: d,
26
+ onChange: c,
27
+ value: a(),
28
28
  classNames: {
29
29
  control: /* @__PURE__ */ r(() => "px-3 py-1 border bg-input rounded-md text-base md:text-sm min-h-9! shadow-none border-input-border has-[:focus]:border-ring has-[:focus]:ring-[3px] ring-ring/50 has-aria-invalid:border-destructive! has-aria-invalid:ring-destructive/20! has-aria-invalid:dark:ring-destructive/40!", "control"),
30
30
  menu: /* @__PURE__ */ r(() => "bg-popover border rounded-md py-0 overflow-hidden shadow-md mt-2", "menu"),
@@ -42,12 +42,12 @@ function y({
42
42
  noOptionsMessage: /* @__PURE__ */ r(() => "py-2", "noOptionsMessage")
43
43
  },
44
44
  onBlur: s,
45
- placeholder: o,
45
+ placeholder: l,
46
46
  unstyled: !0
47
47
  }
48
48
  );
49
49
  }
50
- r(y, "Select");
50
+ r(g, "Select");
51
51
  export {
52
- y as Select
52
+ g as Select
53
53
  };
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "https://github.com/F1na/fina-react-ds"
6
6
  },
7
7
  "private": false,
8
- "version": "1.0.35",
8
+ "version": "1.0.36",
9
9
  "type": "module",
10
10
  "files": [
11
11
  "dist"