@tedi-design-system/react 19.0.1-rc.2 → 19.1.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DESIGN.md +308 -0
- package/README.md +28 -0
- package/_virtual/index.es13.js +2 -2
- package/_virtual/index.es14.js +2 -2
- package/bundle-stats.html +1 -1
- package/component.manifest.json +1191 -0
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.development.cjs.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.development.es.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.production.min.cjs.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.production.min.es.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/index.cjs.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/index.es.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.development.cjs.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.development.es.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.production.min.cjs.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.production.min.es.js +1 -1
- package/external/prop-types/external/react-is/index.cjs.js +1 -1
- package/external/prop-types/external/react-is/index.es.js +1 -1
- package/external/react-is/index.cjs.js +1 -1
- package/external/react-is/index.es.js +1 -1
- package/external/toposort/index.cjs.js +1 -1
- package/external/toposort/index.es.js +1 -1
- package/index.css +1 -1
- package/package.json +2 -2
- package/src/community/components/layout/sidenav/sidenav.cjs.js +1 -1
- package/src/community/components/layout/sidenav/sidenav.es.js +38 -40
- package/src/community/components/map-components/base-map-selection/base-map-option.cjs.js +1 -1
- package/src/community/components/map-components/base-map-selection/base-map-option.d.ts +8 -5
- package/src/community/components/map-components/base-map-selection/base-map-option.es.js +63 -65
- package/src/community/components/map-components/base-map-selection/base-map-selection.cjs.js +1 -1
- package/src/community/components/map-components/base-map-selection/base-map-selection.d.ts +1 -4
- package/src/community/components/map-components/base-map-selection/base-map-selection.es.js +55 -55
- package/src/community/components/map-components/map-button/map-button.cjs.js +1 -1
- package/src/community/components/map-components/map-button/map-button.d.ts +2 -3
- package/src/community/components/map-components/map-button/map-button.es.js +37 -36
- package/src/community/components/map-components/map-dropdown/map-dropdown.cjs.js +1 -1
- package/src/community/components/map-components/map-dropdown/map-dropdown.es.js +51 -49
- package/src/community/components/vertical-stepper/step-item/step-item.d.ts +6 -0
- package/src/community/components/vertical-stepper/sub-item/sub-item.d.ts +6 -0
- package/src/community/components/vertical-stepper/vertical-stepper.d.ts +6 -0
- package/src/tedi/components/content/card/card.module.scss.cjs.js +1 -1
- package/src/tedi/components/content/card/card.module.scss.es.js +3 -2
- package/src/tedi/components/content/collapse/collapse.cjs.js +1 -1
- package/src/tedi/components/content/collapse/collapse.d.ts +9 -0
- package/src/tedi/components/content/collapse/collapse.es.js +44 -35
- package/src/tedi/components/filter/filter/filter.cjs.js +1 -1
- package/src/tedi/components/filter/filter/filter.d.ts +5 -0
- package/src/tedi/components/filter/filter/filter.es.js +154 -144
- package/src/tedi/components/filter/filter/filter.module.scss.cjs.js +1 -1
- package/src/tedi/components/filter/filter/filter.module.scss.es.js +2 -1
- package/src/tedi/components/form/date-field/date-field-helpers.cjs.js +1 -1
- package/src/tedi/components/form/date-field/date-field-helpers.d.ts +12 -19
- package/src/tedi/components/form/date-field/date-field-helpers.es.js +27 -21
- package/src/tedi/components/form/date-field/date-field.cjs.js +1 -1
- package/src/tedi/components/form/date-field/date-field.d.ts +1 -1
- package/src/tedi/components/form/date-field/date-field.es.js +169 -164
- package/src/tedi/components/form/textfield/textfield.cjs.js +1 -1
- package/src/tedi/components/form/textfield/textfield.es.js +21 -21
- package/src/tedi/components/form/time-field/time-field.cjs.js +1 -1
- package/src/tedi/components/form/time-field/time-field.es.js +126 -124
- package/src/tedi/components/layout/sidenav/components/sidenav-item/sidenav-item.cjs.js +1 -1
- package/src/tedi/components/layout/sidenav/components/sidenav-item/sidenav-item.es.js +82 -85
- package/src/tedi/components/layout/sidenav/sidenav.cjs.js +1 -1
- package/src/tedi/components/layout/sidenav/sidenav.es.js +16 -16
- package/src/tedi/components/layout/top-nav/components/top-nav-item/top-nav-item.cjs.js +1 -1
- package/src/tedi/components/layout/top-nav/components/top-nav-item/top-nav-item.es.js +6 -7
- package/src/tedi/components/layout/top-nav/components/top-nav-separator/top-nav-separator.cjs.js +1 -1
- package/src/tedi/components/layout/top-nav/components/top-nav-separator/top-nav-separator.es.js +2 -2
- package/src/tedi/components/layout/top-nav/top-nav.cjs.js +1 -1
- package/src/tedi/components/layout/top-nav/top-nav.es.js +9 -8
- package/src/tedi/components/misc/affix/affix.cjs.js +1 -1
- package/src/tedi/components/misc/affix/affix.es.js +20 -8
- package/src/tedi/components/navigation/card-stepper/card-stepper-step.cjs.js +1 -0
- package/src/tedi/components/navigation/card-stepper/card-stepper-step.d.ts +86 -0
- package/src/tedi/components/navigation/card-stepper/card-stepper-step.es.js +5 -0
- package/src/tedi/components/navigation/card-stepper/card-stepper.cjs.js +1 -0
- package/src/tedi/components/navigation/card-stepper/card-stepper.d.ts +130 -0
- package/src/tedi/components/navigation/card-stepper/card-stepper.es.js +200 -0
- package/src/tedi/components/navigation/card-stepper/card-stepper.module.scss.cjs.js +1 -0
- package/src/tedi/components/navigation/card-stepper/card-stepper.module.scss.es.js +26 -0
- package/src/tedi/components/navigation/card-stepper/index.d.ts +2 -0
- package/src/tedi/components/navigation/table-of-contents/components/table-of-contents-collapsible/table-of-contents-collapsible.cjs.js +1 -1
- package/src/tedi/components/navigation/table-of-contents/components/table-of-contents-collapsible/table-of-contents-collapsible.d.ts +9 -1
- package/src/tedi/components/navigation/table-of-contents/components/table-of-contents-collapsible/table-of-contents-collapsible.es.js +82 -65
- package/src/tedi/components/navigation/table-of-contents/components/table-of-contents-item/table-of-contents-item.d.ts +6 -0
- package/src/tedi/components/navigation/table-of-contents/components/table-of-contents-row/table-of-contents-row.cjs.js +1 -1
- package/src/tedi/components/navigation/table-of-contents/components/table-of-contents-row/table-of-contents-row.es.js +23 -28
- package/src/tedi/components/navigation/table-of-contents/table-of-contents.cjs.js +1 -1
- package/src/tedi/components/navigation/table-of-contents/table-of-contents.d.ts +32 -21
- package/src/tedi/components/navigation/table-of-contents/table-of-contents.es.js +58 -55
- package/src/tedi/components/navigation/table-of-contents/table-of-contents.module.scss.cjs.js +1 -1
- package/src/tedi/components/navigation/table-of-contents/table-of-contents.module.scss.es.js +4 -1
- package/src/tedi/components/navigation/vertical-stepper/index.d.ts +3 -0
- package/src/tedi/components/navigation/vertical-stepper/vertical-stepper-context.cjs.js +1 -0
- package/src/tedi/components/navigation/vertical-stepper/vertical-stepper-context.d.ts +10 -0
- package/src/tedi/components/navigation/vertical-stepper/vertical-stepper-context.es.js +8 -0
- package/src/tedi/components/navigation/vertical-stepper/vertical-stepper-item.cjs.js +1 -0
- package/src/tedi/components/navigation/vertical-stepper/vertical-stepper-item.d.ts +74 -0
- package/src/tedi/components/navigation/vertical-stepper/vertical-stepper-item.es.js +109 -0
- package/src/tedi/components/navigation/vertical-stepper/vertical-stepper-sub-item.cjs.js +1 -0
- package/src/tedi/components/navigation/vertical-stepper/vertical-stepper-sub-item.d.ts +47 -0
- package/src/tedi/components/navigation/vertical-stepper/vertical-stepper-sub-item.es.js +65 -0
- package/src/tedi/components/navigation/vertical-stepper/vertical-stepper.cjs.js +1 -0
- package/src/tedi/components/navigation/vertical-stepper/vertical-stepper.d.ts +28 -0
- package/src/tedi/components/navigation/vertical-stepper/vertical-stepper.es.js +32 -0
- package/src/tedi/components/navigation/vertical-stepper/vertical-stepper.module.scss.cjs.js +1 -0
- package/src/tedi/components/navigation/vertical-stepper/vertical-stepper.module.scss.es.js +34 -0
- package/src/tedi/components/overlays/dropdown/dropdown.cjs.js +1 -1
- package/src/tedi/components/overlays/dropdown/dropdown.d.ts +8 -0
- package/src/tedi/components/overlays/dropdown/dropdown.es.js +82 -74
- package/src/tedi/components/overlays/dropdown/dropdown.module.scss.cjs.js +1 -1
- package/src/tedi/components/overlays/dropdown/dropdown.module.scss.es.js +1 -0
- package/src/tedi/components/overlays/overlay/overlay-trigger.cjs.js +1 -1
- package/src/tedi/components/overlays/overlay/overlay-trigger.es.js +22 -21
- package/src/tedi/components/overlays/sheet/sheet.cjs.js +1 -0
- package/src/tedi/components/overlays/sheet/sheet.d.ts +65 -0
- package/src/tedi/components/overlays/sheet/sheet.es.js +41 -0
- package/src/tedi/components/overlays/sheet/sheet.module.scss.cjs.js +1 -0
- package/src/tedi/components/overlays/sheet/sheet.module.scss.es.js +8 -0
- package/src/tedi/helpers/hooks/use-safe-id.cjs.js +1 -0
- package/src/tedi/helpers/hooks/use-safe-id.d.ts +16 -0
- package/src/tedi/helpers/hooks/use-safe-id.es.js +5 -0
- package/src/tedi/helpers/index.d.ts +1 -0
- package/src/tedi/index.d.ts +2 -0
- package/src/tedi/providers/label-provider/labels-map.cjs.js +1 -1
- package/src/tedi/providers/label-provider/labels-map.d.ts +56 -0
- package/src/tedi/providers/label-provider/labels-map.es.js +127 -71
- package/tedi.cjs.js +1 -1
- package/tedi.es.js +284 -272
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
import { jsxs as vt, Fragment as Ft, jsx as D } from "react/jsx-runtime";
|
|
2
|
-
import { useFloating as wt, useClick as Nt, useInteractions as kt, useDismiss as Pt, useRole as
|
|
2
|
+
import { useFloating as wt, useClick as Nt, useInteractions as kt, useDismiss as Pt, useRole as Ot, FloatingPortal as Et, FloatingFocusManager as Rt } from "../../../../../external/@floating-ui/react/dist/floating-ui.react.es.js";
|
|
3
3
|
import B from "../../../../../external/classnames/index.es.js";
|
|
4
|
-
import F, { useState as _, useCallback as
|
|
4
|
+
import F, { useState as _, useCallback as me, useEffect as T, useMemo as pe } from "react";
|
|
5
5
|
import { Calendar as It } from "../../content/calendar/calendar.es.js";
|
|
6
6
|
import { MultiValueField as Vt } from "../multi-value-field/multi-value-field.es.js";
|
|
7
7
|
import { TextField as Bt } from "../textfield/textfield.es.js";
|
|
8
8
|
import y from "./date-field.module.scss.es.js";
|
|
9
|
-
import { getLocaleDateParts as Tt, buildDateRegexSource as $t, resolveRangeSelection as Lt, CALENDAR_POPOVER_OFFSET as Yt, CALENDAR_POPOVER_PADDING as
|
|
9
|
+
import { getLocaleDateParts as Tt, buildDateRegexSource as $t, resolveRangeSelection as Lt, CALENDAR_POPOVER_OFFSET as Yt, CALENDAR_POPOVER_PADDING as We } from "./date-field-helpers.es.js";
|
|
10
10
|
import { DatePickerModal as jt } from "./date-picker-modal/date-picker-modal.es.js";
|
|
11
11
|
import { useBreakpointProps as Ht } from "../../../helpers/hooks/use-breakpoint-props.es.js";
|
|
12
12
|
import { useLabels as Wt } from "../../../providers/label-provider/use-labels.es.js";
|
|
13
13
|
import { et as St } from "../../../../../external/react-day-picker/dist/esm/locale/et.es.js";
|
|
14
|
-
import Ut, { isBreakpointBelow as
|
|
14
|
+
import Ut, { isBreakpointBelow as Se } from "../../../helpers/hooks/use-breakpoint.es.js";
|
|
15
15
|
import { autoUpdate as qt } from "../../../../../external/@floating-ui/dom/dist/floating-ui.dom.es.js";
|
|
16
16
|
import { offset as zt, flip as Gt, shift as Xt, size as Jt } from "../../../../../external/@floating-ui/react-dom/dist/floating-ui.react-dom.es.js";
|
|
17
17
|
import { dateMatchModifiers as Kt } from "../../../../../external/react-day-picker/dist/esm/utils/dateMatchModifiers.es.js";
|
|
18
18
|
const Qt = F.forwardRef((w, N) => {
|
|
19
|
-
const { getCurrentBreakpointProps:
|
|
20
|
-
useNativePicker:
|
|
19
|
+
const { getCurrentBreakpointProps: Ue } = Ht(w.defaultServerBreakpoint), { getLabel: G } = Wt(), {
|
|
20
|
+
useNativePicker: qe = !1,
|
|
21
21
|
enableCalendar: m = !0,
|
|
22
22
|
calendarTrigger: $ = "button",
|
|
23
|
-
numberOfMonths:
|
|
24
|
-
clearable:
|
|
25
|
-
} =
|
|
26
|
-
id:
|
|
27
|
-
mode:
|
|
28
|
-
label:
|
|
23
|
+
numberOfMonths: X,
|
|
24
|
+
clearable: he = !0
|
|
25
|
+
} = Ue(w), {
|
|
26
|
+
id: ge,
|
|
27
|
+
mode: o = "single",
|
|
28
|
+
label: ye,
|
|
29
29
|
selected: L,
|
|
30
30
|
onSelect: a,
|
|
31
31
|
disabled: k,
|
|
32
32
|
disabledMatchers: P,
|
|
33
|
-
placeholder:
|
|
34
|
-
className:
|
|
33
|
+
placeholder: ze,
|
|
34
|
+
className: Ge,
|
|
35
35
|
formatDate: d,
|
|
36
36
|
required: Y,
|
|
37
|
-
showOutsideDays:
|
|
38
|
-
parseDate:
|
|
39
|
-
monthYearSelectType:
|
|
40
|
-
minYear:
|
|
41
|
-
maxYear:
|
|
42
|
-
dayStatus:
|
|
37
|
+
showOutsideDays: be = !0,
|
|
38
|
+
parseDate: J,
|
|
39
|
+
monthYearSelectType: De,
|
|
40
|
+
minYear: _e,
|
|
41
|
+
maxYear: Ce,
|
|
42
|
+
dayStatus: Me,
|
|
43
43
|
tagsDirection: Xe,
|
|
44
|
-
showNavigation:
|
|
45
|
-
selectionLevel:
|
|
44
|
+
showNavigation: xe = !0,
|
|
45
|
+
selectionLevel: O = "days",
|
|
46
46
|
initialView: j,
|
|
47
|
-
locale:
|
|
47
|
+
locale: Ae = St,
|
|
48
48
|
localeCode: H = "et-EE",
|
|
49
49
|
initialMonth: W,
|
|
50
50
|
closeOnSelect: Je,
|
|
51
|
-
footer:
|
|
51
|
+
footer: ve,
|
|
52
52
|
defaultValue: S,
|
|
53
|
-
minDate:
|
|
54
|
-
maxDate:
|
|
55
|
-
disablePast:
|
|
56
|
-
disableFuture:
|
|
57
|
-
shouldDisableMonth:
|
|
58
|
-
shouldDisableYear:
|
|
59
|
-
readOnly:
|
|
60
|
-
availableDays:
|
|
53
|
+
minDate: K,
|
|
54
|
+
maxDate: Q,
|
|
55
|
+
disablePast: Fe,
|
|
56
|
+
disableFuture: we,
|
|
57
|
+
shouldDisableMonth: Z,
|
|
58
|
+
shouldDisableYear: ee,
|
|
59
|
+
readOnly: E,
|
|
60
|
+
availableDays: Ne,
|
|
61
61
|
inputProps: i,
|
|
62
|
-
modal:
|
|
62
|
+
modal: te = !1,
|
|
63
63
|
modalProps: Ke,
|
|
64
64
|
modalTitle: Qe,
|
|
65
|
-
disabledDateErrorMessage: Ze =
|
|
66
|
-
invalidDateErrorMessage: et =
|
|
65
|
+
disabledDateErrorMessage: Ze = G("dateField.disabledDateError"),
|
|
66
|
+
invalidDateErrorMessage: et = G("dateField.invalidDateError"),
|
|
67
67
|
useNativePicker: Zt,
|
|
68
68
|
enableCalendar: er,
|
|
69
69
|
calendarTrigger: tr,
|
|
@@ -74,32 +74,32 @@ const Qt = F.forwardRef((w, N) => {
|
|
|
74
74
|
lg: nr,
|
|
75
75
|
xl: sr,
|
|
76
76
|
xxl: lr,
|
|
77
|
-
...
|
|
78
|
-
} = w, c =
|
|
77
|
+
...ke
|
|
78
|
+
} = w, c = qe && o === "single", Pe = Ut(w.defaultServerBreakpoint), A = Se(Pe, "md"), [tt, p] = _(L ?? S), [h, R] = _(!1), [re, Oe] = _(!1), [rt, Ee] = _(j ?? O), [ae, b] = _(""), [Re, u] = _(!1), [Ie, U] = _(!1), g = m && !c && !E && (te === !0 || typeof te == "string" && Se(Pe, te)), Ve = A && !g && typeof X == "number" && X > 1 ? 1 : X, { current: f } = F.useRef("selected" in w), n = f ? L : tt, ie = F.useRef(null), Be = F.useRef(null), at = F.useCallback(
|
|
79
79
|
(e) => {
|
|
80
|
-
|
|
80
|
+
ie.current = e, typeof N == "function" ? N(e) : N && (N.current = e);
|
|
81
81
|
},
|
|
82
82
|
[N]
|
|
83
83
|
), it = (e) => {
|
|
84
84
|
if (!e) return "";
|
|
85
|
-
const t = e.getFullYear(), r = String(e.getMonth() + 1).padStart(2, "0"),
|
|
86
|
-
return `${t}-${r}-${
|
|
87
|
-
}, ot = c &&
|
|
85
|
+
const t = e.getFullYear(), r = String(e.getMonth() + 1).padStart(2, "0"), s = String(e.getDate()).padStart(2, "0");
|
|
86
|
+
return `${t}-${r}-${s}`;
|
|
87
|
+
}, ot = c && n instanceof Date ? it(n) : "", oe = me((e, t) => e instanceof Date ? e : Array.isArray(e) && e.length > 0 ? [...e].sort((r, s) => r.getTime() - s.getTime())[0] : e && typeof e == "object" && "from" in e && e.from instanceof Date ? e.from : e && typeof e == "object" && "to" in e && e.to instanceof Date ? e.to : t ?? /* @__PURE__ */ new Date(), []), [nt, ne] = _(() => oe(n, W));
|
|
88
88
|
T(() => {
|
|
89
|
-
h || oe(
|
|
90
|
-
}, [
|
|
91
|
-
h && Ee(j ??
|
|
92
|
-
}, [h,
|
|
89
|
+
h || ne(oe(n, W));
|
|
90
|
+
}, [n, W, h, oe]), T(() => {
|
|
91
|
+
h && Ee(j ?? O);
|
|
92
|
+
}, [h, O, j]), T(() => {
|
|
93
93
|
f && p(L);
|
|
94
94
|
}, [L, f]);
|
|
95
|
-
const C =
|
|
95
|
+
const C = pe(
|
|
96
96
|
() => new Intl.DateTimeFormat(H, {
|
|
97
97
|
day: "2-digit",
|
|
98
98
|
month: "2-digit",
|
|
99
99
|
year: "numeric"
|
|
100
100
|
}),
|
|
101
101
|
[H]
|
|
102
|
-
), M =
|
|
102
|
+
), M = me(
|
|
103
103
|
(e) => {
|
|
104
104
|
if (!e) return "";
|
|
105
105
|
if (e instanceof Date) return C.format(e);
|
|
@@ -111,84 +111,88 @@ const Qt = F.forwardRef((w, N) => {
|
|
|
111
111
|
return "";
|
|
112
112
|
},
|
|
113
113
|
[C]
|
|
114
|
-
),
|
|
114
|
+
), se = Je ?? o === "single", Te = o === "multiple" && Array.isArray(n) ? n.map((e, t) => ({
|
|
115
115
|
id: t,
|
|
116
116
|
label: d ? d(e) : M(e),
|
|
117
117
|
date: e
|
|
118
|
-
})) : [],
|
|
118
|
+
})) : [], q = pe(() => {
|
|
119
119
|
const e = [];
|
|
120
|
-
return k && (Array.isArray(k) ? e.push(...k) : e.push(k)), P && (Array.isArray(P) ? e.push(...P) : e.push(P)),
|
|
120
|
+
return k && (Array.isArray(k) ? e.push(...k) : e.push(k)), P && (Array.isArray(P) ? e.push(...P) : e.push(P)), K && e.push({ before: K }), Q && e.push({ after: Q }), Fe && e.push({ before: /* @__PURE__ */ new Date() }), we && e.push({ after: /* @__PURE__ */ new Date() }), Z && e.push((t) => Z(t)), ee && e.push((t) => ee(t)), e;
|
|
121
121
|
}, [
|
|
122
122
|
k,
|
|
123
123
|
P,
|
|
124
|
-
X,
|
|
125
|
-
J,
|
|
126
|
-
ve,
|
|
127
|
-
Fe,
|
|
128
124
|
K,
|
|
129
|
-
Q
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
125
|
+
Q,
|
|
126
|
+
Fe,
|
|
127
|
+
we,
|
|
128
|
+
Z,
|
|
129
|
+
ee
|
|
130
|
+
]), v = me(
|
|
131
|
+
(e) => Kt(e, q),
|
|
132
|
+
[q]
|
|
133
|
+
), st = (e, t, r, s) => {
|
|
134
|
+
const l = o === "range" ? Lt(e, n, t) : e;
|
|
135
|
+
if (u(!1), f || p(l), a == null || a(l, t, r, s), l) {
|
|
136
136
|
const x = d ? d(l) : M(l);
|
|
137
137
|
b(x);
|
|
138
138
|
} else
|
|
139
139
|
b("");
|
|
140
|
-
|
|
140
|
+
se && R(!1);
|
|
141
141
|
}, lt = (e) => {
|
|
142
142
|
if (v(e)) return;
|
|
143
|
-
const t =
|
|
143
|
+
const t = o === "range" ? { from: e, to: void 0 } : o === "multiple" ? [...Array.isArray(n) ? n : [], e] : e;
|
|
144
144
|
u(!1), f || p(t), a == null || a(t, e, {}, {});
|
|
145
145
|
const r = d ? d(t) : M(t);
|
|
146
|
-
b(r),
|
|
147
|
-
}, ft =
|
|
146
|
+
b(r), se && R(!1);
|
|
147
|
+
}, ft = pe(() => {
|
|
148
148
|
const e = Tt(C), t = new RegExp(`^${$t(e)}$`), { fieldOrder: r } = e;
|
|
149
|
-
return (
|
|
150
|
-
const l =
|
|
149
|
+
return (s) => {
|
|
150
|
+
const l = s.match(t);
|
|
151
151
|
if (!l) return;
|
|
152
152
|
const x = {};
|
|
153
153
|
r.forEach((xt, At) => {
|
|
154
154
|
x[xt] = Number(l[At + 1]);
|
|
155
155
|
});
|
|
156
|
-
const { day:
|
|
157
|
-
if (
|
|
158
|
-
const V = new Date(
|
|
159
|
-
if (!(isNaN(V.getTime()) || V.getFullYear() !==
|
|
156
|
+
const { day: de, month: ce, year: ue } = x;
|
|
157
|
+
if (de === void 0 || ce === void 0 || ue === void 0) return;
|
|
158
|
+
const V = new Date(ue, ce - 1, de);
|
|
159
|
+
if (!(isNaN(V.getTime()) || V.getFullYear() !== ue || V.getMonth() !== ce - 1 || V.getDate() !== de))
|
|
160
160
|
return V;
|
|
161
161
|
};
|
|
162
|
-
}, [C]),
|
|
163
|
-
}))(e),
|
|
164
|
-
if (b(e),
|
|
165
|
-
u(!1),
|
|
162
|
+
}, [C]), $e = (e) => (J ?? (o === "single" ? ft : () => {
|
|
163
|
+
}))(e), Le = (e) => o === "single" && e instanceof Date || o === "multiple" && Array.isArray(e) || o === "range" && !!e && !Array.isArray(e) && "from" in e, dt = (e) => {
|
|
164
|
+
if (b(e), U(!1), e.trim() === "") {
|
|
165
|
+
u(!1), n !== void 0 && (f || p(void 0), a == null || a(void 0, void 0, {}, {}));
|
|
166
166
|
return;
|
|
167
167
|
}
|
|
168
|
-
const t =
|
|
169
|
-
if (
|
|
168
|
+
const t = $e(e);
|
|
169
|
+
if (!Le(t)) {
|
|
170
170
|
u(!1);
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
173
|
-
const
|
|
174
|
-
if (t instanceof Date && v(t) || Array.isArray(t) && t.some((x) => x instanceof Date && v(x)) || !!
|
|
173
|
+
const s = t && !Array.isArray(t) && "from" in t ? t : null;
|
|
174
|
+
if (t instanceof Date && v(t) || Array.isArray(t) && t.some((x) => x instanceof Date && v(x)) || !!s && (s.from && v(s.from) || s.to && v(s.to))) {
|
|
175
175
|
u(!0);
|
|
176
176
|
return;
|
|
177
177
|
}
|
|
178
|
-
u(!1), f || p(t), a == null || a(t, t, {}, {}), t instanceof Date &&
|
|
178
|
+
u(!1), f || p(t), a == null || a(t, t, {}, {}), t instanceof Date && ne(t), se && R(!1);
|
|
179
179
|
}, ct = () => {
|
|
180
|
-
if (
|
|
181
|
-
|
|
180
|
+
if (ae.trim() === "") {
|
|
181
|
+
U(!1);
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
if (!J && o !== "single") {
|
|
185
|
+
U(!1);
|
|
182
186
|
return;
|
|
183
187
|
}
|
|
184
|
-
|
|
188
|
+
U(!Le($e(ae)));
|
|
185
189
|
};
|
|
186
190
|
T(() => {
|
|
187
191
|
if (f) {
|
|
188
|
-
const e = d ? d(
|
|
192
|
+
const e = d ? d(n) : M(n);
|
|
189
193
|
b(e);
|
|
190
194
|
}
|
|
191
|
-
}, [
|
|
195
|
+
}, [n, f, d, M]), T(() => {
|
|
192
196
|
if (!f && S) {
|
|
193
197
|
const e = d ? d(S) : M(S);
|
|
194
198
|
b(e);
|
|
@@ -201,9 +205,9 @@ const Qt = F.forwardRef((w, N) => {
|
|
|
201
205
|
middleware: [
|
|
202
206
|
zt(Yt),
|
|
203
207
|
Gt(),
|
|
204
|
-
Xt({ padding:
|
|
208
|
+
Xt({ padding: We }),
|
|
205
209
|
Jt({
|
|
206
|
-
padding:
|
|
210
|
+
padding: We,
|
|
207
211
|
apply({ availableWidth: e, elements: t }) {
|
|
208
212
|
const r = t.floating;
|
|
209
213
|
if (r.style.width = "", r.style.maxWidth = "", r.style.overflowX = "", A) return;
|
|
@@ -212,24 +216,24 @@ const Qt = F.forwardRef((w, N) => {
|
|
|
212
216
|
})
|
|
213
217
|
],
|
|
214
218
|
whileElementsMounted: qt
|
|
215
|
-
}), { refs: I, context:
|
|
219
|
+
}), { refs: I, context: z, x: mt, y: pt, strategy: ht } = ut, gt = Nt(z), Ye = kt([
|
|
216
220
|
...m && !c && $ === "input" && !g ? [gt] : [],
|
|
217
|
-
Pt(
|
|
221
|
+
Pt(z, {
|
|
218
222
|
outsidePress: (e) => {
|
|
219
223
|
const t = e.target;
|
|
220
224
|
return !(t != null && t.closest('[role="menu"], [role="listbox"]'));
|
|
221
225
|
}
|
|
222
226
|
}),
|
|
223
|
-
|
|
227
|
+
Ot(z, { role: "dialog" })
|
|
224
228
|
]);
|
|
225
229
|
F.useEffect(() => {
|
|
226
230
|
var t, r;
|
|
227
|
-
const e =
|
|
231
|
+
const e = o === "multiple" ? ((t = Be.current) == null ? void 0 : t.wrapper) ?? null : ((r = ie.current) == null ? void 0 : r.input) ?? null;
|
|
228
232
|
I.setPositionReference(e ?? I.reference.current);
|
|
229
|
-
}, [
|
|
233
|
+
}, [o, h, I]);
|
|
230
234
|
const yt = () => {
|
|
231
235
|
var t;
|
|
232
|
-
const e = (t =
|
|
236
|
+
const e = (t = ie.current) == null ? void 0 : t.input;
|
|
233
237
|
if (e) {
|
|
234
238
|
if (typeof e.showPicker == "function")
|
|
235
239
|
try {
|
|
@@ -239,8 +243,8 @@ const Qt = F.forwardRef((w, N) => {
|
|
|
239
243
|
}
|
|
240
244
|
e.focus();
|
|
241
245
|
}
|
|
242
|
-
},
|
|
243
|
-
!m ||
|
|
246
|
+
}, le = () => {
|
|
247
|
+
!m || E || (c ? yt() : g ? Oe(!0) : R((e) => !e));
|
|
244
248
|
}, bt = (e) => {
|
|
245
249
|
if (u(!1), f || p(e), a == null || a(e, e, {}, {}), e) {
|
|
246
250
|
const t = d ? d(e) : M(e);
|
|
@@ -252,9 +256,9 @@ const Qt = F.forwardRef((w, N) => {
|
|
|
252
256
|
u(!1), f || p(void 0), a == null || a(void 0, void 0, {}, {});
|
|
253
257
|
return;
|
|
254
258
|
}
|
|
255
|
-
const [t, r,
|
|
256
|
-
if (!t || !r || !
|
|
257
|
-
const l = new Date(t, r - 1,
|
|
259
|
+
const [t, r, s] = e.split("-").map(Number);
|
|
260
|
+
if (!t || !r || !s) return;
|
|
261
|
+
const l = new Date(t, r - 1, s);
|
|
258
262
|
if (!Number.isNaN(l.getTime())) {
|
|
259
263
|
if (v(l)) {
|
|
260
264
|
u(!0);
|
|
@@ -262,48 +266,48 @@ const Qt = F.forwardRef((w, N) => {
|
|
|
262
266
|
}
|
|
263
267
|
u(!1), f || p(l), a == null || a(l, l, {}, {});
|
|
264
268
|
}
|
|
265
|
-
}, _t =
|
|
266
|
-
g && $ === "input" ? { onClick: () =>
|
|
269
|
+
}, _t = Ye.getReferenceProps(
|
|
270
|
+
g && $ === "input" ? { onClick: () => le() } : void 0
|
|
267
271
|
), {
|
|
268
272
|
role: fr,
|
|
269
273
|
"aria-expanded": dr,
|
|
270
274
|
"aria-haspopup": cr,
|
|
271
275
|
"aria-controls": Ct,
|
|
272
276
|
...Mt
|
|
273
|
-
} = _t,
|
|
274
|
-
"aria-label":
|
|
275
|
-
"aria-expanded": g ?
|
|
277
|
+
} = _t, je = g ? void 0 : Ct, fe = G("dateField.openCalendar"), He = {
|
|
278
|
+
"aria-label": fe,
|
|
279
|
+
"aria-expanded": g ? re : h,
|
|
276
280
|
"aria-haspopup": "dialog",
|
|
277
|
-
"aria-controls":
|
|
281
|
+
"aria-controls": je
|
|
278
282
|
};
|
|
279
283
|
return /* @__PURE__ */ vt(Ft, { children: [
|
|
280
284
|
/* @__PURE__ */ D(
|
|
281
285
|
"div",
|
|
282
286
|
{
|
|
283
|
-
className: B(y["tedi-date-field__container"],
|
|
287
|
+
className: B(y["tedi-date-field__container"], Ge),
|
|
284
288
|
...Mt,
|
|
285
289
|
ref: I.setReference,
|
|
286
|
-
children:
|
|
290
|
+
children: o === "multiple" ? /* @__PURE__ */ D(
|
|
287
291
|
Vt,
|
|
288
292
|
{
|
|
289
293
|
...i,
|
|
290
|
-
ref:
|
|
291
|
-
id:
|
|
292
|
-
label:
|
|
294
|
+
ref: Be,
|
|
295
|
+
id: ge,
|
|
296
|
+
label: ye,
|
|
293
297
|
tagsDirection: Xe,
|
|
294
|
-
values:
|
|
298
|
+
values: Te.map((e) => e.label),
|
|
295
299
|
icon: "calendar_today",
|
|
296
|
-
onIconClick:
|
|
297
|
-
iconButtonProps: m ?
|
|
298
|
-
isClearable:
|
|
300
|
+
onIconClick: le,
|
|
301
|
+
iconButtonProps: m ? He : { "aria-label": fe },
|
|
302
|
+
isClearable: he,
|
|
299
303
|
required: Y,
|
|
300
304
|
onChange: (e) => {
|
|
301
|
-
if (!Array.isArray(
|
|
302
|
-
const t =
|
|
305
|
+
if (!Array.isArray(n)) return;
|
|
306
|
+
const t = Te.filter((r) => e.includes(r.label)).map((r) => r.date);
|
|
303
307
|
f || p(t), a == null || a(t, {}, {}, {});
|
|
304
308
|
},
|
|
305
309
|
className: B(y["tedi-date-field__textfield"], {
|
|
306
|
-
[y["tedi-date-field__icon--disabled"]]: !m ||
|
|
310
|
+
[y["tedi-date-field__icon--disabled"]]: !m || E
|
|
307
311
|
})
|
|
308
312
|
}
|
|
309
313
|
) : /* @__PURE__ */ D(
|
|
@@ -311,38 +315,39 @@ const Qt = F.forwardRef((w, N) => {
|
|
|
311
315
|
{
|
|
312
316
|
...i,
|
|
313
317
|
ref: at,
|
|
314
|
-
id:
|
|
315
|
-
label:
|
|
316
|
-
readOnly:
|
|
317
|
-
value: c ? ot :
|
|
318
|
-
placeholder:
|
|
318
|
+
id: ge,
|
|
319
|
+
label: ye,
|
|
320
|
+
readOnly: E,
|
|
321
|
+
value: c ? ot : ae,
|
|
322
|
+
placeholder: ze,
|
|
319
323
|
icon: "calendar_today",
|
|
320
|
-
isClearable:
|
|
321
|
-
onIconClick:
|
|
322
|
-
iconButtonProps: m && !c ?
|
|
324
|
+
isClearable: he,
|
|
325
|
+
onIconClick: le,
|
|
326
|
+
iconButtonProps: m && !c ? He : { "aria-label": fe },
|
|
323
327
|
onChange: (e) => c ? Dt(e) : dt(e),
|
|
324
328
|
onBlur: (e) => {
|
|
325
329
|
var t;
|
|
326
330
|
c || ct(), (t = i == null ? void 0 : i.onBlur) == null || t.call(i, e);
|
|
327
331
|
},
|
|
328
332
|
required: Y,
|
|
329
|
-
invalid:
|
|
333
|
+
invalid: Re || Ie || (i == null ? void 0 : i.invalid),
|
|
330
334
|
helper: (() => {
|
|
331
|
-
const e = i == null ? void 0 : i.helper, t =
|
|
335
|
+
const e = i == null ? void 0 : i.helper, t = Re ? Ze : Ie ? et : null, r = t ? { text: t, type: "error" } : null;
|
|
332
336
|
return r ? e ? Array.isArray(e) ? [...e, r] : [e, r] : r : e;
|
|
333
337
|
})(),
|
|
334
338
|
className: B(y["tedi-date-field__textfield"], {
|
|
335
339
|
[y["tedi-date-field__textfield--disabled"]]: i == null ? void 0 : i.disabled,
|
|
336
|
-
[y["tedi-date-field__icon--disabled"]]: !m ||
|
|
340
|
+
[y["tedi-date-field__icon--disabled"]]: !m || E
|
|
337
341
|
}),
|
|
338
342
|
input: {
|
|
339
343
|
...i == null ? void 0 : i.input,
|
|
344
|
+
...!J && o !== "single" && { readOnly: !0 },
|
|
340
345
|
...c && { type: "date" },
|
|
341
346
|
...m && !c && $ === "input" ? {
|
|
342
347
|
role: "combobox",
|
|
343
348
|
"aria-haspopup": "dialog",
|
|
344
|
-
"aria-expanded": g ?
|
|
345
|
-
"aria-controls":
|
|
349
|
+
"aria-expanded": g ? re : h,
|
|
350
|
+
"aria-controls": je
|
|
346
351
|
} : {}
|
|
347
352
|
}
|
|
348
353
|
}
|
|
@@ -352,40 +357,40 @@ const Qt = F.forwardRef((w, N) => {
|
|
|
352
357
|
g && /* @__PURE__ */ D(
|
|
353
358
|
jt,
|
|
354
359
|
{
|
|
355
|
-
open:
|
|
356
|
-
onOpenChange:
|
|
357
|
-
value:
|
|
360
|
+
open: re,
|
|
361
|
+
onOpenChange: Oe,
|
|
362
|
+
value: n,
|
|
358
363
|
onConfirm: bt,
|
|
359
|
-
mode:
|
|
360
|
-
numberOfMonths:
|
|
361
|
-
locale:
|
|
364
|
+
mode: o,
|
|
365
|
+
numberOfMonths: Ve,
|
|
366
|
+
locale: Ae,
|
|
362
367
|
localeCode: H,
|
|
363
|
-
showOutsideDays:
|
|
364
|
-
disabledMatchers:
|
|
368
|
+
showOutsideDays: be,
|
|
369
|
+
disabledMatchers: q,
|
|
365
370
|
required: Y,
|
|
366
|
-
availableDays:
|
|
367
|
-
footer:
|
|
368
|
-
monthYearSelectType:
|
|
369
|
-
minYear:
|
|
370
|
-
maxYear:
|
|
371
|
-
dayStatus:
|
|
372
|
-
showNavigation:
|
|
373
|
-
selectionLevel:
|
|
371
|
+
availableDays: Ne,
|
|
372
|
+
footer: ve,
|
|
373
|
+
monthYearSelectType: De,
|
|
374
|
+
minYear: _e,
|
|
375
|
+
maxYear: Ce,
|
|
376
|
+
dayStatus: Me,
|
|
377
|
+
showNavigation: xe,
|
|
378
|
+
selectionLevel: O,
|
|
374
379
|
initialView: j,
|
|
375
380
|
initialMonth: W,
|
|
376
381
|
modalProps: Ke,
|
|
377
|
-
...
|
|
382
|
+
...ke,
|
|
378
383
|
title: Qe
|
|
379
384
|
}
|
|
380
385
|
),
|
|
381
|
-
m && !c && !g && /* @__PURE__ */ D(
|
|
386
|
+
m && !c && !g && /* @__PURE__ */ D(Et, { children: h && /* @__PURE__ */ D(Rt, { context: z, modal: !1, initialFocus: -1, children: /* @__PURE__ */ D(
|
|
382
387
|
"div",
|
|
383
388
|
{
|
|
384
389
|
ref: I.setFloating,
|
|
385
390
|
className: B({
|
|
386
391
|
[y["tedi-date-field__calendar-popover--fullwidth"]]: A
|
|
387
392
|
}),
|
|
388
|
-
...
|
|
393
|
+
...Ye.getFloatingProps({
|
|
389
394
|
style: {
|
|
390
395
|
position: ht,
|
|
391
396
|
top: pt ?? 0,
|
|
@@ -396,27 +401,27 @@ const Qt = F.forwardRef((w, N) => {
|
|
|
396
401
|
children: /* @__PURE__ */ D(
|
|
397
402
|
It,
|
|
398
403
|
{
|
|
399
|
-
...
|
|
400
|
-
numberOfMonths:
|
|
404
|
+
...ke,
|
|
405
|
+
numberOfMonths: Ve,
|
|
401
406
|
view: rt,
|
|
402
|
-
selectionLevel:
|
|
407
|
+
selectionLevel: O,
|
|
403
408
|
currentMonth: nt,
|
|
404
|
-
setCurrentMonth:
|
|
409
|
+
setCurrentMonth: ne,
|
|
405
410
|
setView: Ee,
|
|
406
|
-
mode:
|
|
407
|
-
value:
|
|
408
|
-
locale:
|
|
411
|
+
mode: o,
|
|
412
|
+
value: n,
|
|
413
|
+
locale: Ae,
|
|
409
414
|
localeCode: H,
|
|
410
|
-
showOutsideDays:
|
|
411
|
-
disabledMatchers:
|
|
415
|
+
showOutsideDays: be,
|
|
416
|
+
disabledMatchers: q,
|
|
412
417
|
required: Y,
|
|
413
|
-
availableDays:
|
|
414
|
-
footer:
|
|
415
|
-
monthYearSelectType:
|
|
416
|
-
minYear:
|
|
417
|
-
maxYear:
|
|
418
|
-
dayStatus:
|
|
419
|
-
showNavigation:
|
|
418
|
+
availableDays: Ne,
|
|
419
|
+
footer: ve,
|
|
420
|
+
monthYearSelectType: De,
|
|
421
|
+
minYear: _e,
|
|
422
|
+
maxYear: Ce,
|
|
423
|
+
dayStatus: Me,
|
|
424
|
+
showNavigation: xe,
|
|
420
425
|
handleSelect: st,
|
|
421
426
|
applyValue: lt,
|
|
422
427
|
className: B(y["tedi-date-field__calendar"], {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),_=require("../../../../../external/classnames/index.cjs.js"),i=require("react"),K=require("../../base/icon/icon.cjs.js"),pe=require("../../buttons/closing-button/closing-button.cjs.js"),_e=require("../../misc/separator/separator.cjs.js"),D=require("../feedback-text/feedback-text.cjs.js"),he=require("../field/field.cjs.js"),ge=require("../form-label/form-label.cjs.js"),k=require("../input-group/input-group.cjs.js"),r=require("./textfield.module.scss.cjs.js"),Ie=require("../../../helpers/hooks/use-breakpoint-props.cjs.js"),je=require("../../../providers/label-provider/use-labels.cjs.js"),Ae={large:24,default:18},q=i.forwardRef((h,U)=>{var V;const{getCurrentBreakpointProps:J}=Ie.useBreakpointProps(h.defaultServerBreakpoint),{id:Ne,label:g,className:Q,inputClassName:W,disabled:c,required:C,hideLabel:S,invalid:u,readOnly:B,icon:s,onIconClick:b,iconButtonProps:y,size:d="default",placeholder:X,isArrowsHidden:Y=!0,isClearable:F,onClear:v,onChange:o,onChangeEvent:Z,onKeyUp:G,onKeyDown:ee,onKeyPress:te,defaultValue:T,value:I,onFocus:j,onBlur:A,onClick:re,helper:e,input:a,name:ae,isTextArea:le,startSlot:ie,endSlot:se,...ne}=J(h)||{},{getLabel:w}=je.useLabels(),z=i.useRef(null),L=i.useRef(null),[de,R]=i.useState(I??T??""),M=I??de,f=!!(F&&M&&!B),x=(V=k.useOptionalInputGroup)==null?void 0:V.call(k),oe=i.useId(),ce=x==null?void 0:x.hasExternalLabel,m=h.id??(x==null?void 0:x.inputId)??oe;i.useImperativeHandle(U,()=>({get input(){return L.current},get inner(){return z.current}}));const P=i.useMemo(()=>Array.isArray(e)?u||e.some(t=>t.type==="error"):u||(e==null?void 0:e.type)==="error",[u,e]),ue=i.useMemo(()=>!e||Array.isArray(e)&&e.length===0?!1:Array.isArray(e)?!u&&e.every(t=>t.type==="valid"):!u&&e.type==="valid",[u,e]),fe=d==="large"?"default":d,p=I!==void 0,xe=i.useCallback(t=>{p||R(t),o==null||o(t)},[p,o]),O=i.useCallback(()=>{p||R(""),o==null||o(""),v==null||v()},[p,o,v]),$=i.useCallback(()=>{if(!s)return null;const N={size:d==="large"?24:d==="small"?!!b?18:16:18,className:r.default["tedi-textfield__icon"]},H=typeof s=="string"?{...N,name:s}:{...N,...s,className:_.default(N.className,s.className)};return b?l.jsx("button",{type:"button",...y,className:_.default(r.default["tedi-textfield__icon-wrapper"],y==null?void 0:y.className),onClick:c?void 0:b,disabled:c,children:l.jsx(K.Icon,{...H})}):l.jsx("div",{className:r.default["tedi-textfield__icon-wrapper"],"aria-hidden":"true",children:l.jsx(K.Icon,{...H})})},[s,d,b,y,c]),E=i.useMemo(()=>f?l.jsx(pe.ClosingButton,{iconSize:Ae[d==="large"?"large":"default"],onClick:c?void 0:O,disabled:c,title:w("clear"),className:r.default["tedi-textfield__clear-button"]}):null,[f,d,c,O,w]),me=i.useMemo(()=>!f&&!s?null:l.jsxs("div",{className:r.default["tedi-textfield__right-area"],children:[E,f&&s&&l.jsx(_e.Separator,{color:"primary",axis:"vertical",className:r.default["tedi-textfield__separator"]}),s&&$()]}),[f,s,E,$]),ye=l.jsx(he.Field,{...a,id:m,name:ae,value:M,defaultValue:T,onChange:xe,onChangeEvent:Z,disabled:c,readOnly:B||(a==null?void 0:a.readOnly),required:C,invalid:P,placeholder:X,className:_.default(r.default["tedi-textfield__input"],W,{[r.default["tedi-textfield__input--hidden-arrows"]]:Y}),onFocus:t=>{var n;(n=a==null?void 0:a.onFocus)==null||n.call(a,t),j==null||j(t)},onBlur:t=>{var n;(n=a==null?void 0:a.onBlur)==null||n.call(a,t),A==null||A(t)},isTextArea:le,"aria-describedby":!e||Array.isArray(e)&&e.length===0?void 0:Array.isArray(e)?e.map((t,n)=>`${m}-helper-${n}`).join(" "):`${m}-helper`,"aria-label":S&&typeof g=="string"?g:void 0,ref:L}),be=_.default(r.default["tedi-textfield"],{[r.default[`tedi-textfield--${d}`]]:d},{[r.default["tedi-textfield--with-icon"]]:s},{[r.default["tedi-textfield--invalid"]]:P},{[r.default["tedi-textfield--valid"]]:ue},{[r.default["tedi-textfield--clearable"]]:f},Q),ve=()=>!e||Array.isArray(e)&&e.length===0?null:l.jsx("div",{className:r.default["tedi-textfield__feedback-wrapper"],children:Array.isArray(e)?e.map((t,n)=>l.jsx(D.FeedbackText,{...t,id:`${m}-helper-${n}`},n)):l.jsx(D.FeedbackText,{...e,id:`${m}-helper`})});return l.jsxs("div",{"data-name":"textfield",...ne,className:be,children:[!ce&&l.jsx(ge.FormLabel,{id:m,label:g,required:C,hideLabel:S,size:fe}),l.jsxs("div",{className:r.default["tedi-textfield__inner"],onKeyDown:ee,onKeyUp:G,onKeyPress:te,onClick:re,ref:z,children:[ie,ye,se,(F||s)&&me]}),ve()]})});q.displayName="TextField";exports.TextField=q;exports.default=q;
|