@povio/ui 3.3.0-rc.4 → 3.3.1
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/README.md +16 -2
- package/dist/browser-tests/checkbox/CheckboxGroupHarness.d.ts +10 -0
- package/dist/browser-tests/checkbox/CheckboxHarness.d.ts +10 -0
- package/dist/browser-tests/checkbox/checkbox-group.spec.d.ts +1 -0
- package/dist/browser-tests/checkbox/checkbox.spec.d.ts +1 -0
- package/dist/browser-tests/datetime-picker/DateTimeHarnesses.d.ts +43 -0
- package/dist/browser-tests/datetime-picker/assertions.d.ts +9 -0
- package/dist/browser-tests/datetime-picker/date-input-focus.firefox.spec.d.ts +1 -0
- package/dist/browser-tests/datetime-picker/date-picker.spec.d.ts +1 -0
- package/dist/browser-tests/datetime-picker/date-range-picker.spec.d.ts +1 -0
- package/dist/browser-tests/datetime-picker/date-time-picker.spec.d.ts +1 -0
- package/dist/browser-tests/datetime-picker/time-picker.spec.d.ts +1 -0
- package/dist/browser-tests/file-upload/FileUploadHarness.d.ts +4 -0
- package/dist/browser-tests/file-upload/file-upload.spec.d.ts +1 -0
- package/dist/browser-tests/file-upload-container/FileUploadContainerHarness.d.ts +4 -0
- package/dist/browser-tests/file-upload-container/file-upload-container.spec.d.ts +1 -0
- package/dist/browser-tests/input-upload/InputUploadHarness.d.ts +9 -0
- package/dist/browser-tests/input-upload/input-upload.spec.d.ts +1 -0
- package/dist/browser-tests/modal/ModalHarness.d.ts +5 -0
- package/dist/browser-tests/modal/modal.spec.d.ts +1 -0
- package/dist/browser-tests/number-input/NumberInputHarness.d.ts +10 -0
- package/dist/browser-tests/number-input/number-input.spec.d.ts +1 -0
- package/dist/browser-tests/number-range-input/NumberRangeInputHarness.d.ts +10 -0
- package/dist/browser-tests/number-range-input/number-range-input.spec.d.ts +1 -0
- package/dist/browser-tests/password-input/PasswordInputHarness.d.ts +6 -0
- package/dist/browser-tests/password-input/password-input.spec.d.ts +1 -0
- package/dist/browser-tests/radio-group/RadioGroupHarness.d.ts +15 -0
- package/dist/browser-tests/radio-group/radio-group.spec.d.ts +1 -0
- package/dist/browser-tests/selection/SelectionHarnesses.d.ts +61 -0
- package/dist/browser-tests/selection/autocomplete.spec.d.ts +1 -0
- package/dist/browser-tests/selection/interactions.d.ts +2 -0
- package/dist/browser-tests/selection/query-autocomplete.spec.d.ts +1 -0
- package/dist/browser-tests/selection/query-select.spec.d.ts +1 -0
- package/dist/browser-tests/selection/select.spec.d.ts +1 -0
- package/dist/browser-tests/slider/SliderHarness.d.ts +11 -0
- package/dist/browser-tests/slider/slider.spec.d.ts +1 -0
- package/dist/browser-tests/text-area/TextAreaHarness.d.ts +10 -0
- package/dist/browser-tests/text-area/text-area.spec.d.ts +1 -0
- package/dist/browser-tests/text-input/TextInputHarness.d.ts +10 -0
- package/dist/browser-tests/text-input/text-input.spec.d.ts +1 -0
- package/dist/browser-tests/toggle/ToggleHarness.d.ts +10 -0
- package/dist/browser-tests/toggle/toggle.spec.d.ts +1 -0
- package/dist/browser-tests/utils/blur.d.ts +22 -0
- package/dist/browser-tests/utils/events.d.ts +4 -0
- package/dist/browser-tests/utils/input.d.ts +10 -0
- package/dist/components/buttons/Button/button.cva.d.ts +1 -1
- package/dist/components/buttons/Button/button.cva.js +4 -4
- package/dist/components/buttons/PillButton/pillButton.cva.js +4 -4
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +19 -5
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +28 -20
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +19 -4
- package/dist/components/inputs/FormField/FormField.js +34 -47
- package/dist/components/inputs/Selection/Select/Select.js +3 -3
- package/dist/components/inputs/Selection/shared/SelectInput.js +1 -0
- package/dist/components/inputs/Skeleton/InputFrame.js +154 -156
- package/dist/components/inputs/shared/InputClear.js +24 -40
- package/dist/components/overlays/BottomSheet/BottomSheet.js +1 -1
- package/dist/components/overlays/Modal/Modal.d.ts +3 -2
- package/dist/components/overlays/Modal/Modal.js +3 -1
- package/dist/components/shared/pagination/minWidth.cva.d.ts +1 -1
- package/dist/components/table/Table.d.ts +2 -8
- package/dist/components/table/Table.js +33 -55
- package/dist/config/uiOverrides.context.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -2
- package/dist/vitest.setup.browser.d.ts +6 -0
- package/package.json +2 -2
- package/dist/components/inputs/FormField/formField.cva.d.ts +0 -11
- package/dist/components/inputs/FormField/formField.cva.js +0 -16
- package/dist/components/table/TableColumnFilterInput.d.ts +0 -9
- package/dist/components/table/TableColumnFilterInput.js +0 -108
- package/dist/components/table/TableColumnFilterPlaceholder.d.ts +0 -5
- package/dist/components/table/TableColumnFilterPlaceholder.js +0 -41
- package/dist/components/table/TableColumnFilterRow.d.ts +0 -16
- package/dist/components/table/TableColumnFilterRow.js +0 -68
|
@@ -157,10 +157,25 @@ var DateTimePickerBase = (props) => {
|
|
|
157
157
|
dialogState.setValue(null);
|
|
158
158
|
if (fireBlurOnChange) handleBlur(null);
|
|
159
159
|
};
|
|
160
|
-
const
|
|
160
|
+
const syncDialogFromControlledValue = () => {
|
|
161
|
+
dialogState.setValue(state.value);
|
|
162
|
+
if (state.value) {
|
|
163
|
+
calendarState.setFocusedDate(state.value);
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
calendarState.setFocusedDate(today(effectiveTimeZone));
|
|
167
|
+
};
|
|
168
|
+
useEffect(() => {
|
|
169
|
+
if (!state.isOpen) return;
|
|
170
|
+
syncDialogFromControlledValue();
|
|
171
|
+
}, [state.isOpen]);
|
|
172
|
+
const onOpenChange = (_isOpen) => {
|
|
173
|
+
state.toggle();
|
|
174
|
+
syncDialogFromControlledValue();
|
|
175
|
+
};
|
|
176
|
+
const onOpenDropdown = () => {
|
|
177
|
+
syncDialogFromControlledValue();
|
|
161
178
|
state.toggle();
|
|
162
|
-
calendarState.setFocusedDate(state.value || today(effectiveTimeZone));
|
|
163
|
-
if (!isOpen) dialogState.setValue(state.value);
|
|
164
179
|
};
|
|
165
180
|
return /* @__PURE__ */ jsx(TooltipWrapper, {
|
|
166
181
|
as,
|
|
@@ -205,7 +220,7 @@ var DateTimePickerBase = (props) => {
|
|
|
205
220
|
disableManualEntry,
|
|
206
221
|
autoFixYear,
|
|
207
222
|
placeholder,
|
|
208
|
-
onOpenDropdown
|
|
223
|
+
onOpenDropdown,
|
|
209
224
|
className: inputClassName,
|
|
210
225
|
timeZone: effectiveTimeZone,
|
|
211
226
|
isTimeOptional,
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
1
|
import { FormFieldError } from "./FormFieldError.js";
|
|
3
2
|
import { FormFieldHeader } from "./FormFieldHeader.js";
|
|
4
3
|
import { FormFieldHelper } from "./FormFieldHelper.js";
|
|
5
|
-
import { formFieldDefinition } from "./formField.cva.js";
|
|
6
4
|
import { c } from "react/compiler-runtime";
|
|
7
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { clsx } from "clsx";
|
|
9
6
|
//#region src/components/inputs/FormField/FormField.tsx
|
|
10
7
|
var FormField = (t0) => {
|
|
11
|
-
const $ = c(
|
|
8
|
+
const $ = c(39);
|
|
12
9
|
const { ref, as, label, tooltipText, helperText, isRequired, rightContent, isDisabled, error, hideLabel, headerClassName, errorClassName, children, className, labelProps, isHeaderHidden, tabIndex, onMouseEnter, onFocusCapture } = t0;
|
|
13
|
-
const formFieldCva = UIOverrides.useCva("formField.cva", formFieldDefinition);
|
|
14
10
|
const t1 = hideLabel || isHeaderHidden;
|
|
15
11
|
let t2;
|
|
16
12
|
if ($[0] !== headerClassName || $[1] !== helperText || $[2] !== isDisabled || $[3] !== isRequired || $[4] !== label || $[5] !== labelProps || $[6] !== rightContent || $[7] !== t1 || $[8] !== tooltipText) {
|
|
@@ -80,61 +76,52 @@ var FormField = (t0) => {
|
|
|
80
76
|
$[21] = t9;
|
|
81
77
|
} else t9 = $[21];
|
|
82
78
|
const errorProps = t9;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
$[
|
|
88
|
-
$[23] = formFieldCva;
|
|
79
|
+
let t10;
|
|
80
|
+
if ($[22] !== as || $[23] !== headerProps) {
|
|
81
|
+
t10 = !["filter", "floating"].includes(as ?? "") && /* @__PURE__ */ jsx(FormFieldHeader, { ...headerProps });
|
|
82
|
+
$[22] = as;
|
|
83
|
+
$[23] = headerProps;
|
|
89
84
|
$[24] = t10;
|
|
90
|
-
|
|
91
|
-
|
|
85
|
+
} else t10 = $[24];
|
|
86
|
+
let t11;
|
|
87
|
+
if ($[25] !== helperProps) {
|
|
88
|
+
t11 = /* @__PURE__ */ jsx(FormFieldHelper, { ...helperProps });
|
|
89
|
+
$[25] = helperProps;
|
|
90
|
+
$[26] = t11;
|
|
91
|
+
} else t11 = $[26];
|
|
92
92
|
let t12;
|
|
93
|
-
if ($[
|
|
94
|
-
t12 =
|
|
95
|
-
$[
|
|
96
|
-
$[27] = headerProps;
|
|
93
|
+
if ($[27] !== errorProps) {
|
|
94
|
+
t12 = /* @__PURE__ */ jsx(FormFieldError, { ...errorProps });
|
|
95
|
+
$[27] = errorProps;
|
|
97
96
|
$[28] = t12;
|
|
98
97
|
} else t12 = $[28];
|
|
99
98
|
let t13;
|
|
100
|
-
if ($[29] !==
|
|
101
|
-
t13 = /* @__PURE__ */
|
|
102
|
-
$[29] = helperProps;
|
|
103
|
-
$[30] = t13;
|
|
104
|
-
} else t13 = $[30];
|
|
105
|
-
let t14;
|
|
106
|
-
if ($[31] !== errorProps) {
|
|
107
|
-
t14 = /* @__PURE__ */ jsx(FormFieldError, { ...errorProps });
|
|
108
|
-
$[31] = errorProps;
|
|
109
|
-
$[32] = t14;
|
|
110
|
-
} else t14 = $[32];
|
|
111
|
-
let t15;
|
|
112
|
-
if ($[33] !== children || $[34] !== onFocusCapture || $[35] !== onMouseEnter || $[36] !== ref || $[37] !== t11 || $[38] !== t12 || $[39] !== t13 || $[40] !== t14 || $[41] !== tabIndex) {
|
|
113
|
-
t15 = /* @__PURE__ */ jsxs("div", {
|
|
99
|
+
if ($[29] !== children || $[30] !== className || $[31] !== onFocusCapture || $[32] !== onMouseEnter || $[33] !== ref || $[34] !== t10 || $[35] !== t11 || $[36] !== t12 || $[37] !== tabIndex) {
|
|
100
|
+
t13 = /* @__PURE__ */ jsxs("div", {
|
|
114
101
|
ref,
|
|
115
|
-
className
|
|
102
|
+
className,
|
|
116
103
|
tabIndex,
|
|
117
104
|
onMouseEnter,
|
|
118
105
|
onFocusCapture,
|
|
119
106
|
children: [
|
|
120
|
-
|
|
107
|
+
t10,
|
|
121
108
|
children,
|
|
122
|
-
|
|
123
|
-
|
|
109
|
+
t11,
|
|
110
|
+
t12
|
|
124
111
|
]
|
|
125
112
|
});
|
|
126
|
-
$[
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
129
|
-
$[
|
|
130
|
-
$[
|
|
131
|
-
$[
|
|
132
|
-
$[
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
135
|
-
$[
|
|
136
|
-
} else
|
|
137
|
-
return
|
|
113
|
+
$[29] = children;
|
|
114
|
+
$[30] = className;
|
|
115
|
+
$[31] = onFocusCapture;
|
|
116
|
+
$[32] = onMouseEnter;
|
|
117
|
+
$[33] = ref;
|
|
118
|
+
$[34] = t10;
|
|
119
|
+
$[35] = t11;
|
|
120
|
+
$[36] = t12;
|
|
121
|
+
$[37] = tabIndex;
|
|
122
|
+
$[38] = t13;
|
|
123
|
+
} else t13 = $[38];
|
|
124
|
+
return t13;
|
|
138
125
|
};
|
|
139
126
|
//#endregion
|
|
140
127
|
export { FormField };
|
|
@@ -77,12 +77,12 @@ function SelectInner(t0) {
|
|
|
77
77
|
};
|
|
78
78
|
const buttonContent = isMultiple && !isEmpty ? /* @__PURE__ */ jsx(Fragment, { children: "\xA0" }) : isEmpty ? /* @__PURE__ */ jsx(Typography, {
|
|
79
79
|
size: "label-1",
|
|
80
|
-
as: "
|
|
80
|
+
as: "span",
|
|
81
81
|
className: "block truncate text-text-default-3",
|
|
82
|
-
children: placeholder
|
|
82
|
+
children: placeholder
|
|
83
83
|
}) : /* @__PURE__ */ jsx(Typography, {
|
|
84
84
|
size: "label-1",
|
|
85
|
-
as: "
|
|
85
|
+
as: "span",
|
|
86
86
|
className: "block truncate",
|
|
87
87
|
children: displayValue
|
|
88
88
|
});
|
|
@@ -313,6 +313,7 @@ var SelectInput = (t0) => {
|
|
|
313
313
|
...fieldProps,
|
|
314
314
|
children: [(as === "floating" && isEmpty || isMultiple && !isEmpty) && /* @__PURE__ */ jsx(Fragment, { children: "\xA0" }), (isEmpty || !isMultiple) && (as !== "floating" || !isEmpty) && /* @__PURE__ */ jsxs(Typography, {
|
|
315
315
|
size: "label-1",
|
|
316
|
+
as: "span",
|
|
316
317
|
className: clsx("truncate empty:before:inline-block empty:before:content-['']", isEmpty && "text-text-default-3 group-disabled/select-trigger:text-interactive-text-secondary-disabled"),
|
|
317
318
|
children: [isEmpty && placeholder, !isEmpty && (showSelectionContent ? selectedItems[0].content : selectedItems[0].label)]
|
|
318
319
|
})]
|
|
@@ -14,7 +14,7 @@ import { clsx } from "clsx";
|
|
|
14
14
|
import { isValidElement, useId, useRef } from "react";
|
|
15
15
|
//#region src/components/inputs/Skeleton/InputFrame.tsx
|
|
16
16
|
var InputFrame = (props) => {
|
|
17
|
-
const $ = c(
|
|
17
|
+
const $ = c(202);
|
|
18
18
|
const ui = UIConfig.useConfig();
|
|
19
19
|
const inputBaseCva = UIOverrides.useCva("input.baseCva", inputBaseDefinition);
|
|
20
20
|
const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
|
|
@@ -174,39 +174,37 @@ var InputFrame = (props) => {
|
|
|
174
174
|
isInputContentGroup = contentGroup === "input";
|
|
175
175
|
t11 = dataAttributeProps;
|
|
176
176
|
const t25 = isInputContentGroup && inputFrameContentGroupClassNames.input;
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
$[99] =
|
|
183
|
-
$[100] =
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
t12 = clsx(t25, "group/input-frame flex min-w-0 items-center gap-input-gap-input-text-to-elements", t26, inputSizeCva({
|
|
177
|
+
if ($[90] !== as || $[91] !== contentClassName || $[92] !== inputSizeCva || $[93] !== size || $[94] !== t25 || $[95] !== typographyCva || $[96] !== typographySize) {
|
|
178
|
+
let t26;
|
|
179
|
+
if ($[98] !== typographyCva || $[99] !== typographySize) {
|
|
180
|
+
t26 = typographySize && typographyCva({ size: typographySize });
|
|
181
|
+
$[98] = typographyCva;
|
|
182
|
+
$[99] = typographySize;
|
|
183
|
+
$[100] = t26;
|
|
184
|
+
} else t26 = $[100];
|
|
185
|
+
t12 = clsx(t25, "group/input-frame flex min-w-0 w-full items-center gap-input-gap-input-text-to-elements", inputSizeCva({
|
|
187
186
|
size,
|
|
188
187
|
as
|
|
189
|
-
}),
|
|
188
|
+
}), t26, contentClassName);
|
|
190
189
|
$[90] = as;
|
|
191
190
|
$[91] = contentClassName;
|
|
192
191
|
$[92] = inputSizeCva;
|
|
193
192
|
$[93] = size;
|
|
194
193
|
$[94] = t25;
|
|
195
|
-
$[95] =
|
|
196
|
-
$[96] =
|
|
197
|
-
$[97] =
|
|
198
|
-
|
|
199
|
-
} else t12 = $[98];
|
|
194
|
+
$[95] = typographyCva;
|
|
195
|
+
$[96] = typographySize;
|
|
196
|
+
$[97] = t12;
|
|
197
|
+
} else t12 = $[97];
|
|
200
198
|
t13 = leadingContent;
|
|
201
|
-
if ($[
|
|
199
|
+
if ($[101] !== isLeadingIconElement || $[102] !== leadingIcon) {
|
|
202
200
|
t14 = leadingIcon && /* @__PURE__ */ jsx("div", {
|
|
203
201
|
className: clsx(!isLeadingIconElement && "pointer-events-none"),
|
|
204
202
|
children: renderIconVisual(leadingIcon)
|
|
205
203
|
});
|
|
206
|
-
$[
|
|
207
|
-
$[
|
|
208
|
-
$[
|
|
209
|
-
} else t14 = $[
|
|
204
|
+
$[101] = isLeadingIconElement;
|
|
205
|
+
$[102] = leadingIcon;
|
|
206
|
+
$[103] = t14;
|
|
207
|
+
} else t14 = $[103];
|
|
210
208
|
t15 = labelPlacement === "content-row" && labelContent;
|
|
211
209
|
t16 = actionContentPlacement === "content-row" && actionContent;
|
|
212
210
|
t7 = resolvedContentWrapperClassName;
|
|
@@ -280,7 +278,7 @@ var InputFrame = (props) => {
|
|
|
280
278
|
t9 = $[50];
|
|
281
279
|
}
|
|
282
280
|
let t17;
|
|
283
|
-
if ($[
|
|
281
|
+
if ($[104] !== t10 || $[105] !== t7 || $[106] !== t8 || $[107] !== t9) {
|
|
284
282
|
t17 = /* @__PURE__ */ jsxs("div", {
|
|
285
283
|
className: t7,
|
|
286
284
|
children: [
|
|
@@ -289,14 +287,14 @@ var InputFrame = (props) => {
|
|
|
289
287
|
t10
|
|
290
288
|
]
|
|
291
289
|
});
|
|
292
|
-
$[
|
|
293
|
-
$[
|
|
294
|
-
$[
|
|
295
|
-
$[
|
|
296
|
-
$[
|
|
297
|
-
} else t17 = $[
|
|
290
|
+
$[104] = t10;
|
|
291
|
+
$[105] = t7;
|
|
292
|
+
$[106] = t8;
|
|
293
|
+
$[107] = t9;
|
|
294
|
+
$[108] = t17;
|
|
295
|
+
} else t17 = $[108];
|
|
298
296
|
let t18;
|
|
299
|
-
if ($[
|
|
297
|
+
if ($[109] !== t11 || $[110] !== t12 || $[111] !== t13 || $[112] !== t14 || $[113] !== t15 || $[114] !== t16 || $[115] !== t17) {
|
|
300
298
|
t18 = /* @__PURE__ */ jsxs("div", {
|
|
301
299
|
...t11,
|
|
302
300
|
className: t12,
|
|
@@ -308,18 +306,18 @@ var InputFrame = (props) => {
|
|
|
308
306
|
t17
|
|
309
307
|
]
|
|
310
308
|
});
|
|
311
|
-
$[
|
|
312
|
-
$[
|
|
313
|
-
$[
|
|
314
|
-
$[
|
|
315
|
-
$[
|
|
316
|
-
$[
|
|
317
|
-
$[
|
|
318
|
-
$[
|
|
319
|
-
} else t18 = $[
|
|
309
|
+
$[109] = t11;
|
|
310
|
+
$[110] = t12;
|
|
311
|
+
$[111] = t13;
|
|
312
|
+
$[112] = t14;
|
|
313
|
+
$[113] = t15;
|
|
314
|
+
$[114] = t16;
|
|
315
|
+
$[115] = t17;
|
|
316
|
+
$[116] = t18;
|
|
317
|
+
} else t18 = $[116];
|
|
320
318
|
const contentRow = t18;
|
|
321
319
|
let t19;
|
|
322
|
-
if ($[
|
|
320
|
+
if ($[117] !== action || $[118] !== clearClassName || $[119] !== hasClear || $[120] !== hasTrailingContent || $[121] !== isDisabled || $[122] !== isLoading || $[123] !== onClear || $[124] !== onStaticPress || $[125] !== showClear || $[126] !== trailingAction || $[127] !== trailingContent || $[128] !== trailingIcon || $[129] !== typographyCva || $[130] !== unit) {
|
|
323
321
|
t19 = hasTrailingContent ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
324
322
|
hasClear && /* @__PURE__ */ jsx(InputClear, {
|
|
325
323
|
onClear: () => onClear?.(),
|
|
@@ -360,25 +358,25 @@ var InputFrame = (props) => {
|
|
|
360
358
|
!isLoading && !action && trailingIcon && renderIconVisual(trailingIcon),
|
|
361
359
|
trailingAction
|
|
362
360
|
] }) : null;
|
|
363
|
-
$[
|
|
364
|
-
$[
|
|
365
|
-
$[
|
|
366
|
-
$[
|
|
367
|
-
$[
|
|
368
|
-
$[
|
|
369
|
-
$[
|
|
370
|
-
$[
|
|
371
|
-
$[
|
|
372
|
-
$[
|
|
373
|
-
$[
|
|
374
|
-
$[
|
|
375
|
-
$[
|
|
376
|
-
$[
|
|
377
|
-
$[
|
|
378
|
-
} else t19 = $[
|
|
361
|
+
$[117] = action;
|
|
362
|
+
$[118] = clearClassName;
|
|
363
|
+
$[119] = hasClear;
|
|
364
|
+
$[120] = hasTrailingContent;
|
|
365
|
+
$[121] = isDisabled;
|
|
366
|
+
$[122] = isLoading;
|
|
367
|
+
$[123] = onClear;
|
|
368
|
+
$[124] = onStaticPress;
|
|
369
|
+
$[125] = showClear;
|
|
370
|
+
$[126] = trailingAction;
|
|
371
|
+
$[127] = trailingContent;
|
|
372
|
+
$[128] = trailingIcon;
|
|
373
|
+
$[129] = typographyCva;
|
|
374
|
+
$[130] = unit;
|
|
375
|
+
$[131] = t19;
|
|
376
|
+
} else t19 = $[131];
|
|
379
377
|
const trailingContentNodes = t19;
|
|
380
378
|
let t20;
|
|
381
|
-
if ($[
|
|
379
|
+
if ($[132] !== as || $[133] !== inputSizeCva || $[134] !== isDisabled || $[135] !== isTrailingInteractive || $[136] !== size || $[137] !== trailingClassName || $[138] !== trailingContentNodes || $[139] !== wrapTrailingContent) {
|
|
382
380
|
t20 = wrapTrailingContent && trailingContentNodes ? /* @__PURE__ */ jsx("div", {
|
|
383
381
|
className: clsx("flex items-center gap-input-gap-trailing-elements", inputSizeCva({
|
|
384
382
|
size,
|
|
@@ -386,86 +384,86 @@ var InputFrame = (props) => {
|
|
|
386
384
|
}), !isTrailingInteractive && "pointer-events-none", isDisabled && "text-interactive-text-secondary-disabled", trailingClassName),
|
|
387
385
|
children: trailingContentNodes
|
|
388
386
|
}) : trailingContentNodes;
|
|
389
|
-
$[
|
|
390
|
-
$[
|
|
391
|
-
$[
|
|
392
|
-
$[
|
|
393
|
-
$[
|
|
394
|
-
$[
|
|
395
|
-
$[
|
|
396
|
-
$[
|
|
397
|
-
$[
|
|
398
|
-
} else t20 = $[
|
|
387
|
+
$[132] = as;
|
|
388
|
+
$[133] = inputSizeCva;
|
|
389
|
+
$[134] = isDisabled;
|
|
390
|
+
$[135] = isTrailingInteractive;
|
|
391
|
+
$[136] = size;
|
|
392
|
+
$[137] = trailingClassName;
|
|
393
|
+
$[138] = trailingContentNodes;
|
|
394
|
+
$[139] = wrapTrailingContent;
|
|
395
|
+
$[140] = t20;
|
|
396
|
+
} else t20 = $[140];
|
|
399
397
|
const trailingRow = t20;
|
|
400
398
|
let t21;
|
|
401
|
-
if ($[
|
|
399
|
+
if ($[141] !== contentAndTrailingClassName || $[142] !== contentRow || $[143] !== trailingRow || $[144] !== wrapContentAndTrailing) {
|
|
402
400
|
t21 = wrapContentAndTrailing ? /* @__PURE__ */ jsxs("div", {
|
|
403
401
|
className: clsx("flex w-full items-center gap-input-gap-input-text-to-elements", contentAndTrailingClassName),
|
|
404
402
|
children: [contentRow, trailingRow]
|
|
405
403
|
}) : /* @__PURE__ */ jsxs(Fragment, { children: [contentRow, trailingRow] });
|
|
406
|
-
$[
|
|
407
|
-
$[
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
410
|
-
$[
|
|
411
|
-
} else t21 = $[
|
|
404
|
+
$[141] = contentAndTrailingClassName;
|
|
405
|
+
$[142] = contentRow;
|
|
406
|
+
$[143] = trailingRow;
|
|
407
|
+
$[144] = wrapContentAndTrailing;
|
|
408
|
+
$[145] = t21;
|
|
409
|
+
} else t21 = $[145];
|
|
412
410
|
const inputFrameContent = t21;
|
|
413
411
|
let t22;
|
|
414
|
-
if ($[
|
|
412
|
+
if ($[146] !== staticPressTarget) {
|
|
415
413
|
t22 = (target) => staticPressTarget === "frame" || target instanceof Element && !!target.closest("[data-static-press-action]");
|
|
416
|
-
$[
|
|
417
|
-
$[
|
|
418
|
-
} else t22 = $[
|
|
414
|
+
$[146] = staticPressTarget;
|
|
415
|
+
$[147] = t22;
|
|
416
|
+
} else t22 = $[147];
|
|
419
417
|
const shouldReplayStaticPress = t22;
|
|
420
418
|
const isStaticPressActionTarget = _temp;
|
|
421
419
|
const t23 = as === "inline" ? -1 : void 0;
|
|
422
420
|
const t24 = as === "inline" ? -1 : void 0;
|
|
423
421
|
let t25;
|
|
424
|
-
if ($[
|
|
422
|
+
if ($[148] !== onMouseEnter || $[149] !== onStaticInteract) {
|
|
425
423
|
t25 = (event) => {
|
|
426
424
|
onMouseEnter?.(event);
|
|
427
425
|
if (isStaticPressActionTarget(event.target)) return;
|
|
428
426
|
onStaticInteract?.(false, event.target);
|
|
429
427
|
};
|
|
430
|
-
$[
|
|
431
|
-
$[
|
|
432
|
-
$[
|
|
433
|
-
} else t25 = $[
|
|
428
|
+
$[148] = onMouseEnter;
|
|
429
|
+
$[149] = onStaticInteract;
|
|
430
|
+
$[150] = t25;
|
|
431
|
+
} else t25 = $[150];
|
|
434
432
|
let t26;
|
|
435
|
-
if ($[
|
|
433
|
+
if ($[151] !== onFocusCapture || $[152] !== onStaticInteract) {
|
|
436
434
|
t26 = (event_0) => {
|
|
437
435
|
onFocusCapture?.(event_0);
|
|
438
436
|
if (pendingStaticPressPointerIdRef.current == null) onStaticInteract?.(true, event_0.target);
|
|
439
437
|
};
|
|
440
|
-
$[
|
|
441
|
-
$[
|
|
442
|
-
$[
|
|
443
|
-
} else t26 = $[
|
|
438
|
+
$[151] = onFocusCapture;
|
|
439
|
+
$[152] = onStaticInteract;
|
|
440
|
+
$[153] = t26;
|
|
441
|
+
} else t26 = $[153];
|
|
444
442
|
const t27 = !isInputContentGroup && inputFrameContentGroupClassNames[contentGroup];
|
|
445
443
|
let t28;
|
|
446
|
-
if ($[
|
|
444
|
+
if ($[154] !== as || $[155] !== inputBaseCva || $[156] !== inputClassName || $[157] !== t27 || $[158] !== variant) {
|
|
447
445
|
t28 = clsx("relative flex cursor-text has-disabled:cursor-default", t27, inputBaseCva({
|
|
448
446
|
variant,
|
|
449
447
|
as
|
|
450
448
|
}), inputClassName);
|
|
451
|
-
$[
|
|
452
|
-
$[
|
|
453
|
-
$[
|
|
454
|
-
$[
|
|
455
|
-
$[
|
|
456
|
-
$[
|
|
457
|
-
} else t28 = $[
|
|
449
|
+
$[154] = as;
|
|
450
|
+
$[155] = inputBaseCva;
|
|
451
|
+
$[156] = inputClassName;
|
|
452
|
+
$[157] = t27;
|
|
453
|
+
$[158] = variant;
|
|
454
|
+
$[159] = t28;
|
|
455
|
+
} else t28 = $[159];
|
|
458
456
|
const t29 = isDisabled ? -1 : 0;
|
|
459
457
|
let t30;
|
|
460
|
-
if ($[
|
|
458
|
+
if ($[160] !== onStaticInteract) {
|
|
461
459
|
t30 = (event_1) => {
|
|
462
460
|
if (pendingStaticPressPointerIdRef.current == null) onStaticInteract?.(true, event_1.target);
|
|
463
461
|
};
|
|
464
|
-
$[
|
|
465
|
-
$[
|
|
466
|
-
} else t30 = $[
|
|
462
|
+
$[160] = onStaticInteract;
|
|
463
|
+
$[161] = t30;
|
|
464
|
+
} else t30 = $[161];
|
|
467
465
|
let t31;
|
|
468
|
-
if ($[
|
|
466
|
+
if ($[162] !== onStaticInteract || $[163] !== onStaticPress || $[164] !== shouldReplayStaticPress) {
|
|
469
467
|
t31 = (event_2) => {
|
|
470
468
|
if (onStaticPress && shouldReplayStaticPress(event_2.target)) {
|
|
471
469
|
onStaticPress();
|
|
@@ -473,22 +471,22 @@ var InputFrame = (props) => {
|
|
|
473
471
|
}
|
|
474
472
|
onStaticInteract?.(true, event_2.target);
|
|
475
473
|
};
|
|
476
|
-
$[
|
|
477
|
-
$[
|
|
478
|
-
$[
|
|
479
|
-
$[
|
|
480
|
-
} else t31 = $[
|
|
474
|
+
$[162] = onStaticInteract;
|
|
475
|
+
$[163] = onStaticPress;
|
|
476
|
+
$[164] = shouldReplayStaticPress;
|
|
477
|
+
$[165] = t31;
|
|
478
|
+
} else t31 = $[165];
|
|
481
479
|
let t32;
|
|
482
|
-
if ($[
|
|
480
|
+
if ($[166] !== onStaticPress || $[167] !== shouldReplayStaticPress) {
|
|
483
481
|
t32 = (event_3) => {
|
|
484
482
|
if (onStaticPress && shouldReplayStaticPress(event_3.target) || isStaticPressActionTarget(event_3.target)) pendingStaticPressPointerIdRef.current = event_3.pointerId;
|
|
485
483
|
};
|
|
486
|
-
$[
|
|
487
|
-
$[
|
|
488
|
-
$[
|
|
489
|
-
} else t32 = $[
|
|
484
|
+
$[166] = onStaticPress;
|
|
485
|
+
$[167] = shouldReplayStaticPress;
|
|
486
|
+
$[168] = t32;
|
|
487
|
+
} else t32 = $[168];
|
|
490
488
|
let t33;
|
|
491
|
-
if ($[
|
|
489
|
+
if ($[169] !== onStaticInteract || $[170] !== onStaticPress || $[171] !== shouldReplayStaticPress) {
|
|
492
490
|
t33 = (event_4) => {
|
|
493
491
|
if (pendingStaticPressPointerIdRef.current === event_4.pointerId) return;
|
|
494
492
|
if (onStaticPress && shouldReplayStaticPress(event_4.target)) {
|
|
@@ -497,30 +495,30 @@ var InputFrame = (props) => {
|
|
|
497
495
|
}
|
|
498
496
|
onStaticInteract?.(true, event_4.target);
|
|
499
497
|
};
|
|
500
|
-
$[
|
|
501
|
-
$[
|
|
502
|
-
$[
|
|
503
|
-
$[
|
|
504
|
-
} else t33 = $[
|
|
498
|
+
$[169] = onStaticInteract;
|
|
499
|
+
$[170] = onStaticPress;
|
|
500
|
+
$[171] = shouldReplayStaticPress;
|
|
501
|
+
$[172] = t33;
|
|
502
|
+
} else t33 = $[172];
|
|
505
503
|
let t34;
|
|
506
|
-
if ($[
|
|
504
|
+
if ($[173] === Symbol.for("react.memo_cache_sentinel")) {
|
|
507
505
|
t34 = (event_5) => {
|
|
508
506
|
if (pendingStaticPressPointerIdRef.current === event_5.pointerId) pendingStaticPressPointerIdRef.current = null;
|
|
509
507
|
};
|
|
510
|
-
$[
|
|
511
|
-
} else t34 = $[
|
|
508
|
+
$[173] = t34;
|
|
509
|
+
} else t34 = $[173];
|
|
512
510
|
let t35;
|
|
513
|
-
if ($[
|
|
511
|
+
if ($[174] !== onStaticPress) {
|
|
514
512
|
t35 = (event_6) => {
|
|
515
513
|
if (pendingStaticPressPointerIdRef.current !== event_6.pointerId) return;
|
|
516
514
|
pendingStaticPressPointerIdRef.current = null;
|
|
517
515
|
onStaticPress?.();
|
|
518
516
|
};
|
|
519
|
-
$[
|
|
520
|
-
$[
|
|
521
|
-
} else t35 = $[
|
|
517
|
+
$[174] = onStaticPress;
|
|
518
|
+
$[175] = t35;
|
|
519
|
+
} else t35 = $[175];
|
|
522
520
|
let t36;
|
|
523
|
-
if ($[
|
|
521
|
+
if ($[176] !== dataAttributeProps || $[177] !== inputFrameContent || $[178] !== ref || $[179] !== t28 || $[180] !== t29 || $[181] !== t30 || $[182] !== t31 || $[183] !== t32 || $[184] !== t33 || $[185] !== t35) {
|
|
524
522
|
t36 = /* @__PURE__ */ jsx("div", {
|
|
525
523
|
ref,
|
|
526
524
|
...dataAttributeProps,
|
|
@@ -535,20 +533,20 @@ var InputFrame = (props) => {
|
|
|
535
533
|
"data-rac": "",
|
|
536
534
|
children: inputFrameContent
|
|
537
535
|
});
|
|
538
|
-
$[
|
|
539
|
-
$[
|
|
540
|
-
$[
|
|
541
|
-
$[
|
|
542
|
-
$[
|
|
543
|
-
$[
|
|
544
|
-
$[
|
|
545
|
-
$[
|
|
546
|
-
$[
|
|
547
|
-
$[
|
|
548
|
-
$[
|
|
549
|
-
} else t36 = $[
|
|
536
|
+
$[176] = dataAttributeProps;
|
|
537
|
+
$[177] = inputFrameContent;
|
|
538
|
+
$[178] = ref;
|
|
539
|
+
$[179] = t28;
|
|
540
|
+
$[180] = t29;
|
|
541
|
+
$[181] = t30;
|
|
542
|
+
$[182] = t31;
|
|
543
|
+
$[183] = t32;
|
|
544
|
+
$[184] = t33;
|
|
545
|
+
$[185] = t35;
|
|
546
|
+
$[186] = t36;
|
|
547
|
+
} else t36 = $[186];
|
|
550
548
|
let t37;
|
|
551
|
-
if ($[
|
|
549
|
+
if ($[187] !== as || $[188] !== dataAttributeProps || $[189] !== formFieldProps || $[190] !== formFieldRef || $[191] !== labelProps || $[192] !== t24 || $[193] !== t25 || $[194] !== t26 || $[195] !== t36) {
|
|
552
550
|
t37 = /* @__PURE__ */ jsx(FormField, {
|
|
553
551
|
...formFieldProps,
|
|
554
552
|
...dataAttributeProps,
|
|
@@ -560,31 +558,31 @@ var InputFrame = (props) => {
|
|
|
560
558
|
onFocusCapture: t26,
|
|
561
559
|
children: t36
|
|
562
560
|
});
|
|
563
|
-
$[
|
|
564
|
-
$[
|
|
565
|
-
$[
|
|
566
|
-
$[
|
|
567
|
-
$[
|
|
568
|
-
$[
|
|
569
|
-
$[
|
|
570
|
-
$[
|
|
571
|
-
$[
|
|
572
|
-
$[
|
|
573
|
-
} else t37 = $[
|
|
561
|
+
$[187] = as;
|
|
562
|
+
$[188] = dataAttributeProps;
|
|
563
|
+
$[189] = formFieldProps;
|
|
564
|
+
$[190] = formFieldRef;
|
|
565
|
+
$[191] = labelProps;
|
|
566
|
+
$[192] = t24;
|
|
567
|
+
$[193] = t25;
|
|
568
|
+
$[194] = t26;
|
|
569
|
+
$[195] = t36;
|
|
570
|
+
$[196] = t37;
|
|
571
|
+
} else t37 = $[196];
|
|
574
572
|
let t38;
|
|
575
|
-
if ($[
|
|
573
|
+
if ($[197] !== as || $[198] !== error || $[199] !== t23 || $[200] !== t37) {
|
|
576
574
|
t38 = /* @__PURE__ */ jsx(TooltipWrapper, {
|
|
577
575
|
as,
|
|
578
576
|
error,
|
|
579
577
|
triggerTabIndex: t23,
|
|
580
578
|
children: t37
|
|
581
579
|
});
|
|
582
|
-
$[
|
|
583
|
-
$[
|
|
584
|
-
$[
|
|
585
|
-
$[
|
|
586
|
-
$[
|
|
587
|
-
} else t38 = $[
|
|
580
|
+
$[197] = as;
|
|
581
|
+
$[198] = error;
|
|
582
|
+
$[199] = t23;
|
|
583
|
+
$[200] = t37;
|
|
584
|
+
$[201] = t38;
|
|
585
|
+
} else t38 = $[201];
|
|
588
586
|
return t38;
|
|
589
587
|
};
|
|
590
588
|
var inputFrameContentGroupClassNames = {
|