@povio/ui 3.1.0 → 3.2.0

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 (301) hide show
  1. package/dist/assets/icons/AlignCenter.js +26 -11
  2. package/dist/assets/icons/AlignLeft.js +26 -11
  3. package/dist/assets/icons/AlignLeftRight.js +26 -11
  4. package/dist/assets/icons/AlignRight.js +26 -11
  5. package/dist/assets/icons/ArrowDropDown.js +26 -11
  6. package/dist/assets/icons/ArrowDropUp.js +26 -11
  7. package/dist/assets/icons/ArrowLeft.js +26 -11
  8. package/dist/assets/icons/ArrowRight.js +26 -11
  9. package/dist/assets/icons/Bold.js +26 -11
  10. package/dist/assets/icons/BulletedList.js +26 -11
  11. package/dist/assets/icons/Calendar.js +28 -13
  12. package/dist/assets/icons/Check.js +28 -13
  13. package/dist/assets/icons/CheckCircle.js +26 -11
  14. package/dist/assets/icons/CheckboxCheckmark.js +29 -14
  15. package/dist/assets/icons/CheckboxIndeterminate.js +29 -14
  16. package/dist/assets/icons/ChevronDown.js +28 -13
  17. package/dist/assets/icons/ChevronLeft.js +28 -13
  18. package/dist/assets/icons/ChevronRight.js +28 -13
  19. package/dist/assets/icons/ChevronUp.js +28 -13
  20. package/dist/assets/icons/ChevronsLeft.js +28 -13
  21. package/dist/assets/icons/ChevronsRight.js +28 -13
  22. package/dist/assets/icons/Clock.js +26 -11
  23. package/dist/assets/icons/Close.js +26 -11
  24. package/dist/assets/icons/DateTime.js +35 -14
  25. package/dist/assets/icons/DragIndicator.js +26 -11
  26. package/dist/assets/icons/File.js +28 -13
  27. package/dist/assets/icons/Highlight.js +26 -11
  28. package/dist/assets/icons/HighlightOn.js +49 -15
  29. package/dist/assets/icons/Home.js +26 -11
  30. package/dist/assets/icons/Info.js +37 -16
  31. package/dist/assets/icons/Italic.js +26 -11
  32. package/dist/assets/icons/Link.js +26 -11
  33. package/dist/assets/icons/Menu.js +26 -11
  34. package/dist/assets/icons/NumberedList.js +26 -11
  35. package/dist/assets/icons/PointerHorizontal.js +26 -11
  36. package/dist/assets/icons/PointerVertical.js +26 -11
  37. package/dist/assets/icons/Search.js +26 -11
  38. package/dist/assets/icons/Send.js +28 -13
  39. package/dist/assets/icons/Strikethrough.js +26 -11
  40. package/dist/assets/icons/TextColor.js +48 -14
  41. package/dist/assets/icons/Today.js +26 -11
  42. package/dist/assets/icons/Underlined.js +28 -13
  43. package/dist/assets/icons/Upload.js +35 -14
  44. package/dist/assets/icons/Visibility.js +26 -11
  45. package/dist/assets/icons/VisibilityOff.js +26 -11
  46. package/dist/assets/icons/WarningFilled.js +28 -13
  47. package/dist/components/Breadcrumbs/Breadcrumbs.js +207 -56
  48. package/dist/components/Menu/Menu.js +18 -2
  49. package/dist/components/Menu/MenuDesktop.js +41 -7
  50. package/dist/components/Menu/MenuItem.js +32 -9
  51. package/dist/components/Menu/MenuMobile.js +102 -39
  52. package/dist/components/Menu/MenuPopover.js +105 -29
  53. package/dist/components/buttons/Button/button.cva.d.ts +3 -3
  54. package/dist/components/buttons/IconButton/IconButton.js +40 -8
  55. package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +2 -1
  56. package/dist/components/buttons/InlineIconButton/InlineIconButton.js +34 -9
  57. package/dist/components/buttons/PillButton/PillButton.js +55 -17
  58. package/dist/components/buttons/PillButton/pillButton.cva.d.ts +1 -1
  59. package/dist/components/buttons/SplitButton/SplitButton.js +103 -18
  60. package/dist/components/buttons/TextButton/TextButton.js +30 -8
  61. package/dist/components/buttons/ToggleButton/ToggleButton.js +28 -8
  62. package/dist/components/buttons/shared/ButtonContent.js +80 -22
  63. package/dist/components/inputs/Checkbox/Checkbox.d.ts +1 -0
  64. package/dist/components/inputs/Checkbox/Checkbox.js +201 -35
  65. package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +24 -10
  66. package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +3 -0
  67. package/dist/components/inputs/Checkbox/checkbox.cva.js +2 -1
  68. package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +12 -5
  69. package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +380 -75
  70. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +12 -5
  71. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +499 -186
  72. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +14 -5
  73. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +280 -46
  74. package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +7 -3
  75. package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +616 -121
  76. package/dist/components/inputs/DateTime/shared/Calendar.d.ts +5 -2
  77. package/dist/components/inputs/DateTime/shared/Calendar.js +342 -119
  78. package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +4 -2
  79. package/dist/components/inputs/DateTime/shared/CalendarCell.js +310 -103
  80. package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +4 -2
  81. package/dist/components/inputs/DateTime/shared/CalendarGrid.js +150 -33
  82. package/dist/components/inputs/DateTime/shared/CalendarHeader.js +233 -98
  83. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +318 -137
  84. package/dist/components/inputs/DateTime/shared/DateField.d.ts +2 -1
  85. package/dist/components/inputs/DateTime/shared/DateField.js +288 -112
  86. package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +14 -3
  87. package/dist/components/inputs/DateTime/shared/DatePickerInput.js +359 -129
  88. package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +18 -1
  89. package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +104 -11
  90. package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +83 -28
  91. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +59 -10
  92. package/dist/components/inputs/DateTime/shared/MonthPicker.js +103 -58
  93. package/dist/components/inputs/DateTime/shared/RangeCalendar.js +193 -82
  94. package/dist/components/inputs/DateTime/shared/TimeField.js +27 -8
  95. package/dist/components/inputs/DateTime/shared/TimePickerForm.js +279 -110
  96. package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +4 -1
  97. package/dist/components/inputs/DateTime/shared/TimePickerInput.js +211 -65
  98. package/dist/components/inputs/DateTime/shared/YearPicker.js +119 -68
  99. package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +5 -0
  100. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +16 -0
  101. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +16 -0
  102. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +15 -0
  103. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +32 -0
  104. package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +2 -0
  105. package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +1 -0
  106. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +41 -0
  107. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +99 -0
  108. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +1 -0
  109. package/dist/components/inputs/File/FileUpload.js +91 -46
  110. package/dist/components/inputs/File/FileUploadContainer.js +15 -7
  111. package/dist/components/inputs/File/InputUpload.js +317 -79
  112. package/dist/components/inputs/File/index.d.ts +1 -1
  113. package/dist/components/inputs/File/shared/FileCard.js +104 -41
  114. package/dist/components/inputs/File/shared/FileCardList.js +47 -12
  115. package/dist/components/inputs/File/shared/FileUploadContent.js +175 -44
  116. package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +149 -46
  117. package/dist/components/inputs/File/shared/FileUploadContentError.js +234 -93
  118. package/dist/components/inputs/File/shared/FileUploadContentFilled.js +230 -97
  119. package/dist/components/inputs/File/shared/FileUploadContentLoading.js +199 -55
  120. package/dist/components/inputs/File/shared/InputUploadContent.js +148 -34
  121. package/dist/components/inputs/File/shared/InputUploadFilled.js +49 -8
  122. package/dist/components/inputs/File/shared/ProgressBar.js +102 -15
  123. package/dist/components/inputs/File/shared/fileUpload.cva.d.ts +0 -11
  124. package/dist/components/inputs/File/shared/fileUpload.cva.js +1 -18
  125. package/dist/components/inputs/FormField/FormField.d.ts +3 -3
  126. package/dist/components/inputs/FormField/FormField.js +119 -37
  127. package/dist/components/inputs/FormField/FormFieldError.js +25 -5
  128. package/dist/components/inputs/FormField/FormFieldHeader.d.ts +2 -2
  129. package/dist/components/inputs/FormField/FormFieldHeader.js +81 -22
  130. package/dist/components/inputs/FormField/FormFieldHeaderClose.js +31 -7
  131. package/dist/components/inputs/FormField/FormFieldHelper.js +26 -6
  132. package/dist/components/inputs/FormField/FormFieldLabel.d.ts +2 -2
  133. package/dist/components/inputs/FormField/FormFieldLabel.js +40 -9
  134. package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +13 -0
  135. package/dist/components/inputs/FormField/formFieldHeader.cva.js +14 -0
  136. package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +5 -2
  137. package/dist/components/inputs/Input/NumberInput/NumberInput.js +446 -97
  138. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +45 -0
  139. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +571 -0
  140. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +35 -0
  141. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +574 -0
  142. package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +48 -9
  143. package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +8 -0
  144. package/dist/components/inputs/Input/TextArea/TextArea.cva.js +5 -0
  145. package/dist/components/inputs/Input/TextArea/TextArea.js +305 -90
  146. package/dist/components/inputs/Input/TextInput/TextInput.d.ts +3 -1
  147. package/dist/components/inputs/Input/TextInput/TextInput.js +429 -90
  148. package/dist/components/inputs/Input/shared/InputContent.js +193 -59
  149. package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +1 -0
  150. package/dist/components/inputs/Input/shared/numberStatic.utils.js +7 -0
  151. package/dist/components/inputs/Inputs/Form.js +40 -11
  152. package/dist/components/inputs/Inputs/InputItem.d.ts +15 -21
  153. package/dist/components/inputs/Inputs/InputItem.js +69 -14
  154. package/dist/components/inputs/Inputs/Inputs.js +37 -11
  155. package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +3 -1
  156. package/dist/components/inputs/RadioGroup/RadioGroup.js +353 -61
  157. package/dist/components/inputs/RadioGroup/radio.cva.d.ts +45 -0
  158. package/dist/components/inputs/RadioGroup/radio.cva.js +48 -1
  159. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +6 -2
  160. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +217 -22
  161. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +3 -18
  162. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +107 -8
  163. package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +37 -0
  164. package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +14 -0
  165. package/dist/components/inputs/Selection/Select/QuerySelect.js +178 -0
  166. package/dist/components/inputs/Selection/Select/Select.d.ts +7 -3
  167. package/dist/components/inputs/Selection/Select/Select.js +227 -18
  168. package/dist/components/inputs/Selection/shared/SelectBase.d.ts +8 -1
  169. package/dist/components/inputs/Selection/shared/SelectBase.js +69 -18
  170. package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +1 -1
  171. package/dist/components/inputs/Selection/shared/SelectDesktop.js +393 -138
  172. package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
  173. package/dist/components/inputs/Selection/shared/SelectInput.js +397 -116
  174. package/dist/components/inputs/Selection/shared/SelectInputTags.js +99 -25
  175. package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +2 -2
  176. package/dist/components/inputs/Selection/shared/SelectListBox.js +164 -52
  177. package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +85 -35
  178. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +69 -16
  179. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +70 -21
  180. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +58 -9
  181. package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +1 -1
  182. package/dist/components/inputs/Selection/shared/SelectMobile.js +9 -3
  183. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +9 -0
  184. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +47 -0
  185. package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +14 -0
  186. package/dist/components/inputs/Selection/shared/querySelect.utils.js +43 -0
  187. package/dist/components/inputs/Selection/shared/select.context.d.ts +3 -2
  188. package/dist/components/inputs/Selection/shared/select.context.js +67 -36
  189. package/dist/components/inputs/Selection/shared/select.types.d.ts +3 -2
  190. package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +6 -0
  191. package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +5 -0
  192. package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +12 -0
  193. package/dist/components/inputs/Selection/shared/selectInput.cva.js +8 -0
  194. package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +23 -0
  195. package/dist/components/inputs/Selection/shared/staticSelect.utils.js +54 -0
  196. package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +1 -0
  197. package/dist/components/inputs/Selection/shared/useSelectItems.js +109 -49
  198. package/dist/components/inputs/Skeleton/InputFrame.d.ts +83 -0
  199. package/dist/components/inputs/Skeleton/InputFrame.js +612 -0
  200. package/dist/components/inputs/Slider/Slider.d.ts +2 -1
  201. package/dist/components/inputs/Slider/Slider.js +265 -76
  202. package/dist/components/inputs/TextEditor/TextEditor.d.ts +1 -0
  203. package/dist/components/inputs/TextEditor/TextEditor.js +447 -98
  204. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +37 -11
  205. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +102 -30
  206. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +194 -45
  207. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +88 -28
  208. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +48 -14
  209. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +66 -19
  210. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +49 -15
  211. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +92 -32
  212. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +126 -54
  213. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +141 -38
  214. package/dist/components/inputs/Toggle/Toggle.d.ts +1 -0
  215. package/dist/components/inputs/Toggle/Toggle.js +214 -37
  216. package/dist/components/inputs/Toggle/toggle.cva.d.ts +3 -0
  217. package/dist/components/inputs/Toggle/toggle.cva.js +2 -1
  218. package/dist/components/inputs/shared/CheckContent.d.ts +2 -1
  219. package/dist/components/inputs/shared/CheckContent.js +21 -11
  220. package/dist/components/inputs/shared/InputClear.d.ts +2 -1
  221. package/dist/components/inputs/shared/InputClear.js +88 -12
  222. package/dist/components/inputs/shared/TooltipWrapper.js +50 -11
  223. package/dist/components/inputs/shared/input.cva.d.ts +28 -0
  224. package/dist/components/inputs/shared/input.cva.js +38 -4
  225. package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +8 -0
  226. package/dist/components/inputs/shared/tooltipWrapper.cva.js +5 -0
  227. package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +15 -0
  228. package/dist/components/inputs/shared/useStaticInputHandoff.js +112 -0
  229. package/dist/components/navigation/Accordion/Accordion.js +69 -22
  230. package/dist/components/navigation/Accordion/AccordionItem.js +86 -41
  231. package/dist/components/navigation/Stepper/Stepper.js +67 -22
  232. package/dist/components/navigation/Stepper/StepperItem.js +104 -31
  233. package/dist/components/navigation/Stepper/StepperSeparator.js +23 -5
  234. package/dist/components/overlays/ActionModal/ActionModal.js +169 -35
  235. package/dist/components/overlays/BottomSheet/BottomSheet.js +96 -23
  236. package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +48 -8
  237. package/dist/components/overlays/Drawer/Drawer.js +62 -20
  238. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +85 -28
  239. package/dist/components/overlays/Tooltip/Tooltip.js +137 -28
  240. package/dist/components/overlays/Tooltip/TooltipEllipsis.js +37 -12
  241. package/dist/components/segment/Segment.js +218 -57
  242. package/dist/components/segment/SegmentItem.js +67 -10
  243. package/dist/components/shared/pagination/Pagination.js +108 -22
  244. package/dist/components/shared/pagination/PaginationList.js +167 -64
  245. package/dist/components/shared/pagination/minWidth.cva.d.ts +1 -1
  246. package/dist/components/status/Alert/Alert.js +97 -30
  247. package/dist/components/status/Loader/Loader.js +77 -22
  248. package/dist/components/status/Toast/Toast.js +28 -14
  249. package/dist/components/status/Toast/toast.cva.d.ts +1 -1
  250. package/dist/components/status/Toast/useToast.js +62 -57
  251. package/dist/components/table/ColumnConfig.js +158 -54
  252. package/dist/components/table/InfiniteTable.js +67 -16
  253. package/dist/components/table/PaginatedTable.js +84 -18
  254. package/dist/components/table/Table.js +28 -27
  255. package/dist/components/text/Link/Link.js +19 -7
  256. package/dist/components/text/Typography/Typography.js +23 -8
  257. package/dist/config/confirmation.context.js +1 -1
  258. package/dist/config/link.context.js +23 -9
  259. package/dist/config/router.context.js +42 -16
  260. package/dist/config/theme.context.js +98 -45
  261. package/dist/config/uiConfig.context.d.ts +20 -6
  262. package/dist/config/uiConfig.context.js +68 -14
  263. package/dist/config/uiOverrides.context.d.ts +30 -11
  264. package/dist/config/uiOverrides.context.js +54 -14
  265. package/dist/helpers/dynamicInputs.d.ts +12 -9
  266. package/dist/helpers/dynamicInputs.js +13 -8
  267. package/dist/hooks/useAutosave.d.ts +2 -1
  268. package/dist/hooks/useAutosave.js +12 -4
  269. package/dist/hooks/useAutosave.spec.d.ts +1 -0
  270. package/dist/hooks/useBreakpoint.js +16 -3
  271. package/dist/hooks/useDebounceCallback.js +51 -17
  272. package/dist/hooks/useFilters.js +125 -64
  273. package/dist/hooks/useForm.js +42 -8
  274. package/dist/hooks/useFormAutosave.d.ts +3 -1
  275. package/dist/hooks/useFormAutosave.js +122 -30
  276. package/dist/hooks/useFormAutosave.spec.d.ts +1 -0
  277. package/dist/hooks/useIntersectionObserver.d.ts +1 -1
  278. package/dist/hooks/useIntersectionObserver.js +91 -24
  279. package/dist/hooks/useKeyInteractions.d.ts +20 -0
  280. package/dist/hooks/useKeyInteractions.js +54 -0
  281. package/dist/hooks/useKeyInteractions.spec.d.ts +1 -0
  282. package/dist/hooks/useLocalStorage.js +43 -10
  283. package/dist/hooks/useLongPressRepeat.js +55 -20
  284. package/dist/hooks/usePagination.js +49 -19
  285. package/dist/hooks/useQueryAutocomplete.d.ts +14 -0
  286. package/dist/hooks/useQueryAutocomplete.js +72 -0
  287. package/dist/hooks/useScrollableListBox.js +37 -16
  288. package/dist/hooks/useSorting.js +69 -28
  289. package/dist/hooks/useStateAndRef.js +21 -7
  290. package/dist/hooks/useTableColumnConfig.js +124 -31
  291. package/dist/hooks/useTranslationMemo.js +25 -5
  292. package/dist/index.d.ts +18 -3
  293. package/dist/index.js +15 -5
  294. package/dist/tw-ui-plugin.js +6 -0
  295. package/dist/utils/date-time.utils.d.ts +38 -10
  296. package/dist/utils/date-time.utils.js +136 -22
  297. package/dist/utils/query.utils.d.ts +4 -0
  298. package/dist/utils/query.utils.js +8 -0
  299. package/dist/utils/zod.utils.d.ts +2 -0
  300. package/dist/utils/zod.utils.js +5 -0
  301. package/package.json +2 -2
@@ -6,111 +6,244 @@ 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";
9
+ import { c } from "react/compiler-runtime";
9
10
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
11
  import { clsx } from "clsx";
11
12
  import { FileTrigger } from "react-aria-components";
12
13
  import { useTranslation } from "react-i18next";
13
14
  //#region src/components/inputs/File/shared/FileUploadContentFilled.tsx
14
- var FileUploadContentFilled = ({ variant, as, isDisabled, state, browseText, fileTriggerProps, removeWithIcon = false, singleFile, onRemove }) => {
15
+ var FileUploadContentFilled = (t0) => {
16
+ const $ = c(50);
17
+ const { variant, as, isDisabled, state, browseText, fileTriggerProps, removeWithIcon: t1, singleFile, onRemove } = t0;
18
+ const removeWithIcon = t1 === void 0 ? false : t1;
15
19
  const { t } = useTranslation("ui");
16
- return /* @__PURE__ */ jsx("div", {
17
- className: clsx("flex w-full flex-fill flex-col items-start"),
18
- children: /* @__PURE__ */ jsxs("div", {
19
- className: clsx("flex w-full items-center", {
20
- "flex-row gap-file-upload-content-gap-left-to-right-content": variant === "horizontal",
21
- "flex-col": variant === "vertical",
22
- "gap-file-upload-content-gap-content-to-button": variant === "vertical" && as === "button",
23
- "gap-file-upload-content-gap-text-to-text": variant === "vertical" && as === "link"
24
- }),
25
- children: [/* @__PURE__ */ jsxs("div", {
26
- className: clsx("flex min-w-0 max-w-full grow items-center gap-file-upload-content-gap-icon-to-content", {
27
- "flex-col": variant === "vertical",
28
- "flex-row": variant === "horizontal",
29
- "opacity-50": isDisabled
30
- }),
31
- children: [/* @__PURE__ */ jsx(CheckCircleIcon, { className: "h-6 w-6 text-text-default-1" }), /* @__PURE__ */ jsxs("div", {
32
- className: clsx("flex flex-col gap-file-upload-content-gap-text-to-text", {
33
- "max-w-full items-center": variant === "vertical",
34
- "max-w-[calc(100%-32px)]": variant === "horizontal"
35
- }),
36
- children: [/* @__PURE__ */ jsx(Typography, {
37
- variant: "prominent-1",
38
- size: "label-1",
39
- as: "span",
40
- className: "self-stretch truncate text-center text-text-default-1",
41
- children: state.file?.name ?? state.displayName ?? ""
42
- }), /* @__PURE__ */ jsx(Typography, {
43
- variant: "default",
44
- size: singleFile ? "label-2" : "label-3",
45
- as: "span",
46
- className: "text-text-default-2",
47
- children: FileUtils.getFileDisplaySize(state)
48
- })]
49
- })]
50
- }), /* @__PURE__ */ jsx("div", {
51
- className: clsx("flex flex-none items-center justify-end", {
52
- "flex-col": variant === "vertical" && as === "button",
53
- "gap-file-upload-content-gap-text-to-text": as === "link" && variant === "vertical",
54
- "gap-file-upload-content-gap-content-to-button": as === "button" && variant === "vertical",
55
- "gap-file-upload-content-gap-button-to-button": variant === "horizontal"
56
- }),
57
- children: as === "link" ? /* @__PURE__ */ jsxs(Fragment, { children: [fileTriggerProps && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(FileTrigger, {
58
- ...fileTriggerProps,
59
- children: /* @__PURE__ */ jsx(TextButton, {
60
- className: clsx("text-interactive-text-primary-idle", { "[&>span>span]:font-medium!": variant === "vertical" }),
61
- children: browseText ?? ""
62
- })
63
- }), variant === "vertical" && /* @__PURE__ */ jsx(Typography, {
64
- variant: "default",
65
- size: "label-2",
66
- as: "span",
67
- className: "text-text-default-2",
68
- children: t(($) => $.ui.fileUpload.or)
69
- })] }), removeWithIcon ? /* @__PURE__ */ jsx(InlineIconButton, {
70
- label: "Cancel",
71
- color: "secondary",
72
- onPress: () => {
73
- onRemove(state.id ?? "");
74
- },
75
- icon: CloseIcon
76
- }) : /* @__PURE__ */ jsx(TextButton, {
77
- className: clsx(variant === "vertical" && "text-interactive-text-primary-idle lowercase [&>span>span]:font-medium!"),
78
- color: variant === "horizontal" ? "secondary" : "primary",
79
- onPress: () => {
80
- onRemove(state.id ?? "");
81
- },
82
- children: t(($) => $.ui.fileUpload.removeFile)
83
- })] }) : /* @__PURE__ */ jsxs("div", {
84
- className: "flex items-center justify-center gap-file-upload-content-gap-button-to-button self-stretch",
85
- children: [fileTriggerProps && /* @__PURE__ */ jsx(FileTrigger, {
86
- ...fileTriggerProps,
87
- children: /* @__PURE__ */ jsx(Button$1, {
88
- variant: "outlined",
89
- size: "xs",
90
- width: "hug",
91
- isDisabled,
92
- children: browseText ?? ""
93
- })
94
- }), removeWithIcon ? /* @__PURE__ */ jsx(InlineIconButton, {
95
- label: "Cancel",
96
- color: "secondary",
97
- onPress: () => {
98
- onRemove(state.id ?? "");
99
- },
100
- icon: CloseIcon,
101
- isDisabled
102
- }) : /* @__PURE__ */ jsx(TextButton, {
103
- color: "secondary",
104
- onPress: () => {
105
- onRemove(state.id ?? "");
106
- },
107
- isDisabled,
108
- children: t(($) => $.ui.fileUpload.removeFile)
109
- })]
20
+ let t2;
21
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
22
+ t2 = clsx("flex w-full flex-fill flex-col items-start");
23
+ $[0] = t2;
24
+ } else t2 = $[0];
25
+ const t3 = variant === "horizontal";
26
+ const t4 = variant === "vertical";
27
+ const t5 = variant === "vertical" && as === "button";
28
+ const t6 = variant === "vertical" && as === "link";
29
+ let t7;
30
+ if ($[1] !== t3 || $[2] !== t4 || $[3] !== t5 || $[4] !== t6) {
31
+ t7 = clsx("flex w-full items-center", {
32
+ "flex-row gap-file-upload-content-gap-left-to-right-content": t3,
33
+ "flex-col": t4,
34
+ "gap-file-upload-content-gap-content-to-button": t5,
35
+ "gap-file-upload-content-gap-text-to-text": t6
36
+ });
37
+ $[1] = t3;
38
+ $[2] = t4;
39
+ $[3] = t5;
40
+ $[4] = t6;
41
+ $[5] = t7;
42
+ } else t7 = $[5];
43
+ const t8 = variant === "vertical";
44
+ const t9 = variant === "horizontal";
45
+ let t10;
46
+ if ($[6] !== isDisabled || $[7] !== t8 || $[8] !== t9) {
47
+ t10 = clsx("flex min-w-0 max-w-full grow items-center gap-file-upload-content-gap-icon-to-content", {
48
+ "flex-col": t8,
49
+ "flex-row": t9,
50
+ "opacity-50": isDisabled
51
+ });
52
+ $[6] = isDisabled;
53
+ $[7] = t8;
54
+ $[8] = t9;
55
+ $[9] = t10;
56
+ } else t10 = $[9];
57
+ let t11;
58
+ if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
59
+ t11 = /* @__PURE__ */ jsx(CheckCircleIcon, { className: "h-6 w-6 text-text-default-1" });
60
+ $[10] = t11;
61
+ } else t11 = $[10];
62
+ const t12 = variant === "vertical";
63
+ const t13 = variant === "horizontal";
64
+ let t14;
65
+ if ($[11] !== t12 || $[12] !== t13) {
66
+ t14 = clsx("flex flex-col gap-file-upload-content-gap-text-to-text", {
67
+ "max-w-full items-center": t12,
68
+ "max-w-[calc(100%-32px)]": t13
69
+ });
70
+ $[11] = t12;
71
+ $[12] = t13;
72
+ $[13] = t14;
73
+ } else t14 = $[13];
74
+ const t15 = state.file?.name ?? state.displayName ?? "";
75
+ let t16;
76
+ if ($[14] !== t15) {
77
+ t16 = /* @__PURE__ */ jsx(Typography, {
78
+ variant: "prominent-1",
79
+ size: "label-1",
80
+ as: "span",
81
+ className: "self-stretch truncate text-center text-text-default-1",
82
+ children: t15
83
+ });
84
+ $[14] = t15;
85
+ $[15] = t16;
86
+ } else t16 = $[15];
87
+ const t17 = singleFile ? "label-2" : "label-3";
88
+ let t18;
89
+ if ($[16] !== state) {
90
+ t18 = FileUtils.getFileDisplaySize(state);
91
+ $[16] = state;
92
+ $[17] = t18;
93
+ } else t18 = $[17];
94
+ let t19;
95
+ if ($[18] !== t17 || $[19] !== t18) {
96
+ t19 = /* @__PURE__ */ jsx(Typography, {
97
+ variant: "default",
98
+ size: t17,
99
+ as: "span",
100
+ className: "text-text-default-2",
101
+ children: t18
102
+ });
103
+ $[18] = t17;
104
+ $[19] = t18;
105
+ $[20] = t19;
106
+ } else t19 = $[20];
107
+ let t20;
108
+ if ($[21] !== t14 || $[22] !== t16 || $[23] !== t19) {
109
+ t20 = /* @__PURE__ */ jsxs("div", {
110
+ className: t14,
111
+ children: [t16, t19]
112
+ });
113
+ $[21] = t14;
114
+ $[22] = t16;
115
+ $[23] = t19;
116
+ $[24] = t20;
117
+ } else t20 = $[24];
118
+ let t21;
119
+ if ($[25] !== t10 || $[26] !== t20) {
120
+ t21 = /* @__PURE__ */ jsxs("div", {
121
+ className: t10,
122
+ children: [t11, t20]
123
+ });
124
+ $[25] = t10;
125
+ $[26] = t20;
126
+ $[27] = t21;
127
+ } else t21 = $[27];
128
+ const t22 = variant === "vertical" && as === "button";
129
+ const t23 = as === "link" && variant === "vertical";
130
+ const t24 = as === "button" && variant === "vertical";
131
+ const t25 = variant === "horizontal";
132
+ let t26;
133
+ if ($[28] !== t22 || $[29] !== t23 || $[30] !== t24 || $[31] !== t25) {
134
+ t26 = clsx("flex flex-none items-center justify-end", {
135
+ "flex-col": t22,
136
+ "gap-file-upload-content-gap-text-to-text": t23,
137
+ "gap-file-upload-content-gap-content-to-button": t24,
138
+ "gap-file-upload-content-gap-button-to-button": t25
139
+ });
140
+ $[28] = t22;
141
+ $[29] = t23;
142
+ $[30] = t24;
143
+ $[31] = t25;
144
+ $[32] = t26;
145
+ } else t26 = $[32];
146
+ let t27;
147
+ if ($[33] !== as || $[34] !== browseText || $[35] !== fileTriggerProps || $[36] !== isDisabled || $[37] !== onRemove || $[38] !== removeWithIcon || $[39] !== state.id || $[40] !== t || $[41] !== variant) {
148
+ t27 = as === "link" ? /* @__PURE__ */ jsxs(Fragment, { children: [fileTriggerProps && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(FileTrigger, {
149
+ ...fileTriggerProps,
150
+ children: /* @__PURE__ */ jsx(TextButton, {
151
+ className: clsx("text-interactive-text-primary-idle", { "[&>span>span]:font-medium!": variant === "vertical" }),
152
+ children: browseText ?? ""
153
+ })
154
+ }), variant === "vertical" && /* @__PURE__ */ jsx(Typography, {
155
+ variant: "default",
156
+ size: "label-2",
157
+ as: "span",
158
+ className: "text-text-default-2",
159
+ children: t(_temp)
160
+ })] }), removeWithIcon ? /* @__PURE__ */ jsx(InlineIconButton, {
161
+ label: "Cancel",
162
+ color: "secondary",
163
+ onPress: () => {
164
+ onRemove(state.id ?? "");
165
+ },
166
+ icon: CloseIcon
167
+ }) : /* @__PURE__ */ jsx(TextButton, {
168
+ className: clsx(variant === "vertical" && "text-interactive-text-primary-idle lowercase [&>span>span]:font-medium!"),
169
+ color: variant === "horizontal" ? "secondary" : "primary",
170
+ onPress: () => {
171
+ onRemove(state.id ?? "");
172
+ },
173
+ children: t(_temp2)
174
+ })] }) : /* @__PURE__ */ jsxs("div", {
175
+ className: "flex items-center justify-center gap-file-upload-content-gap-button-to-button self-stretch",
176
+ children: [fileTriggerProps && /* @__PURE__ */ jsx(FileTrigger, {
177
+ ...fileTriggerProps,
178
+ children: /* @__PURE__ */ jsx(Button$1, {
179
+ variant: "outlined",
180
+ size: "xs",
181
+ width: "hug",
182
+ isDisabled,
183
+ children: browseText ?? ""
110
184
  })
185
+ }), removeWithIcon ? /* @__PURE__ */ jsx(InlineIconButton, {
186
+ label: "Cancel",
187
+ color: "secondary",
188
+ onPress: () => {
189
+ onRemove(state.id ?? "");
190
+ },
191
+ icon: CloseIcon,
192
+ isDisabled
193
+ }) : /* @__PURE__ */ jsx(TextButton, {
194
+ color: "secondary",
195
+ onPress: () => {
196
+ onRemove(state.id ?? "");
197
+ },
198
+ isDisabled,
199
+ children: t(_temp3)
111
200
  })]
112
- })
113
- });
201
+ });
202
+ $[33] = as;
203
+ $[34] = browseText;
204
+ $[35] = fileTriggerProps;
205
+ $[36] = isDisabled;
206
+ $[37] = onRemove;
207
+ $[38] = removeWithIcon;
208
+ $[39] = state.id;
209
+ $[40] = t;
210
+ $[41] = variant;
211
+ $[42] = t27;
212
+ } else t27 = $[42];
213
+ let t28;
214
+ if ($[43] !== t26 || $[44] !== t27) {
215
+ t28 = /* @__PURE__ */ jsx("div", {
216
+ className: t26,
217
+ children: t27
218
+ });
219
+ $[43] = t26;
220
+ $[44] = t27;
221
+ $[45] = t28;
222
+ } else t28 = $[45];
223
+ let t29;
224
+ if ($[46] !== t21 || $[47] !== t28 || $[48] !== t7) {
225
+ t29 = /* @__PURE__ */ jsx("div", {
226
+ className: t2,
227
+ children: /* @__PURE__ */ jsxs("div", {
228
+ className: t7,
229
+ children: [t21, t28]
230
+ })
231
+ });
232
+ $[46] = t21;
233
+ $[47] = t28;
234
+ $[48] = t7;
235
+ $[49] = t29;
236
+ } else t29 = $[49];
237
+ return t29;
114
238
  };
239
+ function _temp($) {
240
+ return $.ui.fileUpload.or;
241
+ }
242
+ function _temp2($_0) {
243
+ return $_0.ui.fileUpload.removeFile;
244
+ }
245
+ function _temp3($_1) {
246
+ return $_1.ui.fileUpload.removeFile;
247
+ }
115
248
  //#endregion
116
249
  export { FileUploadContentFilled };
@@ -6,63 +6,186 @@ 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
+ import { c } from "react/compiler-runtime";
9
10
  import { jsx, jsxs } from "react/jsx-runtime";
10
11
  import { clsx } from "clsx";
11
12
  import { useTranslation } from "react-i18next";
12
13
  //#region src/components/inputs/File/shared/FileUploadContentLoading.tsx
13
- var FileUploadContentLoading = ({ index, variant, as, state, isDisabled, singleFile, onCancel }) => {
14
+ var FileUploadContentLoading = (t0) => {
15
+ const $ = c(57);
16
+ const { index, variant, as, state, isDisabled, singleFile, onCancel } = t0;
14
17
  const { t } = useTranslation("ui");
15
- return /* @__PURE__ */ jsxs("div", {
16
- className: clsx("flex w-full flex-col items-center", {
17
- "flex-col": variant === "vertical",
18
- "flex-row": variant === "horizontal",
19
- "gap-file-upload-content-gap-content-to-button": as === "button"
20
- }),
21
- children: [/* @__PURE__ */ jsxs("div", {
22
- className: clsx("flex w-full items-center justify-between", {
23
- "flex-col gap-file-upload-content-gap-text-to-progress": variant === "vertical",
24
- "flex-row gap-file-upload-content-gap-left-to-right-content": variant === "horizontal",
25
- "opacity-50": isDisabled
26
- }),
27
- children: [/* @__PURE__ */ jsxs("div", {
28
- className: clsx("flex items-center gap-file-upload-content-gap-icon-to-content", {
29
- "w-full flex-col": variant === "vertical",
30
- "w-1/2": variant === "horizontal"
31
- }),
32
- children: [/* @__PURE__ */ jsx(FileIcon, { className: "h-6 w-6 text-text-default-1" }), /* @__PURE__ */ jsxs("div", {
33
- className: clsx("flex flex-col", {
34
- "max-w-full gap-file-upload-content-gap-icon-to-content text-center": variant === "vertical",
35
- "max-w-[calc(100%-32px)] gap-file-upload-content-gap-text-to-text": variant === "horizontal"
36
- }),
37
- children: [/* @__PURE__ */ jsx(Typography, {
38
- variant: "prominent-1",
39
- size: "label-1",
40
- as: "span",
41
- className: "self-stretch truncate text-center text-text-default-1",
42
- children: state.file?.name ?? state.displayName ?? ""
43
- }), /* @__PURE__ */ jsx(Typography, {
44
- variant: "default",
45
- size: singleFile ? "label-2" : "label-3",
46
- as: "span",
47
- className: "text-text-default-2",
48
- children: FileUtils.getFileDisplaySize(state)
49
- })]
50
- })]
51
- }), /* @__PURE__ */ jsxs("div", {
52
- className: clsx("flex items-center gap-1", {
53
- "w-1/2": variant === "horizontal",
54
- "w-full": variant === "vertical"
55
- }),
56
- children: [/* @__PURE__ */ jsx(ProgressBar, { progress: state.progress }), (as === "link" || variant === "horizontal") && /* @__PURE__ */ jsx(InlineIconButton, {
57
- label: "Cancel",
58
- color: "secondary",
59
- onPress: () => {
60
- onCancel(index);
61
- },
62
- icon: CloseIcon
63
- })]
64
- })]
65
- }), as === "button" && variant === "vertical" && /* @__PURE__ */ jsx(Button, {
18
+ const t1 = variant === "vertical";
19
+ const t2 = variant === "horizontal";
20
+ const t3 = as === "button";
21
+ let t4;
22
+ if ($[0] !== t1 || $[1] !== t2 || $[2] !== t3) {
23
+ t4 = clsx("flex w-full flex-col items-center", {
24
+ "flex-col": t1,
25
+ "flex-row": t2,
26
+ "gap-file-upload-content-gap-content-to-button": t3
27
+ });
28
+ $[0] = t1;
29
+ $[1] = t2;
30
+ $[2] = t3;
31
+ $[3] = t4;
32
+ } else t4 = $[3];
33
+ const t5 = variant === "vertical";
34
+ const t6 = variant === "horizontal";
35
+ let t7;
36
+ if ($[4] !== isDisabled || $[5] !== t5 || $[6] !== t6) {
37
+ t7 = clsx("flex w-full items-center justify-between", {
38
+ "flex-col gap-file-upload-content-gap-text-to-progress": t5,
39
+ "flex-row gap-file-upload-content-gap-left-to-right-content": t6,
40
+ "opacity-50": isDisabled
41
+ });
42
+ $[4] = isDisabled;
43
+ $[5] = t5;
44
+ $[6] = t6;
45
+ $[7] = t7;
46
+ } else t7 = $[7];
47
+ const t8 = variant === "vertical";
48
+ const t9 = variant === "horizontal";
49
+ let t10;
50
+ if ($[8] !== t8 || $[9] !== t9) {
51
+ t10 = clsx("flex items-center gap-file-upload-content-gap-icon-to-content", {
52
+ "w-full flex-col": t8,
53
+ "w-1/2": t9
54
+ });
55
+ $[8] = t8;
56
+ $[9] = t9;
57
+ $[10] = t10;
58
+ } else t10 = $[10];
59
+ let t11;
60
+ if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
61
+ t11 = /* @__PURE__ */ jsx(FileIcon, { className: "h-6 w-6 text-text-default-1" });
62
+ $[11] = t11;
63
+ } else t11 = $[11];
64
+ const t12 = variant === "vertical";
65
+ const t13 = variant === "horizontal";
66
+ let t14;
67
+ if ($[12] !== t12 || $[13] !== t13) {
68
+ t14 = clsx("flex flex-col", {
69
+ "max-w-full gap-file-upload-content-gap-icon-to-content text-center": t12,
70
+ "max-w-[calc(100%-32px)] gap-file-upload-content-gap-text-to-text": t13
71
+ });
72
+ $[12] = t12;
73
+ $[13] = t13;
74
+ $[14] = t14;
75
+ } else t14 = $[14];
76
+ const t15 = state.file?.name ?? state.displayName ?? "";
77
+ let t16;
78
+ if ($[15] !== t15) {
79
+ t16 = /* @__PURE__ */ jsx(Typography, {
80
+ variant: "prominent-1",
81
+ size: "label-1",
82
+ as: "span",
83
+ className: "self-stretch truncate text-center text-text-default-1",
84
+ children: t15
85
+ });
86
+ $[15] = t15;
87
+ $[16] = t16;
88
+ } else t16 = $[16];
89
+ const t17 = singleFile ? "label-2" : "label-3";
90
+ let t18;
91
+ if ($[17] !== state) {
92
+ t18 = FileUtils.getFileDisplaySize(state);
93
+ $[17] = state;
94
+ $[18] = t18;
95
+ } else t18 = $[18];
96
+ let t19;
97
+ if ($[19] !== t17 || $[20] !== t18) {
98
+ t19 = /* @__PURE__ */ jsx(Typography, {
99
+ variant: "default",
100
+ size: t17,
101
+ as: "span",
102
+ className: "text-text-default-2",
103
+ children: t18
104
+ });
105
+ $[19] = t17;
106
+ $[20] = t18;
107
+ $[21] = t19;
108
+ } else t19 = $[21];
109
+ let t20;
110
+ if ($[22] !== t14 || $[23] !== t16 || $[24] !== t19) {
111
+ t20 = /* @__PURE__ */ jsxs("div", {
112
+ className: t14,
113
+ children: [t16, t19]
114
+ });
115
+ $[22] = t14;
116
+ $[23] = t16;
117
+ $[24] = t19;
118
+ $[25] = t20;
119
+ } else t20 = $[25];
120
+ let t21;
121
+ if ($[26] !== t10 || $[27] !== t20) {
122
+ t21 = /* @__PURE__ */ jsxs("div", {
123
+ className: t10,
124
+ children: [t11, t20]
125
+ });
126
+ $[26] = t10;
127
+ $[27] = t20;
128
+ $[28] = t21;
129
+ } else t21 = $[28];
130
+ const t22 = variant === "horizontal";
131
+ const t23 = variant === "vertical";
132
+ let t24;
133
+ if ($[29] !== t22 || $[30] !== t23) {
134
+ t24 = clsx("flex items-center gap-1", {
135
+ "w-1/2": t22,
136
+ "w-full": t23
137
+ });
138
+ $[29] = t22;
139
+ $[30] = t23;
140
+ $[31] = t24;
141
+ } else t24 = $[31];
142
+ let t25;
143
+ if ($[32] !== state.progress) {
144
+ t25 = /* @__PURE__ */ jsx(ProgressBar, { progress: state.progress });
145
+ $[32] = state.progress;
146
+ $[33] = t25;
147
+ } else t25 = $[33];
148
+ let t26;
149
+ if ($[34] !== as || $[35] !== index || $[36] !== onCancel || $[37] !== variant) {
150
+ t26 = (as === "link" || variant === "horizontal") && /* @__PURE__ */ jsx(InlineIconButton, {
151
+ label: "Cancel",
152
+ color: "secondary",
153
+ onPress: () => {
154
+ onCancel(index);
155
+ },
156
+ icon: CloseIcon
157
+ });
158
+ $[34] = as;
159
+ $[35] = index;
160
+ $[36] = onCancel;
161
+ $[37] = variant;
162
+ $[38] = t26;
163
+ } else t26 = $[38];
164
+ let t27;
165
+ if ($[39] !== t24 || $[40] !== t25 || $[41] !== t26) {
166
+ t27 = /* @__PURE__ */ jsxs("div", {
167
+ className: t24,
168
+ children: [t25, t26]
169
+ });
170
+ $[39] = t24;
171
+ $[40] = t25;
172
+ $[41] = t26;
173
+ $[42] = t27;
174
+ } else t27 = $[42];
175
+ let t28;
176
+ if ($[43] !== t21 || $[44] !== t27 || $[45] !== t7) {
177
+ t28 = /* @__PURE__ */ jsxs("div", {
178
+ className: t7,
179
+ children: [t21, t27]
180
+ });
181
+ $[43] = t21;
182
+ $[44] = t27;
183
+ $[45] = t7;
184
+ $[46] = t28;
185
+ } else t28 = $[46];
186
+ let t29;
187
+ if ($[47] !== as || $[48] !== index || $[49] !== onCancel || $[50] !== t || $[51] !== variant) {
188
+ t29 = as === "button" && variant === "vertical" && /* @__PURE__ */ jsx(Button, {
66
189
  variant: "outlined",
67
190
  size: "xs",
68
191
  color: "secondary",
@@ -70,9 +193,30 @@ var FileUploadContentLoading = ({ index, variant, as, state, isDisabled, singleF
70
193
  onPress: () => {
71
194
  onCancel(index);
72
195
  },
73
- children: t(($) => $.ui.fileUpload.cancel)
74
- })]
75
- });
196
+ children: t(_temp)
197
+ });
198
+ $[47] = as;
199
+ $[48] = index;
200
+ $[49] = onCancel;
201
+ $[50] = t;
202
+ $[51] = variant;
203
+ $[52] = t29;
204
+ } else t29 = $[52];
205
+ let t30;
206
+ if ($[53] !== t28 || $[54] !== t29 || $[55] !== t4) {
207
+ t30 = /* @__PURE__ */ jsxs("div", {
208
+ className: t4,
209
+ children: [t28, t29]
210
+ });
211
+ $[53] = t28;
212
+ $[54] = t29;
213
+ $[55] = t4;
214
+ $[56] = t30;
215
+ } else t30 = $[56];
216
+ return t30;
76
217
  };
218
+ function _temp($) {
219
+ return $.ui.fileUpload.cancel;
220
+ }
77
221
  //#endregion
78
222
  export { FileUploadContentLoading };