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.
Files changed (63) hide show
  1. package/dist/_virtual/fr.js +5 -0
  2. package/dist/_virtual/fr2.js +4 -0
  3. package/dist/components/Badge/style/index.css +1 -1
  4. package/dist/components/Card/js/card.d.ts +4 -0
  5. package/dist/components/Card/react/index.d.ts +29 -0
  6. package/dist/components/Card/react/index.js +20 -0
  7. package/dist/components/Card/style/index.css +1 -0
  8. package/dist/components/Color/react/index.js +9 -5
  9. package/dist/components/Errorpage/react/index.js +11 -7
  10. package/dist/components/Form/js/color.d.ts +11 -0
  11. package/dist/components/Form/js/color.js +36 -0
  12. package/dist/components/Form/js/date.d.ts +35 -0
  13. package/dist/components/Form/js/date.js +40 -0
  14. package/dist/components/Form/js/tel-input.d.ts +12 -0
  15. package/dist/components/Form/js/tel-input.js +18 -0
  16. package/dist/components/Form/react/FormColor.d.ts +37 -0
  17. package/dist/components/Form/react/FormColor.js +62 -0
  18. package/dist/components/Form/react/FormDate.d.ts +48 -0
  19. package/dist/components/Form/react/FormDate.js +57 -0
  20. package/dist/components/Form/react/NumberInput.js +2 -3
  21. package/dist/components/Form/react/PasswordConfirm.d.ts +5 -1
  22. package/dist/components/Form/react/PasswordConfirm.js +43 -40
  23. package/dist/components/Form/react/PasswordInput.js +21 -21
  24. package/dist/components/Form/react/RangeInput.js +2 -3
  25. package/dist/components/Form/react/Select.d.ts +9 -1
  26. package/dist/components/Form/react/Select.js +91 -67
  27. package/dist/components/Form/react/TelInput.js +34 -26
  28. package/dist/components/Form/react/index.d.ts +7 -2
  29. package/dist/components/Form/react/index.js +28 -24
  30. package/dist/components/Form/style/index.css +1 -1
  31. package/dist/components/Grid/react/index.d.ts +13 -2
  32. package/dist/components/Grid/react/index.js +39 -34
  33. package/dist/components/Grid/style/index.css +1 -1
  34. package/dist/components/Loader/js/loader.d.ts +5 -1
  35. package/dist/components/Loader/react/index.d.ts +5 -1
  36. package/dist/components/Loader/react/index.js +22 -18
  37. package/dist/components/Loader/style/index.css +1 -1
  38. package/dist/components/Menu/js/menu.d.ts +6 -0
  39. package/dist/components/Menu/js/menu.js +19 -0
  40. package/dist/components/Menu/react/index.d.ts +34 -0
  41. package/dist/components/Menu/react/index.js +44 -0
  42. package/dist/components/Menu/style/index.css +1 -0
  43. package/dist/components/Nav/react/index.js +5 -1
  44. package/dist/components/Placeholder/style/index.css +1 -1
  45. package/dist/components/Slider/js/slider.d.ts +11 -0
  46. package/dist/components/Slider/js/slider.js +14 -0
  47. package/dist/components/Slider/react/index.d.ts +40 -0
  48. package/dist/components/Slider/react/index.js +27 -0
  49. package/dist/components/Slider/style/index.css +1 -0
  50. package/dist/components/Tab/react/index.js +48 -42
  51. package/dist/components/Tab/style/index.css +1 -1
  52. package/dist/index.d.ts +3 -0
  53. package/dist/index.js +25 -18
  54. package/dist/node_modules/.pnpm/flatpickr@4.6.13/node_modules/flatpickr/dist/l10n/fr.js +71 -0
  55. package/dist/templates/Cards/Cards.d.ts +4 -0
  56. package/dist/templates/Cards/Cards.tsx +55 -0
  57. package/dist/templates/Forms/Forms-elements.tsx +9 -4
  58. package/dist/templates/Loaders/Loaders.tsx +5 -0
  59. package/dist/templates/Sliders/Sliders.d.ts +4 -0
  60. package/dist/templates/Sliders/Sliders.tsx +150 -0
  61. package/dist/templates/index.d.ts +2 -0
  62. package/dist/templates/index.ts +2 -0
  63. package/package.json +5 -1
@@ -1,50 +1,53 @@
1
- import { jsxs as x, jsx as t } from "react/jsx-runtime";
2
- import { useState as c, useEffect as V } from "react";
3
- import { InputGroup as m, Form as a } from "react-bootstrap";
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 N = ({
5
+ const $ = ({
6
6
  passwordToMatch: o,
7
7
  value: s = "",
8
- onChange: l,
9
- className: d = "",
10
- placeholder: p = "Confirmez le mot de passe",
11
- disabled: f = !1
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, h] = c(!1), [i, C] = c(!0), r = "password-confirm";
14
- V(() => {
15
- C(s === "" || s === o);
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 g = () => {
18
- h(!n);
19
- }, y = (e) => {
20
- l?.(e, e === o);
18
+ const _ = () => {
19
+ C(!n);
20
+ }, x = (e) => {
21
+ d?.(e, e === o);
21
22
  };
22
- return /* @__PURE__ */ x(m, { className: `${r} ${d}`.trim(), hasValidation: !0, children: [
23
- /* @__PURE__ */ t(
24
- a.Control,
25
- {
26
- type: n ? "text" : "password",
27
- value: s,
28
- onChange: (e) => y(e.target.value),
29
- placeholder: p,
30
- disabled: f,
31
- isInvalid: !i && s !== "",
32
- isValid: i && s !== "" && s === o,
33
- className: `${r}__control`
34
- }
35
- ),
36
- /* @__PURE__ */ t(
37
- m.Text,
38
- {
39
- className: `${r}__toggle`,
40
- onClick: g,
41
- style: { cursor: "pointer" },
42
- children: /* @__PURE__ */ t(w, { name: n ? "icon-eye" : "icon-eye-closed", size: "sm" })
43
- }
44
- ),
45
- /* @__PURE__ */ t(a.Control.Feedback, { type: "invalid", children: "Les mots de passe ne correspondent pas." })
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
- N as PasswordConfirm
52
+ $ as PasswordConfirm
50
53
  };
@@ -1,40 +1,40 @@
1
- import { jsxs as d, jsx as e } from "react/jsx-runtime";
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 w } from "react-bootstrap";
4
- import { Icon as f } from "../../Icon/react/index.js";
5
- const C = ({
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: a,
8
- className: n = "",
7
+ onChange: n,
8
+ className: a = "",
9
9
  placeholder: i = "Mot de passe",
10
- disabled: l = !1
10
+ disabled: m = !1
11
11
  }) => {
12
- const [s, c] = u(!1), o = "password-input", m = () => {
13
- c(!s);
12
+ const [o, l] = u(!1), e = "password-input", c = () => {
13
+ l(!o);
14
14
  };
15
- return /* @__PURE__ */ d(t, { className: `${o} ${n}`.trim(), children: [
16
- /* @__PURE__ */ e(
17
- w.Control,
15
+ return /* @__PURE__ */ d(t, { className: `form__input ${e} ${a}`.trim(), children: [
16
+ /* @__PURE__ */ s(
17
+ f.Control,
18
18
  {
19
- type: s ? "text" : "password",
19
+ type: o ? "text" : "password",
20
20
  value: r,
21
- onChange: (p) => a?.(p.target.value),
21
+ onChange: (p) => n?.(p.target.value),
22
22
  placeholder: i,
23
- disabled: l,
24
- className: `${o}__control`
23
+ disabled: m,
24
+ className: "form__control"
25
25
  }
26
26
  ),
27
- /* @__PURE__ */ e(
27
+ /* @__PURE__ */ s(
28
28
  t.Text,
29
29
  {
30
- className: `${o}__toggle`,
31
- onClick: m,
30
+ className: `${e}__toggle`,
31
+ onClick: c,
32
32
  style: { cursor: "pointer" },
33
- children: /* @__PURE__ */ e(f, { name: s ? "icon-eye" : "icon-eye-closed", size: "sm" })
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
- C as PasswordInput
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
- import '../style/index.css';/* empty css */
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
- _ as RangeInput
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 g } from "react/jsx-runtime";
2
- import { useRef as f, useEffect as o } from "react";
3
- import { initSelect as R } from "../js/select.js";
4
- const b = ({
5
- options: n,
6
- value: r,
7
- onChange: l,
8
- multiple: s = !1,
9
- placeholder: a = "Sélectionnez une option",
10
- disabled: h = !1,
11
- searchable: d = !0,
12
- className: S = "",
13
- name: V,
14
- variant: A = "default"
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 u = f(null), c = f(null), y = f(l), m = f(r);
17
- o(() => {
18
- y.current = l;
19
- }, [l]), o(() => {
20
- m.current = r;
21
- }, [r]);
22
- const N = JSON.stringify(n);
23
- return o(() => {
24
- if (!(!n || n.length === 0)) {
25
- if (u.current) {
26
- u.current.innerHTML = "";
27
- const t = r ?? m.current, i = n.map((e) => ({
28
- value: e.value,
29
- label: e.text,
30
- selected: Array.isArray(t) ? t.includes(e.value) : t === e.value,
31
- customProperties: {
32
- flag: e.flag
33
- }
34
- }));
35
- s || i.unshift({
36
- value: "",
37
- label: a,
38
- selected: t === void 0 || t === "",
39
- placeholder: !0
40
- }), c.current = R(u.current, {
41
- choices: i,
42
- removeItemButton: s,
43
- placeholderValue: a,
44
- searchEnabled: d,
45
- silent: !0,
46
- variant: A
47
- }, (e) => {
48
- m.current = e, y.current && y.current(e);
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
- }, [r]), /* @__PURE__ */ g("div", { className: `form__input ${S}`.trim(), children: /* @__PURE__ */ g(
61
- "select",
62
- {
63
- ref: u,
64
- multiple: s,
65
- disabled: h,
66
- className: "select",
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
- b as Select
96
+ L as Select
73
97
  };
@@ -1,44 +1,52 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { useRef as i, useEffect as s } from "react";
3
- import { Form as p } from "react-bootstrap";
4
- import d from "intl-tel-input";
5
- const h = ({
6
- value: e,
7
- onChange: n,
8
- initialCountry: u = "fr",
9
- className: f = "",
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: m = !1
12
+ disabled: p = !1
12
13
  }) => {
13
- const t = i(null), r = i(null);
14
- return s(() => {
15
- if (t.current) {
16
- r.current = d(t.current, {
17
- initialCountry: u,
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 o = () => {
23
- n && n(r.current.getNumber());
30
+ const e = () => {
31
+ c && c(t.current.getNumber());
24
32
  };
25
- return t.current.addEventListener("change", o), t.current.addEventListener("blur", o), () => {
26
- r.current && r.current.destroy();
33
+ return r.current.addEventListener("change", e), r.current.addEventListener("blur", e), () => {
34
+ t.current && t.current.destroy();
27
35
  };
28
36
  }
29
- }, [u]), s(() => {
30
- r.current && e !== void 0 && e !== r.current.getNumber() && r.current.setNumber(e);
31
- }, [e]), /* @__PURE__ */ c("div", { className: `tel-input-wrapper form__input ${f}`.trim(), children: /* @__PURE__ */ c(
32
- p.Control,
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: t,
42
+ ref: r,
35
43
  type: "tel",
36
44
  placeholder: l,
37
- disabled: m,
45
+ disabled: p,
38
46
  className: "tel-input-control "
39
47
  }
40
48
  ) });
41
49
  };
42
50
  export {
43
- h as TelInput
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 h } from "react-bootstrap";
3
- import { Icon as p } from "../../Icon/react/index.js";
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 C } from "./NumberInput.js";
6
+ import { NumberInput as h } from "./NumberInput.js";
7
7
  import { TelInput as b } from "./TelInput.js";
8
- import { PasswordInput as I } from "./PasswordInput.js";
9
- import { PasswordConfirm as w } from "./PasswordConfirm.js";
10
- import { RangeInput as N } from "./RangeInput.js";
11
- import { Select as F } from "./Select.js";
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
- const x = ({
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 u = (c) => {
22
- e.type === "number" && _(c), i && i(c);
23
- }, f = e.type === "number" ? "decimal" : void 0;
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(p, { name: m, size: "sm" }),
27
+ m && /* @__PURE__ */ t(c, { name: m, size: "sm" }),
26
28
  /* @__PURE__ */ t(
27
29
  r.Control,
28
30
  {
29
31
  ...e,
30
- onKeyDown: u,
31
- inputMode: f,
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(p, { name: m, size: "sm" }),
38
+ m && /* @__PURE__ */ t(c, { name: m, size: "sm" }),
37
39
  /* @__PURE__ */ t(
38
40
  r.Control,
39
41
  {
40
42
  ...e,
41
- onKeyDown: u,
42
- inputMode: f,
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 = x;
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 = F;
65
- o.InputGroup = h;
66
- o.Number = C;
66
+ o.Select = N;
67
+ o.InputGroup = C;
68
+ o.Number = h;
67
69
  o.Tel = b;
68
- o.Password = I;
69
- o.PasswordConfirm = w;
70
- o.Range = N;
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
  };