@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.
Files changed (75) hide show
  1. package/README.md +16 -2
  2. package/dist/browser-tests/checkbox/CheckboxGroupHarness.d.ts +10 -0
  3. package/dist/browser-tests/checkbox/CheckboxHarness.d.ts +10 -0
  4. package/dist/browser-tests/checkbox/checkbox-group.spec.d.ts +1 -0
  5. package/dist/browser-tests/checkbox/checkbox.spec.d.ts +1 -0
  6. package/dist/browser-tests/datetime-picker/DateTimeHarnesses.d.ts +43 -0
  7. package/dist/browser-tests/datetime-picker/assertions.d.ts +9 -0
  8. package/dist/browser-tests/datetime-picker/date-input-focus.firefox.spec.d.ts +1 -0
  9. package/dist/browser-tests/datetime-picker/date-picker.spec.d.ts +1 -0
  10. package/dist/browser-tests/datetime-picker/date-range-picker.spec.d.ts +1 -0
  11. package/dist/browser-tests/datetime-picker/date-time-picker.spec.d.ts +1 -0
  12. package/dist/browser-tests/datetime-picker/time-picker.spec.d.ts +1 -0
  13. package/dist/browser-tests/file-upload/FileUploadHarness.d.ts +4 -0
  14. package/dist/browser-tests/file-upload/file-upload.spec.d.ts +1 -0
  15. package/dist/browser-tests/file-upload-container/FileUploadContainerHarness.d.ts +4 -0
  16. package/dist/browser-tests/file-upload-container/file-upload-container.spec.d.ts +1 -0
  17. package/dist/browser-tests/input-upload/InputUploadHarness.d.ts +9 -0
  18. package/dist/browser-tests/input-upload/input-upload.spec.d.ts +1 -0
  19. package/dist/browser-tests/modal/ModalHarness.d.ts +5 -0
  20. package/dist/browser-tests/modal/modal.spec.d.ts +1 -0
  21. package/dist/browser-tests/number-input/NumberInputHarness.d.ts +10 -0
  22. package/dist/browser-tests/number-input/number-input.spec.d.ts +1 -0
  23. package/dist/browser-tests/number-range-input/NumberRangeInputHarness.d.ts +10 -0
  24. package/dist/browser-tests/number-range-input/number-range-input.spec.d.ts +1 -0
  25. package/dist/browser-tests/password-input/PasswordInputHarness.d.ts +6 -0
  26. package/dist/browser-tests/password-input/password-input.spec.d.ts +1 -0
  27. package/dist/browser-tests/radio-group/RadioGroupHarness.d.ts +15 -0
  28. package/dist/browser-tests/radio-group/radio-group.spec.d.ts +1 -0
  29. package/dist/browser-tests/selection/SelectionHarnesses.d.ts +61 -0
  30. package/dist/browser-tests/selection/autocomplete.spec.d.ts +1 -0
  31. package/dist/browser-tests/selection/interactions.d.ts +2 -0
  32. package/dist/browser-tests/selection/query-autocomplete.spec.d.ts +1 -0
  33. package/dist/browser-tests/selection/query-select.spec.d.ts +1 -0
  34. package/dist/browser-tests/selection/select.spec.d.ts +1 -0
  35. package/dist/browser-tests/slider/SliderHarness.d.ts +11 -0
  36. package/dist/browser-tests/slider/slider.spec.d.ts +1 -0
  37. package/dist/browser-tests/text-area/TextAreaHarness.d.ts +10 -0
  38. package/dist/browser-tests/text-area/text-area.spec.d.ts +1 -0
  39. package/dist/browser-tests/text-input/TextInputHarness.d.ts +10 -0
  40. package/dist/browser-tests/text-input/text-input.spec.d.ts +1 -0
  41. package/dist/browser-tests/toggle/ToggleHarness.d.ts +10 -0
  42. package/dist/browser-tests/toggle/toggle.spec.d.ts +1 -0
  43. package/dist/browser-tests/utils/blur.d.ts +22 -0
  44. package/dist/browser-tests/utils/events.d.ts +4 -0
  45. package/dist/browser-tests/utils/input.d.ts +10 -0
  46. package/dist/components/buttons/Button/button.cva.d.ts +1 -1
  47. package/dist/components/buttons/Button/button.cva.js +4 -4
  48. package/dist/components/buttons/PillButton/pillButton.cva.js +4 -4
  49. package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +19 -5
  50. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +28 -20
  51. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +19 -4
  52. package/dist/components/inputs/FormField/FormField.js +34 -47
  53. package/dist/components/inputs/Selection/Select/Select.js +3 -3
  54. package/dist/components/inputs/Selection/shared/SelectInput.js +1 -0
  55. package/dist/components/inputs/Skeleton/InputFrame.js +154 -156
  56. package/dist/components/inputs/shared/InputClear.js +24 -40
  57. package/dist/components/overlays/BottomSheet/BottomSheet.js +1 -1
  58. package/dist/components/overlays/Modal/Modal.d.ts +3 -2
  59. package/dist/components/overlays/Modal/Modal.js +3 -1
  60. package/dist/components/shared/pagination/minWidth.cva.d.ts +1 -1
  61. package/dist/components/table/Table.d.ts +2 -8
  62. package/dist/components/table/Table.js +33 -55
  63. package/dist/config/uiOverrides.context.d.ts +0 -1
  64. package/dist/index.d.ts +0 -1
  65. package/dist/index.js +1 -2
  66. package/dist/vitest.setup.browser.d.ts +6 -0
  67. package/package.json +2 -2
  68. package/dist/components/inputs/FormField/formField.cva.d.ts +0 -11
  69. package/dist/components/inputs/FormField/formField.cva.js +0 -16
  70. package/dist/components/table/TableColumnFilterInput.d.ts +0 -9
  71. package/dist/components/table/TableColumnFilterInput.js +0 -108
  72. package/dist/components/table/TableColumnFilterPlaceholder.d.ts +0 -5
  73. package/dist/components/table/TableColumnFilterPlaceholder.js +0 -41
  74. package/dist/components/table/TableColumnFilterRow.d.ts +0 -16
  75. 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 onOpenChange = (isOpen) => {
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: () => state.toggle(),
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(43);
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
- const t10 = as ?? "default";
84
- let t11;
85
- if ($[22] !== className || $[23] !== formFieldCva || $[24] !== t10) {
86
- t11 = clsx(formFieldCva({ as: t10 }), className);
87
- $[22] = className;
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
- $[25] = t11;
91
- } else t11 = $[25];
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 ($[26] !== as || $[27] !== headerProps) {
94
- t12 = !["filter", "floating"].includes(as ?? "") && /* @__PURE__ */ jsx(FormFieldHeader, { ...headerProps });
95
- $[26] = as;
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] !== helperProps) {
101
- t13 = /* @__PURE__ */ jsx(FormFieldHelper, { ...helperProps });
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: t11,
102
+ className,
116
103
  tabIndex,
117
104
  onMouseEnter,
118
105
  onFocusCapture,
119
106
  children: [
120
- t12,
107
+ t10,
121
108
  children,
122
- t13,
123
- t14
109
+ t11,
110
+ t12
124
111
  ]
125
112
  });
126
- $[33] = children;
127
- $[34] = onFocusCapture;
128
- $[35] = onMouseEnter;
129
- $[36] = ref;
130
- $[37] = t11;
131
- $[38] = t12;
132
- $[39] = t13;
133
- $[40] = t14;
134
- $[41] = tabIndex;
135
- $[42] = t15;
136
- } else t15 = $[42];
137
- return t15;
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: "p",
80
+ as: "span",
81
81
  className: "block truncate text-text-default-3",
82
- children: placeholder || (as === "filter" ? "\xA0" : null)
82
+ children: placeholder
83
83
  }) : /* @__PURE__ */ jsx(Typography, {
84
84
  size: "label-1",
85
- as: "p",
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(203);
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
- const t26 = contentGroup === "select" ? "flex-1" : "w-full";
178
- if ($[90] !== as || $[91] !== contentClassName || $[92] !== inputSizeCva || $[93] !== size || $[94] !== t25 || $[95] !== t26 || $[96] !== typographyCva || $[97] !== typographySize) {
179
- let t27;
180
- if ($[99] !== typographyCva || $[100] !== typographySize) {
181
- t27 = typographySize && typographyCva({ size: typographySize });
182
- $[99] = typographyCva;
183
- $[100] = typographySize;
184
- $[101] = t27;
185
- } else t27 = $[101];
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
- }), t27, contentClassName);
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] = t26;
196
- $[96] = typographyCva;
197
- $[97] = typographySize;
198
- $[98] = t12;
199
- } else t12 = $[98];
194
+ $[95] = typographyCva;
195
+ $[96] = typographySize;
196
+ $[97] = t12;
197
+ } else t12 = $[97];
200
198
  t13 = leadingContent;
201
- if ($[102] !== isLeadingIconElement || $[103] !== leadingIcon) {
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
- $[102] = isLeadingIconElement;
207
- $[103] = leadingIcon;
208
- $[104] = t14;
209
- } else t14 = $[104];
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 ($[105] !== t10 || $[106] !== t7 || $[107] !== t8 || $[108] !== t9) {
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
- $[105] = t10;
293
- $[106] = t7;
294
- $[107] = t8;
295
- $[108] = t9;
296
- $[109] = t17;
297
- } else t17 = $[109];
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 ($[110] !== t11 || $[111] !== t12 || $[112] !== t13 || $[113] !== t14 || $[114] !== t15 || $[115] !== t16 || $[116] !== t17) {
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
- $[110] = t11;
312
- $[111] = t12;
313
- $[112] = t13;
314
- $[113] = t14;
315
- $[114] = t15;
316
- $[115] = t16;
317
- $[116] = t17;
318
- $[117] = t18;
319
- } else t18 = $[117];
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 ($[118] !== action || $[119] !== clearClassName || $[120] !== hasClear || $[121] !== hasTrailingContent || $[122] !== isDisabled || $[123] !== isLoading || $[124] !== onClear || $[125] !== onStaticPress || $[126] !== showClear || $[127] !== trailingAction || $[128] !== trailingContent || $[129] !== trailingIcon || $[130] !== typographyCva || $[131] !== unit) {
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
- $[118] = action;
364
- $[119] = clearClassName;
365
- $[120] = hasClear;
366
- $[121] = hasTrailingContent;
367
- $[122] = isDisabled;
368
- $[123] = isLoading;
369
- $[124] = onClear;
370
- $[125] = onStaticPress;
371
- $[126] = showClear;
372
- $[127] = trailingAction;
373
- $[128] = trailingContent;
374
- $[129] = trailingIcon;
375
- $[130] = typographyCva;
376
- $[131] = unit;
377
- $[132] = t19;
378
- } else t19 = $[132];
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 ($[133] !== as || $[134] !== inputSizeCva || $[135] !== isDisabled || $[136] !== isTrailingInteractive || $[137] !== size || $[138] !== trailingClassName || $[139] !== trailingContentNodes || $[140] !== wrapTrailingContent) {
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
- $[133] = as;
390
- $[134] = inputSizeCva;
391
- $[135] = isDisabled;
392
- $[136] = isTrailingInteractive;
393
- $[137] = size;
394
- $[138] = trailingClassName;
395
- $[139] = trailingContentNodes;
396
- $[140] = wrapTrailingContent;
397
- $[141] = t20;
398
- } else t20 = $[141];
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 ($[142] !== contentAndTrailingClassName || $[143] !== contentRow || $[144] !== trailingRow || $[145] !== wrapContentAndTrailing) {
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
- $[142] = contentAndTrailingClassName;
407
- $[143] = contentRow;
408
- $[144] = trailingRow;
409
- $[145] = wrapContentAndTrailing;
410
- $[146] = t21;
411
- } else t21 = $[146];
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 ($[147] !== staticPressTarget) {
412
+ if ($[146] !== staticPressTarget) {
415
413
  t22 = (target) => staticPressTarget === "frame" || target instanceof Element && !!target.closest("[data-static-press-action]");
416
- $[147] = staticPressTarget;
417
- $[148] = t22;
418
- } else t22 = $[148];
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 ($[149] !== onMouseEnter || $[150] !== onStaticInteract) {
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
- $[149] = onMouseEnter;
431
- $[150] = onStaticInteract;
432
- $[151] = t25;
433
- } else t25 = $[151];
428
+ $[148] = onMouseEnter;
429
+ $[149] = onStaticInteract;
430
+ $[150] = t25;
431
+ } else t25 = $[150];
434
432
  let t26;
435
- if ($[152] !== onFocusCapture || $[153] !== onStaticInteract) {
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
- $[152] = onFocusCapture;
441
- $[153] = onStaticInteract;
442
- $[154] = t26;
443
- } else t26 = $[154];
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 ($[155] !== as || $[156] !== inputBaseCva || $[157] !== inputClassName || $[158] !== t27 || $[159] !== variant) {
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
- $[155] = as;
452
- $[156] = inputBaseCva;
453
- $[157] = inputClassName;
454
- $[158] = t27;
455
- $[159] = variant;
456
- $[160] = t28;
457
- } else t28 = $[160];
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 ($[161] !== onStaticInteract) {
458
+ if ($[160] !== onStaticInteract) {
461
459
  t30 = (event_1) => {
462
460
  if (pendingStaticPressPointerIdRef.current == null) onStaticInteract?.(true, event_1.target);
463
461
  };
464
- $[161] = onStaticInteract;
465
- $[162] = t30;
466
- } else t30 = $[162];
462
+ $[160] = onStaticInteract;
463
+ $[161] = t30;
464
+ } else t30 = $[161];
467
465
  let t31;
468
- if ($[163] !== onStaticInteract || $[164] !== onStaticPress || $[165] !== shouldReplayStaticPress) {
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
- $[163] = onStaticInteract;
477
- $[164] = onStaticPress;
478
- $[165] = shouldReplayStaticPress;
479
- $[166] = t31;
480
- } else t31 = $[166];
474
+ $[162] = onStaticInteract;
475
+ $[163] = onStaticPress;
476
+ $[164] = shouldReplayStaticPress;
477
+ $[165] = t31;
478
+ } else t31 = $[165];
481
479
  let t32;
482
- if ($[167] !== onStaticPress || $[168] !== shouldReplayStaticPress) {
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
- $[167] = onStaticPress;
487
- $[168] = shouldReplayStaticPress;
488
- $[169] = t32;
489
- } else t32 = $[169];
484
+ $[166] = onStaticPress;
485
+ $[167] = shouldReplayStaticPress;
486
+ $[168] = t32;
487
+ } else t32 = $[168];
490
488
  let t33;
491
- if ($[170] !== onStaticInteract || $[171] !== onStaticPress || $[172] !== shouldReplayStaticPress) {
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
- $[170] = onStaticInteract;
501
- $[171] = onStaticPress;
502
- $[172] = shouldReplayStaticPress;
503
- $[173] = t33;
504
- } else t33 = $[173];
498
+ $[169] = onStaticInteract;
499
+ $[170] = onStaticPress;
500
+ $[171] = shouldReplayStaticPress;
501
+ $[172] = t33;
502
+ } else t33 = $[172];
505
503
  let t34;
506
- if ($[174] === Symbol.for("react.memo_cache_sentinel")) {
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
- $[174] = t34;
511
- } else t34 = $[174];
508
+ $[173] = t34;
509
+ } else t34 = $[173];
512
510
  let t35;
513
- if ($[175] !== onStaticPress) {
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
- $[175] = onStaticPress;
520
- $[176] = t35;
521
- } else t35 = $[176];
517
+ $[174] = onStaticPress;
518
+ $[175] = t35;
519
+ } else t35 = $[175];
522
520
  let t36;
523
- if ($[177] !== dataAttributeProps || $[178] !== inputFrameContent || $[179] !== ref || $[180] !== t28 || $[181] !== t29 || $[182] !== t30 || $[183] !== t31 || $[184] !== t32 || $[185] !== t33 || $[186] !== t35) {
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
- $[177] = dataAttributeProps;
539
- $[178] = inputFrameContent;
540
- $[179] = ref;
541
- $[180] = t28;
542
- $[181] = t29;
543
- $[182] = t30;
544
- $[183] = t31;
545
- $[184] = t32;
546
- $[185] = t33;
547
- $[186] = t35;
548
- $[187] = t36;
549
- } else t36 = $[187];
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 ($[188] !== as || $[189] !== dataAttributeProps || $[190] !== formFieldProps || $[191] !== formFieldRef || $[192] !== labelProps || $[193] !== t24 || $[194] !== t25 || $[195] !== t26 || $[196] !== t36) {
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
- $[188] = as;
564
- $[189] = dataAttributeProps;
565
- $[190] = formFieldProps;
566
- $[191] = formFieldRef;
567
- $[192] = labelProps;
568
- $[193] = t24;
569
- $[194] = t25;
570
- $[195] = t26;
571
- $[196] = t36;
572
- $[197] = t37;
573
- } else t37 = $[197];
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 ($[198] !== as || $[199] !== error || $[200] !== t23 || $[201] !== t37) {
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
- $[198] = as;
583
- $[199] = error;
584
- $[200] = t23;
585
- $[201] = t37;
586
- $[202] = t38;
587
- } else t38 = $[202];
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 = {