@povio/ui 2.2.6 → 2.2.8-rc

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 (256) hide show
  1. package/README.md +2 -0
  2. package/dist/assets/icons/AlignCenter.js +3 -1
  3. package/dist/assets/icons/AlignLeft.js +3 -1
  4. package/dist/assets/icons/AlignLeftRight.js +3 -1
  5. package/dist/assets/icons/AlignRight.js +3 -1
  6. package/dist/assets/icons/ArrowDropDown.js +3 -1
  7. package/dist/assets/icons/ArrowDropUp.js +3 -1
  8. package/dist/assets/icons/ArrowLeft.js +3 -1
  9. package/dist/assets/icons/ArrowRight.js +3 -1
  10. package/dist/assets/icons/Bold.js +3 -1
  11. package/dist/assets/icons/BulletedList.js +3 -1
  12. package/dist/assets/icons/Calendar.js +3 -1
  13. package/dist/assets/icons/Check.js +3 -1
  14. package/dist/assets/icons/CheckCircle.js +3 -1
  15. package/dist/assets/icons/CheckboxCheckmark.js +3 -1
  16. package/dist/assets/icons/CheckboxIndeterminate.js +3 -1
  17. package/dist/assets/icons/ChevronDown.js +3 -1
  18. package/dist/assets/icons/ChevronLeft.js +3 -1
  19. package/dist/assets/icons/ChevronRight.js +3 -1
  20. package/dist/assets/icons/ChevronUp.js +3 -1
  21. package/dist/assets/icons/ChevronsLeft.js +3 -1
  22. package/dist/assets/icons/ChevronsRight.js +3 -1
  23. package/dist/assets/icons/Clock.js +3 -1
  24. package/dist/assets/icons/Close.js +3 -1
  25. package/dist/assets/icons/DateTime.js +3 -1
  26. package/dist/assets/icons/DragIndicator.js +3 -1
  27. package/dist/assets/icons/File.js +3 -1
  28. package/dist/assets/icons/Highlight.js +3 -1
  29. package/dist/assets/icons/HighlightOn.js +3 -1
  30. package/dist/assets/icons/Home.js +3 -1
  31. package/dist/assets/icons/Info.js +3 -1
  32. package/dist/assets/icons/Italic.js +3 -1
  33. package/dist/assets/icons/Link.js +3 -1
  34. package/dist/assets/icons/Menu.js +3 -1
  35. package/dist/assets/icons/NumberedList.js +3 -1
  36. package/dist/assets/icons/PointerHorizontal.js +3 -1
  37. package/dist/assets/icons/PointerVertical.js +3 -1
  38. package/dist/assets/icons/Search.js +3 -1
  39. package/dist/assets/icons/Send.js +3 -1
  40. package/dist/assets/icons/Strikethrough.js +3 -1
  41. package/dist/assets/icons/TextColor.js +3 -1
  42. package/dist/assets/icons/Today.js +3 -1
  43. package/dist/assets/icons/Underlined.js +3 -1
  44. package/dist/assets/icons/Upload.js +3 -1
  45. package/dist/assets/icons/Visibility.js +3 -1
  46. package/dist/assets/icons/VisibilityOff.js +3 -1
  47. package/dist/assets/icons/WarningFilled.js +3 -1
  48. package/dist/assets/locales/en/translation.json.js +1 -0
  49. package/dist/assets/locales/sl/translation.json.js +1 -0
  50. package/dist/components/Breadcrumbs/Breadcrumbs.js +5 -3
  51. package/dist/components/Breadcrumbs/breadcrumbs.cva.js +7 -5
  52. package/dist/components/Menu/Menu.js +3 -1
  53. package/dist/components/Menu/MenuDesktop.js +3 -1
  54. package/dist/components/Menu/MenuItem.js +3 -1
  55. package/dist/components/Menu/MenuMobile.js +3 -1
  56. package/dist/components/Menu/MenuPopover.js +3 -1
  57. package/dist/components/Menu/menu.cva.js +6 -4
  58. package/dist/components/buttons/Button/Button.js +3 -1
  59. package/dist/components/buttons/Button/button.cva.js +7 -5
  60. package/dist/components/buttons/IconButton/IconButton.js +3 -1
  61. package/dist/components/buttons/InlineIconButton/InlineIconButton.js +3 -1
  62. package/dist/components/buttons/PillButton/PillButton.js +3 -1
  63. package/dist/components/buttons/PillButton/pillButton.cva.js +6 -4
  64. package/dist/components/buttons/SplitButton/SplitButton.js +3 -1
  65. package/dist/components/buttons/TextButton/TextButton.js +3 -1
  66. package/dist/components/buttons/ToggleButton/ToggleButton.js +3 -1
  67. package/dist/components/buttons/shared/ButtonContent.js +3 -1
  68. package/dist/components/buttons/shared/buttonContent.cva.js +2 -1
  69. package/dist/components/inputs/Checkbox/Checkbox.js +3 -1
  70. package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +3 -1
  71. package/dist/components/inputs/Checkbox/checkbox.cva.js +6 -4
  72. package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +63 -4
  73. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +98 -10
  74. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +63 -4
  75. package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +1 -0
  76. package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +64 -6
  77. package/dist/components/inputs/DateTime/shared/Calendar.js +3 -1
  78. package/dist/components/inputs/DateTime/shared/CalendarCell.js +3 -1
  79. package/dist/components/inputs/DateTime/shared/CalendarGrid.js +3 -1
  80. package/dist/components/inputs/DateTime/shared/CalendarHeader.js +3 -1
  81. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +4 -2
  82. package/dist/components/inputs/DateTime/shared/DateField.js +3 -1
  83. package/dist/components/inputs/DateTime/shared/DatePickerInput.js +3 -1
  84. package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +4 -2
  85. package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +3 -1
  86. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +4 -2
  87. package/dist/components/inputs/DateTime/shared/MonthPicker.js +3 -1
  88. package/dist/components/inputs/DateTime/shared/RangeCalendar.js +3 -1
  89. package/dist/components/inputs/DateTime/shared/TimeField.js +3 -1
  90. package/dist/components/inputs/DateTime/shared/TimePickerForm.js +3 -1
  91. package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +2 -1
  92. package/dist/components/inputs/DateTime/shared/TimePickerInput.js +6 -5
  93. package/dist/components/inputs/DateTime/shared/YearPicker.js +3 -1
  94. package/dist/components/inputs/File/FileUpload.js +6 -4
  95. package/dist/components/inputs/File/FileUploadContainer.js +3 -1
  96. package/dist/components/inputs/File/InputUpload.js +3 -1
  97. package/dist/components/inputs/File/shared/FileCard.js +3 -1
  98. package/dist/components/inputs/File/shared/FileCardList.js +3 -1
  99. package/dist/components/inputs/File/shared/FileUploadContent.js +3 -1
  100. package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +3 -1
  101. package/dist/components/inputs/File/shared/FileUploadContentError.js +4 -2
  102. package/dist/components/inputs/File/shared/FileUploadContentFilled.js +4 -2
  103. package/dist/components/inputs/File/shared/FileUploadContentLoading.js +4 -2
  104. package/dist/components/inputs/File/shared/InputUploadContent.js +4 -2
  105. package/dist/components/inputs/File/shared/InputUploadFilled.js +3 -1
  106. package/dist/components/inputs/File/shared/ProgressBar.js +3 -1
  107. package/dist/components/inputs/File/shared/fileUpload.cva.js +4 -2
  108. package/dist/components/inputs/File/shared/inputUploadButton.cva.js +6 -3
  109. package/dist/components/inputs/FormField/FormField.js +3 -1
  110. package/dist/components/inputs/FormField/FormFieldError.js +3 -1
  111. package/dist/components/inputs/FormField/FormFieldHeader.js +3 -1
  112. package/dist/components/inputs/FormField/FormFieldHeaderClose.js +4 -2
  113. package/dist/components/inputs/FormField/FormFieldHelper.js +3 -1
  114. package/dist/components/inputs/FormField/FormFieldLabel.js +3 -1
  115. package/dist/components/inputs/FormField/formFieldError.cva.js +3 -1
  116. package/dist/components/inputs/FormField/formFieldHelper.cva.js +3 -1
  117. package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +1 -0
  118. package/dist/components/inputs/Input/NumberInput/NumberInput.js +82 -8
  119. package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +4 -2
  120. package/dist/components/inputs/Input/TextArea/TextArea.js +3 -1
  121. package/dist/components/inputs/Input/TextInput/TextInput.d.ts +1 -0
  122. package/dist/components/inputs/Input/TextInput/TextInput.js +85 -8
  123. package/dist/components/inputs/Input/shared/InputContent.js +3 -1
  124. package/dist/components/inputs/Inputs/Form.js +2 -0
  125. package/dist/components/inputs/Inputs/InputItem.js +2 -0
  126. package/dist/components/inputs/Inputs/Inputs.js +2 -0
  127. package/dist/components/inputs/RadioGroup/RadioGroup.js +3 -1
  128. package/dist/components/inputs/RadioGroup/radio.cva.js +5 -3
  129. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +64 -2
  130. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +3 -1
  131. package/dist/components/inputs/Selection/Select/Select.js +65 -2
  132. package/dist/components/inputs/Selection/shared/SelectBase.js +3 -1
  133. package/dist/components/inputs/Selection/shared/SelectDesktop.js +4 -2
  134. package/dist/components/inputs/Selection/shared/SelectInput.js +4 -2
  135. package/dist/components/inputs/Selection/shared/SelectInputTags.js +3 -1
  136. package/dist/components/inputs/Selection/shared/SelectListBox.js +4 -2
  137. package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +5 -3
  138. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +4 -2
  139. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +4 -2
  140. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +4 -2
  141. package/dist/components/inputs/Selection/shared/SelectMobile.js +3 -1
  142. package/dist/components/inputs/Selection/shared/select.context.js +20 -18
  143. package/dist/components/inputs/Selection/shared/useSelectItems.js +6 -4
  144. package/dist/components/inputs/Slider/Slider.js +3 -1
  145. package/dist/components/inputs/TextEditor/TextEditor.js +3 -1
  146. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +3 -1
  147. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +3 -1
  148. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +4 -2
  149. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +4 -2
  150. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +3 -1
  151. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +3 -1
  152. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +3 -1
  153. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +4 -2
  154. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +4 -2
  155. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +4 -2
  156. package/dist/components/inputs/TextEditor/textEditor.types.js +3 -1
  157. package/dist/components/inputs/Toggle/Toggle.js +3 -1
  158. package/dist/components/inputs/Toggle/toggle.cva.js +4 -2
  159. package/dist/components/inputs/shared/CheckContent.js +3 -1
  160. package/dist/components/inputs/shared/InputClear.js +5 -3
  161. package/dist/components/inputs/shared/StaticInput.d.ts +18 -0
  162. package/dist/components/inputs/shared/StaticInput.js +69 -0
  163. package/dist/components/inputs/shared/TooltipWrapper.js +3 -1
  164. package/dist/components/inputs/shared/input.cva.js +6 -4
  165. package/dist/components/inputs/shared/label.cva.js +4 -2
  166. package/dist/components/navigation/Accordion/Accordion.js +3 -1
  167. package/dist/components/navigation/Accordion/AccordionItem.js +3 -1
  168. package/dist/components/navigation/Accordion/accordion.cva.js +12 -10
  169. package/dist/components/navigation/Stepper/Stepper.js +3 -1
  170. package/dist/components/navigation/Stepper/StepperItem.js +3 -1
  171. package/dist/components/navigation/Stepper/StepperSeparator.js +3 -1
  172. package/dist/components/navigation/Stepper/stepper.cva.js +9 -7
  173. package/dist/components/outline.clsx.js +4 -2
  174. package/dist/components/overlays/ActionModal/ActionModal.js +3 -1
  175. package/dist/components/overlays/BottomSheet/BottomSheet.js +3 -1
  176. package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +4 -2
  177. package/dist/components/overlays/Drawer/Drawer.js +3 -1
  178. package/dist/components/overlays/Modal/Modal.js +4 -2
  179. package/dist/components/overlays/Modal/modal.cva.js +5 -3
  180. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +3 -1
  181. package/dist/components/overlays/Tooltip/Tooltip.js +7 -2
  182. package/dist/components/overlays/Tooltip/TooltipEllipsis.js +3 -1
  183. package/dist/components/overlays/Tooltip/tooltip.cva.js +6 -4
  184. package/dist/components/segment/Segment.js +3 -1
  185. package/dist/components/segment/SegmentItem.js +3 -1
  186. package/dist/components/segment/segment.cva.js +4 -2
  187. package/dist/components/shared/pagination/Pagination.js +4 -2
  188. package/dist/components/shared/pagination/PaginationList.js +4 -2
  189. package/dist/components/shared/pagination/minWidth.cva.js +3 -1
  190. package/dist/components/shared/popover.cva.js +3 -1
  191. package/dist/components/status/Alert/Alert.js +3 -1
  192. package/dist/components/status/Alert/alert.cva.js +3 -1
  193. package/dist/components/status/Loader/Loader.js +3 -1
  194. package/dist/components/status/Loader/loader.cva.js +4 -2
  195. package/dist/components/status/Toast/Toast.js +15 -6
  196. package/dist/components/status/Toast/toast.cva.js +6 -20
  197. package/dist/components/status/Toast/useToast.js +3 -1
  198. package/dist/components/status/shared/status.cva.js +4 -2
  199. package/dist/components/table/CellText.js +3 -1
  200. package/dist/components/table/ColumnConfig.js +3 -1
  201. package/dist/components/table/HeaderText.js +3 -1
  202. package/dist/components/table/InfiniteTable.js +3 -1
  203. package/dist/components/table/PaginatedTable.js +3 -1
  204. package/dist/components/table/Table.js +4 -2
  205. package/dist/components/table/table.cva.js +8 -6
  206. package/dist/components/text/Link/Link.js +3 -1
  207. package/dist/components/text/Link/link.cva.js +3 -1
  208. package/dist/components/text/Tag/Tag.d.ts +3 -0
  209. package/dist/components/text/Tag/Tag.js +9 -4
  210. package/dist/components/text/Tag/tag.cva.js +3 -1
  211. package/dist/components/text/Typography/Typography.js +3 -1
  212. package/dist/components/text/Typography/typography.cva.js +3 -1
  213. package/dist/config/confirmation.context.js +4 -2
  214. package/dist/config/i18n.js +4 -2
  215. package/dist/config/link.context.js +3 -1
  216. package/dist/config/router.context.js +3 -1
  217. package/dist/config/theme.context.js +8 -6
  218. package/dist/config/uiConfig.context.d.ts +5 -0
  219. package/dist/config/uiConfig.context.js +10 -2
  220. package/dist/config/uiStyle.context.js +3 -1
  221. package/dist/helpers/dynamicColumns.js +4 -2
  222. package/dist/helpers/dynamicInputs.js +5 -3
  223. package/dist/hooks/useAutosave.js +2 -0
  224. package/dist/hooks/useBreakpoint.js +5 -3
  225. package/dist/hooks/useDebounceCallback.js +2 -0
  226. package/dist/hooks/useDeepCompare.js +5 -3
  227. package/dist/hooks/useFilters.js +3 -1
  228. package/dist/hooks/useForm.js +2 -0
  229. package/dist/hooks/useFormAutosave.js +2 -0
  230. package/dist/hooks/useIntersectionObserver.js +3 -1
  231. package/dist/hooks/useLocalStorage.js +3 -1
  232. package/dist/hooks/useLongPressRepeat.js +3 -1
  233. package/dist/hooks/usePagination.js +2 -0
  234. package/dist/hooks/useScrollableListBox.js +2 -0
  235. package/dist/hooks/useSorting.js +2 -0
  236. package/dist/hooks/useStateAndRef.js +3 -1
  237. package/dist/hooks/useTableColumnConfig.js +2 -0
  238. package/dist/hooks/useTableNav.js +124 -20
  239. package/dist/hooks/useTranslationMemo.js +2 -0
  240. package/dist/tw-ui-plugin.js +4 -2
  241. package/dist/utils/array.utils.js +3 -1
  242. package/dist/utils/compoundMapper.js +3 -1
  243. package/dist/utils/date-time.utils.d.ts +10 -0
  244. package/dist/utils/date-time.utils.js +85 -2
  245. package/dist/utils/date.utils.js +3 -1
  246. package/dist/utils/dom.utils.js +3 -1
  247. package/dist/utils/file.utils.js +3 -1
  248. package/dist/utils/isEqual.js +3 -1
  249. package/dist/utils/logger.js +3 -1
  250. package/dist/utils/object.utils.js +3 -1
  251. package/dist/utils/queries.utils.js +3 -1
  252. package/dist/utils/rest.utils.js +3 -1
  253. package/dist/utils/routing.utils.js +3 -1
  254. package/dist/utils/string.utils.js +3 -1
  255. package/dist/utils/zod.utils.js +3 -1
  256. package/package.json +2 -2
@@ -15,7 +15,8 @@ import { useCallback, useImperativeHandle, useRef, useState } from "react";
15
15
  import { Button } from "react-aria-components";
16
16
  import { useFocusVisible, useFocusWithin, useHover } from "react-aria";
17
17
  import { getLocalTimeZone, now, toCalendarDateTime, today } from "@internationalized/date";
18
- const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, buttonProps, isDisabled, isInvalid, disableDropdown, variant, size, isDateTime, isClearable, headerProps, todayIcon, isDirty, isRequired, disableManualEntry, placeholder, className, onOpenDropdown, ...props }) => {
18
+ //#region src/components/inputs/DateTime/shared/DatePickerInput.tsx
19
+ var DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, buttonProps, isDisabled, isInvalid, disableDropdown, variant, size, isDateTime, isClearable, headerProps, todayIcon, isDirty, isRequired, disableManualEntry, placeholder, className, onOpenDropdown, ...props }) => {
19
20
  const inputBaseCva = UIStyle.useCva("input.baseCva", inputBase);
20
21
  const inputSizeCva = UIStyle.useCva("input.sizeCva", inputSize);
21
22
  const [canClear, setCanClear] = useState(false);
@@ -152,4 +153,5 @@ const DatePickerInput = ({ ref, as, groupProps, fieldProps, endFieldProps, butto
152
153
  })]
153
154
  });
154
155
  };
156
+ //#endregion
155
157
  export { DatePickerInput };
@@ -2,7 +2,8 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
2
  import { clsx } from "clsx";
3
3
  import { useRef } from "react";
4
4
  import { useDateSegment } from "react-aria";
5
- const getPlaceholder = (segment) => {
5
+ //#region src/components/inputs/DateTime/shared/DateSegmentItem.tsx
6
+ var getPlaceholder = (segment) => {
6
7
  if (!segment.isPlaceholder) return null;
7
8
  switch (segment.type) {
8
9
  case "hour": return "hh";
@@ -11,7 +12,7 @@ const getPlaceholder = (segment) => {
11
12
  default: return segment.placeholder;
12
13
  }
13
14
  };
14
- const DateSegmentItem = ({ segment, state, isDisabled, timePickerOnly, hidePlaceholder }) => {
15
+ var DateSegmentItem = ({ segment, state, isDisabled, timePickerOnly, hidePlaceholder }) => {
15
16
  const ref = useRef(null);
16
17
  const { segmentProps } = useDateSegment(segment, state, ref);
17
18
  const isInputEmpty = !state.value;
@@ -26,4 +27,5 @@ const DateSegmentItem = ({ segment, state, isDisabled, timePickerOnly, hidePlace
26
27
  }), segment.isPlaceholder ? "" : segment.text] })
27
28
  });
28
29
  };
30
+ //#endregion
29
31
  export { DateSegmentItem, getPlaceholder };
@@ -5,7 +5,8 @@ import { popover } from "../../../shared/popover.cva.js";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import clsx$1 from "clsx";
7
7
  import { Dialog, Popover } from "react-aria-components";
8
- const DateTimeDialog = ({ hideSidebar, children, footer, sidebar, label, isOpen, triggerRef, dialogProps, onOpenChange }) => {
8
+ //#region src/components/inputs/DateTime/shared/DateTimeDialog.tsx
9
+ var DateTimeDialog = ({ hideSidebar, children, footer, sidebar, label, isOpen, triggerRef, dialogProps, onOpenChange }) => {
9
10
  const popoverCva = UIStyle.useCva("popover.cva", popover);
10
11
  if (useBreakpoint("md")) {
11
12
  if (!isOpen) return null;
@@ -40,4 +41,5 @@ const DateTimeDialog = ({ hideSidebar, children, footer, sidebar, label, isOpen,
40
41
  children: [children, !hideSidebar && sidebar]
41
42
  });
42
43
  };
44
+ //#endregion
43
45
  export { DateTimeDialog };
@@ -1,9 +1,10 @@
1
- import { ns } from "../../../../config/i18n.js";
1
+ import "../../../../config/i18n.js";
2
2
  import { TextButton } from "../../../buttons/TextButton/TextButton.js";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import { clsx } from "clsx";
5
5
  import { useTranslation } from "react-i18next";
6
- const DateTimeDialogFooter = ({ isValid = true, isDisabled = false, onTodayPress, onApply }) => {
6
+ //#region src/components/inputs/DateTime/shared/DateTimeDialogFooter.tsx
7
+ var DateTimeDialogFooter = ({ isValid = true, isDisabled = false, onTodayPress, onApply }) => {
7
8
  const { t } = useTranslation("ui");
8
9
  return /* @__PURE__ */ jsxs("footer", {
9
10
  className: clsx("flex shrink-0 items-center gap-2 bg-elevation-fill-default-2 px-4 py-3 md:border-elevation-outline-default-1 md:border-t md:bg-elevation-fill-default-1 md:py-1-5", onTodayPress ? "justify-between" : "justify-end"),
@@ -22,4 +23,5 @@ const DateTimeDialogFooter = ({ isValid = true, isDisabled = false, onTodayPress
22
23
  })]
23
24
  });
24
25
  };
26
+ //#endregion
25
27
  export { DateTimeDialogFooter };
@@ -3,7 +3,8 @@ import { jsx } from "react/jsx-runtime";
3
3
  import { clsx } from "clsx";
4
4
  import { ListBox, ListBoxItem } from "react-aria-components";
5
5
  import { useDateFormatter } from "@react-aria/i18n";
6
- const MonthPicker = ({ state, onSelectionChange }) => {
6
+ //#region src/components/inputs/DateTime/shared/MonthPicker.tsx
7
+ var MonthPicker = ({ state, onSelectionChange }) => {
7
8
  const formatter = useDateFormatter({
8
9
  month: "long",
9
10
  timeZone: state.timeZone
@@ -53,4 +54,5 @@ const MonthPicker = ({ state, onSelectionChange }) => {
53
54
  })
54
55
  });
55
56
  };
57
+ //#endregion
56
58
  export { MonthPicker };
@@ -4,7 +4,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import { clsx } from "clsx";
5
5
  import { useMemo, useRef } from "react";
6
6
  import { useRangeCalendar } from "@react-aria/calendar";
7
- const RangeCalendar = ({ className, leftCalendarState, rightCalendarState, calendarProps, onApply, onRangeChange: _onRangeChange, onDateSelection, onDateHover, rangeSelection, hoverDate, onKeyboardNavigation }) => {
7
+ //#region src/components/inputs/DateTime/shared/RangeCalendar.tsx
8
+ var RangeCalendar = ({ className, leftCalendarState, rightCalendarState, calendarProps, onApply, onRangeChange: _onRangeChange, onDateSelection, onDateHover, rangeSelection, hoverDate, onKeyboardNavigation }) => {
8
9
  const leftRef = useRef(null);
9
10
  const rightRef = useRef(null);
10
11
  const { calendarProps: leftCalendarAriaProps } = useRangeCalendar(calendarProps, leftCalendarState, leftRef);
@@ -93,4 +94,5 @@ const RangeCalendar = ({ className, leftCalendarState, rightCalendarState, calen
93
94
  })
94
95
  });
95
96
  };
97
+ //#endregion
96
98
  export { RangeCalendar };
@@ -1,6 +1,7 @@
1
1
  import { DateSegmentItem } from "./DateSegmentItem.js";
2
2
  import { jsx } from "react/jsx-runtime";
3
- const TimeField = ({ ref, fieldProps, state, isDisabled, hidePlaceholder }) => {
3
+ //#region src/components/inputs/DateTime/shared/TimeField.tsx
4
+ var TimeField = ({ ref, fieldProps, state, isDisabled, hidePlaceholder }) => {
4
5
  return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("div", {
5
6
  ...fieldProps,
6
7
  ref,
@@ -14,4 +15,5 @@ const TimeField = ({ ref, fieldProps, state, isDisabled, hidePlaceholder }) => {
14
15
  }, i))
15
16
  }) });
16
17
  };
18
+ //#endregion
17
19
  export { TimeField };
@@ -11,8 +11,9 @@ import { useEffect, useRef } from "react";
11
11
  import { useDateSegment, useLocale, useTimeField } from "react-aria";
12
12
  import { Time } from "@internationalized/date";
13
13
  import { useTimeFieldState } from "@react-stately/datepicker";
14
+ //#region src/components/inputs/DateTime/shared/TimePickerForm.tsx
14
15
  var INCREMENT_STEP_SIZE = 5;
15
- const TimePickerForm = ({ state, datePickerState }) => {
16
+ var TimePickerForm = ({ state, datePickerState }) => {
16
17
  const isDesktop = useBreakpoint("md");
17
18
  const { locale } = useLocale();
18
19
  const fieldState = useTimeFieldState({
@@ -155,4 +156,5 @@ var TimeSegmentButton = ({ segment, state, type }) => {
155
156
  });
156
157
  };
157
158
  var showSegmentText = (text) => !/[\u2066\u2069]/.test(text);
159
+ //#endregion
158
160
  export { TimePickerForm };
@@ -15,7 +15,8 @@ interface DatePickerInputProps extends InputVariantProps {
15
15
  isClearable?: boolean;
16
16
  disableManualEntry?: boolean;
17
17
  placeholder?: string;
18
+ className?: string;
18
19
  onPress: () => void;
19
20
  }
20
- export declare const TimePickerInput: ({ ref, as, fieldProps, state, isDisabled, isDirty, isInvalid, disableDropdown, variant, size, isClearable, headerProps, disableManualEntry, placeholder, onPress, ...props }: DatePickerInputProps) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const TimePickerInput: ({ ref, as, fieldProps, state, isDisabled, isDirty, isInvalid, disableDropdown, variant, size, isClearable, headerProps, disableManualEntry, placeholder, className, onPress, ...props }: DatePickerInputProps) => import("react/jsx-runtime").JSX.Element;
21
22
  export {};
@@ -11,7 +11,8 @@ import { clsx } from "clsx";
11
11
  import { useState } from "react";
12
12
  import { Button } from "react-aria-components";
13
13
  import { useFocusVisible, useFocusWithin, useHover } from "react-aria";
14
- const TimePickerInput = ({ ref, as, fieldProps, state, isDisabled, isDirty, isInvalid, disableDropdown, variant, size, isClearable, headerProps, disableManualEntry, placeholder, onPress, ...props }) => {
14
+ //#region src/components/inputs/DateTime/shared/TimePickerInput.tsx
15
+ var TimePickerInput = ({ ref, as, fieldProps, state, isDisabled, isDirty, isInvalid, disableDropdown, variant, size, isClearable, headerProps, disableManualEntry, placeholder, className, onPress, ...props }) => {
15
16
  const inputBaseCva = UIStyle.useCva("input.baseCva", inputBase);
16
17
  const inputSizeCva = UIStyle.useCva("input.sizeCva", inputSize);
17
18
  const { hoverProps, isHovered } = useHover({ isDisabled });
@@ -22,12 +23,11 @@ const TimePickerInput = ({ ref, as, fieldProps, state, isDisabled, isDirty, isIn
22
23
  const canClear = state.segments.some((segment) => segment.type !== "literal" && segment.isPlaceholder === false);
23
24
  return /* @__PURE__ */ jsxs("div", {
24
25
  ref,
25
- className: inputBaseCva({
26
+ className: clsx(inputBaseCva({
26
27
  variant,
27
28
  as,
28
- ...props,
29
- className: clsx("group/date-picker-content relative min-w-input-width-min-width", "flex items-center justify-between gap-input-gap-input-text-to-elements")
30
- }),
29
+ ...props
30
+ }), "group/date-picker-content relative min-w-input-width-min-width", "flex items-center justify-between gap-input-gap-input-text-to-elements", className),
31
31
  "data-rac": "",
32
32
  "data-datetime-input": "",
33
33
  "data-hovered": isHovered || void 0,
@@ -85,4 +85,5 @@ const TimePickerInput = ({ ref, as, fieldProps, state, isDisabled, isDirty, isIn
85
85
  })]
86
86
  });
87
87
  };
88
+ //#endregion
88
89
  export { TimePickerInput };
@@ -6,7 +6,8 @@ import { useMemo } from "react";
6
6
  import { ListBox, ListBoxItem } from "react-aria-components";
7
7
  import { today } from "@internationalized/date";
8
8
  import { useDateFormatter } from "@react-aria/i18n";
9
- const YearPicker = ({ state, onSelectionChange }) => {
9
+ //#region src/components/inputs/DateTime/shared/YearPicker.tsx
10
+ var YearPicker = ({ state, onSelectionChange }) => {
10
11
  const formatter = useDateFormatter({
11
12
  year: "numeric",
12
13
  timeZone: state.timeZone
@@ -61,4 +62,5 @@ const YearPicker = ({ state, onSelectionChange }) => {
61
62
  })
62
63
  });
63
64
  };
65
+ //#endregion
64
66
  export { YearPicker };
@@ -1,5 +1,5 @@
1
1
  import { UIConfig } from "../../../config/uiConfig.context.js";
2
- import { ns } from "../../../config/i18n.js";
2
+ import "../../../config/i18n.js";
3
3
  import { FormField } from "../FormField/FormField.js";
4
4
  import { FileUtils } from "../../../utils/file.utils.js";
5
5
  import { FileCardList } from "./shared/FileCardList.js";
@@ -13,6 +13,7 @@ import { DropZone } from "react-aria-components";
13
13
  import { mergeRefs, useLabels } from "@react-aria/utils";
14
14
  import { useTranslation } from "react-i18next";
15
15
  import { Controller } from "react-hook-form";
16
+ //#region src/components/inputs/File/FileUpload.tsx
16
17
  var FileUploadBase = (props) => {
17
18
  const { t } = useTranslation("ui");
18
19
  const { ref: _ref, label, tooltipText, variant = "vertical", as = "button", helperText, isRequired, isDisabled, headerClassName, errorClassName, isHeaderHidden, error, className, allowsMultiple = false, hideLabel, acceptedFileTypes, clearOnSuccess, emptyText = t(($) => $.ui.fileUpload.emptyText), uploadText = t(($) => $.ui.fileUpload.uploadText), browseText = t(($) => $.ui.fileUpload.browse), fileUpload, fileRemove, children, listRenderer, onInvalidFileType, defaultState, ...rest } = props;
@@ -89,9 +90,9 @@ var FileUploadBase = (props) => {
89
90
  } : state));
90
91
  });
91
92
  if (clearOnSuccess) setUploadState([]);
92
- } catch (error$1) {
93
+ } catch (error) {
93
94
  setUploadState((prev) => prev.filter((_, i) => i < startIndex));
94
- throw error$1;
95
+ throw error;
95
96
  }
96
97
  };
97
98
  const handleSelect = (inputFiles) => {
@@ -180,7 +181,7 @@ var FileUploadBase = (props) => {
180
181
  }))]
181
182
  });
182
183
  };
183
- const FileUpload = (props) => {
184
+ var FileUpload = (props) => {
184
185
  if ("formControl" in props && props.formControl) {
185
186
  const { formControl, ref, ...innerProps } = props;
186
187
  return /* @__PURE__ */ jsx(Controller, {
@@ -198,4 +199,5 @@ const FileUpload = (props) => {
198
199
  }
199
200
  return /* @__PURE__ */ jsx(FileUploadBase, { ...props });
200
201
  };
202
+ //#endregion
201
203
  export { FileUpload };
@@ -1,6 +1,7 @@
1
1
  import { FileUpload } from "./FileUpload.js";
2
2
  import { jsx } from "react/jsx-runtime";
3
- const FileUploadContainer = (props) => {
3
+ //#region src/components/inputs/File/FileUploadContainer.tsx
4
+ var FileUploadContainer = (props) => {
4
5
  return /* @__PURE__ */ jsx(FileUpload, {
5
6
  label: "",
6
7
  hideLabel: true,
@@ -9,4 +10,5 @@ const FileUploadContainer = (props) => {
9
10
  ...props
10
11
  });
11
12
  };
13
+ //#endregion
12
14
  export { FileUploadContainer };
@@ -8,6 +8,7 @@ import { clsx } from "clsx";
8
8
  import { useState } from "react";
9
9
  import { mergeRefs, useLabels } from "@react-aria/utils";
10
10
  import { Controller } from "react-hook-form";
11
+ //#region src/components/inputs/File/InputUpload.tsx
11
12
  var InputUploadBase = ({ ref: _ref, label, tooltipText, variant, helperText, isRequired, isDisabled, headerClassName, errorClassName, isHeaderHidden, error, className, onChange, onInvalidFileType, value, defaultValue, allowsMultiple = false, hideLabel, acceptedFileTypes, ...rest }) => {
12
13
  const ui = UIConfig.useConfig();
13
14
  const [internalFiles, setInternalFiles] = useState(() => {
@@ -90,7 +91,7 @@ var InputUploadBase = ({ ref: _ref, label, tooltipText, variant, helperText, isR
90
91
  })
91
92
  });
92
93
  };
93
- const InputUpload = (props) => {
94
+ var InputUpload = (props) => {
94
95
  if ("formControl" in props && props.formControl) {
95
96
  const { formControl, ref, ...innerProps } = props;
96
97
  return /* @__PURE__ */ jsx(Controller, {
@@ -108,4 +109,5 @@ const InputUpload = (props) => {
108
109
  }
109
110
  return /* @__PURE__ */ jsx(InputUploadBase, { ...props });
110
111
  };
112
+ //#endregion
111
113
  export { InputUpload };
@@ -4,7 +4,8 @@ import { FileUploadContentLoading } from "./FileUploadContentLoading.js";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  import { clsx } from "clsx";
6
6
  import { useMemo } from "react";
7
- const FileCard = ({ index, as, state, onRemove, isDisabled, onCancel }) => {
7
+ //#region src/components/inputs/File/shared/FileCard.tsx
8
+ var FileCard = ({ index, as, state, onRemove, isDisabled, onCancel }) => {
8
9
  const content = useMemo(() => {
9
10
  if (state.state === "uploading") return /* @__PURE__ */ jsx(FileUploadContentLoading, {
10
11
  index,
@@ -47,4 +48,5 @@ const FileCard = ({ index, as, state, onRemove, isDisabled, onCancel }) => {
47
48
  children: content
48
49
  });
49
50
  };
51
+ //#endregion
50
52
  export { FileCard };
@@ -1,7 +1,8 @@
1
1
  import { FileCard } from "./FileCard.js";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { clsx } from "clsx";
4
- const FileCardList = ({ uploadState, as, isDisabled, className, onRemove, onCancel }) => {
4
+ //#region src/components/inputs/File/shared/FileCardList.tsx
5
+ var FileCardList = ({ uploadState, as, isDisabled, className, onRemove, onCancel }) => {
5
6
  return /* @__PURE__ */ jsx("div", {
6
7
  className: clsx("mt-10 flex flex-col items-start gap-4 self-stretch", className),
7
8
  children: uploadState.map((state, index) => /* @__PURE__ */ jsx(FileCard, {
@@ -14,4 +15,5 @@ const FileCardList = ({ uploadState, as, isDisabled, className, onRemove, onCanc
14
15
  }, state.file?.name ?? state.displayName ?? state.id ?? state.src))
15
16
  });
16
17
  };
18
+ //#endregion
17
19
  export { FileCardList };
@@ -4,7 +4,8 @@ import { FileUploadContentLoading } from "./FileUploadContentLoading.js";
4
4
  import { FileUploadContentEmpty } from "./FileUploadContentEmpty.js";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  import { FileTrigger } from "react-aria-components";
7
- const FileUploadContent = ({ variant, as, isDisabled, browseText, uploadText, emptyText, uploadState, handleCancelUpload, handleRemove, acceptedFileTypes, allowsMultiple, handleSelect, ...rest }) => {
7
+ //#region src/components/inputs/File/shared/FileUploadContent.tsx
8
+ var FileUploadContent = ({ variant, as, isDisabled, browseText, uploadText, emptyText, uploadState, handleCancelUpload, handleRemove, acceptedFileTypes, allowsMultiple, handleSelect, ...rest }) => {
8
9
  const currentState = uploadState.at(0);
9
10
  const fileTriggerProps = {
10
11
  ...rest,
@@ -58,4 +59,5 @@ const FileUploadContent = ({ variant, as, isDisabled, browseText, uploadText, em
58
59
  })
59
60
  });
60
61
  };
62
+ //#endregion
61
63
  export { FileUploadContent };
@@ -4,7 +4,8 @@ import { TextButton } from "../../../buttons/TextButton/TextButton.js";
4
4
  import { UploadIcon } from "../../../../assets/icons/Upload.js";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { clsx } from "clsx";
7
- const FileUploadContentEmpty = ({ variant, as, isDisabled, title, browseText, uploadText, singleFile, hideButton = false, className }) => {
7
+ //#region src/components/inputs/File/shared/FileUploadContentEmpty.tsx
8
+ var FileUploadContentEmpty = ({ variant, as, isDisabled, title, browseText, uploadText, singleFile, hideButton = false, className }) => {
8
9
  return /* @__PURE__ */ jsxs("div", {
9
10
  className: clsx("flex w-full items-center gap-file-upload-content-gap-text-to-text", className, {
10
11
  "flex-col": variant === "vertical",
@@ -51,4 +52,5 @@ const FileUploadContentEmpty = ({ variant, as, isDisabled, title, browseText, up
51
52
  })]
52
53
  });
53
54
  };
55
+ //#endregion
54
56
  export { FileUploadContentEmpty };
@@ -2,14 +2,15 @@ import { CloseIcon } from "../../../../assets/icons/Close.js";
2
2
  import { Typography } from "../../../text/Typography/Typography.js";
3
3
  import { Button as Button$1 } from "../../../buttons/Button/Button.js";
4
4
  import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
5
- import { ns } from "../../../../config/i18n.js";
5
+ import "../../../../config/i18n.js";
6
6
  import { TextButton } from "../../../buttons/TextButton/TextButton.js";
7
7
  import { WarningFilledIcon } from "../../../../assets/icons/WarningFilled.js";
8
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
9
  import { clsx } from "clsx";
10
10
  import { FileTrigger } from "react-aria-components";
11
11
  import { useTranslation } from "react-i18next";
12
- const FileUploadContentError = ({ variant, as, isDisabled, state, browseText, fileTriggerProps, removeWithIcon = false, singleFile, onRemove }) => {
12
+ //#region src/components/inputs/File/shared/FileUploadContentError.tsx
13
+ var FileUploadContentError = ({ variant, as, isDisabled, state, browseText, fileTriggerProps, removeWithIcon = false, singleFile, onRemove }) => {
13
14
  const { t } = useTranslation("ui");
14
15
  return /* @__PURE__ */ jsx("div", {
15
16
  className: clsx("flex w-full flex-fill flex-col items-start"),
@@ -106,4 +107,5 @@ const FileUploadContentError = ({ variant, as, isDisabled, state, browseText, fi
106
107
  })
107
108
  });
108
109
  };
110
+ //#endregion
109
111
  export { FileUploadContentError };
@@ -2,7 +2,7 @@ import { CloseIcon } from "../../../../assets/icons/Close.js";
2
2
  import { Typography } from "../../../text/Typography/Typography.js";
3
3
  import { Button as Button$1 } from "../../../buttons/Button/Button.js";
4
4
  import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
5
- import { ns } from "../../../../config/i18n.js";
5
+ import "../../../../config/i18n.js";
6
6
  import { TextButton } from "../../../buttons/TextButton/TextButton.js";
7
7
  import { FileUtils } from "../../../../utils/file.utils.js";
8
8
  import { CheckCircleIcon } from "../../../../assets/icons/CheckCircle.js";
@@ -10,7 +10,8 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
10
  import { clsx } from "clsx";
11
11
  import { FileTrigger } from "react-aria-components";
12
12
  import { useTranslation } from "react-i18next";
13
- const FileUploadContentFilled = ({ variant, as, isDisabled, state, browseText, fileTriggerProps, removeWithIcon = false, singleFile, onRemove }) => {
13
+ //#region src/components/inputs/File/shared/FileUploadContentFilled.tsx
14
+ var FileUploadContentFilled = ({ variant, as, isDisabled, state, browseText, fileTriggerProps, removeWithIcon = false, singleFile, onRemove }) => {
14
15
  const { t } = useTranslation("ui");
15
16
  return /* @__PURE__ */ jsx("div", {
16
17
  className: clsx("flex w-full flex-fill flex-col items-start"),
@@ -109,4 +110,5 @@ const FileUploadContentFilled = ({ variant, as, isDisabled, state, browseText, f
109
110
  })
110
111
  });
111
112
  };
113
+ //#endregion
112
114
  export { FileUploadContentFilled };
@@ -2,14 +2,15 @@ import { CloseIcon } from "../../../../assets/icons/Close.js";
2
2
  import { Typography } from "../../../text/Typography/Typography.js";
3
3
  import { Button } from "../../../buttons/Button/Button.js";
4
4
  import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
5
- import { ns } from "../../../../config/i18n.js";
5
+ import "../../../../config/i18n.js";
6
6
  import { FileUtils } from "../../../../utils/file.utils.js";
7
7
  import { FileIcon } from "../../../../assets/icons/File.js";
8
8
  import { ProgressBar } from "./ProgressBar.js";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
10
10
  import { clsx } from "clsx";
11
11
  import { useTranslation } from "react-i18next";
12
- const FileUploadContentLoading = ({ index, variant, as, state, isDisabled, singleFile, onCancel }) => {
12
+ //#region src/components/inputs/File/shared/FileUploadContentLoading.tsx
13
+ var FileUploadContentLoading = ({ index, variant, as, state, isDisabled, singleFile, onCancel }) => {
13
14
  const { t } = useTranslation("ui");
14
15
  return /* @__PURE__ */ jsxs("div", {
15
16
  className: clsx("flex w-full flex-col items-center", {
@@ -73,4 +74,5 @@ const FileUploadContentLoading = ({ index, variant, as, state, isDisabled, singl
73
74
  })]
74
75
  });
75
76
  };
77
+ //#endregion
76
78
  export { FileUploadContentLoading };
@@ -1,7 +1,7 @@
1
1
  import { UIStyle } from "../../../../config/uiStyle.context.js";
2
2
  import { Typography } from "../../../text/Typography/Typography.js";
3
3
  import { Button as Button$1 } from "../../../buttons/Button/Button.js";
4
- import { ns } from "../../../../config/i18n.js";
4
+ import "../../../../config/i18n.js";
5
5
  import { TextButton } from "../../../buttons/TextButton/TextButton.js";
6
6
  import { inputSize } from "../../shared/input.cva.js";
7
7
  import { UploadIcon } from "../../../../assets/icons/Upload.js";
@@ -10,7 +10,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
10
10
  import { clsx } from "clsx";
11
11
  import { DropZone, FileTrigger } from "react-aria-components";
12
12
  import { useTranslation } from "react-i18next";
13
- const InputUploadContent = (props) => {
13
+ //#region src/components/inputs/File/shared/InputUploadContent.tsx
14
+ var InputUploadContent = (props) => {
14
15
  const { variant, isDisabled, error, placeholder, buttonText, ...rest } = props;
15
16
  const { t } = useTranslation("ui");
16
17
  const inputSizeCva = UIStyle.useCva("input.sizeCva", inputSize);
@@ -49,4 +50,5 @@ const InputUploadContent = (props) => {
49
50
  })
50
51
  });
51
52
  };
53
+ //#endregion
52
54
  export { InputUploadContent };
@@ -5,7 +5,8 @@ import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconBu
5
5
  import { inputSize } from "../../shared/input.cva.js";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { clsx } from "clsx";
8
- const InputUploadFilled = ({ files, onRemove, isDisabled }) => {
8
+ //#region src/components/inputs/File/shared/InputUploadFilled.tsx
9
+ var InputUploadFilled = ({ files, onRemove, isDisabled }) => {
9
10
  return /* @__PURE__ */ jsxs("div", {
10
11
  className: clsx("flex items-center rounded-input-rounding-default border border-input-outlined-outline-idle border-solid bg-input-outlined-idle", UIStyle.useCva("input.sizeCva", inputSize)({ size: "default" })),
11
12
  children: [/* @__PURE__ */ jsx(Typography, {
@@ -23,4 +24,5 @@ const InputUploadFilled = ({ files, onRemove, isDisabled }) => {
23
24
  })]
24
25
  });
25
26
  };
27
+ //#endregion
26
28
  export { InputUploadFilled };
@@ -1,7 +1,8 @@
1
1
  import { Typography } from "../../../text/Typography/Typography.js";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import clsx$1 from "clsx";
4
- const ProgressBar = ({ progress = 0, valueLabel = "trailing" }) => {
4
+ //#region src/components/inputs/File/shared/ProgressBar.tsx
5
+ var ProgressBar = ({ progress = 0, valueLabel = "trailing" }) => {
5
6
  return /* @__PURE__ */ jsxs("div", {
6
7
  className: clsx$1("flex w-full items-center justify-center gap-file-upload-content-gap-progress-actions", valueLabel === "leading" && "flex-row-reverse"),
7
8
  children: [/* @__PURE__ */ jsx("div", {
@@ -22,4 +23,5 @@ const ProgressBar = ({ progress = 0, valueLabel = "trailing" }) => {
22
23
  })]
23
24
  });
24
25
  };
26
+ //#endregion
25
27
  export { ProgressBar };
@@ -1,6 +1,7 @@
1
1
  import { clsx } from "clsx";
2
2
  import { cva } from "class-variance-authority";
3
- const fileUploadDropZoneBase = cva(["relative w-full rounded-file-upload-container-rounding-default"], {
3
+ //#region src/components/inputs/File/shared/fileUpload.cva.ts
4
+ var fileUploadDropZoneBase = cva(["relative w-full rounded-file-upload-container-rounding-default"], {
4
5
  variants: {
5
6
  variant: {
6
7
  vertical: ["flex-col justify-center"],
@@ -35,7 +36,7 @@ const fileUploadDropZoneBase = cva(["relative w-full rounded-file-upload-contain
35
36
  },
36
37
  defaultVariants: { variant: "vertical" }
37
38
  });
38
- const fileUploadDropZone = (props) => {
39
+ var fileUploadDropZone = (props) => {
39
40
  const { className, ...rest } = props;
40
41
  return clsx(fileUploadDropZoneBase(rest), className);
41
42
  };
@@ -46,4 +47,5 @@ cva(["flex gap-3"], {
46
47
  } },
47
48
  defaultVariants: { variant: "vertical" }
48
49
  });
50
+ //#endregion
49
51
  export { fileUploadDropZone };
@@ -1,17 +1,19 @@
1
1
  import { clsx } from "clsx";
2
2
  import { cva } from "class-variance-authority";
3
- const inputUploadButtonBase = cva(["flex w-full items-center justify-between gap-input-gap-input-to-button-gap"], {
3
+ //#region src/components/inputs/File/shared/inputUploadButton.cva.ts
4
+ var inputUploadButtonBase = cva(["flex w-full items-center justify-between gap-input-gap-input-to-button-gap"], {
4
5
  variants: { variant: {
5
6
  default: [],
6
7
  nested: []
7
8
  } },
8
9
  defaultVariants: { variant: "default" }
9
10
  });
10
- const inputUploadButton = (props) => {
11
+ var inputUploadButton = (props) => {
11
12
  const { className, ...rest } = props;
12
13
  return clsx(inputUploadButtonBase(rest), className);
13
14
  };
14
- const inputUploadDropZone = cva([
15
+ var inputUploadDropZone = cva([
16
+ "relative",
15
17
  "min-w-0 flex-1",
16
18
  "flex items-center",
17
19
  "group-invalid/input-upload:border group-invalid/input-upload:border-input-outlined-outline-error",
@@ -24,4 +26,5 @@ const inputUploadDropZone = cva([
24
26
  } },
25
27
  defaultVariants: { variant: "default" }
26
28
  });
29
+ //#endregion
27
30
  export { inputUploadButton, inputUploadDropZone };
@@ -2,7 +2,8 @@ import { FormFieldError } from "./FormFieldError.js";
2
2
  import { FormFieldHeader } from "./FormFieldHeader.js";
3
3
  import { FormFieldHelper } from "./FormFieldHelper.js";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
- const FormField = ({ ref, as, label, tooltipText, helperText, isRequired, rightContent, isDisabled, error, hideLabel, headerClassName, errorClassName, children, className, labelProps, isHeaderHidden, tabIndex, onMouseEnter, onFocusCapture }) => {
5
+ //#region src/components/inputs/FormField/FormField.tsx
6
+ var FormField = ({ ref, as, label, tooltipText, helperText, isRequired, rightContent, isDisabled, error, hideLabel, headerClassName, errorClassName, children, className, labelProps, isHeaderHidden, tabIndex, onMouseEnter, onFocusCapture }) => {
6
7
  const headerProps = {
7
8
  label,
8
9
  tooltipText,
@@ -40,4 +41,5 @@ const FormField = ({ ref, as, label, tooltipText, helperText, isRequired, rightC
40
41
  ]
41
42
  });
42
43
  };
44
+ //#endregion
43
45
  export { FormField };
@@ -2,10 +2,12 @@ import { UIStyle } from "../../../config/uiStyle.context.js";
2
2
  import { formFieldError } from "./formFieldError.cva.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { clsx } from "clsx";
5
- const FormFieldError = ({ error, isDisabled, isHidden, className }) => {
5
+ //#region src/components/inputs/FormField/FormFieldError.tsx
6
+ var FormFieldError = ({ error, isDisabled, isHidden, className }) => {
6
7
  return /* @__PURE__ */ jsx("p", {
7
8
  className: clsx(UIStyle.useCva("formField.errorLabelCva", formFieldError)({ visible: !!error && !isDisabled && !isHidden }), className),
8
9
  children: error
9
10
  });
10
11
  };
12
+ //#endregion
11
13
  export { FormFieldError };
@@ -5,7 +5,8 @@ import { FormFieldLabel } from "./FormFieldLabel.js";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { clsx } from "clsx";
7
7
  import { Focusable } from "react-aria-components";
8
- const FormFieldHeader = ({ label, tooltipText, helperText, isRequired, rightContent, isHeaderHidden, isDisabled, className, labelProps }) => {
8
+ //#region src/components/inputs/FormField/FormFieldHeader.tsx
9
+ var FormFieldHeader = ({ label, tooltipText, helperText, isRequired, rightContent, isHeaderHidden, isDisabled, className, labelProps }) => {
9
10
  return /* @__PURE__ */ jsxs("div", {
10
11
  className: clsx(isHeaderHidden ? "sr-only" : "mb-1", className),
11
12
  children: [/* @__PURE__ */ jsxs("div", {
@@ -33,4 +34,5 @@ const FormFieldHeader = ({ label, tooltipText, helperText, isRequired, rightCont
33
34
  })]
34
35
  });
35
36
  };
37
+ //#endregion
36
38
  export { FormFieldHeader };
@@ -1,9 +1,10 @@
1
1
  import { CloseIcon } from "../../../assets/icons/Close.js";
2
- import { ns } from "../../../config/i18n.js";
2
+ import "../../../config/i18n.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { Button } from "react-aria-components";
5
5
  import { useTranslation } from "react-i18next";
6
- const FormFieldHeaderClose = ({ onClose }) => {
6
+ //#region src/components/inputs/FormField/FormFieldHeaderClose.tsx
7
+ var FormFieldHeaderClose = ({ onClose }) => {
7
8
  const { t } = useTranslation("ui");
8
9
  return /* @__PURE__ */ jsx(Button, {
9
10
  onPress: onClose,
@@ -12,4 +13,5 @@ const FormFieldHeaderClose = ({ onClose }) => {
12
13
  children: /* @__PURE__ */ jsx(CloseIcon, { className: "size-6 text-interactive-text-secondary-idle" })
13
14
  });
14
15
  };
16
+ //#endregion
15
17
  export { FormFieldHeaderClose };
@@ -2,11 +2,13 @@ import { UIStyle } from "../../../config/uiStyle.context.js";
2
2
  import { formFieldHelper } from "./formFieldHelper.cva.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { clsx } from "clsx";
5
- const FormFieldHelper = ({ helperText, isDisabled, isHidden, hasError, className }) => {
5
+ //#region src/components/inputs/FormField/FormFieldHelper.tsx
6
+ var FormFieldHelper = ({ helperText, isDisabled, isHidden, hasError, className }) => {
6
7
  return /* @__PURE__ */ jsx("p", {
7
8
  className: clsx(UIStyle.useCva("formField.helperLabelCva", formFieldHelper)({ visible: !!helperText && !isDisabled && !isHidden && !hasError }), className),
8
9
  slot: "description",
9
10
  children: helperText
10
11
  });
11
12
  };
13
+ //#endregion
12
14
  export { FormFieldHelper };