@povio/ui 2.2.6 → 2.2.7

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 (248) hide show
  1. package/dist/assets/icons/AlignCenter.js +3 -1
  2. package/dist/assets/icons/AlignLeft.js +3 -1
  3. package/dist/assets/icons/AlignLeftRight.js +3 -1
  4. package/dist/assets/icons/AlignRight.js +3 -1
  5. package/dist/assets/icons/ArrowDropDown.js +3 -1
  6. package/dist/assets/icons/ArrowDropUp.js +3 -1
  7. package/dist/assets/icons/ArrowLeft.js +3 -1
  8. package/dist/assets/icons/ArrowRight.js +3 -1
  9. package/dist/assets/icons/Bold.js +3 -1
  10. package/dist/assets/icons/BulletedList.js +3 -1
  11. package/dist/assets/icons/Calendar.js +3 -1
  12. package/dist/assets/icons/Check.js +3 -1
  13. package/dist/assets/icons/CheckCircle.js +3 -1
  14. package/dist/assets/icons/CheckboxCheckmark.js +3 -1
  15. package/dist/assets/icons/CheckboxIndeterminate.js +3 -1
  16. package/dist/assets/icons/ChevronDown.js +3 -1
  17. package/dist/assets/icons/ChevronLeft.js +3 -1
  18. package/dist/assets/icons/ChevronRight.js +3 -1
  19. package/dist/assets/icons/ChevronUp.js +3 -1
  20. package/dist/assets/icons/ChevronsLeft.js +3 -1
  21. package/dist/assets/icons/ChevronsRight.js +3 -1
  22. package/dist/assets/icons/Clock.js +3 -1
  23. package/dist/assets/icons/Close.js +3 -1
  24. package/dist/assets/icons/DateTime.js +3 -1
  25. package/dist/assets/icons/DragIndicator.js +3 -1
  26. package/dist/assets/icons/File.js +3 -1
  27. package/dist/assets/icons/Highlight.js +3 -1
  28. package/dist/assets/icons/HighlightOn.js +3 -1
  29. package/dist/assets/icons/Home.js +3 -1
  30. package/dist/assets/icons/Info.js +3 -1
  31. package/dist/assets/icons/Italic.js +3 -1
  32. package/dist/assets/icons/Link.js +3 -1
  33. package/dist/assets/icons/Menu.js +3 -1
  34. package/dist/assets/icons/NumberedList.js +3 -1
  35. package/dist/assets/icons/PointerHorizontal.js +3 -1
  36. package/dist/assets/icons/PointerVertical.js +3 -1
  37. package/dist/assets/icons/Search.js +3 -1
  38. package/dist/assets/icons/Send.js +3 -1
  39. package/dist/assets/icons/Strikethrough.js +3 -1
  40. package/dist/assets/icons/TextColor.js +3 -1
  41. package/dist/assets/icons/Today.js +3 -1
  42. package/dist/assets/icons/Underlined.js +3 -1
  43. package/dist/assets/icons/Upload.js +3 -1
  44. package/dist/assets/icons/Visibility.js +3 -1
  45. package/dist/assets/icons/VisibilityOff.js +3 -1
  46. package/dist/assets/icons/WarningFilled.js +3 -1
  47. package/dist/assets/locales/en/translation.json.js +1 -0
  48. package/dist/assets/locales/sl/translation.json.js +1 -0
  49. package/dist/components/Breadcrumbs/Breadcrumbs.js +5 -3
  50. package/dist/components/Breadcrumbs/breadcrumbs.cva.js +7 -5
  51. package/dist/components/Menu/Menu.js +3 -1
  52. package/dist/components/Menu/MenuDesktop.js +3 -1
  53. package/dist/components/Menu/MenuItem.js +3 -1
  54. package/dist/components/Menu/MenuMobile.js +3 -1
  55. package/dist/components/Menu/MenuPopover.js +3 -1
  56. package/dist/components/Menu/menu.cva.js +6 -4
  57. package/dist/components/buttons/Button/Button.js +3 -1
  58. package/dist/components/buttons/Button/button.cva.js +7 -5
  59. package/dist/components/buttons/IconButton/IconButton.js +3 -1
  60. package/dist/components/buttons/InlineIconButton/InlineIconButton.js +3 -1
  61. package/dist/components/buttons/PillButton/PillButton.js +3 -1
  62. package/dist/components/buttons/PillButton/pillButton.cva.js +6 -4
  63. package/dist/components/buttons/SplitButton/SplitButton.js +3 -1
  64. package/dist/components/buttons/TextButton/TextButton.js +3 -1
  65. package/dist/components/buttons/ToggleButton/ToggleButton.js +3 -1
  66. package/dist/components/buttons/shared/ButtonContent.js +3 -1
  67. package/dist/components/buttons/shared/buttonContent.cva.js +2 -1
  68. package/dist/components/inputs/Checkbox/Checkbox.js +3 -1
  69. package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +3 -1
  70. package/dist/components/inputs/Checkbox/checkbox.cva.js +6 -4
  71. package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +3 -1
  72. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +9 -7
  73. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +3 -1
  74. package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +3 -1
  75. package/dist/components/inputs/DateTime/shared/Calendar.js +3 -1
  76. package/dist/components/inputs/DateTime/shared/CalendarCell.js +3 -1
  77. package/dist/components/inputs/DateTime/shared/CalendarGrid.js +3 -1
  78. package/dist/components/inputs/DateTime/shared/CalendarHeader.js +3 -1
  79. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +4 -2
  80. package/dist/components/inputs/DateTime/shared/DateField.js +3 -1
  81. package/dist/components/inputs/DateTime/shared/DatePickerInput.js +3 -1
  82. package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +4 -2
  83. package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +3 -1
  84. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +4 -2
  85. package/dist/components/inputs/DateTime/shared/MonthPicker.js +3 -1
  86. package/dist/components/inputs/DateTime/shared/RangeCalendar.js +3 -1
  87. package/dist/components/inputs/DateTime/shared/TimeField.js +3 -1
  88. package/dist/components/inputs/DateTime/shared/TimePickerForm.js +3 -1
  89. package/dist/components/inputs/DateTime/shared/TimePickerInput.js +3 -1
  90. package/dist/components/inputs/DateTime/shared/YearPicker.js +3 -1
  91. package/dist/components/inputs/File/FileUpload.js +6 -4
  92. package/dist/components/inputs/File/FileUploadContainer.js +3 -1
  93. package/dist/components/inputs/File/InputUpload.js +3 -1
  94. package/dist/components/inputs/File/shared/FileCard.js +3 -1
  95. package/dist/components/inputs/File/shared/FileCardList.js +3 -1
  96. package/dist/components/inputs/File/shared/FileUploadContent.js +3 -1
  97. package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +3 -1
  98. package/dist/components/inputs/File/shared/FileUploadContentError.js +4 -2
  99. package/dist/components/inputs/File/shared/FileUploadContentFilled.js +4 -2
  100. package/dist/components/inputs/File/shared/FileUploadContentLoading.js +4 -2
  101. package/dist/components/inputs/File/shared/InputUploadContent.js +4 -2
  102. package/dist/components/inputs/File/shared/InputUploadFilled.js +3 -1
  103. package/dist/components/inputs/File/shared/ProgressBar.js +3 -1
  104. package/dist/components/inputs/File/shared/fileUpload.cva.js +4 -2
  105. package/dist/components/inputs/File/shared/inputUploadButton.cva.js +6 -3
  106. package/dist/components/inputs/FormField/FormField.js +3 -1
  107. package/dist/components/inputs/FormField/FormFieldError.js +3 -1
  108. package/dist/components/inputs/FormField/FormFieldHeader.js +3 -1
  109. package/dist/components/inputs/FormField/FormFieldHeaderClose.js +4 -2
  110. package/dist/components/inputs/FormField/FormFieldHelper.js +3 -1
  111. package/dist/components/inputs/FormField/FormFieldLabel.js +3 -1
  112. package/dist/components/inputs/FormField/formFieldError.cva.js +3 -1
  113. package/dist/components/inputs/FormField/formFieldHelper.cva.js +3 -1
  114. package/dist/components/inputs/Input/NumberInput/NumberInput.js +3 -1
  115. package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +4 -2
  116. package/dist/components/inputs/Input/TextArea/TextArea.js +3 -1
  117. package/dist/components/inputs/Input/TextInput/TextInput.js +3 -1
  118. package/dist/components/inputs/Input/shared/InputContent.js +3 -1
  119. package/dist/components/inputs/Inputs/Form.js +2 -0
  120. package/dist/components/inputs/Inputs/InputItem.js +2 -0
  121. package/dist/components/inputs/Inputs/Inputs.js +2 -0
  122. package/dist/components/inputs/RadioGroup/RadioGroup.js +3 -1
  123. package/dist/components/inputs/RadioGroup/radio.cva.js +5 -3
  124. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +3 -1
  125. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +3 -1
  126. package/dist/components/inputs/Selection/Select/Select.js +3 -1
  127. package/dist/components/inputs/Selection/shared/SelectBase.js +3 -1
  128. package/dist/components/inputs/Selection/shared/SelectDesktop.js +4 -2
  129. package/dist/components/inputs/Selection/shared/SelectInput.js +4 -2
  130. package/dist/components/inputs/Selection/shared/SelectInputTags.js +3 -1
  131. package/dist/components/inputs/Selection/shared/SelectListBox.js +4 -2
  132. package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +5 -3
  133. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +4 -2
  134. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +4 -2
  135. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +4 -2
  136. package/dist/components/inputs/Selection/shared/SelectMobile.js +3 -1
  137. package/dist/components/inputs/Selection/shared/select.context.js +20 -18
  138. package/dist/components/inputs/Selection/shared/useSelectItems.js +6 -4
  139. package/dist/components/inputs/Slider/Slider.js +3 -1
  140. package/dist/components/inputs/TextEditor/TextEditor.js +3 -1
  141. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +3 -1
  142. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +3 -1
  143. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +4 -2
  144. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +4 -2
  145. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +3 -1
  146. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +3 -1
  147. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +3 -1
  148. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +4 -2
  149. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +4 -2
  150. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +4 -2
  151. package/dist/components/inputs/TextEditor/textEditor.types.js +3 -1
  152. package/dist/components/inputs/Toggle/Toggle.js +3 -1
  153. package/dist/components/inputs/Toggle/toggle.cva.js +4 -2
  154. package/dist/components/inputs/shared/CheckContent.js +3 -1
  155. package/dist/components/inputs/shared/InputClear.js +5 -3
  156. package/dist/components/inputs/shared/TooltipWrapper.js +3 -1
  157. package/dist/components/inputs/shared/input.cva.js +6 -4
  158. package/dist/components/inputs/shared/label.cva.js +4 -2
  159. package/dist/components/navigation/Accordion/Accordion.js +3 -1
  160. package/dist/components/navigation/Accordion/AccordionItem.js +3 -1
  161. package/dist/components/navigation/Accordion/accordion.cva.js +12 -10
  162. package/dist/components/navigation/Stepper/Stepper.js +3 -1
  163. package/dist/components/navigation/Stepper/StepperItem.js +3 -1
  164. package/dist/components/navigation/Stepper/StepperSeparator.js +3 -1
  165. package/dist/components/navigation/Stepper/stepper.cva.js +9 -7
  166. package/dist/components/outline.clsx.js +4 -2
  167. package/dist/components/overlays/ActionModal/ActionModal.js +3 -1
  168. package/dist/components/overlays/BottomSheet/BottomSheet.js +3 -1
  169. package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +4 -2
  170. package/dist/components/overlays/Drawer/Drawer.js +3 -1
  171. package/dist/components/overlays/Modal/Modal.js +4 -2
  172. package/dist/components/overlays/Modal/modal.cva.js +5 -3
  173. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +3 -1
  174. package/dist/components/overlays/Tooltip/Tooltip.js +7 -2
  175. package/dist/components/overlays/Tooltip/TooltipEllipsis.js +3 -1
  176. package/dist/components/overlays/Tooltip/tooltip.cva.js +6 -4
  177. package/dist/components/segment/Segment.js +3 -1
  178. package/dist/components/segment/SegmentItem.js +3 -1
  179. package/dist/components/segment/segment.cva.js +4 -2
  180. package/dist/components/shared/pagination/Pagination.js +4 -2
  181. package/dist/components/shared/pagination/PaginationList.js +4 -2
  182. package/dist/components/shared/pagination/minWidth.cva.js +3 -1
  183. package/dist/components/shared/popover.cva.js +3 -1
  184. package/dist/components/status/Alert/Alert.js +3 -1
  185. package/dist/components/status/Alert/alert.cva.js +3 -1
  186. package/dist/components/status/Loader/Loader.js +3 -1
  187. package/dist/components/status/Loader/loader.cva.js +4 -2
  188. package/dist/components/status/Toast/Toast.js +15 -6
  189. package/dist/components/status/Toast/toast.cva.js +6 -20
  190. package/dist/components/status/Toast/useToast.js +3 -1
  191. package/dist/components/status/shared/status.cva.js +4 -2
  192. package/dist/components/table/CellText.js +3 -1
  193. package/dist/components/table/ColumnConfig.js +3 -1
  194. package/dist/components/table/HeaderText.js +3 -1
  195. package/dist/components/table/InfiniteTable.js +3 -1
  196. package/dist/components/table/PaginatedTable.js +3 -1
  197. package/dist/components/table/Table.js +4 -2
  198. package/dist/components/table/table.cva.js +8 -6
  199. package/dist/components/text/Link/Link.js +3 -1
  200. package/dist/components/text/Link/link.cva.js +3 -1
  201. package/dist/components/text/Tag/Tag.d.ts +3 -0
  202. package/dist/components/text/Tag/Tag.js +9 -4
  203. package/dist/components/text/Tag/tag.cva.js +3 -1
  204. package/dist/components/text/Typography/Typography.js +3 -1
  205. package/dist/components/text/Typography/typography.cva.js +3 -1
  206. package/dist/config/confirmation.context.js +4 -2
  207. package/dist/config/i18n.js +4 -2
  208. package/dist/config/link.context.js +3 -1
  209. package/dist/config/router.context.js +3 -1
  210. package/dist/config/theme.context.js +8 -6
  211. package/dist/config/uiConfig.context.d.ts +4 -0
  212. package/dist/config/uiConfig.context.js +9 -2
  213. package/dist/config/uiStyle.context.js +3 -1
  214. package/dist/helpers/dynamicColumns.js +4 -2
  215. package/dist/helpers/dynamicInputs.js +5 -3
  216. package/dist/hooks/useAutosave.js +2 -0
  217. package/dist/hooks/useBreakpoint.js +5 -3
  218. package/dist/hooks/useDebounceCallback.js +2 -0
  219. package/dist/hooks/useDeepCompare.js +5 -3
  220. package/dist/hooks/useFilters.js +3 -1
  221. package/dist/hooks/useForm.js +2 -0
  222. package/dist/hooks/useFormAutosave.js +2 -0
  223. package/dist/hooks/useIntersectionObserver.js +3 -1
  224. package/dist/hooks/useLocalStorage.js +3 -1
  225. package/dist/hooks/useLongPressRepeat.js +3 -1
  226. package/dist/hooks/usePagination.js +2 -0
  227. package/dist/hooks/useScrollableListBox.js +2 -0
  228. package/dist/hooks/useSorting.js +2 -0
  229. package/dist/hooks/useStateAndRef.js +3 -1
  230. package/dist/hooks/useTableColumnConfig.js +2 -0
  231. package/dist/hooks/useTableNav.js +124 -20
  232. package/dist/hooks/useTranslationMemo.js +2 -0
  233. package/dist/tw-ui-plugin.js +4 -2
  234. package/dist/utils/array.utils.js +3 -1
  235. package/dist/utils/compoundMapper.js +3 -1
  236. package/dist/utils/date-time.utils.js +3 -1
  237. package/dist/utils/date.utils.js +3 -1
  238. package/dist/utils/dom.utils.js +3 -1
  239. package/dist/utils/file.utils.js +3 -1
  240. package/dist/utils/isEqual.js +3 -1
  241. package/dist/utils/logger.js +3 -1
  242. package/dist/utils/object.utils.js +3 -1
  243. package/dist/utils/queries.utils.js +3 -1
  244. package/dist/utils/rest.utils.js +3 -1
  245. package/dist/utils/routing.utils.js +3 -1
  246. package/dist/utils/string.utils.js +3 -1
  247. package/dist/utils/zod.utils.js +3 -1
  248. package/package.json +2 -2
@@ -13,6 +13,7 @@ import { mergeRefs } from "@react-aria/utils";
13
13
  import { Controller } from "react-hook-form";
14
14
  import { Time, createCalendar, getLocalTimeZone, now, toCalendarDateTime, today } from "@internationalized/date";
15
15
  import { useCalendarState, useDatePickerState } from "react-stately";
16
+ //#region src/components/inputs/DateTime/DateTimePicker/DateTimePicker.tsx
16
17
  var DateTimePickerBase = (props) => {
17
18
  const ui = UIConfig.useConfig();
18
19
  const { ref, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName, isHeaderHidden, error, onChange, value, disableDropdown, isTimeOptional, placeholder, inputClassName, hideLabel = ui.input.hideLabel, variant = ui.input.variant, as = ui.input.as, size = ui.input.size, isClearable = ui.input.isClearable, todayIcon = ui.dateInput.todayIcon, shouldForceLeadingZeros = ui.dateInput.shouldForceLeadingZeros, disableManualEntry = ui.dateInput.disableManualEntry, ...rest } = props;
@@ -172,7 +173,7 @@ var DateTimePickerBase = (props) => {
172
173
  })
173
174
  });
174
175
  };
175
- const DateTimePicker = ({ fullIso = true, ...props }) => {
176
+ var DateTimePicker = ({ fullIso = true, ...props }) => {
176
177
  const formatDateValue = (dateValue) => {
177
178
  if (dateValue === null) return null;
178
179
  if (fullIso) return DateTimeUtils.fromCalendarDateTimeToUTCISO(dateValue);
@@ -205,4 +206,5 @@ const DateTimePicker = ({ fullIso = true, ...props }) => {
205
206
  onChange: (value) => props.onChange?.(formatDateValue(value))
206
207
  });
207
208
  };
209
+ //#endregion
208
210
  export { DateTimePicker };
@@ -14,6 +14,7 @@ import { Controller } from "react-hook-form";
14
14
  import { getLocalTimeZone, now, toTime } from "@internationalized/date";
15
15
  import { DateTime } from "luxon";
16
16
  import { useTimeFieldState } from "react-stately";
17
+ //#region src/components/inputs/DateTime/TimePicker/TimePicker.tsx
17
18
  var TimePickerBase = (props) => {
18
19
  const ui = UIConfig.useConfig();
19
20
  const { ref, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName, isHeaderHidden, error, onChange, value, disableDropdown, placeholder, variant = ui.input.variant, as = ui.input.as, size = ui.input.size, hideLabel = ui.input.hideLabel, isClearable = ui.input.isClearable, disableManualEntry = ui.dateInput.disableManualEntry, ...rest } = props;
@@ -122,7 +123,7 @@ var TimePickerBase = (props) => {
122
123
  })
123
124
  });
124
125
  };
125
- const TimePicker = (props) => {
126
+ var TimePicker = (props) => {
126
127
  const formatTimeValue = (timeValue) => {
127
128
  if (timeValue === null) return null;
128
129
  const parsedDate = props.date ? DateTime.fromISO(props.date).toJSDate() : void 0;
@@ -155,4 +156,5 @@ const TimePicker = (props) => {
155
156
  onChange: (value) => props.onChange?.(formatTimeValue(value))
156
157
  });
157
158
  };
159
+ //#endregion
158
160
  export { TimePicker };
@@ -7,7 +7,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { clsx } from "clsx";
8
8
  import { useState } from "react";
9
9
  import { useCalendar } from "@react-aria/calendar";
10
- const Calendar = ({ className, includesTime, datePickerState, hourCycle, onApply, ...props }) => {
10
+ //#region src/components/inputs/DateTime/shared/Calendar.tsx
11
+ var Calendar = ({ className, includesTime, datePickerState, hourCycle, onApply, ...props }) => {
11
12
  const [toggleState, setToggleState] = useState(null);
12
13
  const { calendarProps, prevButtonProps, nextButtonProps } = useCalendar(props.calendarProps, props.state);
13
14
  const handleDateChange = () => {
@@ -51,4 +52,5 @@ const Calendar = ({ className, includesTime, datePickerState, hourCycle, onApply
51
52
  })]
52
53
  });
53
54
  };
55
+ //#endregion
54
56
  export { Calendar };
@@ -6,10 +6,11 @@ import { mergeProps } from "@react-aria/utils";
6
6
  import { isSameDay } from "@internationalized/date";
7
7
  import { useCalendarCell } from "@react-aria/calendar";
8
8
  import { useFocusRing } from "@react-aria/focus";
9
+ //#region src/components/inputs/DateTime/shared/CalendarCell.tsx
9
10
  var isRange = (state) => {
10
11
  return "highlightedRange" in state;
11
12
  };
12
- const CalendarCell = ({ state, onApply, shouldCloseOnSelect = true, onDateSelection, onDateHover, rangeSelection, hoverDate, onKeyboardNavigation, ...props }) => {
13
+ var CalendarCell = ({ state, onApply, shouldCloseOnSelect = true, onDateSelection, onDateHover, rangeSelection, hoverDate, onKeyboardNavigation, ...props }) => {
13
14
  const ref = useRef(null);
14
15
  const { cellProps, buttonProps, formattedDate, isSelected, isDisabled, isOutsideVisibleRange } = useCalendarCell(props, state, ref);
15
16
  const { focusProps } = useFocusRing();
@@ -127,4 +128,5 @@ const CalendarCell = ({ state, onApply, shouldCloseOnSelect = true, onDateSelect
127
128
  })
128
129
  });
129
130
  };
131
+ //#endregion
130
132
  export { CalendarCell };
@@ -3,6 +3,7 @@ import { CalendarCell } from "./CalendarCell.js";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import { clsx } from "clsx";
5
5
  import { useCalendarGrid } from "@react-aria/calendar";
6
+ //#region src/components/inputs/DateTime/shared/CalendarGrid.tsx
6
7
  var WEEK_INDICES = [
7
8
  0,
8
9
  1,
@@ -11,7 +12,7 @@ var WEEK_INDICES = [
11
12
  4,
12
13
  5
13
14
  ];
14
- const CalendarGrid = ({ state, onApply, shouldCloseOnSelect, offset = {}, onDateSelection, onDateHover, rangeSelection, hoverDate, onKeyboardNavigation, className, calendarSide, ...props }) => {
15
+ var CalendarGrid = ({ state, onApply, shouldCloseOnSelect, offset = {}, onDateSelection, onDateHover, rangeSelection, hoverDate, onKeyboardNavigation, className, calendarSide, ...props }) => {
15
16
  const { gridProps, headerProps, weekDays } = useCalendarGrid({
16
17
  ...props,
17
18
  weekdayStyle: "short"
@@ -47,4 +48,5 @@ const CalendarGrid = ({ state, onApply, shouldCloseOnSelect, offset = {}, onDate
47
48
  })
48
49
  });
49
50
  };
51
+ //#endregion
50
52
  export { CalendarGrid };
@@ -8,11 +8,12 @@ import { clsx } from "clsx";
8
8
  import { Button, ToggleButtonGroup } from "react-aria-components";
9
9
  import { Time } from "@internationalized/date";
10
10
  import { useDateFormatter } from "@react-aria/i18n";
11
+ //#region src/components/inputs/DateTime/shared/CalendarHeader.tsx
11
12
  var HourCycle = {
12
13
  12: "h12",
13
14
  24: "h23"
14
15
  };
15
- const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextButtonProps, includesTime, hourCycle, toggleState, setToggleState }) => {
16
+ var CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextButtonProps, includesTime, hourCycle, toggleState, setToggleState }) => {
16
17
  const formatter = useDateFormatter({
17
18
  month: "long",
18
19
  timeZone: calendarState.timeZone
@@ -86,4 +87,5 @@ const CalendarHeader = ({ calendarState, datePickerState, prevButtonProps, nextB
86
87
  ]
87
88
  });
88
89
  };
90
+ //#endregion
89
91
  export { CalendarHeader };
@@ -5,13 +5,14 @@ import { ChevronsLeftIcon } from "../../../../assets/icons/ChevronsLeft.js";
5
5
  import { ChevronsRightIcon } from "../../../../assets/icons/ChevronsRight.js";
6
6
  import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconButton.js";
7
7
  import { PillButton } from "../../../buttons/PillButton/PillButton.js";
8
- import { ns } from "../../../../config/i18n.js";
8
+ import "../../../../config/i18n.js";
9
9
  import { Select } from "../../Selection/Select/Select.js";
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
11
11
  import { useMemo } from "react";
12
12
  import { useTranslation } from "react-i18next";
13
13
  import { useDateFormatter } from "@react-aria/i18n";
14
- const CalendarSelectHeader = ({ state, isPrevMonthDisabled, isPrevYearDisabled, isNextMonthDisabled, isNextYearDisabled, offset = { months: 0 }, onNavigate, maxDate, minDate }) => {
14
+ //#region src/components/inputs/DateTime/shared/CalendarSelectHeader.tsx
15
+ var CalendarSelectHeader = ({ state, isPrevMonthDisabled, isPrevYearDisabled, isNextMonthDisabled, isNextYearDisabled, offset = { months: 0 }, onNavigate, maxDate, minDate }) => {
15
16
  const { t } = useTranslation("ui");
16
17
  const displayDate = state.visibleRange.start.add(offset);
17
18
  const currentMonth = displayDate.month - 1;
@@ -172,4 +173,5 @@ const CalendarSelectHeader = ({ state, isPrevMonthDisabled, isPrevYearDisabled,
172
173
  ]
173
174
  });
174
175
  };
176
+ //#endregion
175
177
  export { CalendarSelectHeader };
@@ -5,7 +5,8 @@ import { useEffect, useImperativeHandle, useRef } from "react";
5
5
  import { useDateField, useLocale } from "react-aria";
6
6
  import { createCalendar } from "@internationalized/date";
7
7
  import { useDateFieldState } from "react-stately";
8
- const DateField = ({ ref, onClearChange, hidePlaceholder, isDisabled, disableManualEntry, ...props }) => {
8
+ //#region src/components/inputs/DateTime/shared/DateField.tsx
9
+ var DateField = ({ ref, onClearChange, hidePlaceholder, isDisabled, disableManualEntry, ...props }) => {
9
10
  const { locale } = useLocale();
10
11
  const state = useDateFieldState({
11
12
  ...props,
@@ -86,4 +87,5 @@ const DateField = ({ ref, onClearChange, hidePlaceholder, isDisabled, disableMan
86
87
  })
87
88
  });
88
89
  };
90
+ //#endregion
89
91
  export { DateField };
@@ -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 };
@@ -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, 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 });
@@ -85,4 +86,5 @@ const TimePickerInput = ({ ref, as, fieldProps, state, isDisabled, isDirty, isIn
85
86
  })]
86
87
  });
87
88
  };
89
+ //#endregion
88
90
  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 };