@envisiongroup/porygon 1.0.0-rc.32 → 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 (23) hide show
  1. package/dist/react-components/buttons/EFWButton/EFWButton.js +28 -24
  2. package/dist/react-components/fields/Attachments/EFWAttachmentsField.js +25 -23
  3. package/dist/react-components/fields/DatePicker/EFWDatePickerField.js +31 -29
  4. package/dist/react-components/fields/Input/EFWInputField.js +15 -13
  5. package/dist/react-components/fields/NumberInput/EFWNumberInputField.js +19 -17
  6. package/dist/react-components/fields/Switch/EFWSwitchField.js +25 -23
  7. package/dist/react-components/fields/TagPicker/EFWTagPickerField.js +33 -31
  8. package/dist/react-components/fields/TextArea/EFWTextAreaField.js +18 -16
  9. package/dist/react-components/fields/_shared/EFWField/EFWField.js +20 -18
  10. package/dist/react-components/fields/_shared/EFWField/EFWField.types.d.ts +4 -0
  11. package/dist/react-components/forms/EFWForm/EFWForm.utils.js +66 -59
  12. package/dist/react-components/i18n/defaultLocaleText.js +3 -0
  13. package/dist/react-components/i18n/localePresets.js +11 -5
  14. package/dist/react-components/i18n/porygonI18n.types.d.ts +3 -0
  15. package/dist/react-components/tables/EFWTable/EFWTable.js +540 -523
  16. package/dist/react-components/tables/EFWTable/EFWTable.types.d.ts +21 -0
  17. package/dist/react-components/tables/EFWTable/components/EFWTableHeader/EFWTableHeader.js +73 -75
  18. package/dist/react-components/tables/EFWTable/hooks/useDefaultAddButton/useDefaultAddButton.js +5 -5
  19. package/dist/react-components/tables/EFWTable/hooks/useDefaultDeleteButton/useDefaultDeleteButton.js +12 -12
  20. package/dist/react-components/tables/EFWTable/hooks/useDefaultFilterButton/useDefaultFilterButton.js +45 -34
  21. package/dist/react-components/tables/EFWTable/hooks/useDefaultUpdateButton/useDefaultUpdateButton.js +23 -23
  22. package/dist/react-components/tables/EFWTable/hooks/useTableController/useTableController.js +118 -108
  23. package/package.json +1 -1
@@ -3,8 +3,8 @@ import * as y from "react";
3
3
  import { makeStyles as ne, tokens as t, Tooltip as se, Spinner as ae, Button as ie } from "@fluentui/react-components";
4
4
  import { ErrorCircleRegular as ce, CheckmarkRegular as le } from "@fluentui/react-icons";
5
5
  import { useEFWButton as ue } from "./EFWButton.hooks.js";
6
- import { useButtonsLocaleText as ge } from "../../i18n/PorygonI18nProvider.js";
7
- const de = ne({
6
+ import { useButtonsLocaleText as de } from "../../i18n/PorygonI18nProvider.js";
7
+ const ge = ne({
8
8
  /**
9
9
  * Estilo para botón no interactivo (estado de carga con deshabilitación).
10
10
  * Aplica opacidad reducida y deshabilita eventos de puntero.
@@ -47,6 +47,7 @@ const de = ne({
47
47
  */
48
48
  collapseLabelXs: {
49
49
  "@container (max-width: 480px)": {
50
+ padding: "5px",
50
51
  "& .efw-button__label": { display: "none" },
51
52
  "& .fui-Button__icon": { marginRight: 0 },
52
53
  minWidth: "auto"
@@ -58,6 +59,7 @@ const de = ne({
58
59
  */
59
60
  collapseLabelSm: {
60
61
  "@container (max-width: 640px)": {
62
+ padding: "5px",
61
63
  "& .efw-button__label": { display: "none" },
62
64
  "& .fui-Button__icon": { marginRight: 0 },
63
65
  minWidth: "auto"
@@ -69,6 +71,7 @@ const de = ne({
69
71
  */
70
72
  collapseLabelMd: {
71
73
  "@container (max-width: 768px)": {
74
+ padding: "5px",
72
75
  "& .efw-button__label": { display: "none" },
73
76
  "& .fui-Button__icon": { marginRight: 0 },
74
77
  minWidth: "auto"
@@ -80,16 +83,17 @@ const de = ne({
80
83
  */
81
84
  collapseLabelLg: {
82
85
  "@container (max-width: 1024px)": {
86
+ padding: "5px",
83
87
  "& .efw-button__label": { display: "none" },
84
88
  "& .fui-Button__icon": { marginRight: 0 },
85
89
  minWidth: "auto"
86
90
  }
87
91
  }
88
92
  });
89
- function fe(e, r) {
90
- return e instanceof Error ? e : pe(e) ? e === void 0 ? new Error(r.operationFailedMessage) : e.success ? new Error(r.operationFailedMessage) : e.error instanceof Error ? e.error : new Error(e.error || r.operationFailedMessage) : new Error(String(e) || r.unknownErrorMessage);
93
+ function pe(e, r) {
94
+ return e instanceof Error ? e : fe(e) ? e === void 0 ? new Error(r.operationFailedMessage) : e.success ? new Error(r.operationFailedMessage) : e.error instanceof Error ? e.error : new Error(e.error || r.operationFailedMessage) : new Error(String(e) || r.unknownErrorMessage);
91
95
  }
92
- function pe(e) {
96
+ function fe(e) {
93
97
  return e === void 0 ? !0 : typeof e == "object" && e !== null && "success" in e && typeof e.success == "boolean" && (e.error === void 0 || typeof e.error == "string" || e.error instanceof Error);
94
98
  }
95
99
  const me = (e, r) => {
@@ -114,10 +118,10 @@ const me = (e, r) => {
114
118
  successConfig: I = Ee,
115
119
  errorConfig: U = be,
116
120
  labels: l,
117
- tooltips: d,
121
+ tooltips: g,
118
122
  showStatusIcons: E = !0,
119
123
  autoReset: v = !0,
120
- collapseLabel: f,
124
+ collapseLabel: p,
121
125
  children: b,
122
126
  disabled: M,
123
127
  className: X,
@@ -125,7 +129,7 @@ const me = (e, r) => {
125
129
  icon: u,
126
130
  ...z
127
131
  }) => {
128
- const s = de(), g = ge().button.labels, _ = g.loadingText, w = g.defaultErrorMessage, F = g.operationFailedMessage, S = g.unknownErrorMessage, T = g.parseErrorMessage, B = l?.loadingText, C = l?.defaultErrorMessage, N = l?.operationFailedMessage, R = l?.unknownErrorMessage, L = l?.parseErrorMessage, a = y.useMemo(() => ({
132
+ const s = ge(), d = de().button.labels, _ = d.loadingText, w = d.defaultErrorMessage, F = d.operationFailedMessage, S = d.unknownErrorMessage, T = d.parseErrorMessage, B = l?.loadingText, C = l?.defaultErrorMessage, N = l?.operationFailedMessage, R = l?.unknownErrorMessage, L = l?.parseErrorMessage, a = y.useMemo(() => ({
129
133
  loadingText: B ?? _,
130
134
  defaultErrorMessage: C ?? w,
131
135
  operationFailedMessage: N ?? F,
@@ -142,14 +146,14 @@ const me = (e, r) => {
142
146
  F,
143
147
  S,
144
148
  T
145
- ]), { onSuccess: A, timeout: J = 2e3, text: q } = I, { onError: H, timeout: K = 2e3, text: Q } = U, { currentState: j, isLoading: k, error: V, setLoading: P, stopLoading: $, setSuccess: W, setError: p } = ue({
149
+ ]), { onSuccess: A, timeout: J = 2e3, text: q } = I, { onError: H, timeout: K = 2e3, text: Q } = U, { currentState: j, isLoading: x, error: V, setLoading: P, stopLoading: $, setSuccess: W, setError: f } = ue({
146
150
  onError: H,
147
151
  onSuccess: A,
148
152
  successTimeout: J,
149
153
  errorTimeout: K,
150
154
  autoReset: v,
151
155
  fallbackErrorMessage: a.operationFailedMessage
152
- }), h = y.useCallback(
156
+ }), k = y.useCallback(
153
157
  (o) => {
154
158
  if (!o)
155
159
  $();
@@ -158,25 +162,25 @@ const me = (e, r) => {
158
162
  W();
159
163
  else {
160
164
  const i = o.error instanceof Error ? o.error : new Error(String(o.error || a.operationFailedMessage));
161
- p(i);
165
+ f(i);
162
166
  }
163
167
  },
164
- [$, W, p, a.operationFailedMessage]
168
+ [$, W, f, a.operationFailedMessage]
165
169
  ), Z = y.useCallback(async (o) => {
166
- if (!(!e || k || M))
170
+ if (!(!e || x || M))
167
171
  try {
168
172
  const i = e(o);
169
173
  if (i instanceof Promise) {
170
174
  n && P();
171
- const x = await i;
172
- n && h(x);
175
+ const h = await i;
176
+ n && k(h);
173
177
  } else
174
- h(i);
178
+ k(i);
175
179
  } catch (i) {
176
- const x = fe(i, a);
177
- p(x);
180
+ const h = pe(i, a);
181
+ f(h);
178
182
  }
179
- }, [e, k, M, n, P, h, p, a]), O = u && f ? f === "sm" ? s.collapseLabelSm : f === "md" ? s.collapseLabelMd : f === "lg" ? s.collapseLabelLg : s.collapseLabelXs : void 0, m = (o) => O ? o ? /* @__PURE__ */ c("span", { className: "efw-button__label", children: o }) : void 0 : o, ee = () => {
183
+ }, [e, x, M, n, P, k, f, a]), O = u && p ? p === "sm" ? s.collapseLabelSm : p === "md" ? s.collapseLabelMd : p === "lg" ? s.collapseLabelLg : s.collapseLabelXs : void 0, m = (o) => O ? o ? /* @__PURE__ */ c("span", { className: "efw-button__label", children: o }) : void 0 : o, ee = () => {
180
184
  const o = [X, O].filter(Boolean);
181
185
  switch (j) {
182
186
  case "loading":
@@ -184,28 +188,28 @@ const me = (e, r) => {
184
188
  content: m(a.loadingText),
185
189
  icon: E ? /* @__PURE__ */ c(ae, { size: "tiny" }) : u,
186
190
  className: r ? [...o, s.buttonNonInteractive].join(" ") : o.join(" "),
187
- tooltip: d?.loading
191
+ tooltip: g?.loading
188
192
  };
189
193
  case "success":
190
194
  return {
191
195
  content: m(q ?? b),
192
196
  icon: E ? /* @__PURE__ */ c(le, {}) : u,
193
197
  className: [...o, s.buttonSuccess].join(" "),
194
- tooltip: d?.success
198
+ tooltip: g?.success
195
199
  };
196
200
  case "error":
197
201
  return {
198
202
  content: m(Q ?? b),
199
203
  icon: E ? /* @__PURE__ */ c(ce, {}) : u,
200
204
  className: [...o, s.buttonError].join(" "),
201
- tooltip: d?.error ?? me(V, a)
205
+ tooltip: g?.error ?? me(V, a)
202
206
  };
203
207
  default:
204
208
  return {
205
209
  content: m(b),
206
210
  icon: u,
207
211
  className: o.join(" "),
208
- tooltip: d?.idle
212
+ tooltip: g?.idle
209
213
  };
210
214
  }
211
215
  }, { content: oe, icon: re, className: te, tooltip: G } = ee(), D = /* @__PURE__ */ c(
@@ -214,7 +218,7 @@ const me = (e, r) => {
214
218
  ...z,
215
219
  appearance: Y,
216
220
  className: te,
217
- disabled: M || r && k,
221
+ disabled: M || r && x,
218
222
  disabledFocusable: j === "loading" && r,
219
223
  icon: re,
220
224
  onClick: Z,
@@ -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
  };