@envisiongroup/porygon 1.0.0-rc.33 → 1.0.0-rc.34

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 (22) hide show
  1. package/dist/react-components/fields/Attachments/EFWAttachmentsField.js +25 -23
  2. package/dist/react-components/fields/DatePicker/EFWDatePickerField.js +31 -29
  3. package/dist/react-components/fields/Input/EFWInputField.js +15 -13
  4. package/dist/react-components/fields/NumberInput/EFWNumberInputField.js +19 -17
  5. package/dist/react-components/fields/Switch/EFWSwitchField.js +25 -23
  6. package/dist/react-components/fields/TagPicker/EFWTagPickerField.js +33 -31
  7. package/dist/react-components/fields/TextArea/EFWTextAreaField.js +18 -16
  8. package/dist/react-components/fields/_shared/EFWField/EFWField.js +20 -18
  9. package/dist/react-components/fields/_shared/EFWField/EFWField.types.d.ts +4 -0
  10. package/dist/react-components/forms/EFWForm/EFWForm.utils.js +66 -59
  11. package/dist/react-components/i18n/defaultLocaleText.js +3 -0
  12. package/dist/react-components/i18n/localePresets.js +11 -5
  13. package/dist/react-components/i18n/porygonI18n.types.d.ts +3 -0
  14. package/dist/react-components/tables/EFWTable/EFWTable.js +540 -523
  15. package/dist/react-components/tables/EFWTable/EFWTable.types.d.ts +21 -0
  16. package/dist/react-components/tables/EFWTable/components/EFWTableHeader/EFWTableHeader.js +73 -75
  17. package/dist/react-components/tables/EFWTable/hooks/useDefaultAddButton/useDefaultAddButton.js +5 -5
  18. package/dist/react-components/tables/EFWTable/hooks/useDefaultDeleteButton/useDefaultDeleteButton.js +12 -12
  19. package/dist/react-components/tables/EFWTable/hooks/useDefaultFilterButton/useDefaultFilterButton.js +45 -34
  20. package/dist/react-components/tables/EFWTable/hooks/useDefaultUpdateButton/useDefaultUpdateButton.js +23 -23
  21. package/dist/react-components/tables/EFWTable/hooks/useTableController/useTableController.js +118 -108
  22. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { EFWField as y } from "../_shared/EFWField/EFWField.js";
3
- import { EFWAttachment as L } from "./EFWAttachments.js";
4
- import { mergeClasses as M } from "@griffel/react";
5
- const I = (t) => {
2
+ import { EFWField as L } from "../_shared/EFWField/EFWField.js";
3
+ import { EFWAttachment as M } from "./EFWAttachments.js";
4
+ import { mergeClasses as S } from "@griffel/react";
5
+ const P = (t) => {
6
6
  const {
7
7
  title: l,
8
- infoLabel: i,
9
- hint: s,
8
+ infoLabel: s,
9
+ hint: i,
10
10
  className: n,
11
11
  style: o = {},
12
- required: m = !1,
13
- validationState: d,
14
- validationMessage: r,
12
+ required: r = !1,
13
+ validationState: m,
14
+ validationMessage: d,
15
15
  validationMessageIcon: c,
16
16
  disabled: f = !1,
17
17
  editable: e = !0,
@@ -24,32 +24,34 @@ const I = (t) => {
24
24
  labels: C,
25
25
  onRemoveAttachment: v,
26
26
  onChange: x,
27
- onValidationChange: A
28
- } = t, E = (W, w) => {
29
- x?.(W, w);
30
- }, N = M(n, "efw-attachments-field");
27
+ onValidationChange: A,
28
+ ...E
29
+ } = t, N = (w, y) => {
30
+ x?.(w, y);
31
+ }, W = S(n, "efw-attachments-field");
31
32
  return /* @__PURE__ */ a(
32
- y,
33
+ L,
33
34
  {
34
- className: N,
35
+ className: W,
35
36
  style: o,
36
37
  title: l,
37
- infoLabel: i,
38
+ infoLabel: s,
38
39
  weightLabel: e ? "regular" : "semibold",
39
- hint: s,
40
+ hint: i,
40
41
  hidden: h,
41
- required: m,
42
- validationState: d,
43
- validationMessage: r,
42
+ required: r,
43
+ validationState: m,
44
+ validationMessage: d,
44
45
  validationMessageIcon: c,
45
46
  onValidationChange: A,
47
+ ...E,
46
48
  children: /* @__PURE__ */ a(
47
- L,
49
+ M,
48
50
  {
49
51
  files: g,
50
52
  defaultFiles: p,
51
53
  editable: e,
52
- onChange: E,
54
+ onChange: N,
53
55
  disabled: f,
54
56
  multiple: u,
55
57
  acceptedTypes: F,
@@ -62,5 +64,5 @@ const I = (t) => {
62
64
  );
63
65
  };
64
66
  export {
65
- I as EFWAttachmentsField
67
+ P as EFWAttachmentsField
66
68
  };
@@ -1,12 +1,12 @@
1
- import { jsx as o, jsxs as ie } from "react/jsx-runtime";
2
- import { EFWField as oe } from "../_shared/EFWField/EFWField.js";
1
+ import { jsx as o, jsxs as oe } from "react/jsx-runtime";
2
+ import { EFWField as se } from "../_shared/EFWField/EFWField.js";
3
3
  import { EFWDatePicker as q } from "./EFWDatePicker.js";
4
- import { getDatePickerFormattedValue as se } from "./EFWDatePicker.utils.js";
5
- import { EFWInput as re } from "../Input/EFWInput.js";
6
- import { useMemo as C, useState as ce, useRef as de, useEffect as Y, useCallback as _ } from "react";
7
- import { makeStyles as me, mergeClasses as ue, Text as A } from "@fluentui/react-components";
8
- import { useFieldsLocaleText as fe } from "../../i18n/PorygonI18nProvider.js";
9
- const he = me({
4
+ import { getDatePickerFormattedValue as re } from "./EFWDatePicker.utils.js";
5
+ import { EFWInput as ce } from "../Input/EFWInput.js";
6
+ import { useMemo as C, useState as de, useRef as me, useEffect as Y, useCallback as _ } from "react";
7
+ import { makeStyles as ue, mergeClasses as fe, Text as A } from "@fluentui/react-components";
8
+ import { useFieldsLocaleText as he } from "../../i18n/PorygonI18nProvider.js";
9
+ const De = ue({
10
10
  dateTimeContainer: {
11
11
  display: "flex",
12
12
  gap: "8px",
@@ -35,7 +35,7 @@ const he = me({
35
35
  width: "75px"
36
36
  }
37
37
  }
38
- }), De = {}, ge = [];
38
+ }), ge = {}, Se = [];
39
39
  function $(e, t) {
40
40
  const l = new Date(e.getTime());
41
41
  if (t && t.length === 4) {
@@ -45,23 +45,23 @@ function $(e, t) {
45
45
  }
46
46
  return l.setHours(0, 0, 0, 0), l;
47
47
  }
48
- function Se(e) {
48
+ function Te(e) {
49
49
  const t = e.getHours().toString().padStart(2, "0"), l = e.getMinutes().toString().padStart(2, "0");
50
50
  return `${t}${l}`;
51
51
  }
52
- const Te = (e) => {
53
- const t = he(), l = C(
52
+ const be = (e) => {
53
+ const t = De(), l = C(
54
54
  () => ({ placeholder: e.timePlaceholder }),
55
55
  [e.timePlaceholder]
56
56
  );
57
57
  if (!e.editable) {
58
- const i = se(e.currentDate, {
58
+ const i = re(e.currentDate, {
59
59
  includeTime: !0,
60
60
  timeValue: e.currentTime
61
61
  });
62
62
  return i ? /* @__PURE__ */ o(A, { children: i }) : /* @__PURE__ */ o(A, { style: { opacity: 0.7 }, children: e.labels?.emptyState ?? "" });
63
63
  }
64
- return /* @__PURE__ */ ie("div", { className: t.dateTimeContainer, children: [
64
+ return /* @__PURE__ */ oe("div", { className: t.dateTimeContainer, children: [
65
65
  /* @__PURE__ */ o("div", { className: t.datePickerWrapper, children: /* @__PURE__ */ o(
66
66
  q,
67
67
  {
@@ -87,7 +87,7 @@ const Te = (e) => {
87
87
  }
88
88
  ) }),
89
89
  /* @__PURE__ */ o("div", { className: t.timeInputWrapper, children: /* @__PURE__ */ o(
90
- re,
90
+ ce,
91
91
  {
92
92
  value: e.currentTime,
93
93
  formatType: "time",
@@ -100,13 +100,13 @@ const Te = (e) => {
100
100
  }
101
101
  ) })
102
102
  ] });
103
- }, Ee = (e) => {
103
+ }, Ne = (e) => {
104
104
  const {
105
105
  title: t,
106
106
  infoLabel: l,
107
107
  hint: i,
108
108
  className: c,
109
- style: U = De,
109
+ style: U = ge,
110
110
  required: J = !1,
111
111
  validationState: K,
112
112
  validationMessage: Q,
@@ -118,7 +118,7 @@ const Te = (e) => {
118
118
  selectedDates: s,
119
119
  defaultSelectedDates: f,
120
120
  allowRangeSelection: w = !1,
121
- restrictedDates: y = ge,
121
+ restrictedDates: y = Se,
122
122
  allowTextInput: P = !0,
123
123
  minDate: I,
124
124
  maxDate: v,
@@ -134,8 +134,9 @@ const Te = (e) => {
134
134
  includeTime: u = !1,
135
135
  timeValue: R,
136
136
  defaultTimeValue: ee = "",
137
- timePlaceholder: te = "HH:MM"
138
- } = e, V = fe().datePicker.labels, H = V.placeholder, O = V.emptyState, j = M?.placeholder, z = M?.emptyState, B = C(() => ({
137
+ timePlaceholder: te = "HH:MM",
138
+ ...ae
139
+ } = e, V = he().datePicker.labels, H = V.placeholder, O = V.emptyState, j = M?.placeholder, z = M?.emptyState, B = C(() => ({
139
140
  placeholder: j ?? H,
140
141
  emptyState: z ?? O
141
142
  }), [
@@ -143,7 +144,7 @@ const Te = (e) => {
143
144
  z,
144
145
  H,
145
146
  O
146
- ]), d = R !== void 0, [ae, D] = ce(ee), g = d ? R : ae, S = de(null), T = C(() => {
147
+ ]), d = R !== void 0, [ne, D] = de(ee), g = d ? R : ne, S = me(null), T = C(() => {
147
148
  const n = s ?? f ?? [];
148
149
  if (n.length === 0) return null;
149
150
  const a = n[0];
@@ -158,7 +159,7 @@ const Te = (e) => {
158
159
  return;
159
160
  }
160
161
  const n = s[0], a = n instanceof Date ? n : new Date(n);
161
- isNaN(a.getTime()) || d || D(Se(a));
162
+ isNaN(a.getTime()) || d || D(Te(a));
162
163
  }, [s, u, d]);
163
164
  const G = _((n) => {
164
165
  const a = (r) => r instanceof Date ? r.toISOString() : r;
@@ -168,17 +169,17 @@ const Te = (e) => {
168
169
  }
169
170
  const b = n.map((r) => r instanceof Date ? $(r, g).toISOString() : r);
170
171
  m?.(b);
171
- }, [u, g, m]), ne = _((n) => {
172
+ }, [u, g, m]), le = _((n) => {
172
173
  const a = n ?? "";
173
174
  if (d || D(a), S.current && a.length === 4) {
174
175
  const b = $(S.current, a);
175
176
  m?.([b.toISOString()]);
176
177
  }
177
- }, [d, m]), le = ue(c, "efw-datePicker-field");
178
+ }, [d, m]), ie = fe(c, "efw-datePicker-field");
178
179
  return /* @__PURE__ */ o(
179
- oe,
180
+ se,
180
181
  {
181
- className: le,
182
+ className: ie,
182
183
  style: U,
183
184
  title: t,
184
185
  infoLabel: l,
@@ -190,8 +191,9 @@ const Te = (e) => {
190
191
  validationMessage: Q,
191
192
  validationMessageIcon: X,
192
193
  onValidationChange: p,
194
+ ...ae,
193
195
  children: u ? /* @__PURE__ */ o(
194
- Te,
196
+ be,
195
197
  {
196
198
  editable: h,
197
199
  disabled: x,
@@ -211,7 +213,7 @@ const Te = (e) => {
211
213
  onFormatDate: L,
212
214
  labels: B,
213
215
  currentTime: g,
214
- onTimeChange: ne,
216
+ onTimeChange: le,
215
217
  timePlaceholder: te,
216
218
  currentDate: T
217
219
  }
@@ -241,5 +243,5 @@ const Te = (e) => {
241
243
  );
242
244
  };
243
245
  export {
244
- Ee as EFWDatePickerField
246
+ Ne as EFWDatePickerField
245
247
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { EFWField as A } from "../_shared/EFWField/EFWField.js";
3
3
  import { EFWInput as B } from "./EFWInput.js";
4
- import { mergeClasses as P } from "@griffel/react";
5
- const G = (a) => {
4
+ import { mergeClasses as S } from "@griffel/react";
5
+ const H = (a) => {
6
6
  const {
7
7
  title: n,
8
8
  infoLabel: o,
@@ -14,10 +14,10 @@ const G = (a) => {
14
14
  contentBefore: f,
15
15
  contentAfter: m,
16
16
  minLength: g = 0,
17
- maxLength: u = 250,
18
- validationState: c,
19
- validationMessage: h,
20
- validationMessageIcon: p,
17
+ maxLength: p = 250,
18
+ validationState: u,
19
+ validationMessage: c,
20
+ validationMessageIcon: h,
21
21
  value: C,
22
22
  defaultValue: b,
23
23
  editable: e = !0,
@@ -31,10 +31,11 @@ const G = (a) => {
31
31
  formatFunction: M,
32
32
  labels: N,
33
33
  validationMessages: W,
34
- onValidationChange: w
34
+ onValidationChange: w,
35
+ ...P
35
36
  } = a, V = (q, z) => {
36
37
  x?.(q, z);
37
- }, j = P(r, "efw-input-field");
38
+ }, j = S(r, "efw-input-field");
38
39
  return /* @__PURE__ */ t(
39
40
  A,
40
41
  {
@@ -46,11 +47,12 @@ const G = (a) => {
46
47
  hint: i,
47
48
  size: s,
48
49
  required: d,
49
- validationState: c,
50
- validationMessage: h,
51
- validationMessageIcon: p,
50
+ validationState: u,
51
+ validationMessage: c,
52
+ validationMessageIcon: h,
52
53
  onValidationChange: w,
53
54
  hidden: v,
55
+ ...P,
54
56
  children: /* @__PURE__ */ t(
55
57
  B,
56
58
  {
@@ -59,7 +61,7 @@ const G = (a) => {
59
61
  editable: e,
60
62
  onChange: V,
61
63
  minLength: g,
62
- maxLength: u,
64
+ maxLength: p,
63
65
  disabled: F,
64
66
  autoComplete: L,
65
67
  type: y,
@@ -76,5 +78,5 @@ const G = (a) => {
76
78
  );
77
79
  };
78
80
  export {
79
- G as EFWInputField
81
+ H as EFWInputField
80
82
  };
@@ -1,21 +1,21 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { EFWField as A } from "../_shared/EFWField/EFWField.js";
3
- import { EFWNumberInput as B } from "./EFWNumberInput.js";
2
+ import { EFWField as B } from "../_shared/EFWField/EFWField.js";
3
+ import { EFWNumberInput as P } from "./EFWNumberInput.js";
4
4
  import { mergeClasses as T } from "@griffel/react";
5
5
  const H = (t) => {
6
6
  const {
7
7
  title: n,
8
8
  infoLabel: o,
9
9
  hint: l,
10
- className: i,
11
- style: r = {},
10
+ className: r,
11
+ style: i = {},
12
12
  required: s = !1,
13
13
  contentBefore: m,
14
14
  contentAfter: d,
15
15
  minValue: u,
16
16
  maxValue: f,
17
- validationState: c,
18
- validationMessage: p,
17
+ validationState: p,
18
+ validationMessage: c,
19
19
  validationMessageIcon: b,
20
20
  value: g,
21
21
  defaultValue: h,
@@ -31,32 +31,34 @@ const H = (t) => {
31
31
  decimalSeparator: M,
32
32
  labels: S,
33
33
  validationMessages: W,
34
- onValidationChange: w
35
- } = t, y = (j, q) => {
36
- v?.(j, q);
37
- }, L = T(i, "efw-numberInput-field");
34
+ onValidationChange: w,
35
+ ...y
36
+ } = t, L = (q, A) => {
37
+ v?.(q, A);
38
+ }, j = T(r, "efw-numberInput-field");
38
39
  return /* @__PURE__ */ a(
39
- A,
40
+ B,
40
41
  {
41
- className: L,
42
- style: r,
42
+ className: j,
43
+ style: i,
43
44
  title: n,
44
45
  infoLabel: o,
45
46
  weightLabel: e ? "regular" : "semibold",
46
47
  hint: l,
47
48
  required: s,
48
- validationState: c,
49
- validationMessage: p,
49
+ validationState: p,
50
+ validationMessage: c,
50
51
  validationMessageIcon: b,
51
52
  onValidationChange: w,
52
53
  hidden: F,
54
+ ...y,
53
55
  children: /* @__PURE__ */ a(
54
- B,
56
+ P,
55
57
  {
56
58
  value: g,
57
59
  defaultValue: h,
58
60
  editable: e,
59
- onChange: y,
61
+ onChange: L,
60
62
  disabled: C,
61
63
  autoComplete: N,
62
64
  contentBefore: m,
@@ -1,16 +1,16 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { EFWField as N } from "../_shared/EFWField/EFWField.js";
3
- import { EFWSwitch as S } from "./EFWSwitch.js";
4
- import { mergeClasses as W } from "@griffel/react";
5
- const j = (l) => {
2
+ import { EFWField as S } from "../_shared/EFWField/EFWField.js";
3
+ import { EFWSwitch as W } from "./EFWSwitch.js";
4
+ import { mergeClasses as x } from "@griffel/react";
5
+ const q = (l) => {
6
6
  const {
7
7
  title: i,
8
- infoLabel: t,
9
- hint: s,
8
+ infoLabel: s,
9
+ hint: t,
10
10
  className: o,
11
11
  style: n = {},
12
- required: d = !1,
13
- validationState: r,
12
+ required: r = !1,
13
+ validationState: d,
14
14
  validationMessage: m,
15
15
  validationMessageIcon: f,
16
16
  value: h,
@@ -19,33 +19,35 @@ const j = (l) => {
19
19
  disabled: g = !1,
20
20
  hidden: u = !1,
21
21
  labels: b,
22
- onChange: C,
23
- onValidationChange: p
24
- } = l, w = (v, E) => {
25
- C?.(v, E);
26
- }, F = W(o, "efw-switch-field");
22
+ onChange: p,
23
+ onValidationChange: C,
24
+ ...w
25
+ } = l, F = (E, N) => {
26
+ p?.(E, N);
27
+ }, v = x(o, "efw-switch-field");
27
28
  return /* @__PURE__ */ a(
28
- N,
29
+ S,
29
30
  {
30
- className: F,
31
+ className: v,
31
32
  style: n,
32
33
  title: i,
33
- infoLabel: t,
34
+ infoLabel: s,
34
35
  weightLabel: e ? "regular" : "semibold",
35
- hint: s,
36
- required: d,
37
- validationState: r,
36
+ hint: t,
37
+ required: r,
38
+ validationState: d,
38
39
  validationMessage: m,
39
40
  validationMessageIcon: f,
40
- onValidationChange: p,
41
+ onValidationChange: C,
41
42
  hidden: u,
43
+ ...w,
42
44
  children: /* @__PURE__ */ a(
43
- S,
45
+ W,
44
46
  {
45
47
  value: h,
46
48
  defaultValue: c,
47
49
  editable: e,
48
- onChange: w,
50
+ onChange: F,
49
51
  disabled: g,
50
52
  labels: b
51
53
  }
@@ -54,5 +56,5 @@ const j = (l) => {
54
56
  );
55
57
  };
56
58
  export {
57
- j as EFWSwitchField
59
+ q as EFWSwitchField
58
60
  };
@@ -1,21 +1,21 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { EFWField as x } from "../_shared/EFWField/EFWField.js";
3
- import { EFWTagPicker as y } from "./EFWTagPicker.js";
4
- import { mergeClasses as I } from "@griffel/react";
5
- const Q = (i) => {
2
+ import { EFWField as y } from "../_shared/EFWField/EFWField.js";
3
+ import { EFWTagPicker as I } from "./EFWTagPicker.js";
4
+ import { mergeClasses as j } from "@griffel/react";
5
+ const R = (i) => {
6
6
  const {
7
- title: n,
7
+ title: t,
8
8
  // description,
9
- infoLabel: t,
9
+ infoLabel: n,
10
10
  hint: o,
11
- className: l,
12
- style: s = {},
11
+ className: s,
12
+ style: l = {},
13
13
  required: r = !1,
14
14
  labels: d,
15
15
  validationState: g = "none",
16
16
  validationMessage: m = "",
17
- validationMessageIcon: f,
18
- minQueryLength: p = 0,
17
+ validationMessageIcon: p,
18
+ minQueryLength: f = 0,
19
19
  options: c = [],
20
20
  selectedOptions: h,
21
21
  defaultSelectedOptions: u,
@@ -24,50 +24,52 @@ const Q = (i) => {
24
24
  hidden: C = !1,
25
25
  noPopover: F = !1,
26
26
  multiple: O = !1,
27
- tagSize: S = "medium",
28
- tagShape: v = "rounded",
29
- tagAppearance: M = "brand",
30
- onChange: P,
27
+ tagSize: P = "medium",
28
+ tagShape: S = "rounded",
29
+ tagAppearance: v = "brand",
30
+ onChange: M,
31
31
  beforeRenderOptions: k,
32
32
  renderOptionMedia: w,
33
33
  showOptionMediaInSelectedTags: E = !1,
34
- onValidationChange: L
35
- } = i, N = (W = []) => {
36
- P?.(W);
37
- }, T = I(l, "efw-tagPicker-field");
34
+ onValidationChange: L,
35
+ ...N
36
+ } = i, T = (x = []) => {
37
+ M?.(x);
38
+ }, W = j(s, "efw-tagPicker-field");
38
39
  return /* @__PURE__ */ a(
39
- x,
40
+ y,
40
41
  {
41
42
  hint: o,
42
- className: T,
43
- style: s,
44
- title: n,
45
- infoLabel: t,
43
+ className: W,
44
+ style: l,
45
+ title: t,
46
+ infoLabel: n,
46
47
  weightLabel: e ? "regular" : "semibold",
47
48
  required: r,
48
49
  validationState: g,
49
50
  validationMessage: m,
50
- validationMessageIcon: f,
51
+ validationMessageIcon: p,
51
52
  onValidationChange: L,
52
53
  hidden: C,
54
+ ...N,
53
55
  children: /* @__PURE__ */ a(
54
- y,
56
+ I,
55
57
  {
56
58
  editable: e,
57
59
  labels: d,
58
60
  selectedOptions: h,
59
61
  defaultSelectedOptions: u,
60
- minQueryLength: p,
62
+ minQueryLength: f,
61
63
  options: c,
62
- onChange: N,
64
+ onChange: T,
63
65
  beforeRenderOptions: k,
64
66
  renderOptionMedia: w,
65
67
  showOptionMediaInSelectedTags: E,
66
68
  disabled: b,
67
69
  noPopover: F,
68
- tagSize: S,
69
- tagShape: v,
70
- tagAppearance: M,
70
+ tagSize: P,
71
+ tagShape: S,
72
+ tagAppearance: v,
71
73
  multiple: O
72
74
  }
73
75
  )
@@ -75,5 +77,5 @@ const Q = (i) => {
75
77
  );
76
78
  };
77
79
  export {
78
- Q as EFWTagPickerField
80
+ R as EFWTagPickerField
79
81
  };
@@ -2,13 +2,13 @@ import { jsx as a } from "react/jsx-runtime";
2
2
  import { EFWField as j } from "../_shared/EFWField/EFWField.js";
3
3
  import { EFWTextArea as q } from "./EFWTextArea.js";
4
4
  import { mergeClasses as z } from "@griffel/react";
5
- const P = (t) => {
5
+ const S = (t) => {
6
6
  const {
7
7
  title: o,
8
8
  infoLabel: n,
9
9
  hint: l,
10
- className: i,
11
- style: s = {},
10
+ className: s,
11
+ style: i = {},
12
12
  required: r = !1,
13
13
  contentBefore: d,
14
14
  contentAfter: f,
@@ -17,10 +17,10 @@ const P = (t) => {
17
17
  validationState: g,
18
18
  validationMessage: h,
19
19
  validationMessageIcon: u,
20
- value: C,
21
- defaultValue: b,
20
+ value: p,
21
+ defaultValue: C,
22
22
  editable: e = !0,
23
- disabled: p = !1,
23
+ disabled: b = !1,
24
24
  hidden: x = !1,
25
25
  onChange: F,
26
26
  onKeyDown: v,
@@ -29,15 +29,16 @@ const P = (t) => {
29
29
  formatFunction: E,
30
30
  labels: L,
31
31
  validationMessages: M,
32
- onValidationChange: N
33
- } = t, W = (T, V) => {
32
+ onValidationChange: N,
33
+ ...W
34
+ } = t, y = (T, V) => {
34
35
  F?.(T, V);
35
- }, y = z(i, "efw-textArea-field");
36
+ }, P = z(s, "efw-textArea-field");
36
37
  return /* @__PURE__ */ a(
37
38
  j,
38
39
  {
39
- className: y,
40
- style: s,
40
+ className: P,
41
+ style: i,
41
42
  title: o,
42
43
  infoLabel: n,
43
44
  weightLabel: e ? "regular" : "semibold",
@@ -48,17 +49,18 @@ const P = (t) => {
48
49
  validationMessageIcon: u,
49
50
  onValidationChange: N,
50
51
  hidden: x,
52
+ ...W,
51
53
  children: /* @__PURE__ */ a(
52
54
  q,
53
55
  {
54
- value: C,
55
- defaultValue: b,
56
+ value: p,
57
+ defaultValue: C,
56
58
  editable: e,
57
- onChange: W,
59
+ onChange: y,
58
60
  onKeyDown: v,
59
61
  maxLength: m,
60
62
  size: c,
61
- disabled: p,
63
+ disabled: b,
62
64
  autoComplete: A,
63
65
  contentBefore: d,
64
66
  contentAfter: f,
@@ -72,5 +74,5 @@ const P = (t) => {
72
74
  );
73
75
  };
74
76
  export {
75
- P as EFWTextAreaField
77
+ S as EFWTextAreaField
76
78
  };