@povio/ui 2.3.0-rc.3 → 2.3.0-rc.33

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 (218) hide show
  1. package/dist/assets/icons/AlignCenter.js +26 -11
  2. package/dist/assets/icons/AlignLeft.js +26 -11
  3. package/dist/assets/icons/AlignLeftRight.js +26 -11
  4. package/dist/assets/icons/AlignRight.js +26 -11
  5. package/dist/assets/icons/ArrowDropDown.js +26 -11
  6. package/dist/assets/icons/ArrowDropUp.js +26 -11
  7. package/dist/assets/icons/ArrowLeft.js +26 -11
  8. package/dist/assets/icons/ArrowRight.js +26 -11
  9. package/dist/assets/icons/Bold.js +26 -11
  10. package/dist/assets/icons/BulletedList.js +26 -11
  11. package/dist/assets/icons/Calendar.js +28 -13
  12. package/dist/assets/icons/Check.js +28 -13
  13. package/dist/assets/icons/CheckCircle.js +26 -11
  14. package/dist/assets/icons/CheckboxCheckmark.js +29 -14
  15. package/dist/assets/icons/CheckboxIndeterminate.js +29 -14
  16. package/dist/assets/icons/ChevronDown.js +28 -13
  17. package/dist/assets/icons/ChevronLeft.js +28 -13
  18. package/dist/assets/icons/ChevronRight.js +28 -13
  19. package/dist/assets/icons/ChevronUp.js +28 -13
  20. package/dist/assets/icons/ChevronsLeft.js +28 -13
  21. package/dist/assets/icons/ChevronsRight.js +28 -13
  22. package/dist/assets/icons/Clock.js +26 -11
  23. package/dist/assets/icons/Close.js +26 -11
  24. package/dist/assets/icons/DateTime.js +35 -14
  25. package/dist/assets/icons/DragIndicator.js +26 -11
  26. package/dist/assets/icons/File.js +28 -13
  27. package/dist/assets/icons/Highlight.js +26 -11
  28. package/dist/assets/icons/HighlightOn.js +49 -15
  29. package/dist/assets/icons/Home.js +26 -11
  30. package/dist/assets/icons/Info.js +37 -16
  31. package/dist/assets/icons/Italic.js +26 -11
  32. package/dist/assets/icons/Link.js +26 -11
  33. package/dist/assets/icons/Menu.js +26 -11
  34. package/dist/assets/icons/NumberedList.js +26 -11
  35. package/dist/assets/icons/PointerHorizontal.js +26 -11
  36. package/dist/assets/icons/PointerVertical.js +26 -11
  37. package/dist/assets/icons/Search.js +26 -11
  38. package/dist/assets/icons/Send.js +28 -13
  39. package/dist/assets/icons/Strikethrough.js +26 -11
  40. package/dist/assets/icons/TextColor.js +48 -14
  41. package/dist/assets/icons/Today.js +26 -11
  42. package/dist/assets/icons/Underlined.js +28 -13
  43. package/dist/assets/icons/Upload.js +35 -14
  44. package/dist/assets/icons/Visibility.js +26 -11
  45. package/dist/assets/icons/VisibilityOff.js +26 -11
  46. package/dist/assets/icons/WarningFilled.js +28 -13
  47. package/dist/components/Breadcrumbs/Breadcrumbs.js +207 -56
  48. package/dist/components/Menu/Menu.js +18 -2
  49. package/dist/components/Menu/MenuDesktop.js +41 -7
  50. package/dist/components/Menu/MenuItem.js +32 -9
  51. package/dist/components/Menu/MenuMobile.js +97 -38
  52. package/dist/components/Menu/MenuPopover.js +105 -29
  53. package/dist/components/buttons/IconButton/IconButton.js +40 -8
  54. package/dist/components/buttons/InlineIconButton/InlineIconButton.js +34 -9
  55. package/dist/components/buttons/PillButton/PillButton.js +55 -17
  56. package/dist/components/buttons/SplitButton/SplitButton.js +103 -18
  57. package/dist/components/buttons/TextButton/TextButton.js +30 -8
  58. package/dist/components/buttons/ToggleButton/ToggleButton.js +28 -8
  59. package/dist/components/buttons/shared/ButtonContent.js +80 -22
  60. package/dist/components/inputs/Checkbox/Checkbox.d.ts +1 -0
  61. package/dist/components/inputs/Checkbox/Checkbox.js +188 -34
  62. package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +24 -10
  63. package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +1 -0
  64. package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +268 -87
  65. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +1 -0
  66. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +348 -182
  67. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +1 -0
  68. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +178 -69
  69. package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +1 -0
  70. package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +530 -157
  71. package/dist/components/inputs/DateTime/shared/Calendar.js +333 -137
  72. package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +2 -1
  73. package/dist/components/inputs/DateTime/shared/CalendarCell.js +301 -102
  74. package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +2 -1
  75. package/dist/components/inputs/DateTime/shared/CalendarGrid.js +146 -33
  76. package/dist/components/inputs/DateTime/shared/CalendarHeader.js +245 -90
  77. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +318 -137
  78. package/dist/components/inputs/DateTime/shared/DateField.js +311 -112
  79. package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +7 -1
  80. package/dist/components/inputs/DateTime/shared/DatePickerInput.js +376 -146
  81. package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +94 -21
  82. package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +81 -27
  83. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +59 -10
  84. package/dist/components/inputs/DateTime/shared/MonthPicker.js +103 -58
  85. package/dist/components/inputs/DateTime/shared/RangeCalendar.js +193 -82
  86. package/dist/components/inputs/DateTime/shared/TimeField.js +27 -8
  87. package/dist/components/inputs/DateTime/shared/TimePickerForm.js +279 -110
  88. package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +3 -1
  89. package/dist/components/inputs/DateTime/shared/TimePickerInput.js +208 -70
  90. package/dist/components/inputs/DateTime/shared/YearPicker.js +119 -68
  91. package/dist/components/inputs/File/FileUpload.js +86 -44
  92. package/dist/components/inputs/File/FileUploadContainer.js +15 -7
  93. package/dist/components/inputs/File/InputUpload.js +317 -79
  94. package/dist/components/inputs/File/shared/FileCard.js +104 -41
  95. package/dist/components/inputs/File/shared/FileCardList.js +47 -12
  96. package/dist/components/inputs/File/shared/FileUploadContent.js +175 -44
  97. package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +149 -46
  98. package/dist/components/inputs/File/shared/FileUploadContentError.js +234 -93
  99. package/dist/components/inputs/File/shared/FileUploadContentFilled.js +230 -97
  100. package/dist/components/inputs/File/shared/FileUploadContentLoading.js +199 -55
  101. package/dist/components/inputs/File/shared/InputUploadContent.js +148 -35
  102. package/dist/components/inputs/File/shared/InputUploadFilled.js +49 -8
  103. package/dist/components/inputs/File/shared/ProgressBar.js +48 -9
  104. package/dist/components/inputs/FormField/FormField.js +119 -37
  105. package/dist/components/inputs/FormField/FormFieldError.js +25 -5
  106. package/dist/components/inputs/FormField/FormFieldHeader.js +79 -22
  107. package/dist/components/inputs/FormField/FormFieldHeaderClose.js +31 -7
  108. package/dist/components/inputs/FormField/FormFieldHelper.js +26 -6
  109. package/dist/components/inputs/FormField/FormFieldLabel.js +40 -9
  110. package/dist/components/inputs/Input/NumberInput/NumberInput.js +392 -123
  111. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +541 -116
  112. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +463 -146
  113. package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +48 -9
  114. package/dist/components/inputs/Input/TextArea/TextArea.js +298 -89
  115. package/dist/components/inputs/Input/TextInput/TextInput.js +370 -121
  116. package/dist/components/inputs/Input/shared/InputContent.js +190 -58
  117. package/dist/components/inputs/Inputs/Form.js +40 -11
  118. package/dist/components/inputs/Inputs/InputItem.d.ts +0 -1
  119. package/dist/components/inputs/Inputs/InputItem.js +65 -16
  120. package/dist/components/inputs/Inputs/Inputs.js +37 -11
  121. package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +1 -0
  122. package/dist/components/inputs/RadioGroup/RadioGroup.js +333 -107
  123. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +145 -50
  124. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +3 -2
  125. package/dist/components/inputs/Selection/Select/QuerySelect.js +107 -27
  126. package/dist/components/inputs/Selection/Select/Select.js +139 -44
  127. package/dist/components/inputs/Selection/shared/SelectBase.js +69 -20
  128. package/dist/components/inputs/Selection/shared/SelectDesktop.js +390 -143
  129. package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
  130. package/dist/components/inputs/Selection/shared/SelectInput.js +326 -136
  131. package/dist/components/inputs/Selection/shared/SelectInputTags.js +99 -25
  132. package/dist/components/inputs/Selection/shared/SelectListBox.js +163 -51
  133. package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +85 -35
  134. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +69 -16
  135. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +70 -21
  136. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +58 -9
  137. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +9 -0
  138. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +47 -0
  139. package/dist/components/inputs/Selection/shared/select.context.d.ts +2 -2
  140. package/dist/components/inputs/Selection/shared/select.context.js +44 -38
  141. package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +5 -0
  142. package/dist/components/inputs/Selection/shared/selectInput.cva.js +5 -0
  143. package/dist/components/inputs/Selection/shared/useSelectItems.js +109 -49
  144. package/dist/components/inputs/Skeleton/InputFrame.d.ts +2 -0
  145. package/dist/components/inputs/Skeleton/InputFrame.js +444 -124
  146. package/dist/components/inputs/Slider/Slider.js +247 -74
  147. package/dist/components/inputs/TextEditor/TextEditor.js +447 -103
  148. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +37 -11
  149. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +102 -30
  150. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +194 -45
  151. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +88 -28
  152. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +48 -14
  153. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +66 -19
  154. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +49 -15
  155. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +92 -32
  156. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +126 -54
  157. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +141 -38
  158. package/dist/components/inputs/Toggle/Toggle.d.ts +1 -0
  159. package/dist/components/inputs/Toggle/Toggle.js +206 -41
  160. package/dist/components/inputs/shared/CheckContent.js +21 -10
  161. package/dist/components/inputs/shared/InputClear.js +78 -21
  162. package/dist/components/inputs/shared/TooltipWrapper.js +47 -12
  163. package/dist/components/inputs/shared/input.cva.js +13 -3
  164. package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +1 -0
  165. package/dist/components/inputs/shared/useStaticInputHandoff.js +87 -34
  166. package/dist/components/navigation/Accordion/Accordion.js +69 -22
  167. package/dist/components/navigation/Accordion/AccordionItem.js +86 -41
  168. package/dist/components/navigation/Stepper/Stepper.js +67 -22
  169. package/dist/components/navigation/Stepper/StepperItem.js +104 -31
  170. package/dist/components/navigation/Stepper/StepperSeparator.js +23 -5
  171. package/dist/components/overlays/ActionModal/ActionModal.js +169 -35
  172. package/dist/components/overlays/BottomSheet/BottomSheet.js +96 -23
  173. package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +48 -8
  174. package/dist/components/overlays/Drawer/Drawer.js +62 -20
  175. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +83 -27
  176. package/dist/components/overlays/Tooltip/Tooltip.js +137 -28
  177. package/dist/components/overlays/Tooltip/TooltipEllipsis.js +37 -12
  178. package/dist/components/segment/Segment.js +218 -57
  179. package/dist/components/segment/SegmentItem.js +67 -10
  180. package/dist/components/shared/pagination/Pagination.js +108 -22
  181. package/dist/components/shared/pagination/PaginationList.js +167 -64
  182. package/dist/components/status/Alert/Alert.js +97 -30
  183. package/dist/components/status/Loader/Loader.js +77 -22
  184. package/dist/components/status/Toast/Toast.js +21 -13
  185. package/dist/components/status/Toast/useToast.js +62 -57
  186. package/dist/components/table/ColumnConfig.js +158 -54
  187. package/dist/components/table/InfiniteTable.js +67 -16
  188. package/dist/components/table/PaginatedTable.js +84 -18
  189. package/dist/components/table/Table.js +28 -27
  190. package/dist/components/text/Link/Link.js +19 -7
  191. package/dist/components/text/Typography/Typography.js +23 -8
  192. package/dist/config/confirmation.context.js +1 -1
  193. package/dist/config/link.context.js +23 -9
  194. package/dist/config/router.context.js +42 -16
  195. package/dist/config/theme.context.js +98 -45
  196. package/dist/config/uiConfig.context.d.ts +4 -4
  197. package/dist/config/uiConfig.context.js +50 -11
  198. package/dist/config/uiStyle.context.js +15 -5
  199. package/dist/helpers/dynamicInputs.d.ts +1 -1
  200. package/dist/hooks/useBreakpoint.js +16 -3
  201. package/dist/hooks/useDebounceCallback.js +51 -17
  202. package/dist/hooks/useFilters.js +125 -64
  203. package/dist/hooks/useForm.js +42 -8
  204. package/dist/hooks/useFormAutosave.js +101 -30
  205. package/dist/hooks/useIntersectionObserver.js +86 -32
  206. package/dist/hooks/useLocalStorage.js +43 -10
  207. package/dist/hooks/useLongPressRepeat.js +55 -20
  208. package/dist/hooks/usePagination.js +49 -19
  209. package/dist/hooks/useQueryAutocomplete.js +1 -0
  210. package/dist/hooks/useScrollableListBox.js +37 -16
  211. package/dist/hooks/useSorting.js +69 -28
  212. package/dist/hooks/useStateAndRef.js +21 -7
  213. package/dist/hooks/useTableColumnConfig.js +124 -31
  214. package/dist/hooks/useTranslationMemo.js +25 -5
  215. package/dist/index.js +2 -2
  216. package/dist/utils/date-time.utils.d.ts +2 -0
  217. package/dist/utils/date-time.utils.js +17 -13
  218. package/package.json +1 -1
@@ -1,6 +1,5 @@
1
1
  import { UIStyle } from "../../../config/uiStyle.context.js";
2
2
  import { typography } from "../../text/Typography/typography.cva.js";
3
- import { Loader } from "../../status/Loader/Loader.js";
4
3
  import { UIConfig } from "../../../config/uiConfig.context.js";
5
4
  import { InlineIconButton } from "../../buttons/InlineIconButton/InlineIconButton.js";
6
5
  import { FormFieldLabel } from "../FormField/FormFieldLabel.js";
@@ -8,100 +7,301 @@ import { InputClear } from "../shared/InputClear.js";
8
7
  import { inputBase, inputContentWrapper, inputSize } from "../shared/input.cva.js";
9
8
  import { FormField } from "../FormField/FormField.js";
10
9
  import { TooltipWrapper } from "../shared/TooltipWrapper.js";
10
+ import { c } from "react/compiler-runtime";
11
11
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
12
  import { clsx } from "clsx";
13
13
  import { isValidElement, useId } from "react";
14
14
  //#region src/components/inputs/Skeleton/InputFrame.tsx
15
15
  var InputFrame = (props) => {
16
+ const $ = c(181);
16
17
  const ui = UIConfig.useConfig();
17
18
  const inputBaseCva = UIStyle.useCva("input.baseCva", inputBase);
18
19
  const inputSizeCva = UIStyle.useCva("input.sizeCva", inputSize);
19
20
  const inputContentWrapperCva = UIStyle.useCva("input.contentWrapperCva", inputContentWrapper);
20
21
  const typographyCva = UIStyle.useCva("typography.cva", typography);
21
22
  const generatedInputId = useId();
22
- const { ref, children, formFieldRef, labelProps: labelPropsProp, headerProps, error, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isHeaderHidden, hideLabel: hideLabelProp, headerClassName, errorClassName, className, leadingContent, leadingIcon, actionContent, actionContentPlacement = "content-wrapper", trailingContent, trailingIcon, trailingAction, unit, isLoading, action, isClearable: isClearableProp, showClear, renderStatic, onStaticInteract, clearClassName, onClear, dataAttributes, typographySize, id: idProp, inputClassName, contentClassName, contentWrapperClassName, wrapContentAndTrailing, labelPlacement = "content-wrapper", trailingClassName, onMouseEnter, onFocusCapture, variant: variantProp, as: asProp, size: sizeProp } = props;
23
+ 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, action, isClearable: isClearableProp, showClear, renderStatic, onStaticInteract, clearClassName, onClear, dataAttributes, typographySize, id: idProp, inputClassName, contentClassName, contentWrapperClassName, contentAndTrailingClassName, wrapContentAndTrailing, wrapTrailingContent: t1, labelPlacement: t2, trailingClassName, onMouseEnter, onFocusCapture, variant: variantProp, as: asProp, size: sizeProp } = props;
24
+ const actionContentPlacement = t0 === void 0 ? "content-wrapper" : t0;
25
+ const wrapTrailingContent = t1 === void 0 ? true : t1;
26
+ const labelPlacement = t2 === void 0 ? "content-wrapper" : t2;
23
27
  const as = asProp ?? ui.input.as;
24
28
  const size = sizeProp ?? ui.input.size;
25
29
  const variant = variantProp ?? ui.input.variant;
26
30
  const hideLabel = hideLabelProp ?? ui.input.hideLabel;
27
31
  const hasClear = !!(isClearableProp ?? ui.input.isClearable);
28
- const isLeadingIconElement = leadingIcon && isValidElement(leadingIcon);
29
- const isTrailingIconElement = trailingIcon && isValidElement(trailingIcon);
30
- const hasTrailingContent = hasClear || !!trailingContent || !!unit || !!isLoading || !!action || !!trailingIcon || !!trailingAction;
32
+ let t3;
33
+ if ($[0] !== leadingIcon) {
34
+ t3 = leadingIcon && isValidElement(leadingIcon);
35
+ $[0] = leadingIcon;
36
+ $[1] = t3;
37
+ } else t3 = $[1];
38
+ const isLeadingIconElement = t3;
39
+ let t4;
40
+ if ($[2] !== trailingIcon) {
41
+ t4 = trailingIcon && isValidElement(trailingIcon);
42
+ $[2] = trailingIcon;
43
+ $[3] = t4;
44
+ } else t4 = $[3];
45
+ const isTrailingIconElement = t4;
46
+ const hasTrailingContent = hasClear || !!trailingContent || !!unit || !!action || !!trailingIcon || !!trailingAction;
31
47
  const isTrailingInteractive = !!action || !!trailingAction || !!isTrailingIconElement || hasClear && !!showClear || !!trailingContent;
32
- const dataAttributeProps = getInputFrameDataAttributeProps(dataAttributes);
33
- const baseLabelProps = headerProps?.labelProps ?? labelPropsProp;
34
- const inputId = idProp ?? baseLabelProps?.htmlFor ?? `input-frame_${generatedInputId}`;
35
- const labelProps = {
36
- ...baseLabelProps,
37
- htmlFor: inputId
38
- };
39
- const formFieldProps = {
40
- error,
41
- label: label ?? "",
42
- tooltipText,
43
- helperText,
44
- isRequired,
45
- rightContent,
46
- isHeaderHidden: isHeaderHidden || as === "inline" || as === "filter" || as === "floating",
47
- hideLabel,
48
- isDisabled,
49
- headerClassName,
50
- errorClassName,
51
- className
52
- };
53
- const resolvedHeaderProps = headerProps ? {
54
- ...headerProps,
55
- labelProps
56
- } : {
57
- label: label ?? "",
58
- tooltipText,
59
- helperText,
60
- isRequired,
61
- rightContent,
62
- isHeaderHidden: hideLabel || isHeaderHidden,
63
- isDisabled,
64
- className: headerClassName,
65
- labelProps
66
- };
67
- const labelContent = as && ["filter", "floating"].includes(as) ? /* @__PURE__ */ jsx(FormFieldLabel, {
68
- as,
69
- size,
70
- ...resolvedHeaderProps
71
- }) : null;
72
- const resolvedContentWrapperClassName = contentWrapperClassName ?? inputContentWrapperCva({ as });
73
- const contentRow = /* @__PURE__ */ jsxs("div", {
74
- className: clsx("group/input-frame flex min-w-0 w-full items-center gap-input-gap-input-text-to-elements", as === "inline" && "h-full", inputSizeCva({
75
- size,
76
- as
77
- }), typographySize && typographyCva({ size: typographySize }), contentClassName),
78
- children: [
79
- leadingContent,
80
- leadingIcon && /* @__PURE__ */ jsx("div", {
48
+ let dataAttributeProps;
49
+ let formFieldProps;
50
+ let labelProps;
51
+ let t10;
52
+ let t11;
53
+ let t12;
54
+ let t13;
55
+ let t5;
56
+ let t6;
57
+ let t7;
58
+ let t8;
59
+ let t9;
60
+ if ($[4] !== actionContent || $[5] !== actionContentPlacement || $[6] !== as || $[7] !== children || $[8] !== className || $[9] !== contentClassName || $[10] !== contentWrapperClassName || $[11] !== dataAttributes || $[12] !== error || $[13] !== errorClassName || $[14] !== generatedInputId || $[15] !== headerClassName || $[16] !== headerProps || $[17] !== helperText || $[18] !== hideLabel || $[19] !== idProp || $[20] !== inputContentWrapperCva || $[21] !== inputSizeCva || $[22] !== isDisabled || $[23] !== isHeaderHidden || $[24] !== isLeadingIconElement || $[25] !== isRequired || $[26] !== label || $[27] !== labelPlacement || $[28] !== labelPropsProp || $[29] !== leadingContent || $[30] !== leadingIcon || $[31] !== rightContent || $[32] !== size || $[33] !== tooltipText || $[34] !== typographyCva || $[35] !== typographySize) {
61
+ dataAttributeProps = getInputFrameDataAttributeProps(dataAttributes);
62
+ const baseLabelProps = headerProps?.labelProps ?? labelPropsProp;
63
+ const inputId = idProp ?? baseLabelProps?.htmlFor ?? `input-frame_${generatedInputId}`;
64
+ let t14;
65
+ if ($[48] !== baseLabelProps || $[49] !== inputId) {
66
+ t14 = {
67
+ ...baseLabelProps,
68
+ htmlFor: inputId
69
+ };
70
+ $[48] = baseLabelProps;
71
+ $[49] = inputId;
72
+ $[50] = t14;
73
+ } else t14 = $[50];
74
+ labelProps = t14;
75
+ const t15 = label ?? "";
76
+ const t16 = isHeaderHidden || as === "inline" || as === "filter" || as === "floating";
77
+ let t17;
78
+ if ($[51] !== className || $[52] !== error || $[53] !== errorClassName || $[54] !== headerClassName || $[55] !== helperText || $[56] !== hideLabel || $[57] !== isDisabled || $[58] !== isRequired || $[59] !== rightContent || $[60] !== t15 || $[61] !== t16 || $[62] !== tooltipText) {
79
+ t17 = {
80
+ error,
81
+ label: t15,
82
+ tooltipText,
83
+ helperText,
84
+ isRequired,
85
+ rightContent,
86
+ isHeaderHidden: t16,
87
+ hideLabel,
88
+ isDisabled,
89
+ headerClassName,
90
+ errorClassName,
91
+ className
92
+ };
93
+ $[51] = className;
94
+ $[52] = error;
95
+ $[53] = errorClassName;
96
+ $[54] = headerClassName;
97
+ $[55] = helperText;
98
+ $[56] = hideLabel;
99
+ $[57] = isDisabled;
100
+ $[58] = isRequired;
101
+ $[59] = rightContent;
102
+ $[60] = t15;
103
+ $[61] = t16;
104
+ $[62] = tooltipText;
105
+ $[63] = t17;
106
+ } else t17 = $[63];
107
+ formFieldProps = t17;
108
+ let t18;
109
+ if ($[64] !== headerClassName || $[65] !== headerProps || $[66] !== helperText || $[67] !== hideLabel || $[68] !== isDisabled || $[69] !== isHeaderHidden || $[70] !== isRequired || $[71] !== label || $[72] !== labelProps || $[73] !== rightContent || $[74] !== tooltipText) {
110
+ t18 = headerProps ? {
111
+ ...headerProps,
112
+ labelProps
113
+ } : {
114
+ label: label ?? "",
115
+ tooltipText,
116
+ helperText,
117
+ isRequired,
118
+ rightContent,
119
+ isHeaderHidden: hideLabel || isHeaderHidden,
120
+ isDisabled,
121
+ className: headerClassName,
122
+ labelProps
123
+ };
124
+ $[64] = headerClassName;
125
+ $[65] = headerProps;
126
+ $[66] = helperText;
127
+ $[67] = hideLabel;
128
+ $[68] = isDisabled;
129
+ $[69] = isHeaderHidden;
130
+ $[70] = isRequired;
131
+ $[71] = label;
132
+ $[72] = labelProps;
133
+ $[73] = rightContent;
134
+ $[74] = tooltipText;
135
+ $[75] = t18;
136
+ } else t18 = $[75];
137
+ const resolvedHeaderProps = t18;
138
+ let t19;
139
+ if ($[76] !== as) {
140
+ t19 = as && ["filter", "floating"].includes(as);
141
+ $[76] = as;
142
+ $[77] = t19;
143
+ } else t19 = $[77];
144
+ const shouldRenderLabel = t19;
145
+ let t20;
146
+ if ($[78] !== as || $[79] !== resolvedHeaderProps || $[80] !== shouldRenderLabel || $[81] !== size) {
147
+ t20 = shouldRenderLabel ? /* @__PURE__ */ jsx(FormFieldLabel, {
148
+ as,
149
+ size,
150
+ ...resolvedHeaderProps
151
+ }) : null;
152
+ $[78] = as;
153
+ $[79] = resolvedHeaderProps;
154
+ $[80] = shouldRenderLabel;
155
+ $[81] = size;
156
+ $[82] = t20;
157
+ } else t20 = $[82];
158
+ const labelContent = t20;
159
+ let t21;
160
+ if ($[83] !== as || $[84] !== contentWrapperClassName || $[85] !== inputContentWrapperCva) {
161
+ t21 = contentWrapperClassName ?? inputContentWrapperCva({ as });
162
+ $[83] = as;
163
+ $[84] = contentWrapperClassName;
164
+ $[85] = inputContentWrapperCva;
165
+ $[86] = t21;
166
+ } else t21 = $[86];
167
+ const resolvedContentWrapperClassName = t21;
168
+ if ($[87] !== as || $[88] !== contentClassName || $[89] !== inputSizeCva || $[90] !== size || $[91] !== typographyCva || $[92] !== typographySize) {
169
+ let t22;
170
+ if ($[94] !== typographyCva || $[95] !== typographySize) {
171
+ t22 = typographySize && typographyCva({ size: typographySize });
172
+ $[94] = typographyCva;
173
+ $[95] = typographySize;
174
+ $[96] = t22;
175
+ } else t22 = $[96];
176
+ t9 = clsx("group/input-frame flex min-w-0 w-full items-center gap-input-gap-input-text-to-elements", inputSizeCva({
177
+ size,
178
+ as
179
+ }), t22, contentClassName);
180
+ $[87] = as;
181
+ $[88] = contentClassName;
182
+ $[89] = inputSizeCva;
183
+ $[90] = size;
184
+ $[91] = typographyCva;
185
+ $[92] = typographySize;
186
+ $[93] = t9;
187
+ } else t9 = $[93];
188
+ t10 = leadingContent;
189
+ if ($[97] !== isLeadingIconElement || $[98] !== leadingIcon) {
190
+ t11 = leadingIcon && /* @__PURE__ */ jsx("div", {
81
191
  className: clsx(!isLeadingIconElement && "pointer-events-none"),
82
192
  children: renderIconVisual(leadingIcon)
83
- }),
84
- labelPlacement === "content-row" && labelContent,
85
- actionContentPlacement === "content-row" && actionContent,
86
- /* @__PURE__ */ jsxs("div", {
87
- className: resolvedContentWrapperClassName,
88
- children: [
89
- labelPlacement === "content-wrapper" && labelContent,
90
- actionContentPlacement === "content-wrapper" && actionContent,
91
- typeof children === "function" ? children({
92
- ...dataAttributeProps,
93
- id: inputId
94
- }) : children
95
- ]
96
- })
97
- ]
98
- });
99
- const trailingRow = hasTrailingContent ? /* @__PURE__ */ jsxs("div", {
100
- className: clsx("flex items-center gap-input-gap-trailing-elements", inputSizeCva({
101
- size,
102
- as
103
- }), !isTrailingInteractive && "pointer-events-none", trailingClassName),
104
- children: [
193
+ });
194
+ $[97] = isLeadingIconElement;
195
+ $[98] = leadingIcon;
196
+ $[99] = t11;
197
+ } else t11 = $[99];
198
+ t12 = labelPlacement === "content-row" && labelContent;
199
+ t13 = actionContentPlacement === "content-row" && actionContent;
200
+ t5 = resolvedContentWrapperClassName;
201
+ t6 = labelPlacement === "content-wrapper" && labelContent;
202
+ t7 = actionContentPlacement === "content-wrapper" && actionContent;
203
+ t8 = typeof children === "function" ? children({
204
+ ...dataAttributeProps,
205
+ id: inputId
206
+ }) : children;
207
+ $[4] = actionContent;
208
+ $[5] = actionContentPlacement;
209
+ $[6] = as;
210
+ $[7] = children;
211
+ $[8] = className;
212
+ $[9] = contentClassName;
213
+ $[10] = contentWrapperClassName;
214
+ $[11] = dataAttributes;
215
+ $[12] = error;
216
+ $[13] = errorClassName;
217
+ $[14] = generatedInputId;
218
+ $[15] = headerClassName;
219
+ $[16] = headerProps;
220
+ $[17] = helperText;
221
+ $[18] = hideLabel;
222
+ $[19] = idProp;
223
+ $[20] = inputContentWrapperCva;
224
+ $[21] = inputSizeCva;
225
+ $[22] = isDisabled;
226
+ $[23] = isHeaderHidden;
227
+ $[24] = isLeadingIconElement;
228
+ $[25] = isRequired;
229
+ $[26] = label;
230
+ $[27] = labelPlacement;
231
+ $[28] = labelPropsProp;
232
+ $[29] = leadingContent;
233
+ $[30] = leadingIcon;
234
+ $[31] = rightContent;
235
+ $[32] = size;
236
+ $[33] = tooltipText;
237
+ $[34] = typographyCva;
238
+ $[35] = typographySize;
239
+ $[36] = dataAttributeProps;
240
+ $[37] = formFieldProps;
241
+ $[38] = labelProps;
242
+ $[39] = t10;
243
+ $[40] = t11;
244
+ $[41] = t12;
245
+ $[42] = t13;
246
+ $[43] = t5;
247
+ $[44] = t6;
248
+ $[45] = t7;
249
+ $[46] = t8;
250
+ $[47] = t9;
251
+ } else {
252
+ dataAttributeProps = $[36];
253
+ formFieldProps = $[37];
254
+ labelProps = $[38];
255
+ t10 = $[39];
256
+ t11 = $[40];
257
+ t12 = $[41];
258
+ t13 = $[42];
259
+ t5 = $[43];
260
+ t6 = $[44];
261
+ t7 = $[45];
262
+ t8 = $[46];
263
+ t9 = $[47];
264
+ }
265
+ let t14;
266
+ if ($[100] !== t5 || $[101] !== t6 || $[102] !== t7 || $[103] !== t8) {
267
+ t14 = /* @__PURE__ */ jsxs("div", {
268
+ className: t5,
269
+ children: [
270
+ t6,
271
+ t7,
272
+ t8
273
+ ]
274
+ });
275
+ $[100] = t5;
276
+ $[101] = t6;
277
+ $[102] = t7;
278
+ $[103] = t8;
279
+ $[104] = t14;
280
+ } else t14 = $[104];
281
+ let t15;
282
+ if ($[105] !== t10 || $[106] !== t11 || $[107] !== t12 || $[108] !== t13 || $[109] !== t14 || $[110] !== t9) {
283
+ t15 = /* @__PURE__ */ jsxs("div", {
284
+ className: t9,
285
+ children: [
286
+ t10,
287
+ t11,
288
+ t12,
289
+ t13,
290
+ t14
291
+ ]
292
+ });
293
+ $[105] = t10;
294
+ $[106] = t11;
295
+ $[107] = t12;
296
+ $[108] = t13;
297
+ $[109] = t14;
298
+ $[110] = t9;
299
+ $[111] = t15;
300
+ } else t15 = $[111];
301
+ const contentRow = t15;
302
+ let t16;
303
+ if ($[112] !== action || $[113] !== clearClassName || $[114] !== hasClear || $[115] !== hasTrailingContent || $[116] !== isDisabled || $[117] !== onClear || $[118] !== renderStatic || $[119] !== showClear || $[120] !== trailingAction || $[121] !== trailingContent || $[122] !== trailingIcon || $[123] !== typographyCva || $[124] !== unit) {
304
+ t16 = hasTrailingContent ? /* @__PURE__ */ jsxs(Fragment, { children: [
105
305
  hasClear && /* @__PURE__ */ jsx(InputClear, {
106
306
  onClear: () => onClear?.(),
107
307
  className: clearClassName,
@@ -118,11 +318,7 @@ var InputFrame = (props) => {
118
318
  }),
119
319
  children: unit
120
320
  }),
121
- isLoading && /* @__PURE__ */ jsx("div", {
122
- className: "inline-flex",
123
- children: /* @__PURE__ */ jsx(Loader, {})
124
- }),
125
- !isLoading && action && /* @__PURE__ */ jsx(InlineIconButton, {
321
+ action && /* @__PURE__ */ jsx(InlineIconButton, {
126
322
  color: "secondary",
127
323
  icon: action.icon,
128
324
  isDisabled,
@@ -131,55 +327,179 @@ var InputFrame = (props) => {
131
327
  label: action.altText,
132
328
  className: clsx("border-0!", action.className)
133
329
  }),
134
- !isLoading && !action && trailingIcon && renderIconVisual(trailingIcon),
330
+ !action && trailingIcon && renderIconVisual(trailingIcon),
135
331
  trailingAction
136
- ]
137
- }) : null;
138
- const inputFrameContent = wrapContentAndTrailing ? /* @__PURE__ */ jsxs("div", {
139
- className: "flex w-full items-center gap-input-gap-input-text-to-elements",
140
- children: [contentRow, trailingRow]
141
- }) : /* @__PURE__ */ jsxs(Fragment, { children: [contentRow, trailingRow] });
142
- return /* @__PURE__ */ jsx(TooltipWrapper, {
143
- as,
144
- error,
145
- triggerTabIndex: as === "inline" ? -1 : void 0,
146
- children: /* @__PURE__ */ jsx(FormField, {
332
+ ] }) : null;
333
+ $[112] = action;
334
+ $[113] = clearClassName;
335
+ $[114] = hasClear;
336
+ $[115] = hasTrailingContent;
337
+ $[116] = isDisabled;
338
+ $[117] = onClear;
339
+ $[118] = renderStatic;
340
+ $[119] = showClear;
341
+ $[120] = trailingAction;
342
+ $[121] = trailingContent;
343
+ $[122] = trailingIcon;
344
+ $[123] = typographyCva;
345
+ $[124] = unit;
346
+ $[125] = t16;
347
+ } else t16 = $[125];
348
+ const trailingContentNodes = t16;
349
+ let t17;
350
+ if ($[126] !== as || $[127] !== inputSizeCva || $[128] !== isTrailingInteractive || $[129] !== size || $[130] !== trailingClassName || $[131] !== trailingContentNodes || $[132] !== wrapTrailingContent) {
351
+ t17 = wrapTrailingContent && trailingContentNodes ? /* @__PURE__ */ jsx("div", {
352
+ className: clsx("flex items-center gap-input-gap-trailing-elements", inputSizeCva({
353
+ size,
354
+ as
355
+ }), !isTrailingInteractive && "pointer-events-none", trailingClassName),
356
+ children: trailingContentNodes
357
+ }) : trailingContentNodes;
358
+ $[126] = as;
359
+ $[127] = inputSizeCva;
360
+ $[128] = isTrailingInteractive;
361
+ $[129] = size;
362
+ $[130] = trailingClassName;
363
+ $[131] = trailingContentNodes;
364
+ $[132] = wrapTrailingContent;
365
+ $[133] = t17;
366
+ } else t17 = $[133];
367
+ const trailingRow = t17;
368
+ let t18;
369
+ if ($[134] !== contentAndTrailingClassName || $[135] !== contentRow || $[136] !== trailingRow || $[137] !== wrapContentAndTrailing) {
370
+ t18 = wrapContentAndTrailing ? /* @__PURE__ */ jsxs("div", {
371
+ className: clsx("flex w-full items-center gap-input-gap-input-text-to-elements", contentAndTrailingClassName),
372
+ children: [contentRow, trailingRow]
373
+ }) : /* @__PURE__ */ jsxs(Fragment, { children: [contentRow, trailingRow] });
374
+ $[134] = contentAndTrailingClassName;
375
+ $[135] = contentRow;
376
+ $[136] = trailingRow;
377
+ $[137] = wrapContentAndTrailing;
378
+ $[138] = t18;
379
+ } else t18 = $[138];
380
+ const inputFrameContent = t18;
381
+ const t19 = as === "inline" ? -1 : void 0;
382
+ const t20 = as === "inline" ? -1 : void 0;
383
+ let t21;
384
+ if ($[139] !== onMouseEnter || $[140] !== onStaticInteract || $[141] !== renderStatic) {
385
+ t21 = (event) => {
386
+ onMouseEnter?.(event);
387
+ if (renderStatic) onStaticInteract?.(false);
388
+ };
389
+ $[139] = onMouseEnter;
390
+ $[140] = onStaticInteract;
391
+ $[141] = renderStatic;
392
+ $[142] = t21;
393
+ } else t21 = $[142];
394
+ let t22;
395
+ if ($[143] !== onFocusCapture || $[144] !== onStaticInteract || $[145] !== renderStatic) {
396
+ t22 = (event_0) => {
397
+ onFocusCapture?.(event_0);
398
+ if (renderStatic) onStaticInteract?.(true);
399
+ };
400
+ $[143] = onFocusCapture;
401
+ $[144] = onStaticInteract;
402
+ $[145] = renderStatic;
403
+ $[146] = t22;
404
+ } else t22 = $[146];
405
+ let t23;
406
+ if ($[147] !== as || $[148] !== inputBaseCva || $[149] !== inputClassName || $[150] !== variant) {
407
+ t23 = clsx("relative flex cursor-text has-disabled:cursor-default", inputBaseCva({
408
+ variant,
409
+ as
410
+ }), inputClassName);
411
+ $[147] = as;
412
+ $[148] = inputBaseCva;
413
+ $[149] = inputClassName;
414
+ $[150] = variant;
415
+ $[151] = t23;
416
+ } else t23 = $[151];
417
+ const t24 = renderStatic ? isDisabled ? -1 : 0 : void 0;
418
+ let t25;
419
+ let t26;
420
+ let t27;
421
+ if ($[152] !== onStaticInteract || $[153] !== renderStatic) {
422
+ t25 = () => {
423
+ if (renderStatic) onStaticInteract?.(true);
424
+ };
425
+ t26 = () => {
426
+ if (renderStatic) onStaticInteract?.(true);
427
+ };
428
+ t27 = () => {
429
+ if (renderStatic) onStaticInteract?.(true);
430
+ };
431
+ $[152] = onStaticInteract;
432
+ $[153] = renderStatic;
433
+ $[154] = t25;
434
+ $[155] = t26;
435
+ $[156] = t27;
436
+ } else {
437
+ t25 = $[154];
438
+ t26 = $[155];
439
+ t27 = $[156];
440
+ }
441
+ let t28;
442
+ if ($[157] !== dataAttributeProps || $[158] !== inputFrameContent || $[159] !== ref || $[160] !== t23 || $[161] !== t24 || $[162] !== t25 || $[163] !== t26 || $[164] !== t27) {
443
+ t28 = /* @__PURE__ */ jsx("div", {
444
+ ref,
445
+ ...dataAttributeProps,
446
+ className: t23,
447
+ tabIndex: t24,
448
+ onFocus: t25,
449
+ onClick: t26,
450
+ onPointerDown: t27,
451
+ "data-rac": "",
452
+ children: inputFrameContent
453
+ });
454
+ $[157] = dataAttributeProps;
455
+ $[158] = inputFrameContent;
456
+ $[159] = ref;
457
+ $[160] = t23;
458
+ $[161] = t24;
459
+ $[162] = t25;
460
+ $[163] = t26;
461
+ $[164] = t27;
462
+ $[165] = t28;
463
+ } else t28 = $[165];
464
+ let t29;
465
+ if ($[166] !== as || $[167] !== dataAttributeProps || $[168] !== formFieldProps || $[169] !== formFieldRef || $[170] !== labelProps || $[171] !== t20 || $[172] !== t21 || $[173] !== t22 || $[174] !== t28) {
466
+ t29 = /* @__PURE__ */ jsx(FormField, {
147
467
  ...formFieldProps,
148
468
  ...dataAttributeProps,
149
469
  ref: formFieldRef,
150
470
  as,
151
471
  labelProps,
152
- tabIndex: as === "inline" ? -1 : void 0,
153
- onMouseEnter: (event) => {
154
- onMouseEnter?.(event);
155
- if (renderStatic) onStaticInteract?.(false);
156
- },
157
- onFocusCapture: (event) => {
158
- onFocusCapture?.(event);
159
- if (renderStatic) onStaticInteract?.(true);
160
- },
161
- children: /* @__PURE__ */ jsx("div", {
162
- ref,
163
- ...dataAttributeProps,
164
- className: clsx("relative flex cursor-text has-disabled:cursor-default", inputBaseCva({
165
- variant,
166
- as
167
- }), inputClassName),
168
- tabIndex: renderStatic ? isDisabled ? -1 : 0 : void 0,
169
- onFocus: () => {
170
- if (renderStatic) onStaticInteract?.(true);
171
- },
172
- onClick: () => {
173
- if (renderStatic) onStaticInteract?.(true);
174
- },
175
- onPointerDown: () => {
176
- if (renderStatic) onStaticInteract?.(true);
177
- },
178
- "data-rac": "",
179
- children: inputFrameContent
180
- })
181
- })
182
- });
472
+ tabIndex: t20,
473
+ onMouseEnter: t21,
474
+ onFocusCapture: t22,
475
+ children: t28
476
+ });
477
+ $[166] = as;
478
+ $[167] = dataAttributeProps;
479
+ $[168] = formFieldProps;
480
+ $[169] = formFieldRef;
481
+ $[170] = labelProps;
482
+ $[171] = t20;
483
+ $[172] = t21;
484
+ $[173] = t22;
485
+ $[174] = t28;
486
+ $[175] = t29;
487
+ } else t29 = $[175];
488
+ let t30;
489
+ if ($[176] !== as || $[177] !== error || $[178] !== t19 || $[179] !== t29) {
490
+ t30 = /* @__PURE__ */ jsx(TooltipWrapper, {
491
+ as,
492
+ error,
493
+ triggerTabIndex: t19,
494
+ children: t29
495
+ });
496
+ $[176] = as;
497
+ $[177] = error;
498
+ $[178] = t19;
499
+ $[179] = t29;
500
+ $[180] = t30;
501
+ } else t30 = $[180];
502
+ return t30;
183
503
  };
184
504
  var renderIconVisual = (icon) => {
185
505
  if (isValidElement(icon)) return icon;