fina-react-ds 1.0.33 → 1.0.35

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,36 +1,36 @@
1
1
  var h = Object.defineProperty;
2
- var o = (e, t) => h(e, "name", { value: t, configurable: !0 });
3
- import { jsx as r, jsxs as u } from "react/jsx-runtime";
4
- import { useFormContext as x } from "react-hook-form";
5
- import { FormField as C, FormItem as g, FormLabel as j, FormControl as S, FormMessage as b } from "./form.js";
2
+ var o = (e, n) => h(e, "name", { value: n, configurable: !0 });
3
+ import { jsx as r, jsxs as x } from "react/jsx-runtime";
4
+ import { useFormContext as C } from "react-hook-form";
5
+ import { FormField as g, FormItem as u, FormLabel as j, FormControl as S, FormMessage as b } from "./form.js";
6
6
  import { Select as I } from "./select.js";
7
7
  function q({
8
8
  name: e,
9
- label: t,
9
+ label: n,
10
10
  required: i = !1,
11
11
  options: l,
12
12
  isMulti: s = !1,
13
- isClearable: f = !0,
14
- onChange: n = void 0,
13
+ isClearable: f = !1,
14
+ onChange: t = void 0,
15
15
  ...c
16
16
  }) {
17
- const { control: d } = x();
17
+ const { control: d } = C();
18
18
  return /* @__PURE__ */ r(
19
- C,
19
+ g,
20
20
  {
21
21
  control: d,
22
22
  name: e,
23
23
  render: /* @__PURE__ */ o(({ field: F }) => {
24
- const { onChange: p, ...a } = F;
25
- return /* @__PURE__ */ u(g, { children: [
26
- /* @__PURE__ */ r(j, { required: i, children: t }),
24
+ const { onChange: a, ...p } = F;
25
+ return /* @__PURE__ */ x(u, { children: [
26
+ /* @__PURE__ */ r(j, { required: i, children: n }),
27
27
  /* @__PURE__ */ r(S, { children: /* @__PURE__ */ r(
28
28
  I,
29
29
  {
30
30
  onChange: /* @__PURE__ */ o((m) => {
31
- p(m), n && n(m);
31
+ a(m), t && t(m);
32
32
  }, "onChange"),
33
- ...a,
33
+ ...p,
34
34
  options: l,
35
35
  isMulti: s,
36
36
  isClearable: f,
@@ -14,7 +14,7 @@ function y({
14
14
  Array.isArray(e) ? d == null || d(
15
15
  e.map((t) => t.value)
16
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), "getSelectedOptions"), s = /* @__PURE__ */ r((e) => {
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
18
  const t = e.relatedTarget;
19
19
  t && (t.tagName === "A" || t.tagName === "BUTTON" || t.tagName === "TEXTAREA" || t.tagName === "INPUT") && t.focus();
20
20
  }, "onBlurWorkaround");
@@ -1,4 +1,4 @@
1
- /*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */
2
2
  @layer properties;
3
3
  @layer theme, base, components, utilities;
4
4
  @layer theme {
@@ -205,7 +205,7 @@
205
205
  padding: 0;
206
206
  margin: -1px;
207
207
  overflow: hidden;
208
- clip: rect(0, 0, 0, 0);
208
+ clip-path: inset(50%);
209
209
  white-space: nowrap;
210
210
  border-width: 0;
211
211
  }
@@ -1225,7 +1225,7 @@
1225
1225
  outline-width: 1px;
1226
1226
  }
1227
1227
  .transition {
1228
- transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, visibility, content-visibility, overlay, pointer-events;
1228
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
1229
1229
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
1230
1230
  transition-duration: var(--tw-duration, var(--default-transition-duration));
1231
1231
  }
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.33",
8
+ "version": "1.0.35",
9
9
  "type": "module",
10
10
  "files": [
11
11
  "dist"