@povio/ui 3.0.0-rc.3 → 3.1.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 (309) hide show
  1. package/README.md +39 -0
  2. package/dist/assets/icons/AlignCenter.js +11 -26
  3. package/dist/assets/icons/AlignLeft.js +11 -26
  4. package/dist/assets/icons/AlignLeftRight.js +11 -26
  5. package/dist/assets/icons/AlignRight.js +11 -26
  6. package/dist/assets/icons/ArrowDropDown.js +11 -26
  7. package/dist/assets/icons/ArrowDropUp.js +11 -26
  8. package/dist/assets/icons/ArrowLeft.js +11 -26
  9. package/dist/assets/icons/ArrowRight.js +11 -26
  10. package/dist/assets/icons/Bold.js +11 -26
  11. package/dist/assets/icons/BulletedList.js +11 -26
  12. package/dist/assets/icons/Calendar.js +13 -28
  13. package/dist/assets/icons/Check.js +13 -28
  14. package/dist/assets/icons/CheckCircle.js +11 -26
  15. package/dist/assets/icons/CheckboxCheckmark.js +14 -29
  16. package/dist/assets/icons/CheckboxIndeterminate.js +14 -29
  17. package/dist/assets/icons/ChevronDown.js +13 -28
  18. package/dist/assets/icons/ChevronLeft.js +13 -28
  19. package/dist/assets/icons/ChevronRight.js +13 -28
  20. package/dist/assets/icons/ChevronUp.js +13 -28
  21. package/dist/assets/icons/ChevronsLeft.js +13 -28
  22. package/dist/assets/icons/ChevronsRight.js +13 -28
  23. package/dist/assets/icons/Clock.js +11 -26
  24. package/dist/assets/icons/Close.js +11 -26
  25. package/dist/assets/icons/DateTime.js +14 -35
  26. package/dist/assets/icons/DragIndicator.js +11 -26
  27. package/dist/assets/icons/File.js +13 -28
  28. package/dist/assets/icons/Highlight.js +11 -26
  29. package/dist/assets/icons/HighlightOn.js +15 -49
  30. package/dist/assets/icons/Home.js +11 -26
  31. package/dist/assets/icons/Info.js +16 -37
  32. package/dist/assets/icons/Italic.js +11 -26
  33. package/dist/assets/icons/Link.js +11 -26
  34. package/dist/assets/icons/Menu.js +11 -26
  35. package/dist/assets/icons/NumberedList.js +11 -26
  36. package/dist/assets/icons/PointerHorizontal.js +11 -26
  37. package/dist/assets/icons/PointerVertical.js +11 -26
  38. package/dist/assets/icons/Search.js +11 -26
  39. package/dist/assets/icons/Send.js +13 -28
  40. package/dist/assets/icons/Strikethrough.js +11 -26
  41. package/dist/assets/icons/TextColor.js +14 -48
  42. package/dist/assets/icons/Today.js +11 -26
  43. package/dist/assets/icons/Underlined.js +13 -28
  44. package/dist/assets/icons/Upload.js +14 -35
  45. package/dist/assets/icons/Visibility.js +11 -26
  46. package/dist/assets/icons/VisibilityOff.js +11 -26
  47. package/dist/assets/icons/WarningFilled.js +13 -28
  48. package/dist/components/Breadcrumbs/Breadcrumbs.js +56 -207
  49. package/dist/components/Menu/Menu.d.ts +4 -0
  50. package/dist/components/Menu/Menu.js +2 -18
  51. package/dist/components/Menu/MenuDesktop.js +7 -41
  52. package/dist/components/Menu/MenuItem.js +9 -32
  53. package/dist/components/Menu/MenuMobile.d.ts +1 -1
  54. package/dist/components/Menu/MenuMobile.js +39 -97
  55. package/dist/components/Menu/MenuPopover.js +29 -105
  56. package/dist/components/buttons/IconButton/IconButton.js +8 -40
  57. package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +1 -2
  58. package/dist/components/buttons/InlineIconButton/InlineIconButton.js +9 -34
  59. package/dist/components/buttons/PillButton/PillButton.js +17 -55
  60. package/dist/components/buttons/SplitButton/SplitButton.js +18 -103
  61. package/dist/components/buttons/TextButton/TextButton.js +8 -30
  62. package/dist/components/buttons/ToggleButton/ToggleButton.js +8 -28
  63. package/dist/components/buttons/shared/ButtonContent.js +22 -80
  64. package/dist/components/inputs/Checkbox/Checkbox.d.ts +0 -1
  65. package/dist/components/inputs/Checkbox/Checkbox.js +35 -201
  66. package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +10 -24
  67. package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +0 -3
  68. package/dist/components/inputs/Checkbox/checkbox.cva.js +1 -2
  69. package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +5 -12
  70. package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +75 -373
  71. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +5 -12
  72. package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +186 -492
  73. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +5 -14
  74. package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +47 -273
  75. package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +3 -7
  76. package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +121 -611
  77. package/dist/components/inputs/DateTime/shared/Calendar.d.ts +3 -5
  78. package/dist/components/inputs/DateTime/shared/Calendar.js +120 -338
  79. package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +2 -4
  80. package/dist/components/inputs/DateTime/shared/CalendarCell.js +103 -310
  81. package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +2 -4
  82. package/dist/components/inputs/DateTime/shared/CalendarGrid.js +33 -150
  83. package/dist/components/inputs/DateTime/shared/CalendarHeader.d.ts +2 -1
  84. package/dist/components/inputs/DateTime/shared/CalendarHeader.js +98 -249
  85. package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +137 -318
  86. package/dist/components/inputs/DateTime/shared/DateField.js +112 -286
  87. package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +3 -14
  88. package/dist/components/inputs/DateTime/shared/DatePickerInput.js +129 -356
  89. package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +0 -15
  90. package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +11 -96
  91. package/dist/components/inputs/DateTime/shared/DateTimeDialog.d.ts +4 -1
  92. package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +28 -81
  93. package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +10 -59
  94. package/dist/components/inputs/DateTime/shared/MonthPicker.js +58 -103
  95. package/dist/components/inputs/DateTime/shared/RangeCalendar.js +82 -193
  96. package/dist/components/inputs/DateTime/shared/TimeField.js +8 -27
  97. package/dist/components/inputs/DateTime/shared/TimePickerForm.js +110 -279
  98. package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +1 -4
  99. package/dist/components/inputs/DateTime/shared/TimePickerInput.js +65 -210
  100. package/dist/components/inputs/DateTime/shared/YearPicker.js +68 -119
  101. package/dist/components/inputs/File/FileUpload.js +45 -88
  102. package/dist/components/inputs/File/FileUploadContainer.js +7 -15
  103. package/dist/components/inputs/File/InputUpload.js +79 -317
  104. package/dist/components/inputs/File/shared/FileCard.js +41 -104
  105. package/dist/components/inputs/File/shared/FileCardList.js +12 -47
  106. package/dist/components/inputs/File/shared/FileUploadContent.js +44 -175
  107. package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +46 -149
  108. package/dist/components/inputs/File/shared/FileUploadContentError.js +93 -234
  109. package/dist/components/inputs/File/shared/FileUploadContentFilled.js +97 -230
  110. package/dist/components/inputs/File/shared/FileUploadContentLoading.js +55 -199
  111. package/dist/components/inputs/File/shared/InputUploadContent.js +34 -148
  112. package/dist/components/inputs/File/shared/InputUploadFilled.js +8 -49
  113. package/dist/components/inputs/File/shared/ProgressBar.d.ts +2 -2
  114. package/dist/components/inputs/File/shared/ProgressBar.js +20 -53
  115. package/dist/components/inputs/File/shared/fileUpload.cva.d.ts +1 -1
  116. package/dist/components/inputs/File/shared/fileUpload.cva.js +1 -1
  117. package/dist/components/inputs/File/shared/progressBar.cva.d.ts +38 -0
  118. package/dist/components/inputs/File/shared/progressBar.cva.js +28 -0
  119. package/dist/components/inputs/FormField/FormField.d.ts +3 -3
  120. package/dist/components/inputs/FormField/FormField.js +37 -119
  121. package/dist/components/inputs/FormField/FormFieldError.js +5 -25
  122. package/dist/components/inputs/FormField/FormFieldHeader.d.ts +2 -2
  123. package/dist/components/inputs/FormField/FormFieldHeader.js +22 -81
  124. package/dist/components/inputs/FormField/FormFieldHeaderClose.js +7 -31
  125. package/dist/components/inputs/FormField/FormFieldHelper.js +6 -26
  126. package/dist/components/inputs/FormField/FormFieldLabel.d.ts +2 -2
  127. package/dist/components/inputs/FormField/FormFieldLabel.js +9 -40
  128. package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +2 -5
  129. package/dist/components/inputs/Input/NumberInput/NumberInput.js +97 -447
  130. package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +9 -48
  131. package/dist/components/inputs/Input/TextArea/TextArea.js +90 -305
  132. package/dist/components/inputs/Input/TextInput/TextInput.d.ts +1 -3
  133. package/dist/components/inputs/Input/TextInput/TextInput.js +90 -419
  134. package/dist/components/inputs/Input/shared/InputContent.js +59 -192
  135. package/dist/components/inputs/Inputs/Form.js +11 -40
  136. package/dist/components/inputs/Inputs/InputItem.d.ts +21 -15
  137. package/dist/components/inputs/Inputs/InputItem.js +14 -69
  138. package/dist/components/inputs/Inputs/Inputs.js +11 -37
  139. package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +1 -3
  140. package/dist/components/inputs/RadioGroup/RadioGroup.js +61 -353
  141. package/dist/components/inputs/RadioGroup/radio.cva.d.ts +0 -45
  142. package/dist/components/inputs/RadioGroup/radio.cva.js +1 -48
  143. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +2 -6
  144. package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +22 -217
  145. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +18 -3
  146. package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +8 -107
  147. package/dist/components/inputs/Selection/Select/Select.d.ts +3 -7
  148. package/dist/components/inputs/Selection/Select/Select.js +18 -227
  149. package/dist/components/inputs/Selection/shared/SelectBase.d.ts +3 -8
  150. package/dist/components/inputs/Selection/shared/SelectBase.js +18 -69
  151. package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +1 -1
  152. package/dist/components/inputs/Selection/shared/SelectDesktop.js +138 -393
  153. package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
  154. package/dist/components/inputs/Selection/shared/SelectInput.js +116 -397
  155. package/dist/components/inputs/Selection/shared/SelectInputTags.js +25 -99
  156. package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +2 -2
  157. package/dist/components/inputs/Selection/shared/SelectListBox.js +52 -164
  158. package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +35 -85
  159. package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +16 -69
  160. package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +21 -70
  161. package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +9 -58
  162. package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +1 -1
  163. package/dist/components/inputs/Selection/shared/SelectMobile.js +6 -11
  164. package/dist/components/inputs/Selection/shared/select.context.d.ts +2 -3
  165. package/dist/components/inputs/Selection/shared/select.context.js +36 -67
  166. package/dist/components/inputs/Selection/shared/select.types.d.ts +2 -3
  167. package/dist/components/inputs/Selection/shared/useSelectItems.js +49 -109
  168. package/dist/components/inputs/Slider/Slider.d.ts +1 -2
  169. package/dist/components/inputs/Slider/Slider.js +76 -265
  170. package/dist/components/inputs/TextEditor/TextEditor.d.ts +0 -1
  171. package/dist/components/inputs/TextEditor/TextEditor.js +98 -447
  172. package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +11 -37
  173. package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +30 -102
  174. package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +45 -194
  175. package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +28 -88
  176. package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +14 -48
  177. package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +19 -66
  178. package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +15 -49
  179. package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +32 -92
  180. package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +54 -126
  181. package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +38 -141
  182. package/dist/components/inputs/Toggle/Toggle.d.ts +0 -1
  183. package/dist/components/inputs/Toggle/Toggle.js +37 -214
  184. package/dist/components/inputs/Toggle/toggle.cva.d.ts +0 -3
  185. package/dist/components/inputs/Toggle/toggle.cva.js +1 -2
  186. package/dist/components/inputs/shared/CheckContent.d.ts +1 -2
  187. package/dist/components/inputs/shared/CheckContent.js +11 -21
  188. package/dist/components/inputs/shared/InputClear.d.ts +1 -2
  189. package/dist/components/inputs/shared/InputClear.js +12 -88
  190. package/dist/components/inputs/shared/TooltipWrapper.js +11 -50
  191. package/dist/components/inputs/shared/input.cva.d.ts +0 -28
  192. package/dist/components/inputs/shared/input.cva.js +4 -38
  193. package/dist/components/navigation/Accordion/Accordion.js +22 -69
  194. package/dist/components/navigation/Accordion/AccordionItem.js +41 -86
  195. package/dist/components/navigation/Stepper/Stepper.js +22 -67
  196. package/dist/components/navigation/Stepper/StepperItem.js +31 -104
  197. package/dist/components/navigation/Stepper/StepperSeparator.js +5 -23
  198. package/dist/components/overlays/ActionModal/ActionModal.js +35 -169
  199. package/dist/components/overlays/BottomSheet/BottomSheet.js +25 -98
  200. package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +8 -48
  201. package/dist/components/overlays/Drawer/Drawer.js +22 -64
  202. package/dist/components/overlays/Modal/modal.cva.js +1 -1
  203. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.d.ts +5 -1
  204. package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +28 -83
  205. package/dist/components/overlays/Tooltip/Tooltip.js +28 -137
  206. package/dist/components/overlays/Tooltip/TooltipEllipsis.js +12 -37
  207. package/dist/components/segment/Segment.js +57 -218
  208. package/dist/components/segment/SegmentItem.js +10 -67
  209. package/dist/components/shared/pagination/Pagination.js +22 -108
  210. package/dist/components/shared/pagination/PaginationList.js +64 -167
  211. package/dist/components/status/Alert/Alert.js +30 -97
  212. package/dist/components/status/Loader/Loader.js +22 -77
  213. package/dist/components/status/Toast/Toast.js +17 -22
  214. package/dist/components/status/Toast/toast.cva.d.ts +14 -3
  215. package/dist/components/status/Toast/toast.cva.js +12 -10
  216. package/dist/components/status/Toast/useToast.js +57 -62
  217. package/dist/components/table/ColumnConfig.js +54 -158
  218. package/dist/components/table/InfiniteTable.js +16 -67
  219. package/dist/components/table/PaginatedTable.js +18 -84
  220. package/dist/components/table/Table.js +30 -30
  221. package/dist/components/table/table.cva.d.ts +7 -0
  222. package/dist/components/table/table.cva.js +2 -1
  223. package/dist/components/text/Link/Link.js +7 -19
  224. package/dist/components/text/Pill/Pill.d.ts +15 -0
  225. package/dist/components/text/Pill/Pill.js +44 -0
  226. package/dist/components/text/Typography/Typography.js +8 -23
  227. package/dist/config/confirmation.context.js +1 -1
  228. package/dist/config/link.context.js +9 -23
  229. package/dist/config/router.context.js +16 -42
  230. package/dist/config/theme.context.js +45 -98
  231. package/dist/config/uiConfig.context.d.ts +10 -21
  232. package/dist/config/uiConfig.context.js +18 -69
  233. package/dist/config/uiOverrides.context.d.ts +10 -20
  234. package/dist/config/uiOverrides.context.js +14 -54
  235. package/dist/helpers/dynamicInputs.d.ts +5 -5
  236. package/dist/helpers/dynamicInputs.js +0 -3
  237. package/dist/hooks/useAutosave.d.ts +1 -2
  238. package/dist/hooks/useAutosave.js +4 -12
  239. package/dist/hooks/useBreakpoint.js +3 -16
  240. package/dist/hooks/useDebounceCallback.js +17 -51
  241. package/dist/hooks/useFilters.js +64 -125
  242. package/dist/hooks/useForm.js +8 -42
  243. package/dist/hooks/useFormAutosave.d.ts +1 -3
  244. package/dist/hooks/useFormAutosave.js +30 -122
  245. package/dist/hooks/useIntersectionObserver.d.ts +1 -1
  246. package/dist/hooks/useIntersectionObserver.js +24 -91
  247. package/dist/hooks/useLocalStorage.js +10 -43
  248. package/dist/hooks/useLongPressRepeat.js +20 -55
  249. package/dist/hooks/usePagination.js +19 -49
  250. package/dist/hooks/useScrollableListBox.js +16 -37
  251. package/dist/hooks/useSorting.js +28 -69
  252. package/dist/hooks/useStateAndRef.js +7 -21
  253. package/dist/hooks/useTableColumnConfig.js +31 -124
  254. package/dist/hooks/useTranslationMemo.js +5 -25
  255. package/dist/index.d.ts +7 -16
  256. package/dist/index.js +6 -13
  257. package/dist/tw-ui-plugin.js +0 -6
  258. package/dist/utils/date-time.utils.d.ts +10 -38
  259. package/dist/utils/date-time.utils.js +22 -136
  260. package/package.json +1 -1
  261. package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +0 -5
  262. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +0 -16
  263. package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +0 -16
  264. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +0 -15
  265. package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +0 -32
  266. package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +0 -2
  267. package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +0 -1
  268. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +0 -40
  269. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +0 -85
  270. package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +0 -1
  271. package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +0 -13
  272. package/dist/components/inputs/FormField/formFieldHeader.cva.js +0 -14
  273. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +0 -45
  274. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +0 -571
  275. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +0 -35
  276. package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +0 -575
  277. package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +0 -8
  278. package/dist/components/inputs/Input/TextArea/TextArea.cva.js +0 -5
  279. package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +0 -1
  280. package/dist/components/inputs/Input/shared/numberStatic.utils.js +0 -7
  281. package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +0 -37
  282. package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +0 -14
  283. package/dist/components/inputs/Selection/Select/QuerySelect.js +0 -178
  284. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +0 -9
  285. package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +0 -47
  286. package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +0 -14
  287. package/dist/components/inputs/Selection/shared/querySelect.utils.js +0 -43
  288. package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +0 -6
  289. package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +0 -5
  290. package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +0 -12
  291. package/dist/components/inputs/Selection/shared/selectInput.cva.js +0 -8
  292. package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +0 -23
  293. package/dist/components/inputs/Selection/shared/staticSelect.utils.js +0 -54
  294. package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +0 -1
  295. package/dist/components/inputs/Skeleton/InputFrame.d.ts +0 -82
  296. package/dist/components/inputs/Skeleton/InputFrame.js +0 -548
  297. package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +0 -8
  298. package/dist/components/inputs/shared/tooltipWrapper.cva.js +0 -5
  299. package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +0 -14
  300. package/dist/components/inputs/shared/useStaticInputHandoff.js +0 -100
  301. package/dist/hooks/useAutosave.spec.d.ts +0 -1
  302. package/dist/hooks/useFormAutosave.spec.d.ts +0 -1
  303. package/dist/hooks/useKeyInteractions.d.ts +0 -20
  304. package/dist/hooks/useKeyInteractions.js +0 -54
  305. package/dist/hooks/useKeyInteractions.spec.d.ts +0 -1
  306. package/dist/hooks/useQueryAutocomplete.d.ts +0 -14
  307. package/dist/hooks/useQueryAutocomplete.js +0 -72
  308. package/dist/utils/query.utils.d.ts +0 -4
  309. package/dist/utils/query.utils.js +0 -8
@@ -2,14 +2,11 @@ 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";
6
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
6
  import { clsx } from "clsx";
8
7
  import { Button } from "react-aria-components";
9
8
  //#region src/components/navigation/Stepper/StepperItem.tsx
10
- var StepperItem = (t0) => {
11
- const $ = c(31);
12
- const { step, stepNumber, status, contentOrientation, iconsOnly, titlesOnly, onPress } = t0;
9
+ var StepperItem = ({ step, stepNumber, status, contentOrientation, iconsOnly, titlesOnly, onPress }) => {
13
10
  const stepperItemCva = UIOverrides.useCva("stepper.itemCva", stepperItemDefinition);
14
11
  const stepperIconCva = UIOverrides.useCva("stepper.iconCva", stepperIconDefinition);
15
12
  const stepperNumberCva = UIOverrides.useCva("stepper.numberCva", stepperNumberDefinition);
@@ -17,110 +14,40 @@ var StepperItem = (t0) => {
17
14
  const stepperSubtextCva = UIOverrides.useCva("stepper.subtextCva", stepperSubtextDefinition);
18
15
  const showTitle = !iconsOnly;
19
16
  const showSubtext = !iconsOnly && !titlesOnly && !!step.subtext;
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, {
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, {
30
20
  className: stepperNumberCva({ status }),
31
21
  variant: "prominent-1",
32
22
  size: "label-3",
33
23
  children: stepNumber
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;
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
+ });
124
51
  };
125
52
  //#endregion
126
53
  export { StepperItem };
@@ -1,30 +1,12 @@
1
1
  import { UIOverrides } from "../../../config/uiOverrides.context.js";
2
2
  import { stepperSeparatorDefinition } from "./stepper.cva.js";
3
- import { c } from "react/compiler-runtime";
4
3
  import { jsx } from "react/jsx-runtime";
5
4
  //#region src/components/navigation/Stepper/StepperSeparator.tsx
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;
5
+ var StepperSeparator = ({ orientation, contentOrientation }) => {
6
+ return /* @__PURE__ */ jsx("div", { className: UIOverrides.useCva("stepper.separatorCva", stepperSeparatorDefinition)({
7
+ orientation,
8
+ contentOrientation
9
+ }) });
28
10
  };
29
11
  //#endregion
30
12
  export { StepperSeparator };
@@ -2,7 +2,6 @@ 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";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
7
6
  import { clsx } from "clsx";
8
7
  //#region src/components/overlays/ActionModal/ActionModal.tsx
@@ -11,178 +10,45 @@ var textAlignClassMap = {
11
10
  center: "text-center",
12
11
  right: "text-right"
13
12
  };
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;
13
+ var ActionModal = ({ heading, description, primaryAction, secondaryAction, buttonSize = "m", textAlign = "left", modalClassName, titleTypography, titleClassName, descriptionTypography, descriptionClassName, ...modalProps }) => {
59
14
  const ui = UIConfig.useConfig();
60
15
  const textAlignClass = textAlignClassMap[textAlign];
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", {
16
+ return /* @__PURE__ */ jsxs(Modal, {
17
+ modalClassName: clsx("w-modal", modalClassName),
18
+ ...modalProps,
19
+ children: [/* @__PURE__ */ jsxs("div", {
111
20
  className: "flex flex-col gap-modal-gap-text",
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", {
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", {
165
32
  className: "flex w-full flex-wrap gap-modal-gap-buttons pt-1",
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;
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
+ });
186
52
  };
187
53
  //#endregion
188
54
  export { ActionModal };
@@ -2,7 +2,6 @@ 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";
6
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
6
  import { clsx } from "clsx";
8
7
  import { useEffect, useMemo, useRef, useState } from "react";
@@ -99,7 +98,7 @@ var BottomSheetBase = ({ isOpen, onOpenChange, onStateChange, isDismissable = tr
99
98
  return /* @__PURE__ */ jsx(AnimatePresence, { children: isOpen && /* @__PURE__ */ jsxs(MotionModalOverlay, {
100
99
  isOpen: true,
101
100
  UNSTABLE_portalContainer: portalContainerRef?.current,
102
- className: clsx("fixed top-0 left-0 z-10 w-screen h-dvh", containerClassName),
101
+ className: clsx("fixed top-0 left-0 z-bottom-sheet w-screen h-dvh", containerClassName),
103
102
  style: { "--bottom-sheet-keyboard-inset": `${keyboardInset}px` },
104
103
  onOpenChange,
105
104
  isDismissable,
@@ -128,8 +127,8 @@ var BottomSheetBase = ({ isOpen, onOpenChange, onStateChange, isDismissable = tr
128
127
  onAnimationComplete: (data) => {
129
128
  onStateChange?.(data.y === 0 ? "opened" : "closed");
130
129
  },
131
- onAnimationStart: (data_0) => {
132
- onStateChange?.(data_0.y === 0 ? "opening" : "closing");
130
+ onAnimationStart: (data) => {
131
+ onStateChange?.(data.y === 0 ? "opening" : "closing");
133
132
  },
134
133
  transition: staticTransition,
135
134
  style: {
@@ -213,7 +212,7 @@ var BottomSheetBase = ({ isOpen, onOpenChange, onStateChange, isDismissable = tr
213
212
  initial: { opacity: 0 },
214
213
  exit: { opacity: 0 },
215
214
  ref: setFooterElement,
216
- className: clsx("pointer-events-auto absolute z-50 w-full bg-elevation-fill-default-2", "top-[calc(100dvh-var(--bottom-sheet-keyboard-inset,0))] left-0 translate-y-[calc(-100%-var(--scroll-position,0))]"),
215
+ className: clsx("pointer-events-auto absolute z-overlay-above w-full bg-elevation-fill-default-2", "top-[calc(100dvh-var(--bottom-sheet-keyboard-inset,0))] left-0 translate-y-[calc(-100%-var(--scroll-position,0))]"),
217
216
  children: footer
218
217
  })
219
218
  ] })
@@ -221,108 +220,36 @@ var BottomSheetBase = ({ isOpen, onOpenChange, onStateChange, isDismissable = tr
221
220
  })]
222
221
  }) });
223
222
  };
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
- }
223
+ var BottomSheet = ({ isOpen, portalContainerRef, onOpenChange, trigger, children, ...rest }) => {
249
224
  const [isSheetOpen, setIsSheetOpen] = useState(!!isOpen);
250
225
  const hasTrigger = !!trigger;
251
- let t1;
252
- let t2;
253
- if ($[7] !== hasTrigger || $[8] !== isOpen) {
254
- t1 = () => {
255
- if (hasTrigger) setIsSheetOpen(!!isOpen);
256
- };
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);
226
+ useEffect(() => {
227
+ if (hasTrigger) setIsSheetOpen(!!isOpen);
228
+ }, [isOpen, hasTrigger]);
267
229
  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, {
230
+ const handleOpenChange = (open) => {
231
+ setIsSheetOpen(open);
232
+ onOpenChange?.(open);
233
+ };
234
+ return /* @__PURE__ */ jsxs(DialogTrigger, {
235
+ isOpen: isSheetOpen,
236
+ onOpenChange: handleOpenChange,
237
+ children: [trigger, /* @__PURE__ */ jsx(BottomSheetBase, {
281
238
  isOpen: isSheetOpen,
282
239
  onOpenChange: handleOpenChange,
283
240
  portalContainerRef,
284
241
  ...rest,
285
242
  children
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;
308
- }
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
243
+ })]
317
244
  });
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;
245
+ }
246
+ return /* @__PURE__ */ jsx(BottomSheetBase, {
247
+ isOpen,
248
+ onOpenChange,
249
+ portalContainerRef,
250
+ ...rest,
251
+ children
252
+ });
326
253
  };
327
254
  //#endregion
328
255
  export { BottomSheet };
@@ -1,26 +1,16 @@
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";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
6
5
  import { clsx } from "clsx";
7
6
  import { Button } from "react-aria-components";
8
7
  import { useTranslation } from "react-i18next";
9
8
  //#region src/components/overlays/BottomSheet/BottomSheetHeader.tsx
10
- var BottomSheetHeader = (t0) => {
11
- const $ = c(17);
12
- const { label, dragControls, isDismissable, hideThumb, hideHeader, headerTypography, onClose } = t0;
9
+ var BottomSheetHeader = ({ label, dragControls, isDismissable, hideThumb, hideHeader, headerTypography, onClose }) => {
13
10
  const { t } = useTranslation("ui");
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", {
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", {
24
14
  className: "flex shrink-0 cursor-grab touch-none justify-center px-list-side-title pt-list-height-title-top pb-2-5",
25
15
  onPointerDown: (e) => {
26
16
  e.preventDefault();
@@ -28,15 +18,7 @@ var BottomSheetHeader = (t0) => {
28
18
  },
29
19
  "aria-hidden": true,
30
20
  children: /* @__PURE__ */ jsx("div", { className: "h-1 w-16 shrink-0 rounded-full bg-elevation-fill-default-3" })
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", {
21
+ }), !hideHeader && /* @__PURE__ */ jsxs("div", {
40
22
  className: "flex justify-between px-list-side-title",
41
23
  children: [/* @__PURE__ */ jsx(Typography, {
42
24
  size: "label-2",
@@ -45,34 +27,12 @@ var BottomSheetHeader = (t0) => {
45
27
  children: label
46
28
  }), onClose && isDismissable && /* @__PURE__ */ jsx(Button, {
47
29
  onPress: onClose,
48
- "aria-label": t(_temp),
30
+ "aria-label": t(($) => $.ui.closeAlt),
49
31
  className: "-m-2 shrink-0 p-2 text-interactive-text-secondary-idle focus-visible:outline-interactive-text-secondary-focus",
50
32
  children: /* @__PURE__ */ jsx(CloseIcon, { className: "size-6" })
51
33
  })]
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;
34
+ })]
35
+ });
73
36
  };
74
- function _temp($) {
75
- return $.ui.closeAlt;
76
- }
77
37
  //#endregion
78
38
  export { BottomSheetHeader };