zuii 1.4.16 → 1.4.18
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.
- package/dist/_virtual/fr.js +5 -0
- package/dist/_virtual/fr2.js +4 -0
- package/dist/components/Badge/style/index.css +1 -1
- package/dist/components/Card/js/card.d.ts +4 -0
- package/dist/components/Card/react/index.d.ts +29 -0
- package/dist/components/Card/react/index.js +20 -0
- package/dist/components/Card/style/index.css +1 -0
- package/dist/components/Color/react/index.js +9 -5
- package/dist/components/Errorpage/react/index.js +11 -7
- package/dist/components/Form/js/color.d.ts +11 -0
- package/dist/components/Form/js/color.js +36 -0
- package/dist/components/Form/js/date.d.ts +35 -0
- package/dist/components/Form/js/date.js +40 -0
- package/dist/components/Form/js/tel-input.d.ts +12 -0
- package/dist/components/Form/js/tel-input.js +18 -0
- package/dist/components/Form/react/FormColor.d.ts +37 -0
- package/dist/components/Form/react/FormColor.js +62 -0
- package/dist/components/Form/react/FormDate.d.ts +48 -0
- package/dist/components/Form/react/FormDate.js +57 -0
- package/dist/components/Form/react/NumberInput.js +2 -3
- package/dist/components/Form/react/PasswordConfirm.d.ts +5 -1
- package/dist/components/Form/react/PasswordConfirm.js +43 -40
- package/dist/components/Form/react/PasswordInput.js +21 -21
- package/dist/components/Form/react/RangeInput.js +2 -3
- package/dist/components/Form/react/Select.d.ts +9 -1
- package/dist/components/Form/react/Select.js +91 -67
- package/dist/components/Form/react/TelInput.js +34 -26
- package/dist/components/Form/react/index.d.ts +7 -2
- package/dist/components/Form/react/index.js +28 -24
- package/dist/components/Form/style/index.css +1 -1
- package/dist/components/Grid/react/index.d.ts +13 -2
- package/dist/components/Grid/react/index.js +39 -34
- package/dist/components/Grid/style/index.css +1 -1
- package/dist/components/Loader/js/loader.d.ts +5 -1
- package/dist/components/Loader/react/index.d.ts +5 -1
- package/dist/components/Loader/react/index.js +22 -18
- package/dist/components/Loader/style/index.css +1 -1
- package/dist/components/Menu/js/menu.d.ts +6 -0
- package/dist/components/Menu/js/menu.js +19 -0
- package/dist/components/Menu/react/index.d.ts +34 -0
- package/dist/components/Menu/react/index.js +44 -0
- package/dist/components/Menu/style/index.css +1 -0
- package/dist/components/Nav/react/index.js +5 -1
- package/dist/components/Placeholder/style/index.css +1 -1
- package/dist/components/Slider/js/slider.d.ts +11 -0
- package/dist/components/Slider/js/slider.js +14 -0
- package/dist/components/Slider/react/index.d.ts +40 -0
- package/dist/components/Slider/react/index.js +27 -0
- package/dist/components/Slider/style/index.css +1 -0
- package/dist/components/Tab/react/index.js +48 -42
- package/dist/components/Tab/style/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +25 -18
- package/dist/node_modules/.pnpm/flatpickr@4.6.13/node_modules/flatpickr/dist/l10n/fr.js +71 -0
- package/dist/templates/Cards/Cards.d.ts +4 -0
- package/dist/templates/Cards/Cards.tsx +55 -0
- package/dist/templates/Forms/Forms-elements.tsx +9 -4
- package/dist/templates/Loaders/Loaders.tsx +5 -0
- package/dist/templates/Sliders/Sliders.d.ts +4 -0
- package/dist/templates/Sliders/Sliders.tsx +150 -0
- package/dist/templates/index.d.ts +2 -0
- package/dist/templates/index.ts +2 -0
- package/package.json +5 -1
|
@@ -1,50 +1,53 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as c, useEffect as
|
|
3
|
-
import { InputGroup as
|
|
1
|
+
import { jsxs as m, Fragment as V, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useState as c, useEffect as u } from "react";
|
|
3
|
+
import { InputGroup as a, Form as l } from "react-bootstrap";
|
|
4
4
|
import { Icon as w } from "../../Icon/react/index.js";
|
|
5
|
-
const
|
|
5
|
+
const $ = ({
|
|
6
6
|
passwordToMatch: o,
|
|
7
7
|
value: s = "",
|
|
8
|
-
onChange:
|
|
9
|
-
className:
|
|
10
|
-
placeholder:
|
|
11
|
-
disabled:
|
|
8
|
+
onChange: d,
|
|
9
|
+
className: p = "",
|
|
10
|
+
placeholder: f = "Confirmez le mot de passe",
|
|
11
|
+
disabled: h = !1,
|
|
12
|
+
errorMessage: g = "Les mots de passe ne correspondent pas."
|
|
12
13
|
}) => {
|
|
13
|
-
const [n,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
const [n, C] = c(!1), [r, y] = c(!0), i = "password-confirm";
|
|
15
|
+
u(() => {
|
|
16
|
+
y(s === "" || s === o);
|
|
16
17
|
}, [s, o]);
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
|
|
18
|
+
const _ = () => {
|
|
19
|
+
C(!n);
|
|
20
|
+
}, x = (e) => {
|
|
21
|
+
d?.(e, e === o);
|
|
21
22
|
};
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
23
|
+
return /* @__PURE__ */ m(V, { children: [
|
|
24
|
+
/* @__PURE__ */ m(a, { className: `form__input ${i} ${p}`.trim(), hasValidation: !0, children: [
|
|
25
|
+
/* @__PURE__ */ t(
|
|
26
|
+
l.Control,
|
|
27
|
+
{
|
|
28
|
+
type: n ? "text" : "password",
|
|
29
|
+
value: s,
|
|
30
|
+
onChange: (e) => x(e.target.value),
|
|
31
|
+
placeholder: f,
|
|
32
|
+
disabled: h,
|
|
33
|
+
isInvalid: !r && s !== "",
|
|
34
|
+
isValid: r && s !== "" && s === o,
|
|
35
|
+
className: "form__control"
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
/* @__PURE__ */ t(
|
|
39
|
+
a.Text,
|
|
40
|
+
{
|
|
41
|
+
className: `${i}__toggle`,
|
|
42
|
+
onClick: _,
|
|
43
|
+
style: { cursor: "pointer" },
|
|
44
|
+
children: /* @__PURE__ */ t(w, { name: n ? "icon-eye" : "icon-eye-closed", size: "sm" })
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
] }),
|
|
48
|
+
/* @__PURE__ */ t(l.Control.Feedback, { type: "invalid", children: g })
|
|
46
49
|
] });
|
|
47
50
|
};
|
|
48
51
|
export {
|
|
49
|
-
|
|
52
|
+
$ as PasswordConfirm
|
|
50
53
|
};
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { jsxs as d, jsx as
|
|
1
|
+
import { jsxs as d, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import { useState as u } from "react";
|
|
3
|
-
import { InputGroup as t, Form as
|
|
4
|
-
import { Icon as
|
|
5
|
-
const
|
|
3
|
+
import { InputGroup as t, Form as f } from "react-bootstrap";
|
|
4
|
+
import { Icon as w } from "../../Icon/react/index.js";
|
|
5
|
+
const y = ({
|
|
6
6
|
value: r,
|
|
7
|
-
onChange:
|
|
8
|
-
className:
|
|
7
|
+
onChange: n,
|
|
8
|
+
className: a = "",
|
|
9
9
|
placeholder: i = "Mot de passe",
|
|
10
|
-
disabled:
|
|
10
|
+
disabled: m = !1
|
|
11
11
|
}) => {
|
|
12
|
-
const [
|
|
13
|
-
|
|
12
|
+
const [o, l] = u(!1), e = "password-input", c = () => {
|
|
13
|
+
l(!o);
|
|
14
14
|
};
|
|
15
|
-
return /* @__PURE__ */ d(t, { className:
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
|
|
15
|
+
return /* @__PURE__ */ d(t, { className: `form__input ${e} ${a}`.trim(), children: [
|
|
16
|
+
/* @__PURE__ */ s(
|
|
17
|
+
f.Control,
|
|
18
18
|
{
|
|
19
|
-
type:
|
|
19
|
+
type: o ? "text" : "password",
|
|
20
20
|
value: r,
|
|
21
|
-
onChange: (p) =>
|
|
21
|
+
onChange: (p) => n?.(p.target.value),
|
|
22
22
|
placeholder: i,
|
|
23
|
-
disabled:
|
|
24
|
-
className:
|
|
23
|
+
disabled: m,
|
|
24
|
+
className: "form__control"
|
|
25
25
|
}
|
|
26
26
|
),
|
|
27
|
-
/* @__PURE__ */
|
|
27
|
+
/* @__PURE__ */ s(
|
|
28
28
|
t.Text,
|
|
29
29
|
{
|
|
30
|
-
className: `${
|
|
31
|
-
onClick:
|
|
30
|
+
className: `${e}__toggle`,
|
|
31
|
+
onClick: c,
|
|
32
32
|
style: { cursor: "pointer" },
|
|
33
|
-
children: /* @__PURE__ */
|
|
33
|
+
children: /* @__PURE__ */ s(w, { name: o ? "icon-eye" : "icon-eye-closed", size: "sm" })
|
|
34
34
|
}
|
|
35
35
|
)
|
|
36
36
|
] });
|
|
37
37
|
};
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
y as PasswordInput
|
|
40
40
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Form as i } from "react-bootstrap";
|
|
3
|
-
|
|
4
|
-
const _ = ({
|
|
3
|
+
const h = ({
|
|
5
4
|
value: s,
|
|
6
5
|
onChange: l,
|
|
7
6
|
min: t = 0,
|
|
@@ -39,5 +38,5 @@ const _ = ({
|
|
|
39
38
|
] });
|
|
40
39
|
};
|
|
41
40
|
export {
|
|
42
|
-
|
|
41
|
+
h as RangeInput
|
|
43
42
|
};
|
|
@@ -54,6 +54,14 @@ export interface SelectProps {
|
|
|
54
54
|
* @default 'default'
|
|
55
55
|
*/
|
|
56
56
|
variant?: 'default' | 'country';
|
|
57
|
+
/**
|
|
58
|
+
* Nom de l'icône à afficher.
|
|
59
|
+
*/
|
|
60
|
+
icon?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Langue pour les traductions (ex: 'fr', 'en').
|
|
63
|
+
*/
|
|
64
|
+
lang?: string;
|
|
57
65
|
}
|
|
58
66
|
/**
|
|
59
67
|
* Composant Select premium basé sur Choices.js.
|
|
@@ -61,4 +69,4 @@ export interface SelectProps {
|
|
|
61
69
|
* @param {SelectProps} props - Les propriétés du composant.
|
|
62
70
|
* @returns {JSX.Element} Le composant Select rendu.
|
|
63
71
|
*/
|
|
64
|
-
export declare const Select: ({ options, value, onChange, multiple, placeholder, disabled, searchable, className, name, variant, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
export declare const Select: ({ options, value, onChange, multiple, placeholder, disabled, searchable, className, name, variant, icon, lang, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,73 +1,97 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { initSelect as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { jsxs as R, jsx as S } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as i, useEffect as l } from "react";
|
|
3
|
+
import { initSelect as E } from "../js/select.js";
|
|
4
|
+
import { Icon as b } from "../../Icon/react/index.js";
|
|
5
|
+
const V = {
|
|
6
|
+
fr: {
|
|
7
|
+
placeholder: "Sélectionnez une option",
|
|
8
|
+
noResultsText: "Aucun résultat trouvé",
|
|
9
|
+
noChoicesText: "Aucun choix disponible",
|
|
10
|
+
uniqueItemText: "Seules les valeurs uniques peuvent être ajoutées",
|
|
11
|
+
customAddItemText: "Seules les valeurs correspondant à un critère spécifique peuvent être ajoutées",
|
|
12
|
+
addItemText: (e) => `Appuyez sur Entrée pour ajouter **${e}**`,
|
|
13
|
+
maxItemText: (e) => `Seulement ${e} options peuvent être sélectionnées`
|
|
14
|
+
},
|
|
15
|
+
en: {
|
|
16
|
+
placeholder: "Select an option",
|
|
17
|
+
noResultsText: "No results found",
|
|
18
|
+
noChoicesText: "No choices to choose from",
|
|
19
|
+
uniqueItemText: "Only unique values can be added",
|
|
20
|
+
customAddItemText: "Only values matching specific conditions can be added",
|
|
21
|
+
addItemText: (e) => `Press Enter to add **${e}**`,
|
|
22
|
+
maxItemText: (e) => `Only ${e} options can be selected`
|
|
23
|
+
}
|
|
24
|
+
}, L = ({
|
|
25
|
+
options: e,
|
|
26
|
+
value: t,
|
|
27
|
+
onChange: a,
|
|
28
|
+
multiple: c = !1,
|
|
29
|
+
placeholder: x = "Sélectionnez une option",
|
|
30
|
+
disabled: A = !1,
|
|
31
|
+
searchable: y = !0,
|
|
32
|
+
className: I = "",
|
|
33
|
+
name: v,
|
|
34
|
+
variant: h = "default",
|
|
35
|
+
icon: T,
|
|
36
|
+
lang: N
|
|
15
37
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}, [
|
|
20
|
-
|
|
21
|
-
}, [
|
|
22
|
-
const
|
|
23
|
-
return
|
|
24
|
-
if (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
return () => {
|
|
52
|
-
c.current && (c.current.destroy(), c.current = null);
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
}, [N, s, a, A, d]), o(() => {
|
|
56
|
-
if (c.current && r !== void 0) {
|
|
57
|
-
const t = c.current.getValue(!0), i = Array.isArray(r) ? r : [r], e = Array.isArray(t) ? t : [t];
|
|
58
|
-
JSON.stringify(i.sort()) !== JSON.stringify(e.sort()) && c.current.setChoiceByValue(r);
|
|
38
|
+
const o = i(null), s = i(null), d = i(a), f = i(t), g = N || (typeof document < "u" ? document.documentElement.lang : "fr") || "fr", m = V[g.startsWith("en") ? "en" : "fr"], p = x === "Sélectionnez une option" ? m.placeholder : x;
|
|
39
|
+
l(() => {
|
|
40
|
+
d.current = a;
|
|
41
|
+
}, [a]), l(() => {
|
|
42
|
+
f.current = t;
|
|
43
|
+
}, [t]);
|
|
44
|
+
const O = JSON.stringify(e);
|
|
45
|
+
return l(() => {
|
|
46
|
+
if (o.current) {
|
|
47
|
+
o.current.innerHTML = "";
|
|
48
|
+
const r = t ?? f.current, u = e.map((n) => ({
|
|
49
|
+
value: n.value,
|
|
50
|
+
label: n.text,
|
|
51
|
+
selected: Array.isArray(r) ? r.includes(n.value) : r === n.value,
|
|
52
|
+
customProperties: {
|
|
53
|
+
flag: n.flag
|
|
54
|
+
}
|
|
55
|
+
}));
|
|
56
|
+
c || u.unshift({
|
|
57
|
+
value: "",
|
|
58
|
+
label: p,
|
|
59
|
+
selected: r === void 0 || r === "",
|
|
60
|
+
placeholder: !0
|
|
61
|
+
}), s.current = E(o.current, {
|
|
62
|
+
choices: u,
|
|
63
|
+
removeItemButton: c,
|
|
64
|
+
placeholderValue: p,
|
|
65
|
+
searchEnabled: y,
|
|
66
|
+
silent: !0,
|
|
67
|
+
variant: h,
|
|
68
|
+
...m
|
|
69
|
+
}, (n) => {
|
|
70
|
+
f.current = n, d.current && d.current(n);
|
|
71
|
+
});
|
|
59
72
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
name: V
|
|
73
|
+
return () => {
|
|
74
|
+
s.current && (s.current.destroy(), s.current = null);
|
|
75
|
+
};
|
|
76
|
+
}, [O, c, p, h, y, m]), l(() => {
|
|
77
|
+
if (s.current && t !== void 0) {
|
|
78
|
+
const r = s.current.getValue(!0), u = Array.isArray(t) ? t : [t], n = Array.isArray(r) ? r : [r];
|
|
79
|
+
JSON.stringify(u.sort()) !== JSON.stringify(n.sort()) && s.current.setChoiceByValue(t);
|
|
68
80
|
}
|
|
69
|
-
) })
|
|
81
|
+
}, [t]), /* @__PURE__ */ R("div", { className: `form__input ${I}`.trim(), children: [
|
|
82
|
+
T && /* @__PURE__ */ S(b, { name: T, size: "sm" }),
|
|
83
|
+
/* @__PURE__ */ S(
|
|
84
|
+
"select",
|
|
85
|
+
{
|
|
86
|
+
ref: o,
|
|
87
|
+
multiple: c,
|
|
88
|
+
disabled: A,
|
|
89
|
+
className: "select",
|
|
90
|
+
name: v
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
] });
|
|
70
94
|
};
|
|
71
95
|
export {
|
|
72
|
-
|
|
96
|
+
L as Select
|
|
73
97
|
};
|
|
@@ -1,44 +1,52 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Form as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as f, useState as g, useEffect as u } from "react";
|
|
3
|
+
import { Form as b } from "react-bootstrap";
|
|
4
|
+
import h from "intl-tel-input";
|
|
5
|
+
import { getDefaultCountry as N, watchLanguageChange as y } from "../js/tel-input.js";
|
|
6
|
+
const w = ({
|
|
7
|
+
value: n,
|
|
8
|
+
onChange: c,
|
|
9
|
+
initialCountry: o,
|
|
10
|
+
className: m = "",
|
|
10
11
|
placeholder: l,
|
|
11
|
-
disabled:
|
|
12
|
+
disabled: p = !1
|
|
12
13
|
}) => {
|
|
13
|
-
const
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
const r = f(null), t = f(null), [i, a] = g(o || N());
|
|
15
|
+
return u(() => {
|
|
16
|
+
const e = y(o, (d) => {
|
|
17
|
+
a(d);
|
|
18
|
+
});
|
|
19
|
+
return () => {
|
|
20
|
+
e && e.disconnect();
|
|
21
|
+
};
|
|
22
|
+
}, [o]), u(() => {
|
|
23
|
+
if (r.current) {
|
|
24
|
+
t.current = h(r.current, {
|
|
25
|
+
initialCountry: i,
|
|
18
26
|
loadUtils: () => import("../../../node_modules/.pnpm/intl-tel-input@26.1.1/node_modules/intl-tel-input/build/js/utils.js"),
|
|
19
27
|
separateDialCode: !0,
|
|
20
28
|
strictMode: !0
|
|
21
29
|
});
|
|
22
|
-
const
|
|
23
|
-
|
|
30
|
+
const e = () => {
|
|
31
|
+
c && c(t.current.getNumber());
|
|
24
32
|
};
|
|
25
|
-
return
|
|
26
|
-
|
|
33
|
+
return r.current.addEventListener("change", e), r.current.addEventListener("blur", e), () => {
|
|
34
|
+
t.current && t.current.destroy();
|
|
27
35
|
};
|
|
28
36
|
}
|
|
29
|
-
}, [
|
|
30
|
-
|
|
31
|
-
}, [
|
|
32
|
-
|
|
37
|
+
}, [i]), u(() => {
|
|
38
|
+
t.current && n !== void 0 && n !== t.current.getNumber() && t.current.setNumber(n);
|
|
39
|
+
}, [n]), /* @__PURE__ */ s("div", { className: `tel-input-wrapper form__input ${m}`.trim(), children: /* @__PURE__ */ s(
|
|
40
|
+
b.Control,
|
|
33
41
|
{
|
|
34
|
-
ref:
|
|
42
|
+
ref: r,
|
|
35
43
|
type: "tel",
|
|
36
44
|
placeholder: l,
|
|
37
|
-
disabled:
|
|
45
|
+
disabled: p,
|
|
38
46
|
className: "tel-input-control "
|
|
39
47
|
}
|
|
40
48
|
) });
|
|
41
49
|
};
|
|
42
50
|
export {
|
|
43
|
-
|
|
51
|
+
w as TelInput
|
|
44
52
|
};
|
|
@@ -9,6 +9,9 @@ import { TelInputProps } from './TelInput';
|
|
|
9
9
|
import { PasswordInputProps } from './PasswordInput';
|
|
10
10
|
import { PasswordConfirmProps } from './PasswordConfirm';
|
|
11
11
|
import { RangeInputProps } from './RangeInput';
|
|
12
|
+
import { FormColorProps } from './FormColor';
|
|
13
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
14
|
+
import { FormDateProps } from './FormDate';
|
|
12
15
|
/**
|
|
13
16
|
* Propriétés du composant FormControl.
|
|
14
17
|
*/
|
|
@@ -53,7 +56,7 @@ export declare const Form: {
|
|
|
53
56
|
Input: BsPrefixRefForwardingComponent<"input", FormCheckInputProps>;
|
|
54
57
|
Label: React.ForwardRefExoticComponent< FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
55
58
|
};
|
|
56
|
-
Select: ({ options, value, onChange, multiple, placeholder, disabled, searchable, className, name, variant, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
Select: ({ options, value, onChange, multiple, placeholder, disabled, searchable, className, name, variant, icon, lang, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
57
60
|
InputGroup: BsPrefixRefForwardingComponent<"div", InputGroupProps> & {
|
|
58
61
|
Text: BsPrefixRefForwardingComponent<"span", InputGroupTextProps>;
|
|
59
62
|
Radio: (props: FormCheckInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -62,8 +65,10 @@ export declare const Form: {
|
|
|
62
65
|
Number: ({ value, onChange, min, max, step, className, placeholder, }: NumberInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
63
66
|
Tel: ({ value, onChange, initialCountry, className, placeholder, disabled, }: TelInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
64
67
|
Password: ({ value, onChange, className, placeholder, disabled, }: PasswordInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
65
|
-
PasswordConfirm: ({ passwordToMatch, value, onChange, className, placeholder, disabled, }: PasswordConfirmProps) => import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
PasswordConfirm: ({ passwordToMatch, value, onChange, className, placeholder, disabled, errorMessage, }: PasswordConfirmProps) => import("react/jsx-runtime").JSX.Element;
|
|
66
69
|
Range: ({ value, onChange, min, max, step, className, }: RangeInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
67
70
|
FloatingLabel: BsPrefixRefForwardingComponent<"div", FloatingLabelProps>;
|
|
71
|
+
Color: ({ value, onChange, disabled, name, className, swatches, }: FormColorProps) => import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
Date: ForwardRefExoticComponent< FormDateProps & RefAttributes<HTMLInputElement>>;
|
|
68
73
|
};
|
|
69
74
|
export {};
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { Form as r, InputGroup as
|
|
3
|
-
import { Icon as
|
|
2
|
+
import { Form as r, InputGroup as C } from "react-bootstrap";
|
|
3
|
+
import { Icon as c } from "../../Icon/react/index.js";
|
|
4
4
|
import d from "../../../node_modules/.pnpm/react-bootstrap@2.10.10_@types_react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-bootstrap/esm/FloatingLabel.js";
|
|
5
5
|
import '../style/index.css';/* empty css */
|
|
6
|
-
import { NumberInput as
|
|
6
|
+
import { NumberInput as h } from "./NumberInput.js";
|
|
7
7
|
import { TelInput as b } from "./TelInput.js";
|
|
8
|
-
import { PasswordInput as
|
|
9
|
-
import { PasswordConfirm as
|
|
10
|
-
import { RangeInput as
|
|
11
|
-
import { Select as
|
|
8
|
+
import { PasswordInput as F } from "./PasswordInput.js";
|
|
9
|
+
import { PasswordConfirm as I } from "./PasswordConfirm.js";
|
|
10
|
+
import { RangeInput as w } from "./RangeInput.js";
|
|
11
|
+
import { Select as N } from "./Select.js";
|
|
12
12
|
import { handleNumericKeyDown as _ } from "../js/number.js";
|
|
13
|
-
|
|
13
|
+
import { FormColor as x } from "./FormColor.js";
|
|
14
|
+
import { FormDate as y } from "./FormDate.js";
|
|
15
|
+
const D = ({
|
|
14
16
|
label: n,
|
|
15
17
|
floating: l,
|
|
16
18
|
icon: m,
|
|
@@ -18,28 +20,28 @@ const x = ({
|
|
|
18
20
|
onKeyDown: i,
|
|
19
21
|
...e
|
|
20
22
|
}) => {
|
|
21
|
-
const
|
|
22
|
-
e.type === "number" && _(
|
|
23
|
-
},
|
|
23
|
+
const f = (p) => {
|
|
24
|
+
e.type === "number" && _(p), i && i(p);
|
|
25
|
+
}, u = e.type === "number" ? "decimal" : void 0;
|
|
24
26
|
return l && n ? /* @__PURE__ */ t(d, { label: n, controlId: e.id || e.name, children: /* @__PURE__ */ s("div", { className: "form__input", children: [
|
|
25
|
-
m && /* @__PURE__ */ t(
|
|
27
|
+
m && /* @__PURE__ */ t(c, { name: m, size: "sm" }),
|
|
26
28
|
/* @__PURE__ */ t(
|
|
27
29
|
r.Control,
|
|
28
30
|
{
|
|
29
31
|
...e,
|
|
30
|
-
onKeyDown:
|
|
31
|
-
inputMode:
|
|
32
|
+
onKeyDown: f,
|
|
33
|
+
inputMode: u,
|
|
32
34
|
children: a
|
|
33
35
|
}
|
|
34
36
|
)
|
|
35
37
|
] }) }) : /* @__PURE__ */ s("div", { className: "form__input", children: [
|
|
36
|
-
m && /* @__PURE__ */ t(
|
|
38
|
+
m && /* @__PURE__ */ t(c, { name: m, size: "sm" }),
|
|
37
39
|
/* @__PURE__ */ t(
|
|
38
40
|
r.Control,
|
|
39
41
|
{
|
|
40
42
|
...e,
|
|
41
|
-
onKeyDown:
|
|
42
|
-
inputMode:
|
|
43
|
+
onKeyDown: f,
|
|
44
|
+
inputMode: u,
|
|
43
45
|
children: a
|
|
44
46
|
}
|
|
45
47
|
)
|
|
@@ -57,18 +59,20 @@ const x = ({
|
|
|
57
59
|
] });
|
|
58
60
|
};
|
|
59
61
|
o.Group = r.Group;
|
|
60
|
-
o.Control =
|
|
62
|
+
o.Control = D;
|
|
61
63
|
o.Label = r.Label;
|
|
62
64
|
o.Text = r.Text;
|
|
63
65
|
o.Check = r.Check;
|
|
64
|
-
o.Select =
|
|
65
|
-
o.InputGroup =
|
|
66
|
-
o.Number =
|
|
66
|
+
o.Select = N;
|
|
67
|
+
o.InputGroup = C;
|
|
68
|
+
o.Number = h;
|
|
67
69
|
o.Tel = b;
|
|
68
|
-
o.Password =
|
|
69
|
-
o.PasswordConfirm =
|
|
70
|
-
o.Range =
|
|
70
|
+
o.Password = F;
|
|
71
|
+
o.PasswordConfirm = I;
|
|
72
|
+
o.Range = w;
|
|
71
73
|
o.FloatingLabel = d;
|
|
74
|
+
o.Color = x;
|
|
75
|
+
o.Date = y;
|
|
72
76
|
export {
|
|
73
77
|
o as Form
|
|
74
78
|
};
|