@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
@@ -2,11 +2,14 @@ import { CheckIcon } from "../../../assets/icons/Check.js";
2
2
  import { UIOverrides } from "../../../config/uiOverrides.context.js";
3
3
  import { Typography } from "../../text/Typography/Typography.js";
4
4
  import { stepperIconDefinition, stepperItemDefinition, stepperNumberDefinition, stepperSubtextDefinition, stepperTitleDefinition } from "./stepper.cva.js";
5
+ import { c } from "react/compiler-runtime";
5
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
7
  import { clsx } from "clsx";
7
8
  import { Button } from "react-aria-components";
8
9
  //#region src/components/navigation/Stepper/StepperItem.tsx
9
- var StepperItem = ({ step, stepNumber, status, contentOrientation, iconsOnly, titlesOnly, onPress }) => {
10
+ var StepperItem = (t0) => {
11
+ const $ = c(31);
12
+ const { step, stepNumber, status, contentOrientation, iconsOnly, titlesOnly, onPress } = t0;
10
13
  const stepperItemCva = UIOverrides.useCva("stepper.itemCva", stepperItemDefinition);
11
14
  const stepperIconCva = UIOverrides.useCva("stepper.iconCva", stepperIconDefinition);
12
15
  const stepperNumberCva = UIOverrides.useCva("stepper.numberCva", stepperNumberDefinition);
@@ -14,40 +17,110 @@ var StepperItem = ({ step, stepNumber, status, contentOrientation, iconsOnly, ti
14
17
  const stepperSubtextCva = UIOverrides.useCva("stepper.subtextCva", stepperSubtextDefinition);
15
18
  const showTitle = !iconsOnly;
16
19
  const showSubtext = !iconsOnly && !titlesOnly && !!step.subtext;
17
- const content = /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("div", {
18
- className: stepperIconCva({ status }),
19
- children: status === "completed" ? /* @__PURE__ */ jsx(CheckIcon, { className: "size-5 text-interactive-contained-primary-on-idle" }) : /* @__PURE__ */ jsx(Typography, {
20
+ let t1;
21
+ if ($[0] !== status || $[1] !== stepperIconCva) {
22
+ t1 = stepperIconCva({ status });
23
+ $[0] = status;
24
+ $[1] = stepperIconCva;
25
+ $[2] = t1;
26
+ } else t1 = $[2];
27
+ let t2;
28
+ if ($[3] !== status || $[4] !== stepNumber || $[5] !== stepperNumberCva) {
29
+ t2 = status === "completed" ? /* @__PURE__ */ jsx(CheckIcon, { className: "size-5 text-interactive-contained-primary-on-idle" }) : /* @__PURE__ */ jsx(Typography, {
20
30
  className: stepperNumberCva({ status }),
21
31
  variant: "prominent-1",
22
32
  size: "label-3",
23
33
  children: stepNumber
24
- })
25
- }), showTitle && /* @__PURE__ */ jsxs("div", {
26
- className: "flex flex-col gap-stepper-gap-text-to-subtext",
27
- children: [/* @__PURE__ */ jsx(Typography, {
28
- className: stepperTitleCva({ status }),
29
- size: "label-2",
30
- variant: "default",
31
- children: step.title
32
- }), showSubtext && /* @__PURE__ */ jsx(Typography, {
33
- className: stepperSubtextCva({ status }),
34
- size: "label-3",
35
- variant: "default",
36
- children: step.subtext
37
- })]
38
- })] });
39
- const className = stepperItemCva({ contentOrientation });
40
- if (onPress) return /* @__PURE__ */ jsx(Button, {
41
- onPress,
42
- className: clsx("group cursor-pointer", className),
43
- "aria-current": status === "active" ? "step" : void 0,
44
- children: content
45
- });
46
- return /* @__PURE__ */ jsx("div", {
47
- className,
48
- "aria-current": status === "active" ? "step" : void 0,
49
- children: content
50
- });
34
+ });
35
+ $[3] = status;
36
+ $[4] = stepNumber;
37
+ $[5] = stepperNumberCva;
38
+ $[6] = t2;
39
+ } else t2 = $[6];
40
+ let t3;
41
+ if ($[7] !== t1 || $[8] !== t2) {
42
+ t3 = /* @__PURE__ */ jsx("div", {
43
+ className: t1,
44
+ children: t2
45
+ });
46
+ $[7] = t1;
47
+ $[8] = t2;
48
+ $[9] = t3;
49
+ } else t3 = $[9];
50
+ let t4;
51
+ if ($[10] !== showSubtext || $[11] !== showTitle || $[12] !== status || $[13] !== step || $[14] !== stepperSubtextCva || $[15] !== stepperTitleCva) {
52
+ t4 = showTitle && /* @__PURE__ */ jsxs("div", {
53
+ className: "flex flex-col gap-stepper-gap-text-to-subtext",
54
+ children: [/* @__PURE__ */ jsx(Typography, {
55
+ className: stepperTitleCva({ status }),
56
+ size: "label-2",
57
+ variant: "default",
58
+ children: step.title
59
+ }), showSubtext && /* @__PURE__ */ jsx(Typography, {
60
+ className: stepperSubtextCva({ status }),
61
+ size: "label-3",
62
+ variant: "default",
63
+ children: step.subtext
64
+ })]
65
+ });
66
+ $[10] = showSubtext;
67
+ $[11] = showTitle;
68
+ $[12] = status;
69
+ $[13] = step;
70
+ $[14] = stepperSubtextCva;
71
+ $[15] = stepperTitleCva;
72
+ $[16] = t4;
73
+ } else t4 = $[16];
74
+ let t5;
75
+ if ($[17] !== t3 || $[18] !== t4) {
76
+ t5 = /* @__PURE__ */ jsxs(Fragment, { children: [t3, t4] });
77
+ $[17] = t3;
78
+ $[18] = t4;
79
+ $[19] = t5;
80
+ } else t5 = $[19];
81
+ const content = t5;
82
+ let className;
83
+ let t6;
84
+ if ($[20] !== content || $[21] !== contentOrientation || $[22] !== onPress || $[23] !== status || $[24] !== stepperItemCva) {
85
+ t6 = Symbol.for("react.early_return_sentinel");
86
+ bb0: {
87
+ className = stepperItemCva({ contentOrientation });
88
+ if (onPress) {
89
+ t6 = /* @__PURE__ */ jsx(Button, {
90
+ onPress,
91
+ className: clsx("group cursor-pointer", className),
92
+ "aria-current": status === "active" ? "step" : void 0,
93
+ children: content
94
+ });
95
+ break bb0;
96
+ }
97
+ }
98
+ $[20] = content;
99
+ $[21] = contentOrientation;
100
+ $[22] = onPress;
101
+ $[23] = status;
102
+ $[24] = stepperItemCva;
103
+ $[25] = className;
104
+ $[26] = t6;
105
+ } else {
106
+ className = $[25];
107
+ t6 = $[26];
108
+ }
109
+ if (t6 !== Symbol.for("react.early_return_sentinel")) return t6;
110
+ const t7 = status === "active" ? "step" : void 0;
111
+ let t8;
112
+ if ($[27] !== className || $[28] !== content || $[29] !== t7) {
113
+ t8 = /* @__PURE__ */ jsx("div", {
114
+ className,
115
+ "aria-current": t7,
116
+ children: content
117
+ });
118
+ $[27] = className;
119
+ $[28] = content;
120
+ $[29] = t7;
121
+ $[30] = t8;
122
+ } else t8 = $[30];
123
+ return t8;
51
124
  };
52
125
  //#endregion
53
126
  export { StepperItem };
@@ -1,12 +1,30 @@
1
1
  import { UIOverrides } from "../../../config/uiOverrides.context.js";
2
2
  import { stepperSeparatorDefinition } from "./stepper.cva.js";
3
+ import { c } from "react/compiler-runtime";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  //#region src/components/navigation/Stepper/StepperSeparator.tsx
5
- var StepperSeparator = ({ orientation, contentOrientation }) => {
6
- return /* @__PURE__ */ jsx("div", { className: UIOverrides.useCva("stepper.separatorCva", stepperSeparatorDefinition)({
7
- orientation,
8
- contentOrientation
9
- }) });
6
+ var StepperSeparator = (t0) => {
7
+ const $ = c(6);
8
+ const { orientation, contentOrientation } = t0;
9
+ const stepperSeparatorCva = UIOverrides.useCva("stepper.separatorCva", stepperSeparatorDefinition);
10
+ let t1;
11
+ if ($[0] !== contentOrientation || $[1] !== orientation || $[2] !== stepperSeparatorCva) {
12
+ t1 = stepperSeparatorCva({
13
+ orientation,
14
+ contentOrientation
15
+ });
16
+ $[0] = contentOrientation;
17
+ $[1] = orientation;
18
+ $[2] = stepperSeparatorCva;
19
+ $[3] = t1;
20
+ } else t1 = $[3];
21
+ let t2;
22
+ if ($[4] !== t1) {
23
+ t2 = /* @__PURE__ */ jsx("div", { className: t1 });
24
+ $[4] = t1;
25
+ $[5] = t2;
26
+ } else t2 = $[5];
27
+ return t2;
10
28
  };
11
29
  //#endregion
12
30
  export { StepperSeparator };
@@ -2,6 +2,7 @@ import { Typography } from "../../text/Typography/Typography.js";
2
2
  import { UIConfig } from "../../../config/uiConfig.context.js";
3
3
  import { Button } from "../../buttons/Button/Button.js";
4
4
  import { Modal } from "../Modal/Modal.js";
5
+ import { c } from "react/compiler-runtime";
5
6
  import { jsx, jsxs } from "react/jsx-runtime";
6
7
  import { clsx } from "clsx";
7
8
  //#region src/components/overlays/ActionModal/ActionModal.tsx
@@ -10,45 +11,178 @@ var textAlignClassMap = {
10
11
  center: "text-center",
11
12
  right: "text-right"
12
13
  };
13
- var ActionModal = ({ heading, description, primaryAction, secondaryAction, buttonSize = "m", textAlign = "left", modalClassName, titleTypography, titleClassName, descriptionTypography, descriptionClassName, ...modalProps }) => {
14
+ var ActionModal = (t0) => {
15
+ const $ = c(52);
16
+ let description;
17
+ let descriptionClassName;
18
+ let descriptionTypography;
19
+ let heading;
20
+ let modalClassName;
21
+ let modalProps;
22
+ let primaryAction;
23
+ let secondaryAction;
24
+ let t1;
25
+ let t2;
26
+ let titleClassName;
27
+ let titleTypography;
28
+ if ($[0] !== t0) {
29
+ ({heading, description, primaryAction, secondaryAction, buttonSize: t1, textAlign: t2, modalClassName, titleTypography, titleClassName, descriptionTypography, descriptionClassName, ...modalProps} = t0);
30
+ $[0] = t0;
31
+ $[1] = description;
32
+ $[2] = descriptionClassName;
33
+ $[3] = descriptionTypography;
34
+ $[4] = heading;
35
+ $[5] = modalClassName;
36
+ $[6] = modalProps;
37
+ $[7] = primaryAction;
38
+ $[8] = secondaryAction;
39
+ $[9] = t1;
40
+ $[10] = t2;
41
+ $[11] = titleClassName;
42
+ $[12] = titleTypography;
43
+ } else {
44
+ description = $[1];
45
+ descriptionClassName = $[2];
46
+ descriptionTypography = $[3];
47
+ heading = $[4];
48
+ modalClassName = $[5];
49
+ modalProps = $[6];
50
+ primaryAction = $[7];
51
+ secondaryAction = $[8];
52
+ t1 = $[9];
53
+ t2 = $[10];
54
+ titleClassName = $[11];
55
+ titleTypography = $[12];
56
+ }
57
+ const buttonSize = t1 === void 0 ? "m" : t1;
58
+ const textAlign = t2 === void 0 ? "left" : t2;
14
59
  const ui = UIConfig.useConfig();
15
60
  const textAlignClass = textAlignClassMap[textAlign];
16
- return /* @__PURE__ */ jsxs(Modal, {
17
- modalClassName: clsx("w-modal", modalClassName),
18
- ...modalProps,
19
- children: [/* @__PURE__ */ jsxs("div", {
61
+ let t3;
62
+ if ($[13] !== modalClassName) {
63
+ t3 = clsx("w-modal", modalClassName);
64
+ $[13] = modalClassName;
65
+ $[14] = t3;
66
+ } else t3 = $[14];
67
+ const t4 = titleTypography ?? ui.actionModal.titleTypography;
68
+ let t5;
69
+ if ($[15] !== textAlignClass || $[16] !== titleClassName) {
70
+ t5 = clsx("text-text-default-1", textAlignClass, titleClassName);
71
+ $[15] = textAlignClass;
72
+ $[16] = titleClassName;
73
+ $[17] = t5;
74
+ } else t5 = $[17];
75
+ let t6;
76
+ if ($[18] !== heading || $[19] !== t4 || $[20] !== t5) {
77
+ t6 = /* @__PURE__ */ jsx(Typography, {
78
+ ...t4,
79
+ as: "h2",
80
+ className: t5,
81
+ children: heading
82
+ });
83
+ $[18] = heading;
84
+ $[19] = t4;
85
+ $[20] = t5;
86
+ $[21] = t6;
87
+ } else t6 = $[21];
88
+ const t7 = descriptionTypography ?? ui.actionModal.descriptionTypography;
89
+ let t8;
90
+ if ($[22] !== descriptionClassName || $[23] !== textAlignClass) {
91
+ t8 = clsx("text-text-default-1", textAlignClass, descriptionClassName);
92
+ $[22] = descriptionClassName;
93
+ $[23] = textAlignClass;
94
+ $[24] = t8;
95
+ } else t8 = $[24];
96
+ let t9;
97
+ if ($[25] !== description || $[26] !== t7 || $[27] !== t8) {
98
+ t9 = /* @__PURE__ */ jsx(Typography, {
99
+ ...t7,
100
+ className: t8,
101
+ children: description
102
+ });
103
+ $[25] = description;
104
+ $[26] = t7;
105
+ $[27] = t8;
106
+ $[28] = t9;
107
+ } else t9 = $[28];
108
+ let t10;
109
+ if ($[29] !== t6 || $[30] !== t9) {
110
+ t10 = /* @__PURE__ */ jsxs("div", {
20
111
  className: "flex flex-col gap-modal-gap-text",
21
- children: [/* @__PURE__ */ jsx(Typography, {
22
- ...titleTypography ?? ui.actionModal.titleTypography,
23
- as: "h2",
24
- className: clsx("text-text-default-1", textAlignClass, titleClassName),
25
- children: heading
26
- }), /* @__PURE__ */ jsx(Typography, {
27
- ...descriptionTypography ?? ui.actionModal.descriptionTypography,
28
- className: clsx("text-text-default-1", textAlignClass, descriptionClassName),
29
- children: description
30
- })]
31
- }), /* @__PURE__ */ jsxs("div", {
112
+ children: [t6, t9]
113
+ });
114
+ $[29] = t6;
115
+ $[30] = t9;
116
+ $[31] = t10;
117
+ } else t10 = $[31];
118
+ let t11;
119
+ if ($[32] !== buttonSize || $[33] !== secondaryAction) {
120
+ t11 = secondaryAction && /* @__PURE__ */ jsx(Button, {
121
+ variant: secondaryAction?.variant ?? "contained",
122
+ size: buttonSize,
123
+ color: secondaryAction?.color ?? "secondary",
124
+ width: "fill",
125
+ onPress: secondaryAction?.onPress,
126
+ className: clsx("min-w-40 flex-1 shrink-0", secondaryAction?.className),
127
+ children: secondaryAction?.label
128
+ });
129
+ $[32] = buttonSize;
130
+ $[33] = secondaryAction;
131
+ $[34] = t11;
132
+ } else t11 = $[34];
133
+ const t12 = primaryAction?.variant ?? "contained";
134
+ const t13 = primaryAction?.color ?? "primary";
135
+ const t14 = primaryAction.onPress;
136
+ const t15 = primaryAction?.className;
137
+ let t16;
138
+ if ($[35] !== t15) {
139
+ t16 = clsx("min-w-40 flex-1 shrink-0", t15);
140
+ $[35] = t15;
141
+ $[36] = t16;
142
+ } else t16 = $[36];
143
+ let t17;
144
+ if ($[37] !== buttonSize || $[38] !== primaryAction.label || $[39] !== primaryAction.onPress || $[40] !== t12 || $[41] !== t13 || $[42] !== t16) {
145
+ t17 = /* @__PURE__ */ jsx(Button, {
146
+ variant: t12,
147
+ size: buttonSize,
148
+ color: t13,
149
+ width: "fill",
150
+ onPress: t14,
151
+ className: t16,
152
+ children: primaryAction.label
153
+ });
154
+ $[37] = buttonSize;
155
+ $[38] = primaryAction.label;
156
+ $[39] = primaryAction.onPress;
157
+ $[40] = t12;
158
+ $[41] = t13;
159
+ $[42] = t16;
160
+ $[43] = t17;
161
+ } else t17 = $[43];
162
+ let t18;
163
+ if ($[44] !== t11 || $[45] !== t17) {
164
+ t18 = /* @__PURE__ */ jsxs("div", {
32
165
  className: "flex w-full flex-wrap gap-modal-gap-buttons pt-1",
33
- children: [secondaryAction && /* @__PURE__ */ jsx(Button, {
34
- variant: secondaryAction?.variant ?? "contained",
35
- size: buttonSize,
36
- color: secondaryAction?.color ?? "secondary",
37
- width: "fill",
38
- onPress: secondaryAction?.onPress,
39
- className: clsx("min-w-40 flex-1 shrink-0", secondaryAction?.className),
40
- children: secondaryAction?.label
41
- }), /* @__PURE__ */ jsx(Button, {
42
- variant: primaryAction?.variant ?? "contained",
43
- size: buttonSize,
44
- color: primaryAction?.color ?? "primary",
45
- width: "fill",
46
- onPress: primaryAction.onPress,
47
- className: clsx("min-w-40 flex-1 shrink-0", primaryAction?.className),
48
- children: primaryAction.label
49
- })]
50
- })]
51
- });
166
+ children: [t11, t17]
167
+ });
168
+ $[44] = t11;
169
+ $[45] = t17;
170
+ $[46] = t18;
171
+ } else t18 = $[46];
172
+ let t19;
173
+ if ($[47] !== modalProps || $[48] !== t10 || $[49] !== t18 || $[50] !== t3) {
174
+ t19 = /* @__PURE__ */ jsxs(Modal, {
175
+ modalClassName: t3,
176
+ ...modalProps,
177
+ children: [t10, t18]
178
+ });
179
+ $[47] = modalProps;
180
+ $[48] = t10;
181
+ $[49] = t18;
182
+ $[50] = t3;
183
+ $[51] = t19;
184
+ } else t19 = $[51];
185
+ return t19;
52
186
  };
53
187
  //#endregion
54
188
  export { ActionModal };
@@ -2,6 +2,7 @@ import { UIConfig } from "../../../config/uiConfig.context.js";
2
2
  import { BottomSheetHeader } from "./BottomSheetHeader.js";
3
3
  import { useStateAndRef } from "../../../hooks/useStateAndRef.js";
4
4
  import { DomUtils } from "../../../utils/dom.utils.js";
5
+ import { c } from "react/compiler-runtime";
5
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
7
  import { clsx } from "clsx";
7
8
  import { useEffect, useMemo, useRef, useState } from "react";
@@ -127,8 +128,8 @@ var BottomSheetBase = ({ isOpen, onOpenChange, onStateChange, isDismissable = tr
127
128
  onAnimationComplete: (data) => {
128
129
  onStateChange?.(data.y === 0 ? "opened" : "closed");
129
130
  },
130
- onAnimationStart: (data) => {
131
- onStateChange?.(data.y === 0 ? "opening" : "closing");
131
+ onAnimationStart: (data_0) => {
132
+ onStateChange?.(data_0.y === 0 ? "opening" : "closing");
132
133
  },
133
134
  transition: staticTransition,
134
135
  style: {
@@ -220,36 +221,108 @@ var BottomSheetBase = ({ isOpen, onOpenChange, onStateChange, isDismissable = tr
220
221
  })]
221
222
  }) });
222
223
  };
223
- var BottomSheet = ({ isOpen, portalContainerRef, onOpenChange, trigger, children, ...rest }) => {
224
+ var BottomSheet = (t0) => {
225
+ const $ = c(30);
226
+ let children;
227
+ let isOpen;
228
+ let onOpenChange;
229
+ let portalContainerRef;
230
+ let rest;
231
+ let trigger;
232
+ if ($[0] !== t0) {
233
+ ({isOpen, portalContainerRef, onOpenChange, trigger, children, ...rest} = t0);
234
+ $[0] = t0;
235
+ $[1] = children;
236
+ $[2] = isOpen;
237
+ $[3] = onOpenChange;
238
+ $[4] = portalContainerRef;
239
+ $[5] = rest;
240
+ $[6] = trigger;
241
+ } else {
242
+ children = $[1];
243
+ isOpen = $[2];
244
+ onOpenChange = $[3];
245
+ portalContainerRef = $[4];
246
+ rest = $[5];
247
+ trigger = $[6];
248
+ }
224
249
  const [isSheetOpen, setIsSheetOpen] = useState(!!isOpen);
225
250
  const hasTrigger = !!trigger;
226
- useEffect(() => {
227
- if (hasTrigger) setIsSheetOpen(!!isOpen);
228
- }, [isOpen, hasTrigger]);
229
- if (trigger) {
230
- const handleOpenChange = (open) => {
231
- setIsSheetOpen(open);
232
- onOpenChange?.(open);
251
+ let t1;
252
+ let t2;
253
+ if ($[7] !== hasTrigger || $[8] !== isOpen) {
254
+ t1 = () => {
255
+ if (hasTrigger) setIsSheetOpen(!!isOpen);
233
256
  };
234
- return /* @__PURE__ */ jsxs(DialogTrigger, {
235
- isOpen: isSheetOpen,
236
- onOpenChange: handleOpenChange,
237
- children: [trigger, /* @__PURE__ */ jsx(BottomSheetBase, {
257
+ t2 = [isOpen, hasTrigger];
258
+ $[7] = hasTrigger;
259
+ $[8] = isOpen;
260
+ $[9] = t1;
261
+ $[10] = t2;
262
+ } else {
263
+ t1 = $[9];
264
+ t2 = $[10];
265
+ }
266
+ useEffect(t1, t2);
267
+ if (trigger) {
268
+ let t3;
269
+ if ($[11] !== onOpenChange) {
270
+ t3 = (open) => {
271
+ setIsSheetOpen(open);
272
+ onOpenChange?.(open);
273
+ };
274
+ $[11] = onOpenChange;
275
+ $[12] = t3;
276
+ } else t3 = $[12];
277
+ const handleOpenChange = t3;
278
+ let t4;
279
+ if ($[13] !== children || $[14] !== handleOpenChange || $[15] !== isSheetOpen || $[16] !== portalContainerRef || $[17] !== rest) {
280
+ t4 = /* @__PURE__ */ jsx(BottomSheetBase, {
238
281
  isOpen: isSheetOpen,
239
282
  onOpenChange: handleOpenChange,
240
283
  portalContainerRef,
241
284
  ...rest,
242
285
  children
243
- })]
244
- });
286
+ });
287
+ $[13] = children;
288
+ $[14] = handleOpenChange;
289
+ $[15] = isSheetOpen;
290
+ $[16] = portalContainerRef;
291
+ $[17] = rest;
292
+ $[18] = t4;
293
+ } else t4 = $[18];
294
+ let t5;
295
+ if ($[19] !== handleOpenChange || $[20] !== isSheetOpen || $[21] !== t4 || $[22] !== trigger) {
296
+ t5 = /* @__PURE__ */ jsxs(DialogTrigger, {
297
+ isOpen: isSheetOpen,
298
+ onOpenChange: handleOpenChange,
299
+ children: [trigger, t4]
300
+ });
301
+ $[19] = handleOpenChange;
302
+ $[20] = isSheetOpen;
303
+ $[21] = t4;
304
+ $[22] = trigger;
305
+ $[23] = t5;
306
+ } else t5 = $[23];
307
+ return t5;
245
308
  }
246
- return /* @__PURE__ */ jsx(BottomSheetBase, {
247
- isOpen,
248
- onOpenChange,
249
- portalContainerRef,
250
- ...rest,
251
- children
252
- });
309
+ let t3;
310
+ if ($[24] !== children || $[25] !== isOpen || $[26] !== onOpenChange || $[27] !== portalContainerRef || $[28] !== rest) {
311
+ t3 = /* @__PURE__ */ jsx(BottomSheetBase, {
312
+ isOpen,
313
+ onOpenChange,
314
+ portalContainerRef,
315
+ ...rest,
316
+ children
317
+ });
318
+ $[24] = children;
319
+ $[25] = isOpen;
320
+ $[26] = onOpenChange;
321
+ $[27] = portalContainerRef;
322
+ $[28] = rest;
323
+ $[29] = t3;
324
+ } else t3 = $[29];
325
+ return t3;
253
326
  };
254
327
  //#endregion
255
328
  export { BottomSheet };
@@ -1,16 +1,26 @@
1
1
  import { CloseIcon } from "../../../assets/icons/Close.js";
2
2
  import { Typography } from "../../text/Typography/Typography.js";
3
3
  import "../../../config/i18n.js";
4
+ import { c } from "react/compiler-runtime";
4
5
  import { jsx, jsxs } from "react/jsx-runtime";
5
6
  import { clsx } from "clsx";
6
7
  import { Button } from "react-aria-components";
7
8
  import { useTranslation } from "react-i18next";
8
9
  //#region src/components/overlays/BottomSheet/BottomSheetHeader.tsx
9
- var BottomSheetHeader = ({ label, dragControls, isDismissable, hideThumb, hideHeader, headerTypography, onClose }) => {
10
+ var BottomSheetHeader = (t0) => {
11
+ const $ = c(17);
12
+ const { label, dragControls, isDismissable, hideThumb, hideHeader, headerTypography, onClose } = t0;
10
13
  const { t } = useTranslation("ui");
11
- return /* @__PURE__ */ jsxs("div", {
12
- className: clsx("pb-list-height-title-bottom", !isDismissable && "pt-list-height-title-top"),
13
- children: [isDismissable && !hideThumb && /* @__PURE__ */ jsx("div", {
14
+ const t1 = !isDismissable && "pt-list-height-title-top";
15
+ let t2;
16
+ if ($[0] !== t1) {
17
+ t2 = clsx("pb-list-height-title-bottom", t1);
18
+ $[0] = t1;
19
+ $[1] = t2;
20
+ } else t2 = $[1];
21
+ let t3;
22
+ if ($[2] !== dragControls || $[3] !== hideThumb || $[4] !== isDismissable) {
23
+ t3 = isDismissable && !hideThumb && /* @__PURE__ */ jsx("div", {
14
24
  className: "flex shrink-0 cursor-grab touch-none justify-center px-list-side-title pt-list-height-title-top pb-2-5",
15
25
  onPointerDown: (e) => {
16
26
  e.preventDefault();
@@ -18,7 +28,15 @@ var BottomSheetHeader = ({ label, dragControls, isDismissable, hideThumb, hideHe
18
28
  },
19
29
  "aria-hidden": true,
20
30
  children: /* @__PURE__ */ jsx("div", { className: "h-1 w-16 shrink-0 rounded-full bg-elevation-fill-default-3" })
21
- }), !hideHeader && /* @__PURE__ */ jsxs("div", {
31
+ });
32
+ $[2] = dragControls;
33
+ $[3] = hideThumb;
34
+ $[4] = isDismissable;
35
+ $[5] = t3;
36
+ } else t3 = $[5];
37
+ let t4;
38
+ if ($[6] !== headerTypography || $[7] !== hideHeader || $[8] !== isDismissable || $[9] !== label || $[10] !== onClose || $[11] !== t) {
39
+ t4 = !hideHeader && /* @__PURE__ */ jsxs("div", {
22
40
  className: "flex justify-between px-list-side-title",
23
41
  children: [/* @__PURE__ */ jsx(Typography, {
24
42
  size: "label-2",
@@ -27,12 +45,34 @@ var BottomSheetHeader = ({ label, dragControls, isDismissable, hideThumb, hideHe
27
45
  children: label
28
46
  }), onClose && isDismissable && /* @__PURE__ */ jsx(Button, {
29
47
  onPress: onClose,
30
- "aria-label": t(($) => $.ui.closeAlt),
48
+ "aria-label": t(_temp),
31
49
  className: "-m-2 shrink-0 p-2 text-interactive-text-secondary-idle focus-visible:outline-interactive-text-secondary-focus",
32
50
  children: /* @__PURE__ */ jsx(CloseIcon, { className: "size-6" })
33
51
  })]
34
- })]
35
- });
52
+ });
53
+ $[6] = headerTypography;
54
+ $[7] = hideHeader;
55
+ $[8] = isDismissable;
56
+ $[9] = label;
57
+ $[10] = onClose;
58
+ $[11] = t;
59
+ $[12] = t4;
60
+ } else t4 = $[12];
61
+ let t5;
62
+ if ($[13] !== t2 || $[14] !== t3 || $[15] !== t4) {
63
+ t5 = /* @__PURE__ */ jsxs("div", {
64
+ className: t2,
65
+ children: [t3, t4]
66
+ });
67
+ $[13] = t2;
68
+ $[14] = t3;
69
+ $[15] = t4;
70
+ $[16] = t5;
71
+ } else t5 = $[16];
72
+ return t5;
36
73
  };
74
+ function _temp($) {
75
+ return $.ui.closeAlt;
76
+ }
37
77
  //#endregion
38
78
  export { BottomSheetHeader };