@povio/ui 2.3.2-rc.1 → 2.3.2-rc.3
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/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +2 -1
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +7 -2
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +2 -1
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +7 -2
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +2 -1
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +7 -2
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +1 -0
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +3 -2
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +109 -108
- package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +1 -0
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +2 -1
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +14 -99
- package/dist/components/inputs/Inputs/InputItem.d.ts +2 -2
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +1 -0
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +1 -1
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +73 -3
- package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +3 -3
- package/dist/components/inputs/Selection/Select/QuerySelect.js +72 -3
- package/dist/components/inputs/Selection/Select/Select.js +1 -0
- package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +5 -0
- package/dist/components/inputs/Selection/shared/querySelect.utils.js +15 -3
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +2 -0
- package/dist/components/inputs/Skeleton/InputFrame.js +353 -333
- package/dist/config/uiConfig.context.d.ts +1 -0
- package/dist/config/uiConfig.context.js +1 -0
- package/dist/tw-ui-plugin.js +4 -0
- package/package.json +1 -1
- package/dist/components/inputs/shared/StaticInput.d.ts +0 -38
|
@@ -14,101 +14,104 @@ import { clsx } from "clsx";
|
|
|
14
14
|
import { isValidElement, useId } from "react";
|
|
15
15
|
//#region src/components/inputs/Skeleton/InputFrame.tsx
|
|
16
16
|
var InputFrame = (props) => {
|
|
17
|
-
const $ = c(
|
|
17
|
+
const $ = c(189);
|
|
18
18
|
const ui = UIConfig.useConfig();
|
|
19
19
|
const inputBaseCva = UIStyle.useCva("input.baseCva", inputBase);
|
|
20
20
|
const inputSizeCva = UIStyle.useCva("input.sizeCva", inputSize);
|
|
21
21
|
const inputContentWrapperCva = UIStyle.useCva("input.contentWrapperCva", inputContentWrapper);
|
|
22
22
|
const typographyCva = UIStyle.useCva("typography.cva", typography);
|
|
23
23
|
const generatedInputId = useId();
|
|
24
|
-
const { ref, children, formFieldRef, labelProps: labelPropsProp, headerProps, error, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isHeaderHidden, hideLabel: hideLabelProp, headerClassName, errorClassName, className, leadingContent, leadingIcon, actionContent, actionContentPlacement: t0, trailingContent, trailingIcon, trailingAction, unit, isLoading, action, isClearable: isClearableProp, showClear, renderStatic, onStaticInteract, clearClassName, onClear, dataAttributes, typographySize, id: idProp, inputClassName, contentClassName, contentWrapperClassName, contentAndTrailingClassName, wrapContentAndTrailing, wrapTrailingContent:
|
|
24
|
+
const { ref, children, formFieldRef, labelProps: labelPropsProp, headerProps, error, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isHeaderHidden, hideLabel: hideLabelProp, headerClassName, errorClassName, className, leadingContent, leadingIcon, actionContent, actionContentPlacement: t0, trailingContent, trailingIcon, trailingAction, unit, isLoading, action, isClearable: isClearableProp, showClear, renderStatic, onStaticInteract, clearClassName, onClear, dataAttributes, typographySize, id: idProp, inputClassName, contentClassName, contentWrapperClassName, contentGroup: t1, contentAndTrailingClassName, wrapContentAndTrailing, wrapTrailingContent: t2, reserveTrailingContent, labelPlacement: t3, trailingClassName, onMouseEnter, onFocusCapture, variant: variantProp, as: asProp, size: sizeProp } = props;
|
|
25
25
|
const actionContentPlacement = t0 === void 0 ? "content-wrapper" : t0;
|
|
26
|
-
const
|
|
27
|
-
const
|
|
26
|
+
const contentGroup = t1 === void 0 ? "input" : t1;
|
|
27
|
+
const wrapTrailingContent = t2 === void 0 ? true : t2;
|
|
28
|
+
const labelPlacement = t3 === void 0 ? "content-wrapper" : t3;
|
|
28
29
|
const as = asProp ?? ui.input.as;
|
|
29
30
|
const size = sizeProp ?? ui.input.size;
|
|
30
31
|
const variant = variantProp ?? ui.input.variant;
|
|
31
32
|
const hideLabel = hideLabelProp ?? ui.input.hideLabel;
|
|
32
33
|
const hasClear = !!(isClearableProp ?? ui.input.isClearable);
|
|
33
|
-
let
|
|
34
|
+
let t4;
|
|
34
35
|
if ($[0] !== leadingIcon) {
|
|
35
|
-
|
|
36
|
+
t4 = leadingIcon && isValidElement(leadingIcon);
|
|
36
37
|
$[0] = leadingIcon;
|
|
37
|
-
$[1] =
|
|
38
|
-
} else
|
|
39
|
-
const isLeadingIconElement =
|
|
40
|
-
let
|
|
38
|
+
$[1] = t4;
|
|
39
|
+
} else t4 = $[1];
|
|
40
|
+
const isLeadingIconElement = t4;
|
|
41
|
+
let t5;
|
|
41
42
|
if ($[2] !== trailingIcon) {
|
|
42
|
-
|
|
43
|
+
t5 = trailingIcon && isValidElement(trailingIcon);
|
|
43
44
|
$[2] = trailingIcon;
|
|
44
|
-
$[3] =
|
|
45
|
-
} else
|
|
46
|
-
const isTrailingIconElement =
|
|
45
|
+
$[3] = t5;
|
|
46
|
+
} else t5 = $[3];
|
|
47
|
+
const isTrailingIconElement = t5;
|
|
47
48
|
const hasTrailingContent = reserveTrailingContent || hasClear || !!trailingContent || !!unit || !!isLoading || !!action || !!trailingIcon || !!trailingAction;
|
|
48
49
|
const isTrailingInteractive = !!action || !!trailingAction || !!isTrailingIconElement || hasClear && !!showClear || !!trailingContent;
|
|
49
50
|
let dataAttributeProps;
|
|
50
51
|
let formFieldProps;
|
|
52
|
+
let isInputContentGroup;
|
|
51
53
|
let labelProps;
|
|
52
54
|
let t10;
|
|
53
55
|
let t11;
|
|
54
56
|
let t12;
|
|
55
57
|
let t13;
|
|
56
|
-
let
|
|
58
|
+
let t14;
|
|
59
|
+
let t15;
|
|
57
60
|
let t6;
|
|
58
61
|
let t7;
|
|
59
62
|
let t8;
|
|
60
63
|
let t9;
|
|
61
|
-
if ($[4] !== actionContent || $[5] !== actionContentPlacement || $[6] !== as || $[7] !== children || $[8] !== className || $[9] !== contentClassName || $[10] !==
|
|
64
|
+
if ($[4] !== actionContent || $[5] !== actionContentPlacement || $[6] !== as || $[7] !== children || $[8] !== className || $[9] !== contentClassName || $[10] !== contentGroup || $[11] !== contentWrapperClassName || $[12] !== dataAttributes || $[13] !== error || $[14] !== errorClassName || $[15] !== generatedInputId || $[16] !== headerClassName || $[17] !== headerProps || $[18] !== helperText || $[19] !== hideLabel || $[20] !== idProp || $[21] !== inputContentWrapperCva || $[22] !== inputSizeCva || $[23] !== isDisabled || $[24] !== isHeaderHidden || $[25] !== isLeadingIconElement || $[26] !== isRequired || $[27] !== label || $[28] !== labelPlacement || $[29] !== labelPropsProp || $[30] !== leadingContent || $[31] !== leadingIcon || $[32] !== rightContent || $[33] !== size || $[34] !== tooltipText || $[35] !== typographyCva || $[36] !== typographySize) {
|
|
62
65
|
dataAttributeProps = getInputFrameDataAttributeProps(dataAttributes);
|
|
63
66
|
const baseLabelProps = headerProps?.labelProps ?? labelPropsProp;
|
|
64
67
|
const inputId = idProp ?? baseLabelProps?.htmlFor ?? `input-frame_${generatedInputId}`;
|
|
65
|
-
let
|
|
66
|
-
if ($[
|
|
67
|
-
|
|
68
|
+
let t16;
|
|
69
|
+
if ($[51] !== baseLabelProps || $[52] !== inputId) {
|
|
70
|
+
t16 = {
|
|
68
71
|
...baseLabelProps,
|
|
69
72
|
htmlFor: inputId
|
|
70
73
|
};
|
|
71
|
-
$[
|
|
72
|
-
$[
|
|
73
|
-
$[
|
|
74
|
-
} else
|
|
75
|
-
labelProps =
|
|
76
|
-
const
|
|
77
|
-
const
|
|
78
|
-
let
|
|
79
|
-
if ($[
|
|
80
|
-
|
|
74
|
+
$[51] = baseLabelProps;
|
|
75
|
+
$[52] = inputId;
|
|
76
|
+
$[53] = t16;
|
|
77
|
+
} else t16 = $[53];
|
|
78
|
+
labelProps = t16;
|
|
79
|
+
const t17 = label ?? "";
|
|
80
|
+
const t18 = isHeaderHidden || as === "inline" || as === "filter" || as === "floating";
|
|
81
|
+
let t19;
|
|
82
|
+
if ($[54] !== className || $[55] !== error || $[56] !== errorClassName || $[57] !== headerClassName || $[58] !== helperText || $[59] !== hideLabel || $[60] !== isDisabled || $[61] !== isRequired || $[62] !== rightContent || $[63] !== t17 || $[64] !== t18 || $[65] !== tooltipText) {
|
|
83
|
+
t19 = {
|
|
81
84
|
error,
|
|
82
|
-
label:
|
|
85
|
+
label: t17,
|
|
83
86
|
tooltipText,
|
|
84
87
|
helperText,
|
|
85
88
|
isRequired,
|
|
86
89
|
rightContent,
|
|
87
|
-
isHeaderHidden:
|
|
90
|
+
isHeaderHidden: t18,
|
|
88
91
|
hideLabel,
|
|
89
92
|
isDisabled,
|
|
90
93
|
headerClassName,
|
|
91
94
|
errorClassName,
|
|
92
95
|
className
|
|
93
96
|
};
|
|
94
|
-
$[
|
|
95
|
-
$[
|
|
96
|
-
$[
|
|
97
|
-
$[
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
100
|
-
$[
|
|
101
|
-
$[
|
|
102
|
-
$[
|
|
103
|
-
$[60] = t15;
|
|
104
|
-
$[61] = t16;
|
|
105
|
-
$[62] = tooltipText;
|
|
97
|
+
$[54] = className;
|
|
98
|
+
$[55] = error;
|
|
99
|
+
$[56] = errorClassName;
|
|
100
|
+
$[57] = headerClassName;
|
|
101
|
+
$[58] = helperText;
|
|
102
|
+
$[59] = hideLabel;
|
|
103
|
+
$[60] = isDisabled;
|
|
104
|
+
$[61] = isRequired;
|
|
105
|
+
$[62] = rightContent;
|
|
106
106
|
$[63] = t17;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
107
|
+
$[64] = t18;
|
|
108
|
+
$[65] = tooltipText;
|
|
109
|
+
$[66] = t19;
|
|
110
|
+
} else t19 = $[66];
|
|
111
|
+
formFieldProps = t19;
|
|
112
|
+
let t20;
|
|
113
|
+
if ($[67] !== headerClassName || $[68] !== headerProps || $[69] !== helperText || $[70] !== hideLabel || $[71] !== isDisabled || $[72] !== isHeaderHidden || $[73] !== isRequired || $[74] !== label || $[75] !== labelProps || $[76] !== rightContent || $[77] !== tooltipText) {
|
|
114
|
+
t20 = headerProps ? {
|
|
112
115
|
...headerProps,
|
|
113
116
|
labelProps
|
|
114
117
|
} : {
|
|
@@ -122,86 +125,90 @@ var InputFrame = (props) => {
|
|
|
122
125
|
className: headerClassName,
|
|
123
126
|
labelProps
|
|
124
127
|
};
|
|
125
|
-
$[
|
|
126
|
-
$[
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
129
|
-
$[
|
|
130
|
-
$[
|
|
131
|
-
$[
|
|
132
|
-
$[
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
135
|
-
$[
|
|
136
|
-
$[
|
|
137
|
-
} else
|
|
138
|
-
const resolvedHeaderProps =
|
|
139
|
-
let
|
|
140
|
-
if ($[
|
|
141
|
-
|
|
142
|
-
$[
|
|
143
|
-
$[
|
|
144
|
-
} else
|
|
145
|
-
const shouldRenderLabel =
|
|
146
|
-
let
|
|
147
|
-
if ($[
|
|
148
|
-
|
|
128
|
+
$[67] = headerClassName;
|
|
129
|
+
$[68] = headerProps;
|
|
130
|
+
$[69] = helperText;
|
|
131
|
+
$[70] = hideLabel;
|
|
132
|
+
$[71] = isDisabled;
|
|
133
|
+
$[72] = isHeaderHidden;
|
|
134
|
+
$[73] = isRequired;
|
|
135
|
+
$[74] = label;
|
|
136
|
+
$[75] = labelProps;
|
|
137
|
+
$[76] = rightContent;
|
|
138
|
+
$[77] = tooltipText;
|
|
139
|
+
$[78] = t20;
|
|
140
|
+
} else t20 = $[78];
|
|
141
|
+
const resolvedHeaderProps = t20;
|
|
142
|
+
let t21;
|
|
143
|
+
if ($[79] !== as) {
|
|
144
|
+
t21 = as && ["filter", "floating"].includes(as);
|
|
145
|
+
$[79] = as;
|
|
146
|
+
$[80] = t21;
|
|
147
|
+
} else t21 = $[80];
|
|
148
|
+
const shouldRenderLabel = t21;
|
|
149
|
+
let t22;
|
|
150
|
+
if ($[81] !== as || $[82] !== resolvedHeaderProps || $[83] !== shouldRenderLabel || $[84] !== size) {
|
|
151
|
+
t22 = shouldRenderLabel ? /* @__PURE__ */ jsx(FormFieldLabel, {
|
|
149
152
|
as,
|
|
150
153
|
size,
|
|
151
154
|
...resolvedHeaderProps
|
|
152
155
|
}) : null;
|
|
153
|
-
$[
|
|
154
|
-
$[
|
|
155
|
-
$[
|
|
156
|
-
$[
|
|
157
|
-
$[
|
|
158
|
-
} else
|
|
159
|
-
const labelContent =
|
|
160
|
-
let
|
|
161
|
-
if ($[
|
|
162
|
-
|
|
163
|
-
$[
|
|
164
|
-
$[
|
|
165
|
-
$[
|
|
166
|
-
$[
|
|
167
|
-
} else
|
|
168
|
-
const resolvedContentWrapperClassName =
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
156
|
+
$[81] = as;
|
|
157
|
+
$[82] = resolvedHeaderProps;
|
|
158
|
+
$[83] = shouldRenderLabel;
|
|
159
|
+
$[84] = size;
|
|
160
|
+
$[85] = t22;
|
|
161
|
+
} else t22 = $[85];
|
|
162
|
+
const labelContent = t22;
|
|
163
|
+
let t23;
|
|
164
|
+
if ($[86] !== as || $[87] !== contentWrapperClassName || $[88] !== inputContentWrapperCva) {
|
|
165
|
+
t23 = contentWrapperClassName ?? inputContentWrapperCva({ as });
|
|
166
|
+
$[86] = as;
|
|
167
|
+
$[87] = contentWrapperClassName;
|
|
168
|
+
$[88] = inputContentWrapperCva;
|
|
169
|
+
$[89] = t23;
|
|
170
|
+
} else t23 = $[89];
|
|
171
|
+
const resolvedContentWrapperClassName = t23;
|
|
172
|
+
isInputContentGroup = contentGroup === "input";
|
|
173
|
+
t10 = dataAttributeProps;
|
|
174
|
+
const t24 = isInputContentGroup && inputFrameContentGroupClassNames.input;
|
|
175
|
+
if ($[90] !== as || $[91] !== contentClassName || $[92] !== inputSizeCva || $[93] !== size || $[94] !== t24 || $[95] !== typographyCva || $[96] !== typographySize) {
|
|
176
|
+
let t25;
|
|
177
|
+
if ($[98] !== typographyCva || $[99] !== typographySize) {
|
|
178
|
+
t25 = typographySize && typographyCva({ size: typographySize });
|
|
179
|
+
$[98] = typographyCva;
|
|
180
|
+
$[99] = typographySize;
|
|
181
|
+
$[100] = t25;
|
|
182
|
+
} else t25 = $[100];
|
|
183
|
+
t11 = clsx(t24, "group/input-frame flex min-w-0 w-full items-center gap-input-gap-input-text-to-elements", inputSizeCva({
|
|
178
184
|
size,
|
|
179
185
|
as
|
|
180
|
-
}),
|
|
181
|
-
$[
|
|
182
|
-
$[
|
|
183
|
-
$[
|
|
184
|
-
$[
|
|
185
|
-
$[
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
186
|
+
}), t25, contentClassName);
|
|
187
|
+
$[90] = as;
|
|
188
|
+
$[91] = contentClassName;
|
|
189
|
+
$[92] = inputSizeCva;
|
|
190
|
+
$[93] = size;
|
|
191
|
+
$[94] = t24;
|
|
192
|
+
$[95] = typographyCva;
|
|
193
|
+
$[96] = typographySize;
|
|
194
|
+
$[97] = t11;
|
|
195
|
+
} else t11 = $[97];
|
|
196
|
+
t12 = leadingContent;
|
|
197
|
+
if ($[101] !== isLeadingIconElement || $[102] !== leadingIcon) {
|
|
198
|
+
t13 = leadingIcon && /* @__PURE__ */ jsx("div", {
|
|
192
199
|
className: clsx(!isLeadingIconElement && "pointer-events-none"),
|
|
193
200
|
children: renderIconVisual(leadingIcon)
|
|
194
201
|
});
|
|
195
|
-
$[
|
|
196
|
-
$[
|
|
197
|
-
$[
|
|
198
|
-
} else
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
202
|
+
$[101] = isLeadingIconElement;
|
|
203
|
+
$[102] = leadingIcon;
|
|
204
|
+
$[103] = t13;
|
|
205
|
+
} else t13 = $[103];
|
|
206
|
+
t14 = labelPlacement === "content-row" && labelContent;
|
|
207
|
+
t15 = actionContentPlacement === "content-row" && actionContent;
|
|
208
|
+
t6 = resolvedContentWrapperClassName;
|
|
209
|
+
t7 = labelPlacement === "content-wrapper" && labelContent;
|
|
210
|
+
t8 = actionContentPlacement === "content-wrapper" && actionContent;
|
|
211
|
+
t9 = typeof children === "function" ? children({
|
|
205
212
|
...dataAttributeProps,
|
|
206
213
|
id: inputId
|
|
207
214
|
}) : children;
|
|
@@ -211,103 +218,109 @@ var InputFrame = (props) => {
|
|
|
211
218
|
$[7] = children;
|
|
212
219
|
$[8] = className;
|
|
213
220
|
$[9] = contentClassName;
|
|
214
|
-
$[10] =
|
|
215
|
-
$[11] =
|
|
216
|
-
$[12] =
|
|
217
|
-
$[13] =
|
|
218
|
-
$[14] =
|
|
219
|
-
$[15] =
|
|
220
|
-
$[16] =
|
|
221
|
-
$[17] =
|
|
222
|
-
$[18] =
|
|
223
|
-
$[19] =
|
|
224
|
-
$[20] =
|
|
225
|
-
$[21] =
|
|
226
|
-
$[22] =
|
|
227
|
-
$[23] =
|
|
228
|
-
$[24] =
|
|
229
|
-
$[25] =
|
|
230
|
-
$[26] =
|
|
231
|
-
$[27] =
|
|
232
|
-
$[28] =
|
|
233
|
-
$[29] =
|
|
234
|
-
$[30] =
|
|
235
|
-
$[31] =
|
|
236
|
-
$[32] =
|
|
237
|
-
$[33] =
|
|
238
|
-
$[34] =
|
|
239
|
-
$[35] =
|
|
240
|
-
$[36] =
|
|
241
|
-
$[37] =
|
|
242
|
-
$[38] =
|
|
243
|
-
$[39] =
|
|
244
|
-
$[40] =
|
|
245
|
-
$[41] =
|
|
246
|
-
$[42] =
|
|
247
|
-
$[43] =
|
|
248
|
-
$[44] =
|
|
249
|
-
$[45] =
|
|
250
|
-
$[46] =
|
|
251
|
-
$[47] =
|
|
221
|
+
$[10] = contentGroup;
|
|
222
|
+
$[11] = contentWrapperClassName;
|
|
223
|
+
$[12] = dataAttributes;
|
|
224
|
+
$[13] = error;
|
|
225
|
+
$[14] = errorClassName;
|
|
226
|
+
$[15] = generatedInputId;
|
|
227
|
+
$[16] = headerClassName;
|
|
228
|
+
$[17] = headerProps;
|
|
229
|
+
$[18] = helperText;
|
|
230
|
+
$[19] = hideLabel;
|
|
231
|
+
$[20] = idProp;
|
|
232
|
+
$[21] = inputContentWrapperCva;
|
|
233
|
+
$[22] = inputSizeCva;
|
|
234
|
+
$[23] = isDisabled;
|
|
235
|
+
$[24] = isHeaderHidden;
|
|
236
|
+
$[25] = isLeadingIconElement;
|
|
237
|
+
$[26] = isRequired;
|
|
238
|
+
$[27] = label;
|
|
239
|
+
$[28] = labelPlacement;
|
|
240
|
+
$[29] = labelPropsProp;
|
|
241
|
+
$[30] = leadingContent;
|
|
242
|
+
$[31] = leadingIcon;
|
|
243
|
+
$[32] = rightContent;
|
|
244
|
+
$[33] = size;
|
|
245
|
+
$[34] = tooltipText;
|
|
246
|
+
$[35] = typographyCva;
|
|
247
|
+
$[36] = typographySize;
|
|
248
|
+
$[37] = dataAttributeProps;
|
|
249
|
+
$[38] = formFieldProps;
|
|
250
|
+
$[39] = isInputContentGroup;
|
|
251
|
+
$[40] = labelProps;
|
|
252
|
+
$[41] = t10;
|
|
253
|
+
$[42] = t11;
|
|
254
|
+
$[43] = t12;
|
|
255
|
+
$[44] = t13;
|
|
256
|
+
$[45] = t14;
|
|
257
|
+
$[46] = t15;
|
|
258
|
+
$[47] = t6;
|
|
259
|
+
$[48] = t7;
|
|
260
|
+
$[49] = t8;
|
|
261
|
+
$[50] = t9;
|
|
252
262
|
} else {
|
|
253
|
-
dataAttributeProps = $[
|
|
254
|
-
formFieldProps = $[
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
263
|
+
dataAttributeProps = $[37];
|
|
264
|
+
formFieldProps = $[38];
|
|
265
|
+
isInputContentGroup = $[39];
|
|
266
|
+
labelProps = $[40];
|
|
267
|
+
t10 = $[41];
|
|
268
|
+
t11 = $[42];
|
|
269
|
+
t12 = $[43];
|
|
270
|
+
t13 = $[44];
|
|
271
|
+
t14 = $[45];
|
|
272
|
+
t15 = $[46];
|
|
273
|
+
t6 = $[47];
|
|
274
|
+
t7 = $[48];
|
|
275
|
+
t8 = $[49];
|
|
276
|
+
t9 = $[50];
|
|
265
277
|
}
|
|
266
|
-
let
|
|
267
|
-
if ($[
|
|
268
|
-
|
|
269
|
-
className:
|
|
278
|
+
let t16;
|
|
279
|
+
if ($[104] !== t6 || $[105] !== t7 || $[106] !== t8 || $[107] !== t9) {
|
|
280
|
+
t16 = /* @__PURE__ */ jsxs("div", {
|
|
281
|
+
className: t6,
|
|
270
282
|
children: [
|
|
271
|
-
t6,
|
|
272
283
|
t7,
|
|
273
|
-
t8
|
|
284
|
+
t8,
|
|
285
|
+
t9
|
|
274
286
|
]
|
|
275
287
|
});
|
|
276
|
-
$[
|
|
277
|
-
$[
|
|
278
|
-
$[
|
|
279
|
-
$[
|
|
280
|
-
$[
|
|
281
|
-
} else
|
|
282
|
-
let
|
|
283
|
-
if ($[
|
|
284
|
-
|
|
285
|
-
|
|
288
|
+
$[104] = t6;
|
|
289
|
+
$[105] = t7;
|
|
290
|
+
$[106] = t8;
|
|
291
|
+
$[107] = t9;
|
|
292
|
+
$[108] = t16;
|
|
293
|
+
} else t16 = $[108];
|
|
294
|
+
let t17;
|
|
295
|
+
if ($[109] !== t10 || $[110] !== t11 || $[111] !== t12 || $[112] !== t13 || $[113] !== t14 || $[114] !== t15 || $[115] !== t16) {
|
|
296
|
+
t17 = /* @__PURE__ */ jsxs("div", {
|
|
297
|
+
...t10,
|
|
298
|
+
className: t11,
|
|
286
299
|
children: [
|
|
287
|
-
t10,
|
|
288
|
-
t11,
|
|
289
300
|
t12,
|
|
290
301
|
t13,
|
|
291
|
-
t14
|
|
302
|
+
t14,
|
|
303
|
+
t15,
|
|
304
|
+
t16
|
|
292
305
|
]
|
|
293
306
|
});
|
|
294
|
-
$[
|
|
295
|
-
$[
|
|
296
|
-
$[
|
|
297
|
-
$[
|
|
298
|
-
$[
|
|
299
|
-
$[
|
|
300
|
-
$[
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
307
|
+
$[109] = t10;
|
|
308
|
+
$[110] = t11;
|
|
309
|
+
$[111] = t12;
|
|
310
|
+
$[112] = t13;
|
|
311
|
+
$[113] = t14;
|
|
312
|
+
$[114] = t15;
|
|
313
|
+
$[115] = t16;
|
|
314
|
+
$[116] = t17;
|
|
315
|
+
} else t17 = $[116];
|
|
316
|
+
const contentRow = t17;
|
|
317
|
+
let t18;
|
|
318
|
+
if ($[117] !== action || $[118] !== clearClassName || $[119] !== hasClear || $[120] !== hasTrailingContent || $[121] !== isDisabled || $[122] !== isLoading || $[123] !== onClear || $[124] !== renderStatic || $[125] !== showClear || $[126] !== trailingAction || $[127] !== trailingContent || $[128] !== trailingIcon || $[129] !== typographyCva || $[130] !== unit) {
|
|
319
|
+
t18 = hasTrailingContent ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
306
320
|
hasClear && /* @__PURE__ */ jsx(InputClear, {
|
|
307
321
|
onClear: () => onClear?.(),
|
|
308
322
|
className: clearClassName,
|
|
309
323
|
show: !!showClear,
|
|
310
|
-
style: showClear ? { visibility: "visible" } : void 0,
|
|
311
324
|
renderStatic
|
|
312
325
|
}),
|
|
313
326
|
trailingContent,
|
|
@@ -336,178 +349,185 @@ var InputFrame = (props) => {
|
|
|
336
349
|
!isLoading && !action && trailingIcon && renderIconVisual(trailingIcon),
|
|
337
350
|
trailingAction
|
|
338
351
|
] }) : null;
|
|
339
|
-
$[
|
|
340
|
-
$[
|
|
341
|
-
$[
|
|
342
|
-
$[
|
|
343
|
-
$[
|
|
344
|
-
$[
|
|
345
|
-
$[
|
|
346
|
-
$[
|
|
347
|
-
$[
|
|
348
|
-
$[
|
|
349
|
-
$[
|
|
350
|
-
$[
|
|
351
|
-
$[
|
|
352
|
-
$[
|
|
353
|
-
$[
|
|
354
|
-
} else
|
|
355
|
-
const trailingContentNodes =
|
|
356
|
-
let
|
|
357
|
-
if ($[
|
|
358
|
-
|
|
352
|
+
$[117] = action;
|
|
353
|
+
$[118] = clearClassName;
|
|
354
|
+
$[119] = hasClear;
|
|
355
|
+
$[120] = hasTrailingContent;
|
|
356
|
+
$[121] = isDisabled;
|
|
357
|
+
$[122] = isLoading;
|
|
358
|
+
$[123] = onClear;
|
|
359
|
+
$[124] = renderStatic;
|
|
360
|
+
$[125] = showClear;
|
|
361
|
+
$[126] = trailingAction;
|
|
362
|
+
$[127] = trailingContent;
|
|
363
|
+
$[128] = trailingIcon;
|
|
364
|
+
$[129] = typographyCva;
|
|
365
|
+
$[130] = unit;
|
|
366
|
+
$[131] = t18;
|
|
367
|
+
} else t18 = $[131];
|
|
368
|
+
const trailingContentNodes = t18;
|
|
369
|
+
let t19;
|
|
370
|
+
if ($[132] !== as || $[133] !== inputSizeCva || $[134] !== isDisabled || $[135] !== isTrailingInteractive || $[136] !== size || $[137] !== trailingClassName || $[138] !== trailingContentNodes || $[139] !== wrapTrailingContent) {
|
|
371
|
+
t19 = wrapTrailingContent && trailingContentNodes ? /* @__PURE__ */ jsx("div", {
|
|
359
372
|
className: clsx("flex items-center gap-input-gap-trailing-elements", inputSizeCva({
|
|
360
373
|
size,
|
|
361
374
|
as
|
|
362
375
|
}), !isTrailingInteractive && "pointer-events-none", isDisabled && "text-interactive-text-secondary-disabled", trailingClassName),
|
|
363
376
|
children: trailingContentNodes
|
|
364
377
|
}) : trailingContentNodes;
|
|
365
|
-
$[
|
|
366
|
-
$[
|
|
367
|
-
$[
|
|
368
|
-
$[
|
|
369
|
-
$[
|
|
370
|
-
$[
|
|
371
|
-
$[
|
|
372
|
-
$[
|
|
373
|
-
$[
|
|
374
|
-
} else
|
|
375
|
-
const trailingRow =
|
|
376
|
-
let
|
|
377
|
-
if ($[
|
|
378
|
-
|
|
378
|
+
$[132] = as;
|
|
379
|
+
$[133] = inputSizeCva;
|
|
380
|
+
$[134] = isDisabled;
|
|
381
|
+
$[135] = isTrailingInteractive;
|
|
382
|
+
$[136] = size;
|
|
383
|
+
$[137] = trailingClassName;
|
|
384
|
+
$[138] = trailingContentNodes;
|
|
385
|
+
$[139] = wrapTrailingContent;
|
|
386
|
+
$[140] = t19;
|
|
387
|
+
} else t19 = $[140];
|
|
388
|
+
const trailingRow = t19;
|
|
389
|
+
let t20;
|
|
390
|
+
if ($[141] !== contentAndTrailingClassName || $[142] !== contentRow || $[143] !== trailingRow || $[144] !== wrapContentAndTrailing) {
|
|
391
|
+
t20 = wrapContentAndTrailing ? /* @__PURE__ */ jsxs("div", {
|
|
379
392
|
className: clsx("flex w-full items-center gap-input-gap-input-text-to-elements", contentAndTrailingClassName),
|
|
380
393
|
children: [contentRow, trailingRow]
|
|
381
394
|
}) : /* @__PURE__ */ jsxs(Fragment, { children: [contentRow, trailingRow] });
|
|
382
|
-
$[
|
|
383
|
-
$[
|
|
384
|
-
$[
|
|
385
|
-
$[
|
|
386
|
-
$[
|
|
387
|
-
} else
|
|
388
|
-
const inputFrameContent =
|
|
389
|
-
const
|
|
390
|
-
const
|
|
391
|
-
let
|
|
392
|
-
if ($[
|
|
393
|
-
|
|
395
|
+
$[141] = contentAndTrailingClassName;
|
|
396
|
+
$[142] = contentRow;
|
|
397
|
+
$[143] = trailingRow;
|
|
398
|
+
$[144] = wrapContentAndTrailing;
|
|
399
|
+
$[145] = t20;
|
|
400
|
+
} else t20 = $[145];
|
|
401
|
+
const inputFrameContent = t20;
|
|
402
|
+
const t21 = as === "inline" ? -1 : void 0;
|
|
403
|
+
const t22 = as === "inline" ? -1 : void 0;
|
|
404
|
+
let t23;
|
|
405
|
+
if ($[146] !== onMouseEnter || $[147] !== onStaticInteract || $[148] !== renderStatic) {
|
|
406
|
+
t23 = (event) => {
|
|
394
407
|
onMouseEnter?.(event);
|
|
395
408
|
if (renderStatic) onStaticInteract?.(false);
|
|
396
409
|
};
|
|
397
|
-
$[
|
|
398
|
-
$[
|
|
399
|
-
$[
|
|
400
|
-
$[
|
|
401
|
-
} else
|
|
402
|
-
let
|
|
403
|
-
if ($[
|
|
404
|
-
|
|
410
|
+
$[146] = onMouseEnter;
|
|
411
|
+
$[147] = onStaticInteract;
|
|
412
|
+
$[148] = renderStatic;
|
|
413
|
+
$[149] = t23;
|
|
414
|
+
} else t23 = $[149];
|
|
415
|
+
let t24;
|
|
416
|
+
if ($[150] !== onFocusCapture || $[151] !== onStaticInteract || $[152] !== renderStatic) {
|
|
417
|
+
t24 = (event_0) => {
|
|
405
418
|
onFocusCapture?.(event_0);
|
|
406
419
|
if (renderStatic) onStaticInteract?.(true);
|
|
407
420
|
};
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
410
|
-
$[
|
|
411
|
-
$[
|
|
412
|
-
} else
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
421
|
+
$[150] = onFocusCapture;
|
|
422
|
+
$[151] = onStaticInteract;
|
|
423
|
+
$[152] = renderStatic;
|
|
424
|
+
$[153] = t24;
|
|
425
|
+
} else t24 = $[153];
|
|
426
|
+
const t25 = !isInputContentGroup && inputFrameContentGroupClassNames[contentGroup];
|
|
427
|
+
let t26;
|
|
428
|
+
if ($[154] !== as || $[155] !== inputBaseCva || $[156] !== inputClassName || $[157] !== t25 || $[158] !== variant) {
|
|
429
|
+
t26 = clsx("relative flex cursor-text has-disabled:cursor-default", t25, inputBaseCva({
|
|
416
430
|
variant,
|
|
417
431
|
as
|
|
418
432
|
}), inputClassName);
|
|
419
|
-
$[
|
|
420
|
-
$[
|
|
421
|
-
$[
|
|
422
|
-
$[
|
|
423
|
-
$[
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
let
|
|
428
|
-
let
|
|
429
|
-
|
|
430
|
-
|
|
433
|
+
$[154] = as;
|
|
434
|
+
$[155] = inputBaseCva;
|
|
435
|
+
$[156] = inputClassName;
|
|
436
|
+
$[157] = t25;
|
|
437
|
+
$[158] = variant;
|
|
438
|
+
$[159] = t26;
|
|
439
|
+
} else t26 = $[159];
|
|
440
|
+
const t27 = renderStatic ? isDisabled ? -1 : 0 : void 0;
|
|
441
|
+
let t28;
|
|
442
|
+
let t29;
|
|
443
|
+
let t30;
|
|
444
|
+
if ($[160] !== onStaticInteract || $[161] !== renderStatic) {
|
|
445
|
+
t28 = () => {
|
|
431
446
|
if (renderStatic) onStaticInteract?.(true);
|
|
432
447
|
};
|
|
433
|
-
|
|
448
|
+
t29 = () => {
|
|
434
449
|
if (renderStatic) onStaticInteract?.(true);
|
|
435
450
|
};
|
|
436
|
-
|
|
451
|
+
t30 = () => {
|
|
437
452
|
if (renderStatic) onStaticInteract?.(true);
|
|
438
453
|
};
|
|
439
|
-
$[
|
|
440
|
-
$[
|
|
441
|
-
$[
|
|
442
|
-
$[
|
|
443
|
-
$[
|
|
454
|
+
$[160] = onStaticInteract;
|
|
455
|
+
$[161] = renderStatic;
|
|
456
|
+
$[162] = t28;
|
|
457
|
+
$[163] = t29;
|
|
458
|
+
$[164] = t30;
|
|
444
459
|
} else {
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
460
|
+
t28 = $[162];
|
|
461
|
+
t29 = $[163];
|
|
462
|
+
t30 = $[164];
|
|
448
463
|
}
|
|
449
|
-
let
|
|
450
|
-
if ($[
|
|
451
|
-
|
|
464
|
+
let t31;
|
|
465
|
+
if ($[165] !== dataAttributeProps || $[166] !== inputFrameContent || $[167] !== ref || $[168] !== t26 || $[169] !== t27 || $[170] !== t28 || $[171] !== t29 || $[172] !== t30) {
|
|
466
|
+
t31 = /* @__PURE__ */ jsx("div", {
|
|
452
467
|
ref,
|
|
453
468
|
...dataAttributeProps,
|
|
454
|
-
className:
|
|
455
|
-
tabIndex:
|
|
456
|
-
onFocus:
|
|
457
|
-
onClick:
|
|
458
|
-
onPointerDown:
|
|
469
|
+
className: t26,
|
|
470
|
+
tabIndex: t27,
|
|
471
|
+
onFocus: t28,
|
|
472
|
+
onClick: t29,
|
|
473
|
+
onPointerDown: t30,
|
|
459
474
|
"data-rac": "",
|
|
460
475
|
children: inputFrameContent
|
|
461
476
|
});
|
|
462
|
-
$[
|
|
463
|
-
$[
|
|
464
|
-
$[
|
|
465
|
-
$[
|
|
466
|
-
$[
|
|
467
|
-
$[
|
|
468
|
-
$[
|
|
469
|
-
$[
|
|
470
|
-
$[
|
|
471
|
-
} else
|
|
472
|
-
let
|
|
473
|
-
if ($[
|
|
474
|
-
|
|
477
|
+
$[165] = dataAttributeProps;
|
|
478
|
+
$[166] = inputFrameContent;
|
|
479
|
+
$[167] = ref;
|
|
480
|
+
$[168] = t26;
|
|
481
|
+
$[169] = t27;
|
|
482
|
+
$[170] = t28;
|
|
483
|
+
$[171] = t29;
|
|
484
|
+
$[172] = t30;
|
|
485
|
+
$[173] = t31;
|
|
486
|
+
} else t31 = $[173];
|
|
487
|
+
let t32;
|
|
488
|
+
if ($[174] !== as || $[175] !== dataAttributeProps || $[176] !== formFieldProps || $[177] !== formFieldRef || $[178] !== labelProps || $[179] !== t22 || $[180] !== t23 || $[181] !== t24 || $[182] !== t31) {
|
|
489
|
+
t32 = /* @__PURE__ */ jsx(FormField, {
|
|
475
490
|
...formFieldProps,
|
|
476
491
|
...dataAttributeProps,
|
|
477
492
|
ref: formFieldRef,
|
|
478
493
|
as,
|
|
479
494
|
labelProps,
|
|
480
|
-
tabIndex:
|
|
481
|
-
onMouseEnter:
|
|
482
|
-
onFocusCapture:
|
|
483
|
-
children:
|
|
495
|
+
tabIndex: t22,
|
|
496
|
+
onMouseEnter: t23,
|
|
497
|
+
onFocusCapture: t24,
|
|
498
|
+
children: t31
|
|
484
499
|
});
|
|
485
|
-
$[
|
|
486
|
-
$[
|
|
487
|
-
$[
|
|
488
|
-
$[
|
|
489
|
-
$[
|
|
490
|
-
$[
|
|
491
|
-
$[
|
|
492
|
-
$[
|
|
493
|
-
$[
|
|
494
|
-
$[
|
|
495
|
-
} else
|
|
496
|
-
let
|
|
497
|
-
if ($[
|
|
498
|
-
|
|
500
|
+
$[174] = as;
|
|
501
|
+
$[175] = dataAttributeProps;
|
|
502
|
+
$[176] = formFieldProps;
|
|
503
|
+
$[177] = formFieldRef;
|
|
504
|
+
$[178] = labelProps;
|
|
505
|
+
$[179] = t22;
|
|
506
|
+
$[180] = t23;
|
|
507
|
+
$[181] = t24;
|
|
508
|
+
$[182] = t31;
|
|
509
|
+
$[183] = t32;
|
|
510
|
+
} else t32 = $[183];
|
|
511
|
+
let t33;
|
|
512
|
+
if ($[184] !== as || $[185] !== error || $[186] !== t21 || $[187] !== t32) {
|
|
513
|
+
t33 = /* @__PURE__ */ jsx(TooltipWrapper, {
|
|
499
514
|
as,
|
|
500
515
|
error,
|
|
501
|
-
triggerTabIndex:
|
|
502
|
-
children:
|
|
516
|
+
triggerTabIndex: t21,
|
|
517
|
+
children: t32
|
|
503
518
|
});
|
|
504
|
-
$[
|
|
505
|
-
$[
|
|
506
|
-
$[
|
|
507
|
-
$[
|
|
508
|
-
$[
|
|
509
|
-
} else
|
|
510
|
-
return
|
|
519
|
+
$[184] = as;
|
|
520
|
+
$[185] = error;
|
|
521
|
+
$[186] = t21;
|
|
522
|
+
$[187] = t32;
|
|
523
|
+
$[188] = t33;
|
|
524
|
+
} else t33 = $[188];
|
|
525
|
+
return t33;
|
|
526
|
+
};
|
|
527
|
+
var inputFrameContentGroupClassNames = {
|
|
528
|
+
"date-picker": "group/date-picker-content",
|
|
529
|
+
input: "group/input-content",
|
|
530
|
+
select: "group/select-content"
|
|
511
531
|
};
|
|
512
532
|
var renderIconVisual = (icon) => {
|
|
513
533
|
if (isValidElement(icon)) return icon;
|