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,
|
|
3
|
-
import { jsx as r, jsxs as
|
|
4
|
-
import { useFormContext as
|
|
5
|
-
import { FormField as
|
|
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:
|
|
9
|
+
label: n,
|
|
10
10
|
required: i = !1,
|
|
11
11
|
options: l,
|
|
12
12
|
isMulti: s = !1,
|
|
13
|
-
isClearable: f = !
|
|
14
|
-
onChange:
|
|
13
|
+
isClearable: f = !1,
|
|
14
|
+
onChange: t = void 0,
|
|
15
15
|
...c
|
|
16
16
|
}) {
|
|
17
|
-
const { control: d } =
|
|
17
|
+
const { control: d } = C();
|
|
18
18
|
return /* @__PURE__ */ r(
|
|
19
|
-
|
|
19
|
+
g,
|
|
20
20
|
{
|
|
21
21
|
control: d,
|
|
22
22
|
name: e,
|
|
23
23
|
render: /* @__PURE__ */ o(({ field: F }) => {
|
|
24
|
-
const { onChange:
|
|
25
|
-
return /* @__PURE__ */ u
|
|
26
|
-
/* @__PURE__ */ r(j, { required: i, children:
|
|
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
|
-
|
|
31
|
+
a(m), t && t(m);
|
|
32
32
|
}, "onChange"),
|
|
33
|
-
...
|
|
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");
|
package/dist/themes/base.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.
|
|
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:
|
|
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,
|
|
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
|
}
|