@prokodo/ui 0.0.24 → 0.0.26

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/components/accordion/Accordion.js +65 -65
  2. package/dist/components/animated/Animated.js +17 -17
  3. package/dist/components/animatedText/AnimatedText.js +4 -4
  4. package/dist/components/avatar/Avatar.js +34 -34
  5. package/dist/components/base-link/BaseLink.js +12 -12
  6. package/dist/components/button/Button.js +48 -48
  7. package/dist/components/calendly/Calendly.js +32 -32
  8. package/dist/components/card/Card.js +107 -107
  9. package/dist/components/carousel/Carousel.js +106 -106
  10. package/dist/components/chip/Chip.js +26 -26
  11. package/dist/components/datePicker/DatePicker.js +37 -37
  12. package/dist/components/dialog/Dialog.js +82 -82
  13. package/dist/components/drawer/Drawer.js +48 -48
  14. package/dist/components/form/Form.js +94 -94
  15. package/dist/components/form/FormField.js +41 -41
  16. package/dist/components/form/FormResponse.js +22 -22
  17. package/dist/components/grid/Grid.js +8 -8
  18. package/dist/components/grid/GridRow.js +10 -10
  19. package/dist/components/headline/Headline.js +28 -28
  20. package/dist/components/icon/Icon.js +4 -4
  21. package/dist/components/image/Image.js +15 -15
  22. package/dist/components/image-text/ImageText.js +48 -48
  23. package/dist/components/input/Input.js +121 -121
  24. package/dist/components/inputOTP/InputOTP.js +24 -24
  25. package/dist/components/label/Label.js +26 -26
  26. package/dist/components/link/Link.js +27 -27
  27. package/dist/components/list/List.js +75 -75
  28. package/dist/components/loading/Loading.js +17 -17
  29. package/dist/components/lottie/Lottie.js +23 -23
  30. package/dist/components/map/Map.js +19 -19
  31. package/dist/components/post-item/PostItem.js +73 -73
  32. package/dist/components/post-item/PostItemAuthor.js +16 -16
  33. package/dist/components/post-item/index.js +4 -2
  34. package/dist/components/post-teaser/PostTeaser.js +76 -76
  35. package/dist/components/post-widget/PostWidget.js +63 -63
  36. package/dist/components/post-widget-carousel/PostWidgetCarousel.js +67 -67
  37. package/dist/components/quote/Quote.js +40 -40
  38. package/dist/components/rich-text/RichText.js +76 -76
  39. package/dist/components/select/Select.js +92 -92
  40. package/dist/components/skeleton/Skeleton.js +8 -8
  41. package/dist/components/slider/Slider.js +50 -50
  42. package/dist/components/stepper/Stepper.js +41 -41
  43. package/dist/components/switch/Switch.js +32 -32
  44. package/dist/components/table/Table.js +31 -31
  45. package/dist/components/teaser/Teaser.js +55 -55
  46. package/dist/constants/project.js +1 -1
  47. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Option/Option.js +23 -23
  48. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Portal/Portal.js +22 -22
  49. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Select/Select.js +46 -46
  50. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Slider/Slider.js +141 -141
  51. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Switch/Switch.js +33 -33
  52. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Unstable_Popup/Popup.js +31 -31
  53. package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useSelect/SelectProvider.js +14 -14
  54. package/dist/tsconfig.build.tsbuildinfo +1 -1
  55. package/dist/types/components/post-item/index.d.ts +1 -0
  56. package/package.json +7 -3
  57. package/dist/_virtual/jsx-runtime.js +0 -5
  58. package/dist/_virtual/jsx-runtime2.js +0 -4
  59. package/dist/_virtual/react-jsx-runtime.development.js +0 -4
  60. package/dist/_virtual/react-jsx-runtime.production.js +0 -4
  61. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.development.js +0 -247
  62. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.production.js +0 -35
  63. package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js +0 -10
@@ -1,39 +1,39 @@
1
- import { j as s } from "../../_virtual/jsx-runtime.js";
2
- import { useMemo as x, useCallback as H } from "react";
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { useMemo as b, useCallback as p } from "react";
3
3
  import I from "react-markdown";
4
4
  import $ from "remark-breaks";
5
5
  import G from "remark-gfm";
6
6
  import { create as L } from "../../helpers/bem.js";
7
7
  import w from "./Headline.module.scss.js";
8
8
  import { AnimatedText as C } from "../animatedText/AnimatedText.js";
9
- const b = L(w, "Headline"), E = [
9
+ const k = L(w, "Headline"), M = [
10
10
  "inherit",
11
11
  "primary",
12
12
  "secondary",
13
13
  "white"
14
14
  ], q = ({
15
- animated: l,
16
- animationProps: m = {},
17
- type: t = "h3",
15
+ animated: m,
16
+ animationProps: s = {},
17
+ type: o = "h3",
18
18
  size: r = "md",
19
- highlight: k,
19
+ highlight: T,
20
20
  schema: c = {},
21
- className: j,
21
+ className: y,
22
22
  align: a,
23
- isRichtext: y = !1,
24
- variant: o = "inherit",
23
+ isRichtext: S = !1,
24
+ variant: t = "inherit",
25
25
  ...n
26
26
  }) => {
27
- const i = !!k && E.includes(o), S = {
28
- [o]: !!o,
27
+ const i = !!T && M.includes(t), x = {
28
+ [t]: !!t,
29
29
  "is-highlighted": i,
30
30
  highlighted: i,
31
- [`${o}--highlighted`]: i,
31
+ [`${t}--highlighted`]: i,
32
32
  [r]: typeof r == "string" && !!r,
33
33
  [`${a}`]: !!a
34
- }, d = b(void 0, S, j), h = x(() => typeof r == "number" ? {
34
+ }, d = k(void 0, x, y), h = b(() => typeof r == "number" ? {
35
35
  fontSize: `${r}em`
36
- } : {}, [r]), f = typeof n.children == "string" ? n.children : void 0, u = x(
36
+ } : {}, [r]), f = typeof n.children == "string" ? n.children : void 0, g = b(
37
37
  () => ({
38
38
  "aria-label": f,
39
39
  className: d,
@@ -42,30 +42,30 @@ const b = L(w, "Headline"), E = [
42
42
  ...c
43
43
  }),
44
44
  [f, d, h, c]
45
- ), g = H(
46
- (e) => l ? /* @__PURE__ */ s.jsx(C, { ...m, children: e }) : e,
47
- [l, m]
48
- ), p = H(
45
+ ), u = p(
46
+ (e) => m ? /* @__PURE__ */ l(C, { ...s, children: e }) : e,
47
+ [m, s]
48
+ ), H = p(
49
49
  (e) => {
50
- if (!/^h[1-6]$/.test(t)) return null;
51
- const T = e.children, B = t;
52
- return /* @__PURE__ */ s.jsx(B, { ...e, "aria-level": parseInt(t[1] ?? "", 10), ...u, children: g(T) });
50
+ if (!/^h[1-6]$/.test(o)) return null;
51
+ const B = e.children;
52
+ return /* @__PURE__ */ l(o, { ...e, "aria-level": parseInt(o[1] ?? "", 10), ...g, children: u(B) });
53
53
  },
54
- [t, u, g]
54
+ [o, g, u]
55
55
  );
56
- return y ? /* @__PURE__ */ s.jsx(
56
+ return S ? /* @__PURE__ */ l(
57
57
  I,
58
58
  {
59
- className: b("headline"),
59
+ className: k("headline"),
60
60
  remarkPlugins: [G, $],
61
61
  components: {
62
- p: (e) => p(e)
62
+ p: (e) => H(e)
63
63
  },
64
64
  children: n.children
65
65
  }
66
- ) : p(n);
66
+ ) : H(n);
67
67
  };
68
68
  export {
69
69
  q as Headline,
70
- E as POSSIBLE_HIGHLIGHTS
70
+ M as POSSIBLE_HIGHLIGHTS
71
71
  };
@@ -1,4 +1,4 @@
1
- import { j as c } from "../../_virtual/jsx-runtime.js";
1
+ import { jsx as c } from "react/jsx-runtime";
2
2
  import { PROKODO_UI_VERSION as i } from "../../constants/project.js";
3
3
  import { create as a } from "../../helpers/bem.js";
4
4
  import m from "./Icon.module.scss.js";
@@ -17,10 +17,10 @@ const p = a(m, "Icon"), u = (e) => {
17
17
  default:
18
18
  return e ?? 16;
19
19
  }
20
- }, g = (e) => `https://cdn.jsdelivr.net/gh/prokodo-agency/ui@v${i}/assets/icons/${e.replace(/Icon$/, "").replace(/([a-z])([A-Z0-9])/g, "$1_$2").replace(/([0-9])([a-zA-Z])/g, "$1_$2").toLowerCase()}_icon.svg`, x = ({ name: e, size: o, label: r, className: s = "", ...n }) => {
20
+ }, g = (e) => `https://cdn.jsdelivr.net/gh/prokodo-agency/ui@v${i}/assets/icons/${e.replace(/Icon$/, "").replace(/([a-z])([A-Z0-9])/g, "$1_$2").replace(/([0-9])([a-zA-Z])/g, "$1_$2").toLowerCase()}_icon.svg`, $ = ({ name: e, size: o, label: r, className: s = "", ...n }) => {
21
21
  if (!e) return null;
22
22
  const t = u(o);
23
- return /* @__PURE__ */ c.jsx(
23
+ return /* @__PURE__ */ c(
24
24
  "img",
25
25
  {
26
26
  alt: r ?? "",
@@ -35,6 +35,6 @@ const p = a(m, "Icon"), u = (e) => {
35
35
  );
36
36
  };
37
37
  export {
38
- x as Icon,
38
+ $ as Icon,
39
39
  u as getIconSize
40
40
  };
@@ -1,29 +1,29 @@
1
- import { j as e } from "../../_virtual/jsx-runtime.js";
2
- import { create as g } from "../../helpers/bem.js";
3
- import { isString as p } from "../../helpers/validations.js";
4
- import d from "./Image.module.scss.js";
5
- const r = g(d, "Image"), u = ({
1
+ import { jsxs as g, jsx as m } from "react/jsx-runtime";
2
+ import { create as d } from "../../helpers/bem.js";
3
+ import { isString as f } from "../../helpers/validations.js";
4
+ import l from "./Image.module.scss.js";
5
+ const e = d(l, "Image"), I = ({
6
6
  alt: o,
7
- caption: i,
8
- containerClassName: s,
9
- captionClassName: t,
7
+ caption: r,
8
+ containerClassName: t,
9
+ captionClassName: s,
10
10
  className: a,
11
11
  imageComponent: n = "img",
12
12
  ...c
13
13
  }) => {
14
- const m = () => /* @__PURE__ */ e.jsx(
14
+ const i = () => /* @__PURE__ */ m(
15
15
  n,
16
16
  {
17
17
  alt: o ?? "",
18
- className: r("image", void 0, a),
18
+ className: e("image", void 0, a),
19
19
  ...c
20
20
  }
21
21
  );
22
- return p(i) ? /* @__PURE__ */ e.jsxs("figure", { className: r(void 0, void 0, s), children: [
23
- m(),
24
- /* @__PURE__ */ e.jsx("figcaption", { className: r("caption", void 0, t), children: i })
25
- ] }) : m();
22
+ return f(r) ? /* @__PURE__ */ g("figure", { className: e(void 0, void 0, t), children: [
23
+ i(),
24
+ /* @__PURE__ */ m("figcaption", { className: e("caption", void 0, s), children: r })
25
+ ] }) : i();
26
26
  };
27
27
  export {
28
- u as Image
28
+ I as Image
29
29
  };
@@ -1,93 +1,93 @@
1
- import { j as s } from "../../_virtual/jsx-runtime.js";
2
- import { useState as _ } from "react";
3
- import { create as g } from "../../helpers/bem.js";
4
- import { isString as d } from "../../helpers/validations.js";
5
- import v from "./ImageText.module.scss.js";
6
- import { RichText as y } from "../rich-text/RichText.js";
7
- import { Grid as I } from "../grid/Grid.js";
1
+ import { jsx as m, jsxs as h } from "react/jsx-runtime";
2
+ import { useState as d } from "react";
3
+ import { create as v } from "../../helpers/bem.js";
4
+ import { isString as y } from "../../helpers/validations.js";
5
+ import I from "./ImageText.module.scss.js";
6
+ import { RichText as j } from "../rich-text/RichText.js";
7
+ import { Grid as w } from "../grid/Grid.js";
8
8
  import { GridRow as o } from "../grid/GridRow.js";
9
9
  import { Animated as n } from "../animated/Animated.js";
10
- import { Headline as x } from "../headline/Headline.js";
11
- import { Button as R } from "../button/Button.js";
12
- import { Lottie as w } from "../lottie/Lottie.js";
13
- import { Image as z } from "../image/Image.js";
14
- const m = g(v, "ImageText"), F = ({
10
+ import { Headline as N } from "../headline/Headline.js";
11
+ import { Button as z } from "../button/Button.js";
12
+ import { Lottie as A } from "../lottie/Lottie.js";
13
+ import { Image as G } from "../image/Image.js";
14
+ const s = v(I, "ImageText"), J = ({
15
15
  animatedBorder: a,
16
- reverse: h,
17
- subTitle: e,
18
- title: r,
16
+ reverse: f,
17
+ subTitle: c,
18
+ title: e,
19
19
  content: l,
20
20
  animation: p,
21
21
  image: i,
22
- button: c
22
+ button: r
23
23
  }) => {
24
- const [N, j] = _(!1), t = i ? a ? 4 : 6 : a ? 10 : 12;
25
- return /* @__PURE__ */ s.jsx("div", { className: m(), children: /* @__PURE__ */ s.jsxs(
26
- I,
24
+ const [t, _] = d(!1), g = i ? a ? 4 : 6 : a ? 10 : 12;
25
+ return /* @__PURE__ */ m("div", { className: s(), children: /* @__PURE__ */ h(
26
+ w,
27
27
  {
28
- className: m("grid", {
29
- "is-reverse": !!h
28
+ className: s("grid", {
29
+ "is-reverse": !!f
30
30
  }),
31
31
  children: [
32
- a && /* @__PURE__ */ s.jsx(o, { className: m("animated__border__wrapper"), sm: 2, xs: 3, children: /* @__PURE__ */ s.jsx(
32
+ a && /* @__PURE__ */ m(o, { className: s("animated__border__wrapper"), sm: 2, xs: 3, children: /* @__PURE__ */ m(
33
33
  n,
34
34
  {
35
- className: m("animated__border", {
36
- "is-visible": N,
35
+ className: s("animated__border", {
36
+ "is-visible": t,
37
37
  [`${(a == null ? void 0 : a.direction) ?? "top-to-bottom"}`]: !!(a != null && a.direction)
38
38
  }),
39
- onAnimate: (f) => j(f)
39
+ onAnimate: (x) => _(x)
40
40
  }
41
41
  ) }),
42
- /* @__PURE__ */ s.jsx(o, { className: m("content"), md: t, xs: 10, children: /* @__PURE__ */ s.jsxs(
42
+ /* @__PURE__ */ m(o, { className: s("content"), md: g, xs: 10, children: /* @__PURE__ */ h(
43
43
  n,
44
44
  {
45
45
  children: [
46
- e && /* @__PURE__ */ s.jsx(
47
- x,
46
+ c && /* @__PURE__ */ m(
47
+ N,
48
48
  {
49
49
  highlight: !0,
50
- className: m("sub__headline", void 0, e == null ? void 0 : e.className),
50
+ className: s("sub__headline", void 0, c == null ? void 0 : c.className),
51
51
  size: "sm",
52
52
  type: "h3",
53
53
  variant: "primary",
54
- ...e,
55
- children: e == null ? void 0 : e.content
54
+ ...c,
55
+ children: c == null ? void 0 : c.content
56
56
  }
57
57
  ),
58
- /* @__PURE__ */ s.jsx(
59
- x,
58
+ /* @__PURE__ */ m(
59
+ N,
60
60
  {
61
- className: m("headline", void 0, r == null ? void 0 : r.className),
61
+ className: s("headline", void 0, e == null ? void 0 : e.className),
62
62
  size: "lg",
63
63
  type: "h2",
64
- ...r,
65
- children: r.content
64
+ ...e,
65
+ children: e.content
66
66
  }
67
67
  ),
68
- d(l) && /* @__PURE__ */ s.jsx(y, { className: m("content__paragraph"), children: l }),
69
- c && /* @__PURE__ */ s.jsx(
70
- R,
68
+ y(l) && /* @__PURE__ */ m(j, { className: s("content__paragraph"), children: l }),
69
+ r && /* @__PURE__ */ m(
70
+ z,
71
71
  {
72
72
  variant: "outlined",
73
- ...c,
74
- className: m("button", void 0, c == null ? void 0 : c.className)
73
+ ...r,
74
+ className: s("button", void 0, r == null ? void 0 : r.className)
75
75
  }
76
76
  )
77
77
  ]
78
78
  }
79
79
  ) }),
80
- i && /* @__PURE__ */ s.jsx(o, { className: m("image"), md: 6, xs: 10, children: /* @__PURE__ */ s.jsx(
80
+ i && /* @__PURE__ */ m(o, { className: s("image"), md: 6, xs: 10, children: /* @__PURE__ */ m(
81
81
  n,
82
82
  {
83
- className: m("animated__container"),
84
- children: p ? /* @__PURE__ */ s.jsx(
85
- w,
83
+ className: s("animated__container"),
84
+ children: p ? /* @__PURE__ */ m(
85
+ A,
86
86
  {
87
87
  animationName: p,
88
- className: m("animation")
88
+ className: s("animation")
89
89
  }
90
- ) : /* @__PURE__ */ s.jsx(z, { className: m("image__src"), ...i })
90
+ ) : /* @__PURE__ */ m(G, { className: s("image__src"), ...i })
91
91
  }
92
92
  ) })
93
93
  ]
@@ -95,5 +95,5 @@ const m = g(v, "ImageText"), F = ({
95
95
  ) });
96
96
  };
97
97
  export {
98
- F as ImageText
98
+ J as ImageText
99
99
  };
@@ -1,54 +1,54 @@
1
- import { j as e } from "../../_virtual/jsx-runtime.js";
2
- import { Input as y } from "@mui/base";
3
- import { memo as L, useState as b, useEffect as P, useCallback as ee } from "react";
4
- import { create as re } from "../../helpers/bem.js";
5
- import { isNull as se, isString as u } from "../../helpers/validations.js";
6
- import ie from "./Input.module.scss.js";
7
- import { handleValidation as te } from "./InputValidation.js";
8
- import { Label as oe } from "../label/Label.js";
9
- const r = re(ie, "Input"), ae = L(
1
+ import { jsxs as d, jsx as l } from "react/jsx-runtime";
2
+ import { Input as L } from "@mui/base";
3
+ import { memo as P, useState as x, useEffect as ee, useCallback as re } from "react";
4
+ import { create as ie } from "../../helpers/bem.js";
5
+ import { isNull as se, isString as v } from "../../helpers/validations.js";
6
+ import te from "./Input.module.scss.js";
7
+ import { handleValidation as oe } from "./InputValidation.js";
8
+ import { Label as ae } from "../label/Label.js";
9
+ const e = ie(te, "Input"), le = P(
10
10
  ({
11
- fullWidth: k,
12
- inputRef: V,
13
- hideCounter: x,
14
- type: o,
15
- color: v = "primary",
16
- value: a,
11
+ fullWidth: V,
12
+ inputRef: W,
13
+ hideCounter: _,
14
+ type: t,
15
+ color: f = "primary",
16
+ value: o,
17
17
  name: i,
18
- min: W,
19
- max: d,
20
- multiline: n,
21
- maxRows: z,
22
- minRows: A,
23
- rows: C,
24
- disabled: g,
25
- maxLength: c,
26
- placeholder: w,
27
- label: _,
28
- customRegexPattern: D,
29
- errorTranslations: G,
30
- labelProps: m = {},
31
- className: H,
32
- fieldClassName: J,
33
- inputContainerClassName: K,
34
- inputClassName: M,
35
- required: F,
36
- hideLegend: O,
37
- errorText: f,
38
- helperText: p,
39
- onFocus: h,
40
- onBlur: N,
41
- onChange: I,
42
- onValidate: Q,
43
- ...T
18
+ min: z,
19
+ max: n,
20
+ multiline: c,
21
+ maxRows: A,
22
+ minRows: C,
23
+ rows: D,
24
+ disabled: F,
25
+ maxLength: m,
26
+ placeholder: I,
27
+ label: $,
28
+ customRegexPattern: G,
29
+ errorTranslations: H,
30
+ labelProps: u = {},
31
+ className: J,
32
+ fieldClassName: K,
33
+ inputContainerClassName: M,
34
+ inputClassName: O,
35
+ required: R,
36
+ hideLegend: Q,
37
+ errorText: p,
38
+ helperText: h,
39
+ onFocus: N,
40
+ onBlur: g,
41
+ onChange: S,
42
+ onValidate: T,
43
+ ...U
44
44
  }) => {
45
- var S, q;
46
- const [l, R] = b(a), [U, $] = b(!1);
47
- P(() => {
48
- se(a) || R(a);
49
- }, [a]);
50
- const X = ee(() => {
51
- switch (o) {
45
+ var j, E;
46
+ const [a, q] = x(o), [X, B] = x(!1);
47
+ ee(() => {
48
+ se(o) || q(o);
49
+ }, [o]);
50
+ const Y = re(() => {
51
+ switch (t) {
52
52
  case "url":
53
53
  return "www.example.com";
54
54
  case "email":
@@ -58,132 +58,132 @@ const r = re(ie, "Input"), ae = L(
58
58
  case "color":
59
59
  return "#FFFFFF";
60
60
  default:
61
- return w;
61
+ return I;
62
62
  }
63
- }, [o, w]), t = u(f), j = F === !0, Y = n ? {
64
- multiline: n,
65
- maxRows: z,
66
- minRows: A ?? 3,
67
- rows: C
63
+ }, [t, I]), s = v(p), w = R === !0, Z = c ? {
64
+ multiline: c,
65
+ maxRows: A,
66
+ minRows: C ?? 3,
67
+ rows: D
68
68
  } : {
69
69
  multiline: !1,
70
70
  maxRows: void 0,
71
71
  minRows: void 0,
72
- type: o
72
+ type: t
73
73
  };
74
- return /* @__PURE__ */ e.jsxs("div", { className: r(void 0, { [v]: !!v }, H), children: [
75
- u(_) && /* @__PURE__ */ e.jsx(
76
- oe,
74
+ return /* @__PURE__ */ d("div", { className: e(void 0, { [f]: !!f }, J), children: [
75
+ v($) && /* @__PURE__ */ l(
76
+ ae,
77
77
  {
78
- ...m,
79
- className: r("label", void 0, m == null ? void 0 : m.className),
80
- error: t,
78
+ ...u,
79
+ className: e("label", void 0, u == null ? void 0 : u.className),
80
+ error: s,
81
81
  htmlFor: i,
82
- label: _,
83
- required: j
82
+ label: $,
83
+ required: w
84
84
  }
85
85
  ),
86
- /* @__PURE__ */ e.jsx("div", { className: r("field", void 0, J), children: /* @__PURE__ */ e.jsx(
87
- y,
86
+ /* @__PURE__ */ l("div", { className: e("field", void 0, K), children: /* @__PURE__ */ l(
87
+ L,
88
88
  {
89
- "aria-required": j ? "true" : void 0,
90
- color: v,
89
+ "aria-required": w ? "true" : void 0,
90
+ color: f,
91
91
  id: i,
92
- ...T,
93
- ...Y,
94
- "aria-invalid": t,
95
- disabled: g,
96
- error: t,
92
+ ...U,
93
+ ...Z,
94
+ "aria-invalid": s,
95
+ disabled: F,
96
+ error: s,
97
97
  name: i,
98
- placeholder: X(),
99
- required: j,
100
- value: l ?? "",
101
- "aria-describedby": t ? `${i}-error` : u(p) ? `${i}-helper` : void 0,
102
- className: r(
98
+ placeholder: Y(),
99
+ required: w,
100
+ value: a ?? "",
101
+ "aria-describedby": s ? `${i}-error` : v(h) ? `${i}-helper` : void 0,
102
+ className: e(
103
103
  "input",
104
104
  {
105
- focused: U,
106
- multiline: !!n,
107
- disabled: !!g,
108
- fullWidth: !!k
105
+ focused: X,
106
+ multiline: !!c,
107
+ disabled: !!F,
108
+ fullWidth: !!V
109
109
  },
110
- K
110
+ M
111
111
  ),
112
112
  slotProps: {
113
113
  input: {
114
- ref: V,
115
- className: r(
114
+ ref: W,
115
+ className: e(
116
116
  "input__node",
117
117
  {
118
- multiline: !!n
118
+ multiline: !!c
119
119
  },
120
- M
120
+ O
121
121
  )
122
122
  }
123
123
  },
124
- onBlur: (s) => {
125
- N == null || N(s), $(!1);
124
+ onBlur: (r) => {
125
+ g == null || g(r), B(!1);
126
126
  },
127
- onChange: (s) => {
128
- var B, E;
129
- const { value: Z } = s.target;
130
- c !== void 0 && Z.length > c || (R(s.target.value), (E = te) == null || E(
131
- o === void 0 ? "text" : o,
127
+ onChange: (r) => {
128
+ var b, k;
129
+ const { value: y } = r.target;
130
+ m !== void 0 && y.length > m || (q(r.target.value), (k = oe) == null || k(
131
+ t === void 0 ? "text" : t,
132
132
  i,
133
- (B = s == null ? void 0 : s.target) == null ? void 0 : B.value,
134
- F,
135
- W,
136
- d,
137
- D,
133
+ (b = r == null ? void 0 : r.target) == null ? void 0 : b.value,
134
+ R,
135
+ z,
136
+ n,
138
137
  G,
139
- Q
140
- ), I && I(s));
138
+ H,
139
+ T
140
+ ), S && S(r));
141
141
  },
142
- onFocus: (s) => {
143
- h == null || h(s), $(!0);
142
+ onFocus: (r) => {
143
+ N == null || N(r), B(!0);
144
144
  }
145
145
  }
146
146
  ) }),
147
- /* @__PURE__ */ e.jsxs("div", { className: r("footer"), children: [
148
- t || u(p) || d !== void 0 && l !== void 0 ? /* @__PURE__ */ e.jsxs(
147
+ /* @__PURE__ */ d("div", { className: e("footer"), children: [
148
+ s || v(h) || n !== void 0 && a !== void 0 ? /* @__PURE__ */ d(
149
149
  "div",
150
150
  {
151
- "aria-live": t ? "assertive" : "polite",
152
- className: r("helperText"),
153
- id: t ? `${i}-error` : `${i}-helper`,
154
- role: t ? "alert" : void 0,
151
+ "aria-live": s ? "assertive" : "polite",
152
+ className: e("helperText"),
153
+ id: s ? `${i}-error` : `${i}-helper`,
154
+ role: s ? "alert" : void 0,
155
155
  children: [
156
- /* @__PURE__ */ e.jsx(
156
+ /* @__PURE__ */ l(
157
157
  "span",
158
158
  {
159
159
  role: "alert",
160
- className: r("helperText__content", {
161
- "is-error": !!f
160
+ className: e("helperText__content", {
161
+ "is-error": !!p
162
162
  }),
163
- children: f ?? p
163
+ children: p ?? h
164
164
  }
165
165
  ),
166
- d !== void 0 && l !== void 0 && O === !1 && /* @__PURE__ */ e.jsxs("span", { className: r("helperText__legend"), children: [
167
- ((S = l == null ? void 0 : l.toString()) == null ? void 0 : S.length) ?? 0,
166
+ n !== void 0 && a !== void 0 && Q === !1 && /* @__PURE__ */ d("span", { className: e("helperText__legend"), children: [
167
+ ((j = a == null ? void 0 : a.toString()) == null ? void 0 : j.length) ?? 0,
168
168
  " / ",
169
- d
169
+ n
170
170
  ] })
171
171
  ]
172
172
  }
173
- ) : /* @__PURE__ */ e.jsx("div", { className: r("helperText") }),
174
- c !== void 0 && o !== "number" && (x === void 0 || x === !1) && /* @__PURE__ */ e.jsx("div", { className: r("counter"), children: /* @__PURE__ */ e.jsxs("span", { children: [
173
+ ) : /* @__PURE__ */ l("div", { className: e("helperText") }),
174
+ m !== void 0 && t !== "number" && (_ === void 0 || _ === !1) && /* @__PURE__ */ l("div", { className: e("counter"), children: /* @__PURE__ */ d("span", { children: [
175
175
  "(",
176
- a !== void 0 ? ((q = String(a)) == null ? void 0 : q.length) ?? 0 : 0,
176
+ o !== void 0 ? ((E = String(o)) == null ? void 0 : E.length) ?? 0 : 0,
177
177
  " /",
178
178
  " ",
179
- c,
179
+ m,
180
180
  ")"
181
181
  ] }) })
182
182
  ] })
183
183
  ] });
184
184
  }
185
185
  );
186
- ae.displayName = "Input";
186
+ le.displayName = "Input";
187
187
  export {
188
- ae as Input
188
+ le as Input
189
189
  };