altum 0.0.1

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 (536) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/LICENSE +21 -0
  3. package/README.md +53 -0
  4. package/dist/base/ButtonBase/ButtonBase.js +1 -0
  5. package/dist/base/ButtonBase/ButtonBase.module.css.js +1 -0
  6. package/dist/base/ChartBase/ChartBase.js +1 -0
  7. package/dist/base/ChartBase/ChartBase.module.css.js +1 -0
  8. package/dist/base/ChartBase/ChartBase.utils.js +1 -0
  9. package/dist/base/DialogBase/DialogBase.js +1 -0
  10. package/dist/base/DialogBase/DialogBase.module.css.js +1 -0
  11. package/dist/base/FieldBase/FieldBase.js +1 -0
  12. package/dist/base/FieldBase/FieldBase.module.css.js +1 -0
  13. package/dist/base/ListOptionBase/ListOptionBase.js +1 -0
  14. package/dist/base/ListOptionBase/ListOptionBase.module.css.js +1 -0
  15. package/dist/base/MediaRowBase/MediaRowBase.js +1 -0
  16. package/dist/base/MediaRowBase/MediaRowBase.module.css.js +1 -0
  17. package/dist/base/ToggleControlBase/ToggleControlBase.js +1 -0
  18. package/dist/base/ToggleControlBase/ToggleControlBase.module.css.js +1 -0
  19. package/dist/components/Accordion/Accordion.js +1 -0
  20. package/dist/components/Accordion/Accordion.module.css.js +1 -0
  21. package/dist/components/ActionList/ActionList.js +1 -0
  22. package/dist/components/ActionList/ActionList.module.css.js +1 -0
  23. package/dist/components/ActionSheetTrigger/ActionSheetTrigger.js +1 -0
  24. package/dist/components/ActionSheetTrigger/ActionSheetTrigger.module.css.js +1 -0
  25. package/dist/components/ActionSheetTrigger/actionSheetContext.js +1 -0
  26. package/dist/components/Alert/Alert.js +1 -0
  27. package/dist/components/Alert/Alert.module.css.js +1 -0
  28. package/dist/components/AspectRatio/AspectRatio.js +1 -0
  29. package/dist/components/AspectRatio/AspectRatio.module.css.js +1 -0
  30. package/dist/components/Attachment/Attachment.js +1 -0
  31. package/dist/components/Attachment/Attachment.module.css.js +1 -0
  32. package/dist/components/Avatar/Avatar.js +1 -0
  33. package/dist/components/Avatar/Avatar.module.css.js +1 -0
  34. package/dist/components/Backdrop/Backdrop.js +1 -0
  35. package/dist/components/Backdrop/Backdrop.module.css.js +1 -0
  36. package/dist/components/Badge/Badge.js +1 -0
  37. package/dist/components/Badge/Badge.module.css.js +1 -0
  38. package/dist/components/BarChart/BarChart.js +1 -0
  39. package/dist/components/BarChart/BarChart.module.css.js +1 -0
  40. package/dist/components/Box/Box.js +1 -0
  41. package/dist/components/Box/Box.module.css.js +1 -0
  42. package/dist/components/Bubble/Bubble.js +1 -0
  43. package/dist/components/Bubble/Bubble.module.css.js +1 -0
  44. package/dist/components/Button/Button.js +1 -0
  45. package/dist/components/Button/Button.module.css.js +1 -0
  46. package/dist/components/ButtonGroup/ButtonGroup.js +1 -0
  47. package/dist/components/ButtonGroup/ButtonGroup.module.css.js +1 -0
  48. package/dist/components/ButtonIcon/ButtonIcon.js +1 -0
  49. package/dist/components/ButtonIcon/ButtonIcon.module.css.js +1 -0
  50. package/dist/components/Calendar/Calendar.context.js +1 -0
  51. package/dist/components/Calendar/Calendar.js +1 -0
  52. package/dist/components/Calendar/Calendar.module.css.js +1 -0
  53. package/dist/components/Calendar/Calendar.slots.js +1 -0
  54. package/dist/components/Calendar/Calendar.types.js +1 -0
  55. package/dist/components/Calendar/Calendar.utils.js +1 -0
  56. package/dist/components/Calendar/Calendar.views.js +1 -0
  57. package/dist/components/Calendar/calendar.schedule.js +1 -0
  58. package/dist/components/CalendarBoard/CalendarBoard.EventBar.js +1 -0
  59. package/dist/components/CalendarBoard/CalendarBoard.EventBar.module.css.js +1 -0
  60. package/dist/components/CalendarBoard/CalendarBoard.MonthView.js +1 -0
  61. package/dist/components/CalendarBoard/CalendarBoard.Schedule.js +1 -0
  62. package/dist/components/CalendarBoard/CalendarBoard.Schedule.module.css.js +1 -0
  63. package/dist/components/CalendarBoard/CalendarBoard.Schedule.types.js +1 -0
  64. package/dist/components/CalendarBoard/CalendarBoard.Schedule.utils.js +1 -0
  65. package/dist/components/CalendarBoard/CalendarBoard.ScheduleView.js +1 -0
  66. package/dist/components/CalendarBoard/CalendarBoard.TaskChip.js +1 -0
  67. package/dist/components/CalendarBoard/CalendarBoard.TimedEvent.js +1 -0
  68. package/dist/components/CalendarBoard/CalendarBoard.TimedEvent.module.css.js +1 -0
  69. package/dist/components/CalendarBoard/CalendarBoard.YearView.js +1 -0
  70. package/dist/components/CalendarBoard/CalendarBoard.chrome.js +1 -0
  71. package/dist/components/CalendarBoard/CalendarBoard.context.js +1 -0
  72. package/dist/components/CalendarBoard/CalendarBoard.js +1 -0
  73. package/dist/components/CalendarBoard/CalendarBoard.module.css.js +1 -0
  74. package/dist/components/CalendarBoard/CalendarBoard.utils.js +1 -0
  75. package/dist/components/CalendarBoard/CalendarBoard.views.js +1 -0
  76. package/dist/components/CalendarBoard/calendarBoardHoverStore.js +1 -0
  77. package/dist/components/Card/Card.js +1 -0
  78. package/dist/components/Card/Card.module.css.js +1 -0
  79. package/dist/components/Checkbox/Checkbox.js +1 -0
  80. package/dist/components/Chip/Chip.js +1 -0
  81. package/dist/components/Chip/Chip.module.css.js +1 -0
  82. package/dist/components/Collapse/Collapse.js +1 -0
  83. package/dist/components/Collapse/Collapse.module.css.js +1 -0
  84. package/dist/components/ColorSwatchGroup/ColorSwatchGroup.js +1 -0
  85. package/dist/components/ColorSwatchGroup/ColorSwatchGroup.module.css.js +1 -0
  86. package/dist/components/CommandPalette/CommandPalette.js +1 -0
  87. package/dist/components/CommandPalette/CommandPalette.module.css.js +1 -0
  88. package/dist/components/ConfirmDialog/ConfirmDialog.js +1 -0
  89. package/dist/components/ConfirmDialog/ConfirmDialog.module.css.js +1 -0
  90. package/dist/components/Container/Container.js +1 -0
  91. package/dist/components/Container/Container.module.css.js +1 -0
  92. package/dist/components/ContextMenu/ContextMenu.js +1 -0
  93. package/dist/components/ContextMenu/ContextMenu.module.css.js +1 -0
  94. package/dist/components/CustomSelect/CustomSelect.Filter.js +1 -0
  95. package/dist/components/CustomSelect/CustomSelect.List.js +1 -0
  96. package/dist/components/CustomSelect/CustomSelect.Shell.js +1 -0
  97. package/dist/components/CustomSelect/CustomSelect.Shell.module.css.js +1 -0
  98. package/dist/components/CustomSelect/CustomSelect.context.js +1 -0
  99. package/dist/components/CustomSelect/CustomSelect.js +1 -0
  100. package/dist/components/CustomSelect/CustomSelect.module.css.js +1 -0
  101. package/dist/components/CustomSelect/useCustomSelectComboboxKeyboard.js +1 -0
  102. package/dist/components/DatePicker/DatePicker.js +1 -0
  103. package/dist/components/DatePicker/DatePicker.utils.js +1 -0
  104. package/dist/components/DateRangePicker/DateRangePicker.js +1 -0
  105. package/dist/components/DateRangePicker/DateRangePicker.module.css.js +1 -0
  106. package/dist/components/DayStripCalendar/DayStripCalendar.js +1 -0
  107. package/dist/components/DayStripCalendar/DayStripCalendar.module.css.js +1 -0
  108. package/dist/components/DescriptionList/DescriptionList.js +1 -0
  109. package/dist/components/DescriptionList/DescriptionList.module.css.js +1 -0
  110. package/dist/components/DonutChart/DonutChart.js +1 -0
  111. package/dist/components/DonutChart/DonutChart.module.css.js +1 -0
  112. package/dist/components/Dropdown/Dropdown.js +1 -0
  113. package/dist/components/Dropdown/Dropdown.module.css.js +1 -0
  114. package/dist/components/Dropdown/DropdownMobileSheet.js +1 -0
  115. package/dist/components/DropdownMenu/DropdownMenu.js +1 -0
  116. package/dist/components/EmptyState/EmptyState.js +1 -0
  117. package/dist/components/EmptyState/EmptyState.module.css.js +1 -0
  118. package/dist/components/FieldLabel/FieldLabel.js +1 -0
  119. package/dist/components/FieldLabel/FieldLabel.module.css.js +1 -0
  120. package/dist/components/Fieldset/Fieldset.js +1 -0
  121. package/dist/components/Fieldset/Fieldset.module.css.js +1 -0
  122. package/dist/components/FileList/FileList.js +1 -0
  123. package/dist/components/FileList/FileList.module.css.js +1 -0
  124. package/dist/components/FocusTrap/FocusTrap.js +1 -0
  125. package/dist/components/FormMessage/FormMessage.js +1 -0
  126. package/dist/components/FormMessage/FormMessage.module.css.js +1 -0
  127. package/dist/components/GrabHandle/GrabHandle.js +1 -0
  128. package/dist/components/GrabHandle/GrabHandle.module.css.js +1 -0
  129. package/dist/components/Grid/Grid.js +1 -0
  130. package/dist/components/Grid/Grid.module.css.js +1 -0
  131. package/dist/components/Grid/Grid.utils.js +1 -0
  132. package/dist/components/ImageCrop/ImageCrop.js +1 -0
  133. package/dist/components/ImageCrop/ImageCrop.module.css.js +1 -0
  134. package/dist/components/ImageCrop/ImageCrop.utils.js +1 -0
  135. package/dist/components/ImageGallery/ImageGallery.js +1 -0
  136. package/dist/components/ImageGallery/ImageGallery.module.css.js +1 -0
  137. package/dist/components/ImageLightbox/ImageLightbox.js +1 -0
  138. package/dist/components/ImageLightbox/ImageLightbox.module.css.js +1 -0
  139. package/dist/components/Item/Item.js +1 -0
  140. package/dist/components/Item/Item.module.css.js +1 -0
  141. package/dist/components/Kbd/Kbd.js +1 -0
  142. package/dist/components/Kbd/Kbd.module.css.js +1 -0
  143. package/dist/components/Layout/ControlRow.js +1 -0
  144. package/dist/components/Layout/Inline.js +1 -0
  145. package/dist/components/Layout/Layout.js +1 -0
  146. package/dist/components/Layout/Layout.module.css.js +1 -0
  147. package/dist/components/Layout/Layout.types.js +1 -0
  148. package/dist/components/Layout/LayoutItem.js +1 -0
  149. package/dist/components/Layout/Split.js +1 -0
  150. package/dist/components/Layout/Stack.js +1 -0
  151. package/dist/components/Layout/flexPrimitives.module.css.js +1 -0
  152. package/dist/components/Layout/layoutClasses.js +1 -0
  153. package/dist/components/LineChart/LineChart.js +1 -0
  154. package/dist/components/LineChart/LineChart.module.css.js +1 -0
  155. package/dist/components/Link/Link.js +1 -0
  156. package/dist/components/Link/Link.module.css.js +1 -0
  157. package/dist/components/Listbox/Listbox.js +1 -0
  158. package/dist/components/Listbox/Listbox.module.css.js +1 -0
  159. package/dist/components/LocaleProvider/LocaleProvider.js +1 -0
  160. package/dist/components/Marker/Marker.js +1 -0
  161. package/dist/components/Marker/Marker.module.css.js +1 -0
  162. package/dist/components/MaskedField/MaskedField.js +1 -0
  163. package/dist/components/MaskedField/MaskedField.module.css.js +1 -0
  164. package/dist/components/MaskedField/MaskedField.utils.js +1 -0
  165. package/dist/components/Media/Media.js +1 -0
  166. package/dist/components/Media/Media.module.css.js +1 -0
  167. package/dist/components/Modal/Modal.js +1 -0
  168. package/dist/components/Modal/Modal.module.css.js +1 -0
  169. package/dist/components/Notification/Notification.js +1 -0
  170. package/dist/components/Notification/Notification.module.css.js +1 -0
  171. package/dist/components/Notification/toast.js +1 -0
  172. package/dist/components/NumberField/NumberField.js +1 -0
  173. package/dist/components/NumberField/NumberField.module.css.js +1 -0
  174. package/dist/components/OverflowActions/OverflowActions.js +1 -0
  175. package/dist/components/OverflowActions/OverflowActions.module.css.js +1 -0
  176. package/dist/components/OverflowGroup/OverflowGroup.js +1 -0
  177. package/dist/components/OverflowGroup/OverflowGroup.module.css.js +1 -0
  178. package/dist/components/Overlay/Overlay.Dismiss.js +1 -0
  179. package/dist/components/Overlay/Overlay.Focus.js +1 -0
  180. package/dist/components/Overlay/Overlay.Positioner.js +1 -0
  181. package/dist/components/Overlay/Overlay.Root.js +1 -0
  182. package/dist/components/Overlay/Overlay.js +1 -0
  183. package/dist/components/Overlay/Overlay.module.css.js +1 -0
  184. package/dist/components/Overlay/Overlay.types.js +1 -0
  185. package/dist/components/Pagination/Pagination.js +1 -0
  186. package/dist/components/Pagination/Pagination.module.css.js +1 -0
  187. package/dist/components/PasswordField/PasswordField.js +1 -0
  188. package/dist/components/PasswordField/PasswordField.module.css.js +1 -0
  189. package/dist/components/PinInput/PinInput.js +1 -0
  190. package/dist/components/PinInput/PinInput.module.css.js +1 -0
  191. package/dist/components/Popover/Popover.js +1 -0
  192. package/dist/components/Popover/Popover.module.css.js +1 -0
  193. package/dist/components/Progress/Progress.js +1 -0
  194. package/dist/components/Progress/Progress.module.css.js +1 -0
  195. package/dist/components/PullToRefresh/PullToRefresh.js +1 -0
  196. package/dist/components/PullToRefresh/PullToRefresh.module.css.js +1 -0
  197. package/dist/components/Radio/Radio.js +1 -0
  198. package/dist/components/Rating/Rating.js +1 -0
  199. package/dist/components/Rating/Rating.module.css.js +1 -0
  200. package/dist/components/RelativeTime/RelativeTime.js +1 -0
  201. package/dist/components/SafeArea/SafeArea.js +1 -0
  202. package/dist/components/SafeArea/SafeArea.module.css.js +1 -0
  203. package/dist/components/ScrollArea/ScrollArea.js +1 -0
  204. package/dist/components/ScrollArea/ScrollArea.module.css.js +1 -0
  205. package/dist/components/SearchField/SearchField.js +1 -0
  206. package/dist/components/SearchField/SearchField.module.css.js +1 -0
  207. package/dist/components/SegmentedControl/SegmentedControl.js +1 -0
  208. package/dist/components/SegmentedControl/SegmentedControl.module.css.js +1 -0
  209. package/dist/components/Select/Select.js +1 -0
  210. package/dist/components/Select/Select.module.css.js +1 -0
  211. package/dist/components/SelectionGroup/SelectionGroup.js +1 -0
  212. package/dist/components/SelectionGroup/SelectionGroup.module.css.js +1 -0
  213. package/dist/components/Separator/Separator.js +1 -0
  214. package/dist/components/Separator/Separator.module.css.js +1 -0
  215. package/dist/components/Sheet/Sheet.js +1 -0
  216. package/dist/components/Sheet/Sheet.module.css.js +1 -0
  217. package/dist/components/Sidebar/Sidebar.js +1 -0
  218. package/dist/components/Sidebar/Sidebar.module.css.js +1 -0
  219. package/dist/components/Skeleton/Skeleton.js +1 -0
  220. package/dist/components/Skeleton/Skeleton.module.css.js +1 -0
  221. package/dist/components/SkipLink/SkipLink.js +1 -0
  222. package/dist/components/SkipLink/SkipLink.module.css.js +1 -0
  223. package/dist/components/Slider/Slider.js +1 -0
  224. package/dist/components/Slider/Slider.module.css.js +1 -0
  225. package/dist/components/SortableList/SortableList.js +1 -0
  226. package/dist/components/SortableList/SortableList.module.css.js +1 -0
  227. package/dist/components/SortableList/SortableList.types.js +1 -0
  228. package/dist/components/SortableList/useSortableListDnD.js +1 -0
  229. package/dist/components/Spinner/Spinner.js +1 -0
  230. package/dist/components/Spinner/Spinner.module.css.js +1 -0
  231. package/dist/components/StatBadge/StatBadge.js +1 -0
  232. package/dist/components/StatBadge/StatBadge.module.css.js +1 -0
  233. package/dist/components/Steps/Steps.js +1 -0
  234. package/dist/components/Steps/Steps.module.css.js +1 -0
  235. package/dist/components/SuggestField/SuggestField.js +1 -0
  236. package/dist/components/SuggestField/SuggestField.module.css.js +1 -0
  237. package/dist/components/SwipeToAction/SwipeActionButtons.js +1 -0
  238. package/dist/components/SwipeToAction/SwipeToAction.js +1 -0
  239. package/dist/components/SwipeToAction/SwipeToAction.module.css.js +1 -0
  240. package/dist/components/SwipeToAction/SwipeToAction.utils.js +1 -0
  241. package/dist/components/Switch/Switch.js +1 -0
  242. package/dist/components/Switch/Switch.module.css.js +1 -0
  243. package/dist/components/Table/Table.js +1 -0
  244. package/dist/components/Table/Table.module.css.js +1 -0
  245. package/dist/components/Table/Table.slots.js +1 -0
  246. package/dist/components/Table/TableContext.js +1 -0
  247. package/dist/components/Table/TableRow.js +1 -0
  248. package/dist/components/Table/TableRowActions.js +1 -0
  249. package/dist/components/Table/TableView.js +1 -0
  250. package/dist/components/Tabs/Tabs.js +1 -0
  251. package/dist/components/Tabs/Tabs.module.css.js +1 -0
  252. package/dist/components/Text/Text.js +1 -0
  253. package/dist/components/Text/Text.module.css.js +1 -0
  254. package/dist/components/TextField/TextField.js +1 -0
  255. package/dist/components/TextField/TextField.module.css.js +1 -0
  256. package/dist/components/TextareaField/TextareaField.js +1 -0
  257. package/dist/components/TextareaField/TextareaField.module.css.js +1 -0
  258. package/dist/components/ThemeProvider/ThemeProvider.js +1 -0
  259. package/dist/components/ThemeProvider/ThemeProvider.module.css.js +1 -0
  260. package/dist/components/TimePicker/TimePicker.js +1 -0
  261. package/dist/components/TimePicker/TimePicker.module.css.js +1 -0
  262. package/dist/components/Timeline/Timeline.js +1 -0
  263. package/dist/components/Timeline/Timeline.module.css.js +1 -0
  264. package/dist/components/Title/Title.js +1 -0
  265. package/dist/components/Title/Title.module.css.js +1 -0
  266. package/dist/components/Tooltip/Tooltip.js +1 -0
  267. package/dist/components/Tooltip/Tooltip.module.css.js +1 -0
  268. package/dist/components/UploadZone/UploadZone.js +1 -0
  269. package/dist/components/UploadZone/UploadZone.module.css.js +1 -0
  270. package/dist/components/VirtualList/VirtualList.js +1 -0
  271. package/dist/components/VirtualList/VirtualList.module.css.js +1 -0
  272. package/dist/components/VirtualList/VirtualList.utils.js +1 -0
  273. package/dist/components/VirtualList/VirtualListInner.js +1 -0
  274. package/dist/components/VirtualList/VirtualListItemCell.js +1 -0
  275. package/dist/components/VisuallyHidden/VisuallyHidden.js +1 -0
  276. package/dist/components/VisuallyHidden/VisuallyHidden.module.css.js +1 -0
  277. package/dist/entries/hooks.js +1 -0
  278. package/dist/entries/icons.js +1 -0
  279. package/dist/entries/utils.js +1 -0
  280. package/dist/hooks/useBodyScrollLock.js +1 -0
  281. package/dist/hooks/useControlledState.js +1 -0
  282. package/dist/hooks/useDocumentKeyDown.js +1 -0
  283. package/dist/hooks/useEscapeKey.js +1 -0
  284. package/dist/hooks/useFocusRestore.js +1 -0
  285. package/dist/hooks/useFocusTrap.js +1 -0
  286. package/dist/hooks/useForm.js +1 -0
  287. package/dist/hooks/useInertSiblings.js +1 -0
  288. package/dist/hooks/useLongPress.js +1 -0
  289. package/dist/hooks/useMediaQuery.js +1 -0
  290. package/dist/hooks/useOutsideClick.js +1 -0
  291. package/dist/hooks/useOverlay.js +1 -0
  292. package/dist/hooks/useOverlayPanel.js +1 -0
  293. package/dist/hooks/usePrefersReducedMotion.js +1 -0
  294. package/dist/icons/icons/IconAlarm.js +10 -0
  295. package/dist/icons/icons/IconAlignCenter.js +3 -0
  296. package/dist/icons/icons/IconAlignJustify.js +3 -0
  297. package/dist/icons/icons/IconAlignLeft.js +3 -0
  298. package/dist/icons/icons/IconAlignRight.js +3 -0
  299. package/dist/icons/icons/IconAnchor.js +5 -0
  300. package/dist/icons/icons/IconArchive.js +5 -0
  301. package/dist/icons/icons/IconArrowDown.js +3 -0
  302. package/dist/icons/icons/IconArrowLeft.js +3 -0
  303. package/dist/icons/icons/IconArrowRight.js +3 -0
  304. package/dist/icons/icons/IconArrowThinDown.js +3 -0
  305. package/dist/icons/icons/IconArrowThinLeft.js +2 -0
  306. package/dist/icons/icons/IconArrowThinRight.js +3 -0
  307. package/dist/icons/icons/IconArrowThinUp.js +2 -0
  308. package/dist/icons/icons/IconArrowUp.js +3 -0
  309. package/dist/icons/icons/IconArticle.js +4 -0
  310. package/dist/icons/icons/IconBackspace.js +3 -0
  311. package/dist/icons/icons/IconBasket.js +4 -0
  312. package/dist/icons/icons/IconBasketball.js +7 -0
  313. package/dist/icons/icons/IconBatteryEmpty.js +2 -0
  314. package/dist/icons/icons/IconBatteryFull.js +4 -0
  315. package/dist/icons/icons/IconBatteryLow.js +3 -0
  316. package/dist/icons/icons/IconBatteryMedium.js +3 -0
  317. package/dist/icons/icons/IconBell.js +8 -0
  318. package/dist/icons/icons/IconBlog.js +4 -0
  319. package/dist/icons/icons/IconBluetooth.js +4 -0
  320. package/dist/icons/icons/IconBold.js +3 -0
  321. package/dist/icons/icons/IconBookmark.js +3 -0
  322. package/dist/icons/icons/IconBookmarks.js +4 -0
  323. package/dist/icons/icons/IconBox.js +5 -0
  324. package/dist/icons/icons/IconBriefcase.js +4 -0
  325. package/dist/icons/icons/IconBrightnessLow.js +10 -0
  326. package/dist/icons/icons/IconBrightnessMax.js +9 -0
  327. package/dist/icons/icons/IconBrightnessMedium.js +9 -0
  328. package/dist/icons/icons/IconBroadcast.js +10 -0
  329. package/dist/icons/icons/IconBrowser.js +2 -0
  330. package/dist/icons/icons/IconBrowserUpload.js +5 -0
  331. package/dist/icons/icons/IconBrush.js +7 -0
  332. package/dist/icons/icons/IconCalendar.js +4 -0
  333. package/dist/icons/icons/IconCamcorder.js +3 -0
  334. package/dist/icons/icons/IconCamera.js +8 -0
  335. package/dist/icons/icons/IconCard.js +3 -0
  336. package/dist/icons/icons/IconCart.js +6 -0
  337. package/dist/icons/icons/IconChecklist.js +6 -0
  338. package/dist/icons/icons/IconCheckmark.js +2 -0
  339. package/dist/icons/icons/IconChevronDown.js +2 -0
  340. package/dist/icons/icons/IconChevronLeft.js +2 -0
  341. package/dist/icons/icons/IconChevronRight.js +2 -0
  342. package/dist/icons/icons/IconChevronUp.js +2 -0
  343. package/dist/icons/icons/IconClipboard.js +4 -0
  344. package/dist/icons/icons/IconClock.js +3 -0
  345. package/dist/icons/icons/IconClockwise.js +4 -0
  346. package/dist/icons/icons/IconCloud.js +6 -0
  347. package/dist/icons/icons/IconCloudDownload.js +9 -0
  348. package/dist/icons/icons/IconCloudUpload.js +9 -0
  349. package/dist/icons/icons/IconCode.js +4 -0
  350. package/dist/icons/icons/IconContract.js +8 -0
  351. package/dist/icons/icons/IconContract2.js +4 -0
  352. package/dist/icons/icons/IconConversation.js +7 -0
  353. package/dist/icons/icons/IconCopy.js +5 -0
  354. package/dist/icons/icons/IconCrop.js +6 -0
  355. package/dist/icons/icons/IconCross.js +3 -0
  356. package/dist/icons/icons/IconCrosshair.js +4 -0
  357. package/dist/icons/icons/IconCutlery.js +7 -0
  358. package/dist/icons/icons/IconDeviceDesktop.js +4 -0
  359. package/dist/icons/icons/IconDeviceMobile.js +3 -0
  360. package/dist/icons/icons/IconDeviceTablet.js +3 -0
  361. package/dist/icons/icons/IconDirection.js +3 -0
  362. package/dist/icons/icons/IconDisc.js +8 -0
  363. package/dist/icons/icons/IconDocument.js +5 -0
  364. package/dist/icons/icons/IconDocumentDelete.js +5 -0
  365. package/dist/icons/icons/IconDocumentEdit.js +4 -0
  366. package/dist/icons/icons/IconDocumentNew.js +2 -0
  367. package/dist/icons/icons/IconDocumentRemove.js +3 -0
  368. package/dist/icons/icons/IconDot.js +2 -0
  369. package/dist/icons/icons/IconDots2.js +4 -0
  370. package/dist/icons/icons/IconDots3.js +5 -0
  371. package/dist/icons/icons/IconDownload.js +3 -0
  372. package/dist/icons/icons/IconDragHandle.js +1 -0
  373. package/dist/icons/icons/IconDuplicate.js +3 -0
  374. package/dist/icons/icons/IconEnter.js +4 -0
  375. package/dist/icons/icons/IconExit.js +4 -0
  376. package/dist/icons/icons/IconExpand.js +8 -0
  377. package/dist/icons/icons/IconExpand2.js +4 -0
  378. package/dist/icons/icons/IconExperiment.js +7 -0
  379. package/dist/icons/icons/IconExport.js +6 -0
  380. package/dist/icons/icons/IconFeed.js +6 -0
  381. package/dist/icons/icons/IconFlag.js +6 -0
  382. package/dist/icons/icons/IconFlashlight.js +4 -0
  383. package/dist/icons/icons/IconFolder.js +2 -0
  384. package/dist/icons/icons/IconFolderOpen.js +3 -0
  385. package/dist/icons/icons/IconForward.js +5 -0
  386. package/dist/icons/icons/IconGaming.js +14 -0
  387. package/dist/icons/icons/IconGear.js +21 -0
  388. package/dist/icons/icons/IconGraduation.js +6 -0
  389. package/dist/icons/icons/IconGraphBar.js +3 -0
  390. package/dist/icons/icons/IconGraphLine.js +4 -0
  391. package/dist/icons/icons/IconGraphPie.js +4 -0
  392. package/dist/icons/icons/IconHeadset.js +8 -0
  393. package/dist/icons/icons/IconHeart.js +8 -0
  394. package/dist/icons/icons/IconHelp.js +12 -0
  395. package/dist/icons/icons/IconHome.js +4 -0
  396. package/dist/icons/icons/IconHourglass.js +6 -0
  397. package/dist/icons/icons/IconInbox.js +6 -0
  398. package/dist/icons/icons/IconInformation.js +6 -0
  399. package/dist/icons/icons/IconItalic.js +3 -0
  400. package/dist/icons/icons/IconJewel.js +4 -0
  401. package/dist/icons/icons/IconLifting.js +3 -0
  402. package/dist/icons/icons/IconLightbulb.js +7 -0
  403. package/dist/icons/icons/IconLink.js +6 -0
  404. package/dist/icons/icons/IconLinkBroken.js +8 -0
  405. package/dist/icons/icons/IconList.js +7 -0
  406. package/dist/icons/icons/IconLoading.js +12 -0
  407. package/dist/icons/icons/IconLocation.js +5 -0
  408. package/dist/icons/icons/IconLock.js +2 -0
  409. package/dist/icons/icons/IconLockOpen.js +3 -0
  410. package/dist/icons/icons/IconMail.js +9 -0
  411. package/dist/icons/icons/IconMap.js +8 -0
  412. package/dist/icons/icons/IconMediaLoop.js +3 -0
  413. package/dist/icons/icons/IconMediaNext.js +3 -0
  414. package/dist/icons/icons/IconMediaPause.js +2 -0
  415. package/dist/icons/icons/IconMediaPlay.js +2 -0
  416. package/dist/icons/icons/IconMediaPrevious.js +3 -0
  417. package/dist/icons/icons/IconMediaRecord.js +3 -0
  418. package/dist/icons/icons/IconMediaShuffle.js +8 -0
  419. package/dist/icons/icons/IconMediaStop.js +2 -0
  420. package/dist/icons/icons/IconMedical.js +4 -0
  421. package/dist/icons/icons/IconMenu.js +3 -0
  422. package/dist/icons/icons/IconMessage.js +5 -0
  423. package/dist/icons/icons/IconMeter.js +5 -0
  424. package/dist/icons/icons/IconMicrophone.js +8 -0
  425. package/dist/icons/icons/IconMinus.js +1 -0
  426. package/dist/icons/icons/IconMonitor.js +2 -0
  427. package/dist/icons/icons/IconMove.js +7 -0
  428. package/dist/icons/icons/IconMusic.js +8 -0
  429. package/dist/icons/icons/IconNetwork1.js +6 -0
  430. package/dist/icons/icons/IconNetwork2.js +6 -0
  431. package/dist/icons/icons/IconNetwork3.js +8 -0
  432. package/dist/icons/icons/IconNetwork4.js +7 -0
  433. package/dist/icons/icons/IconNetwork5.js +4 -0
  434. package/dist/icons/icons/IconPamphlet.js +6 -0
  435. package/dist/icons/icons/IconPaperclip.js +5 -0
  436. package/dist/icons/icons/IconPencil.js +4 -0
  437. package/dist/icons/icons/IconPhone.js +7 -0
  438. package/dist/icons/icons/IconPhoto.js +4 -0
  439. package/dist/icons/icons/IconPhotoGroup.js +6 -0
  440. package/dist/icons/icons/IconPill.js +8 -0
  441. package/dist/icons/icons/IconPin.js +8 -0
  442. package/dist/icons/icons/IconPlus.js +2 -0
  443. package/dist/icons/icons/IconPower.js +4 -0
  444. package/dist/icons/icons/IconPreview.js +8 -0
  445. package/dist/icons/icons/IconPreviewOff.js +8 -0
  446. package/dist/icons/icons/IconPrint.js +5 -0
  447. package/dist/icons/icons/IconPulse.js +4 -0
  448. package/dist/icons/icons/IconQuestion.js +6 -0
  449. package/dist/icons/icons/IconReply.js +4 -0
  450. package/dist/icons/icons/IconReplyAll.js +6 -0
  451. package/dist/icons/icons/IconReturn.js +3 -0
  452. package/dist/icons/icons/IconRetweet.js +5 -0
  453. package/dist/icons/icons/IconRocket.js +11 -0
  454. package/dist/icons/icons/IconScale.js +6 -0
  455. package/dist/icons/icons/IconSearch.js +6 -0
  456. package/dist/icons/icons/IconShoppingBag.js +3 -0
  457. package/dist/icons/icons/IconSkip.js +5 -0
  458. package/dist/icons/icons/IconStack.js +5 -0
  459. package/dist/icons/icons/IconStar.js +5 -0
  460. package/dist/icons/icons/IconStopwatch.js +6 -0
  461. package/dist/icons/icons/IconStore.js +6 -0
  462. package/dist/icons/icons/IconSuitcase.js +3 -0
  463. package/dist/icons/icons/IconSwap.js +5 -0
  464. package/dist/icons/icons/IconTag.js +4 -0
  465. package/dist/icons/icons/IconTagDelete.js +5 -0
  466. package/dist/icons/icons/IconTags.js +7 -0
  467. package/dist/icons/icons/IconThumbsDown.js +7 -0
  468. package/dist/icons/icons/IconThumbsUp.js +7 -0
  469. package/dist/icons/icons/IconTicket.js +8 -0
  470. package/dist/icons/icons/IconTimeReverse.js +5 -0
  471. package/dist/icons/icons/IconToDo.js +5 -0
  472. package/dist/icons/icons/IconToggles.js +9 -0
  473. package/dist/icons/icons/IconTrash.js +6 -0
  474. package/dist/icons/icons/IconTrophy.js +7 -0
  475. package/dist/icons/icons/IconUpload.js +4 -0
  476. package/dist/icons/icons/IconUser.js +5 -0
  477. package/dist/icons/icons/IconUserGroup.js +9 -0
  478. package/dist/icons/icons/IconUserId.js +7 -0
  479. package/dist/icons/icons/IconVibrate.js +7 -0
  480. package/dist/icons/icons/IconViewApps.js +14 -0
  481. package/dist/icons/icons/IconViewList.js +5 -0
  482. package/dist/icons/icons/IconViewListLarge.js +6 -0
  483. package/dist/icons/icons/IconViewThumb.js +6 -0
  484. package/dist/icons/icons/IconVolumeFull.js +8 -0
  485. package/dist/icons/icons/IconVolumeLow.js +5 -0
  486. package/dist/icons/icons/IconVolumeMedium.js +6 -0
  487. package/dist/icons/icons/IconVolumeOff.js +6 -0
  488. package/dist/icons/icons/IconWallet.js +5 -0
  489. package/dist/icons/icons/IconWarning.js +4 -0
  490. package/dist/icons/icons/IconWeb.js +12 -0
  491. package/dist/icons/icons/IconWeight.js +3 -0
  492. package/dist/icons/icons/IconWifi.js +7 -0
  493. package/dist/icons/icons/IconWrong.js +3 -0
  494. package/dist/icons/icons/IconZoomIn.js +5 -0
  495. package/dist/icons/icons/IconZoomOut.js +4 -0
  496. package/dist/index.js +1 -0
  497. package/dist/locales/en.js +1 -0
  498. package/dist/locales/localeContext.js +1 -0
  499. package/dist/locales/ru.js +1 -0
  500. package/dist/locales/translate.js +1 -0
  501. package/dist/utils/a11y.js +1 -0
  502. package/dist/utils/anchorPosition.js +1 -0
  503. package/dist/utils/arrayMove.js +1 -0
  504. package/dist/utils/autoHeight.js +1 -0
  505. package/dist/utils/cn.js +1 -0
  506. package/dist/utils/composeEvents.js +1 -0
  507. package/dist/utils/composeRefs.js +1 -0
  508. package/dist/utils/controlTrack.js +1 -0
  509. package/dist/utils/controlTrack.module.css.js +1 -0
  510. package/dist/utils/cssSize.js +1 -0
  511. package/dist/utils/focus.js +1 -0
  512. package/dist/utils/formControl.js +1 -0
  513. package/dist/utils/hoverTriggerGroup.js +1 -0
  514. package/dist/utils/keyboard.js +1 -0
  515. package/dist/utils/keyboardShortcut.js +1 -0
  516. package/dist/utils/listboxOptions.js +1 -0
  517. package/dist/utils/mergeStyles.js +1 -0
  518. package/dist/utils/overlayDismiss.js +1 -0
  519. package/dist/utils/overlayEscapeStack.js +1 -0
  520. package/dist/utils/overlayPurpose.js +1 -0
  521. package/dist/utils/overlayStack.js +1 -0
  522. package/dist/utils/overlayZIndex.js +1 -0
  523. package/dist/utils/portal.js +1 -0
  524. package/dist/utils/renderChildren.js +1 -0
  525. package/dist/utils/slot.js +1 -0
  526. package/dist/utils/spacing.js +1 -0
  527. package/dist/utils/transform.js +1 -0
  528. package/docs/COMPONENTS.md +207 -0
  529. package/docs/ICONS.md +22 -0
  530. package/docs/LAYOUT.md +282 -0
  531. package/docs/THEMING.md +308 -0
  532. package/package.json +127 -0
  533. package/types/entries/hooks.d.ts +329 -0
  534. package/types/entries/icons.d.ts +1621 -0
  535. package/types/entries/utils.d.ts +519 -0
  536. package/types/index.d.ts +6083 -0
@@ -0,0 +1 @@
1
+ "use client";import{jsx as c}from"react/jsx-runtime";import{forwardRef as K,useRef as F,useId as V,useCallback as L,useEffect as U,useMemo as Q,Suspense as ee,createContext as oe,useContext as re,lazy as ne}from"react";import{composeRefs as Z}from"../../utils/composeRefs.js";import{ButtonIcon as te}from"../ButtonIcon/ButtonIcon.js";import{IconCross as le}from"../../icons/icons/IconCross.js";import h from"./Dropdown.module.css.js";import{focusElement as j}from"../../utils/a11y.js";import{useOutsideClick as ie}from"../../hooks/useOutsideClick.js";import{useMediaQuery as ae,MOBILE_MEDIA_QUERY as se}from"../../hooks/useMediaQuery.js";import{useDocumentKeyDown as ue}from"../../hooks/useDocumentKeyDown.js";import{useControlledState as de}from"../../hooks/useControlledState.js";import{queryFocusableElements as ce,FOCUSABLE_WITH_ROLES_SELECTOR as me,handleTabCycle as pe,handleFocusableListNavigation as fe}from"../../utils/focus.js";import{cn as _}from"../../utils/cn.js";import{composeEventHandlers as H}from"../../utils/composeEvents.js";import{useOverlayStackZIndex as be,elevateAboveOverlayStack as ge}from"../../utils/overlayStack.js";import{Box as we}from"../Box/Box.js";import{Overlay as Ce}from"../Overlay/Overlay.js";import{renderChildren as he}from"../../utils/renderChildren.js";import{useLocale as ve}from"../../locales/localeContext.js";const ye=ne(async()=>({default:(await import("./DropdownMobileSheet.js")).DropdownMobileSheet})),Y=oe(null);function $(t){const a=re(Y);if(!a)throw new Error(`${t} \u0434\u043E\u043B\u0436\u0435\u043D \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432\u043D\u0443\u0442\u0440\u0438 Dropdown`);return a}function De(t){return t==="left"||t==="auto"?"start":t==="right"?"end":"center"}const G=K(function({children:t,open:a,onClose:v,onOpenChange:m,align:b="auto",widthMode:g="content",popupRole:l="none",triggerMode:p="toggle",mobileTitle:w,mobileLeftControls:y,mobileRightControls:I,panelScroll:x="overlay",className:P,...N},B){const q=be(),E=ge(q),n=p==="combobox",[o,C]=de(a,!1),f=ae(se),s=F(null),u=F(null),k=F(null),R=F(null),D=V(),T=l==="menu",M=L(()=>s.current?s.current.querySelector('[role="combobox"]')??s.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')??s.current:null,[]),r=L(()=>{v?.(),m?.(!1),C(!1);const e=R.current??M();j(e)},[M,v,m,C]),i=L(()=>{R.current=document.activeElement,m?.(!0),C(!0)},[m,C]),d=L(()=>{o?r():i()},[r,o,i]),A=L(e=>{if(n){if(o&&(e.key==="Enter"||e.key===" "))return;!o&&(e.key==="Enter"||e.key===" "||e.key==="ArrowDown"||e.key==="ArrowUp")&&(e.preventDefault(),i());return}if(e.key==="Enter"||e.key===" "){e.preventDefault(),d();return}!o&&(e.key==="ArrowDown"||e.key==="ArrowUp")&&(e.preventDefault(),i())},[n,o,i,d]);ie([s,k],r,{enabled:o&&f}),ue(e=>{if(!o||!u.current)return;const O=ce(u.current,me);if(O.length===0||pe(e,O,{wrap:T||f,onTabForwardFromLast:T||f?void 0:r}))return;const S=u.current.contains(document.activeElement);n&&!S||fe(e,O)},{enabled:o}),U(()=>{if(!o||n||!u.current)return;const e=u.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), [role="option"]');j(e)},[n,o]),U(()=>{if(!o||!n)return;const e=O=>{const S=O.target;s.current?.contains(S)||u.current?.contains(S)||k.current?.contains(S)||r()};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[r,n,o]);const z=Q(()=>({type:"button","aria-haspopup":l==="menu"?"menu":l==="dialog"?"dialog":"listbox","aria-expanded":o,"aria-controls":o?D:void 0,onKeyDown:A,onClick:e=>{if(n){o||i();return}e.preventDefault(),d()}}),[D,A,n,o,i,l,d]),X=Q(()=>({isOpen:o,openDropdown:i,closeDropdown:r,toggleDropdown:d,triggerRef:s,dropdownRef:u,sheetRef:k,dropdownId:D,align:b,widthMode:g,popupRole:l,triggerMode:p,isCombobox:n,isMobile:f,panelScroll:x,mobileTitle:w,mobileLeftControls:y,mobileRightControls:I,elevatedZIndex:E,handleTriggerKeyDown:A,triggerAttrs:z}),[b,r,D,E,A,n,f,o,y,I,w,i,x,l,d,z,p,g]);return c(Y.Provider,{value:X,children:c("div",{ref:B,className:_(h.root,P),...N,children:t})})}),J=K(function(t,a){const{children:v,asChild:m,className:b}=t,{triggerRef:g,triggerAttrs:l}=$("Dropdown.Trigger"),p=m===!0,w={...l,...p?{tabIndex:0}:{},...b?{className:b}:{}};return he({asChild:p,children:v,props:w,contentRef:Z(a,g)})}),W=K(function({children:t,className:a,boxProps:v,onClick:m,onMouseDown:b,...g},l){const{t:p}=ve(),{isOpen:w,closeDropdown:y,triggerRef:I,dropdownRef:x,sheetRef:P,dropdownId:N,align:B,widthMode:q,popupRole:E,isCombobox:n,isMobile:o,panelScroll:C,mobileTitle:f,mobileLeftControls:s,mobileRightControls:u,elevatedZIndex:k}=$("Dropdown.Content"),R=E==="none"?void 0:E,D=u??(f?c(te,{variant:"ghost",size:"sm","aria-label":p("common.close"),onClick:y,children:c(le,{size:14})}):void 0),T=_(o?h.mobilePanel:h.dropdownOverlay,C==="content"?h.dropdownPanelContentScroll:"",a),M={onClick:H(m,r=>r.stopPropagation()),onMouseDown:H(b,r=>{n&&r.preventDefault()})};return o?c(ee,{fallback:null,children:c(ye,{sheetRef:P,open:w,onClose:y,zIndex:k,mobileTitle:f,mobileLeftControls:s,mobileRightControls:D,children:c("div",{id:N,ref:Z(l,x),role:R,className:T,...g,...M,children:t})})}):c(Ce,{ref:l,variant:"dropdown",purpose:"dropdown",open:w,onClose:y,targetRef:I,triggerMode:"manual",side:"bottom",align:De(B),widthMode:q,closeOnOutsideClick:!0,closeOnEscape:!0,asChild:!1,children:(r,i)=>c(we,{as:"div",variant:"floating",id:N,ref:d=>{x.current=d,i(d)},role:R,className:_(o?h.mobilePanel:h.dropdownOverlay,C==="content"?h.dropdownPanelContentScroll:"",r.className,a),style:r.style,"data-side":r["data-side"],...v,...g,...M,children:t})})});G.displayName="Dropdown",J.displayName="Dropdown.Trigger",W.displayName="Dropdown.Content";const xe=Object.assign(G,{Trigger:J,Content:W});export{xe as Dropdown};
@@ -0,0 +1 @@
1
+ "use client";var e=".Dropdown_uVyL0{display:contents}.Dropdown_CiE4S,.Dropdown_pSSSn{box-sizing:border-box;color:var(--altum-color-text);overflow-x:hidden;overflow-y:auto}.Dropdown_pSSSn{width:100%}.Dropdown_3ufyC{box-sizing:border-box;overflow:hidden;padding-block:var(--altum-g-space-1)}.Dropdown_3ufyC.Dropdown_pSSSn{overflow:hidden}";const d={root:"Dropdown_uVyL0",dropdownOverlay:"Dropdown_CiE4S",mobilePanel:"Dropdown_pSSSn",dropdownPanelContentScroll:"Dropdown_3ufyC"};(function(n){if(!(typeof document>"u")){var o=document.createElement("style");o.textContent=n,document.head.appendChild(o)}})(e);export{d as default};
@@ -0,0 +1 @@
1
+ "use client";import{jsxs as f,jsx as l}from"react/jsx-runtime";import{Sheet as o}from"../Sheet/Sheet.js";const i=({sheetRef:r,open:d,onClose:s,zIndex:h,mobileTitle:e,mobileLeftControls:n,mobileRightControls:t,children:p})=>f(o,{ref:r,open:d,onClose:s,mode:"sheet",direction:"end",backdrop:!1,zIndex:h,children:[(e!=null||n!=null||t!=null)&&l(o.Header,{leftControls:n,rightControls:t,children:e==null?null:typeof e=="string"||typeof e=="number"?l(o.Title,{children:e}):e}),l(o.Body,{padding:!1,children:p})]});i.displayName="Dropdown.MobileSheet";export{i as DropdownMobileSheet};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as e,jsxs as i}from"react/jsx-runtime";import{forwardRef as y,useCallback as A}from"react";import{Dropdown as n}from"../Dropdown/Dropdown.js";import{ActionList as l}from"../ActionList/ActionList.js";import{useControlledStateWithCallback as D}from"../../hooks/useControlledState.js";import{useLocale as j}from"../../locales/localeContext.js";const c=y(function({trigger:m,groups:s,open:h,onOpenChange:f,align:u="right",widthMode:b="content",mobileTitle:g,filterable:C=!1,filterPlaceholder:w,emptyText:t,onAction:a,className:M,"aria-label":T,...x},L){const{t:d}=j(),[N,r]=D(h,!1,f),R=A(o=>{a?.(o),r(!1)},[a,r]);return e("div",{ref:L,className:M,...x,children:i(n,{open:N,onOpenChange:r,onClose:()=>r(!1),align:u,widthMode:b,popupRole:"none",mobileTitle:g??d("dropdownMenu.mobileTitle"),children:[e(n.Trigger,{asChild:!0,children:m}),e(n.Content,{children:i(l.Root,{className:void 0,"aria-label":T??d("dropdownMenu.ariaLabel"),onAction:R,children:[C&&e(l.Search,{placeholder:w}),s.map(o=>i(l.Group,{id:o.id,children:[e(l.GroupLabel,{children:o.label}),o.items.map(p=>e(l.Item,{...p},p.id))]},o.id)),t&&e(l.Empty,{children:t})]})})]})})});c.displayName="DropdownMenu";export{c as DropdownMenu};
@@ -0,0 +1 @@
1
+ "use client";import{jsxs as f,jsx as e}from"react/jsx-runtime";import{forwardRef as N}from"react";import t from"./EmptyState.module.css.js";import{cn as h}from"../../utils/cn.js";const r=N(function({icon:i,title:o,description:s,action:c,size:m="md",className:n,style:l,...d},p){const a=m;return f("div",{ref:p,className:h(t.emptyState,t[a],n),style:l,...d,"data-size":a,children:[i&&e("div",{className:t.icon,children:i}),e("h3",{className:t.title,children:o}),s&&e("p",{className:t.description,children:s}),c&&e("div",{className:t.action,children:c})]})});r.displayName="EmptyState";export{r as EmptyState};
@@ -0,0 +1 @@
1
+ "use client";var e=".EmptyState_OlmHA{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;font-family:var(--altum-g-font-family-ui);justify-content:center;text-align:center}.EmptyState_dTpw9{padding:var(--altum-g-space-8) var(--altum-g-space-6)}.EmptyState_dTpw9 .EmptyState_qVCyh{font-size:calc(var(--altum-g-font-size-4xl)*1.5)}.EmptyState_dTpw9 .EmptyState_xPfUf{font-size:var(--altum-g-font-size-lg)}.EmptyState_cftlu{padding:calc(var(--altum-g-space-8) + var(--altum-g-space-8)) var(--altum-g-space-8)}.EmptyState_cftlu .EmptyState_qVCyh{font-size:calc(var(--altum-g-font-size-4xl)*1.75);margin-bottom:var(--altum-g-space-5)}.EmptyState_cftlu .EmptyState_xPfUf{font-size:var(--altum-g-font-size-xl)}.EmptyState_cftlu .EmptyState_oWwH1{font-size:var(--altum-g-font-size-base);max-width:400px}.EmptyState_bnLtD{padding:var(--altum-g-space-4) var(--altum-g-space-3)}.EmptyState_bnLtD .EmptyState_qVCyh{font-size:calc(var(--altum-g-font-size-3xl) + var(--altum-g-space-1));margin-bottom:var(--altum-g-space-2)}.EmptyState_bnLtD .EmptyState_xPfUf{font-size:var(--altum-g-font-size-sm);margin-bottom:var(--altum-g-space-1)}.EmptyState_bnLtD .EmptyState_oWwH1{font-size:var(--altum-g-font-size-2xs);margin-bottom:var(--altum-g-space-3);max-width:240px}.EmptyState_qVCyh{align-items:center;color:var(--altum-color-empty-icon,var(--altum-color-text-secondary));display:flex;justify-content:center;line-height:0;margin-bottom:var(--altum-g-space-4)}.EmptyState_xPfUf{color:var(--altum-color-ink-default);font-weight:var(--altum-g-font-weight-semibold);margin:0 0 var(--altum-g-space-2)}.EmptyState_oWwH1{color:var(--altum-color-text-secondary);font-size:var(--altum-g-font-size-base);line-height:1.5;margin:0 0 var(--altum-g-space-5);max-width:320px}.EmptyState_dqxw1{margin-top:var(--altum-g-space-1)}";const m={emptyState:"EmptyState_OlmHA",md:"EmptyState_dTpw9",icon:"EmptyState_qVCyh",title:"EmptyState_xPfUf",lg:"EmptyState_cftlu",description:"EmptyState_oWwH1",sm:"EmptyState_bnLtD",action:"EmptyState_dqxw1"};(function(a){if(!(typeof document>"u")){var t=document.createElement("style");t.textContent=a,document.head.appendChild(t)}})(e);export{m as default};
@@ -0,0 +1 @@
1
+ "use client";import{jsxs as x,jsx as r}from"react/jsx-runtime";import{forwardRef as F,useId as L}from"react";import{toCssSize as C}from"../../utils/cssSize.js";import e from"./FieldLabel.module.css.js";import{cn as a}from"../../utils/cn.js";import{mergeStyles as S}from"../../utils/mergeStyles.js";const s=F(function({label:d,children:m,layout:l="vertical",size:n="md",htmlFor:i,labelWidth:t,align:c="center",justify:f="start",className:b,style:h,labelClassName:p,contentClassName:v,id:u,...y},N){const z=L(),o=u??z,g=a(e.fieldLabel,e[n],e[l],l==="horizontal"?e[`align_${c}`]:"",l==="horizontal"?e[`justify_${f}`]:"",l==="horizontal"&&t!==void 0?e.fixedLabelWidth:"",b),j=S(t!==void 0?{"--altum-field-label-width":C(t)}:void 0,h);return x("div",{ref:N,className:g,style:j,...y,children:[r(i?"label":"span",{id:i?void 0:o,htmlFor:i,className:a(e.label,p),children:d}),r("div",{className:a(e.content,v),"aria-labelledby":i?void 0:o,children:m})]})});s.displayName="FieldLabel";export{s as FieldLabel};
@@ -0,0 +1 @@
1
+ "use client";var i=".FieldLabel_mYhbC{--altum-field-label-width:140px;display:flex;font-family:var(--altum-g-font-family-ui);max-width:100%;min-width:0;width:100%}.FieldLabel_JHH4i{align-items:flex-start;flex-direction:column;gap:var(--altum-g-space-1)}.FieldLabel_JHH4i .FieldLabel_Ow6f4{width:100%}.FieldLabel_NMckM{flex-direction:row;gap:var(--altum-g-space-4);max-width:100%;width:100%}.FieldLabel_NMckM .FieldLabel_9k-62{flex:0 0 var(--altum-field-label-width);max-width:40%;width:var(--altum-field-label-width)}.FieldLabel_NMckM .FieldLabel_Ow6f4{flex:1 1 0;min-width:0}.FieldLabel_NMckM.FieldLabel_DBhNo{justify-content:space-between}.FieldLabel_NMckM.FieldLabel_DBhNo:not(.FieldLabel_LmAub) .FieldLabel_9k-62{flex:0 1 auto;max-width:60%;width:auto}.FieldLabel_NMckM.FieldLabel_DBhNo .FieldLabel_Ow6f4{flex:0 1 auto;margin-left:auto;text-align:end;width:auto}.FieldLabel_WJ3bw.FieldLabel_NMckM{align-items:flex-start}.FieldLabel_ZzMKO.FieldLabel_NMckM{align-items:center}.FieldLabel_11jpQ.FieldLabel_NMckM{align-items:baseline}.FieldLabel_11jpQ.FieldLabel_NMckM .FieldLabel_9k-62,.FieldLabel_11jpQ.FieldLabel_NMckM .FieldLabel_Ow6f4{line-height:1.35}.FieldLabel_9k-62{color:var(--altum-field-label,var(--altum-color-muted));display:block;font-size:calc(var(--altum-g-font-size-base)*.78);font-weight:var(--altum-g-font-weight-medium);line-height:1.25;margin:0;padding:0;transform-origin:left top;transition:var(--altum-transition-smooth)}.FieldLabel_C-bgg .FieldLabel_9k-62{font-size:calc(var(--altum-g-font-size-2xs)*.78)}.FieldLabel_6g4fZ .FieldLabel_9k-62{font-size:calc(var(--altum-g-font-size-lg)*.78)}.FieldLabel_Ow6f4{color:var(--altum-color-input-text);display:block;font-size:var(--altum-g-font-size-base);line-height:1.35;min-width:0;width:100%}.FieldLabel_C-bgg .FieldLabel_Ow6f4{font-size:var(--altum-g-font-size-2xs,var(--altum-g-font-size-xs));line-height:1.35}.FieldLabel_6g4fZ .FieldLabel_Ow6f4{font-size:var(--altum-g-font-size-lg)}";const a={fieldLabel:"FieldLabel_mYhbC",vertical:"FieldLabel_JHH4i",content:"FieldLabel_Ow6f4",horizontal:"FieldLabel_NMckM",label:"FieldLabel_9k-62",justify_between:"FieldLabel_DBhNo",fixedLabelWidth:"FieldLabel_LmAub",align_start:"FieldLabel_WJ3bw",align_center:"FieldLabel_ZzMKO",align_baseline:"FieldLabel_11jpQ",sm:"FieldLabel_C-bgg",lg:"FieldLabel_6g4fZ"};(function(l){if(!(typeof document>"u")){var e=document.createElement("style");e.textContent=l,document.head.appendChild(e)}})(i);export{a as default};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as d}from"react/jsx-runtime";import{forwardRef as u,useId as x,createContext as E,useContext as w}from"react";import{Box as B}from"../Box/Box.js";import r from"./Fieldset.module.css.js";import{cn as a}from"../../utils/cn.js";import{mergeStyles as H}from"../../utils/mergeStyles.js";const p=E(null);function f(){const e=w(p);if(!e)throw new Error("\u0412\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0439 \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442 Fieldset \u0434\u043E\u043B\u0436\u0435\u043D \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432\u043D\u0443\u0442\u0440\u0438 Fieldset");return e}const y=u(function({variant:e="default",disabled:s=!1,className:i,style:l,id:n,children:t,...c},o){const C=x(),D=n??C,m=e==="plain";return d(p.Provider,{value:{id:D,disabled:s},children:d(B,{ref:o,as:"div",variant:m?"plain":"outlined",border:!m,shadow:"none",padding:m?"none":"lg",radius:"md",className:a(r.wrapper,r[e],s?r.disabled:"",i),style:l,...c,children:t})})}),N=u(function({children:e,className:s,style:i,"aria-describedby":l,...n},t){const{id:c,disabled:o}=f();return d("fieldset",{ref:t,id:c,className:a(r.fieldset,s),style:i,...n,disabled:o||void 0,"aria-describedby":l,children:e})}),h=u(function({gap:e="var(--altum-g-space-4)",children:s,className:i,style:l,...n},t){const c=H({"--altum-fieldset-gap":typeof e=="number"?`${e}px`:e},l);return d("div",{ref:t,className:a(r.content,i),style:c,...n,children:s})}),F=u(function({children:e,className:s,style:i,...l},n){return e?d("legend",{ref:n,className:a(r.legend,s),style:i,...l,children:e}):null}),b=u(function({children:e,className:s,style:i,...l},n){const{id:t}=f();return e?d("p",{ref:n,id:`${t}-description`,className:a(r.description,s),style:i,...l,children:e}):null}),g=u(function({children:e,className:s,style:i,...l},n){const{id:t}=f();return e?d("p",{ref:n,id:`${t}-hint`,className:a(r.hint,s),style:i,...l,children:e}):null}),v=u(function({children:e,className:s,style:i,...l},n){return e?d("div",{ref:n,className:a(r.footer,s),style:i,...l,children:e}):null});y.displayName="Fieldset",N.displayName="Fieldset.Inner",h.displayName="Fieldset.Content",F.displayName="Fieldset.Legend",b.displayName="Fieldset.Description",g.displayName="Fieldset.Hint",v.displayName="Fieldset.Footer";const I=Object.assign(y,{Inner:N,Content:h,Legend:F,Description:b,Hint:g,Footer:v});export{I as Fieldset};
@@ -0,0 +1 @@
1
+ "use client";var a=".Fieldset_52dnI{font-family:var(--altum-g-font-family-ui);margin:0;min-width:0;width:100%}.Fieldset_XI428{border:none;box-sizing:border-box;margin:0;min-width:0;padding:0}.Fieldset_u9wBt{color:var(--altum-color-ink-default);display:block;font-size:var(--altum-form-legend-size,var(--altum-g-font-size-base));font-weight:var(--altum-form-legend-weight,var(--altum-g-font-weight-semibold));line-height:var(--altum-form-legend-line-height,var(--altum-g-line-height-sm));margin:0 0 var(--altum-field-label-gap,var(--altum-g-space-1));padding:0;width:100%}.Fieldset_KGes-{color:var(--altum-color-muted);font-size:var(--altum-form-label-size,var(--altum-g-font-size-sm));line-height:var(--altum-form-label-line-height,var(--altum-g-line-height-sm));margin:0 0 var(--altum-g-space-4)}.Fieldset_KGes-+.Fieldset_KFHGW{margin-top:calc(var(--altum-g-space-3)*-1)}.Fieldset_KFHGW{color:var(--altum-color-muted);font-size:var(--altum-form-helper-size,var(--altum-g-font-size-xs));line-height:var(--altum-form-helper-line-height,var(--altum-g-line-height-xs));margin:0 0 var(--altum-g-space-4)}.Fieldset_uC7JA .Fieldset_KFHGW,.Fieldset_uC7JA .Fieldset_KGes-{margin-bottom:var(--altum-g-space-3)}.Fieldset_0fVjg{display:flex;flex-direction:column;gap:var(--altum-fieldset-gap,var(--altum-g-space-4));min-width:0}.Fieldset_FSexp{align-items:center;border-top:1px solid var(--altum-color-border);display:flex;flex-wrap:wrap;gap:var(--altum-g-space-2);margin-top:var(--altum-g-space-4);padding-top:var(--altum-g-space-4)}.Fieldset_uC7JA .Fieldset_FSexp{border-top:none;padding-top:var(--altum-g-space-3)}.Fieldset_DJqMz .Fieldset_FSexp,.Fieldset_tLQGM .Fieldset_FSexp{margin-bottom:calc(var(--altum-g-space-5)*-1);margin-left:calc(var(--altum-g-space-5)*-1);margin-right:calc(var(--altum-g-space-5)*-1);padding-bottom:var(--altum-g-space-5);padding-left:var(--altum-g-space-5);padding-right:var(--altum-g-space-5)}.Fieldset_Nkuom .Fieldset_XI428{cursor:not-allowed;opacity:var(--altum-opacity-disabled)}.Fieldset_Nkuom .Fieldset_KFHGW,.Fieldset_Nkuom .Fieldset_KGes-,.Fieldset_Nkuom .Fieldset_u9wBt{color:var(--altum-color-muted)}";const l={wrapper:"Fieldset_52dnI",fieldset:"Fieldset_XI428",default:"Fieldset_DJqMz",card:"Fieldset_tLQGM",plain:"Fieldset_uC7JA",legend:"Fieldset_u9wBt",description:"Fieldset_KGes-",hint:"Fieldset_KFHGW",content:"Fieldset_0fVjg",footer:"Fieldset_FSexp",disabled:"Fieldset_Nkuom"};(function(t){if(!(typeof document>"u")){var e=document.createElement("style");e.textContent=t,document.head.appendChild(e)}})(a);export{l as default};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as r,jsxs as n}from"react/jsx-runtime";import C,{forwardRef as F}from"react";import{Attachment as i}from"../Attachment/Attachment.js";import{Progress as $}from"../Progress/Progress.js";import{IconDocument as j}from"../../icons/icons/IconDocument.js";import{IconCross as w}from"../../icons/icons/IconCross.js";import{IconTimeReverse as A}from"../../icons/icons/IconTimeReverse.js";import l from"./FileList.module.css.js";import{cn as L}from"../../utils/cn.js";import{useLocale as M}from"../../locales/localeContext.js";function T(e){if(e!=null)return typeof e=="string"?e:e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}const u=F(function({id:e,name:s,size:a,progress:t,status:m,error:N,previewUrl:p,onRemove:c,onRetry:d,removeLabel:v,retryLabel:z,attachmentSize:f="sm",className:I,...R},b){const{t:g}=M(),o=m??(t!=null&&t<100?"uploading":"idle"),x=[T(a),o==="uploading"&&t!=null?`${Math.round(t)}%`:void 0,o==="error"?N:void 0].filter(Boolean);return n("li",{ref:b,className:L(l.item,I),"data-status":o,...R,children:[n(i,{size:f,status:o,className:l.attachment,children:[r(i.Media,{children:p?r("img",{src:p,alt:""}):r(j,{size:f==="xs"?14:18,"aria-hidden":!0})}),n(i.Content,{children:[r(i.Title,{children:s}),x.length>0&&r(i.Description,{children:x.map((B,y)=>n(C.Fragment,{children:[y>0&&" \xB7 ",B]},y))})]}),(c||o==="error"&&d)&&n(i.Actions,{children:[o==="error"&&d&&r(i.Action,{"aria-label":z??g("fileList.retry"),onClick:()=>d(e),children:r(A,{size:14,"aria-hidden":!0})}),c&&r(i.Action,{"aria-label":v??g("fileList.remove"),onClick:()=>c(e),children:r(w,{size:14,"aria-hidden":!0})})]})]}),o==="uploading"&&r($,{percentage:t??0,indeterminate:t==null,showValueText:!1,className:l.progress})]})});u.displayName="FileList.Item";const h=F(function({children:e,className:s,style:a,...t},m){return r("ul",{ref:m,className:L(l.list,s),style:a,...t,children:e})});h.displayName="FileList.Root";const k=Object.assign(h,{Root:h,Item:u});export{k as FileList,u as FileListItem};
@@ -0,0 +1 @@
1
+ "use client";var i=".FileList_UesU8{font-family:inherit;list-style:none;margin:0;padding:0;width:100%}.FileList_UesU8,.FileList_ja6N-{display:flex;flex-direction:column;gap:var(--altum-g-space-2)}.FileList_ja6N-{min-width:0}.FileList_z9l9y{max-width:none;width:100%}.FileList_7l-z1{width:100%}";const l={list:"FileList_UesU8",item:"FileList_ja6N-",attachment:"FileList_z9l9y",progress:"FileList_7l-z1"};(function(t){if(!(typeof document>"u")){var e=document.createElement("style");e.textContent=t,document.head.appendChild(e)}})(i);export{l as default};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as m}from"react/jsx-runtime";import{forwardRef as p,useRef as F}from"react";import{useFocusTrap as R}from"../../hooks/useFocusTrap.js";import{composeRefs as d}from"../../utils/composeRefs.js";const o=p(function({active:r,children:s,className:c,style:t,initialFocusRef:i,returnFocusRef:u,restoreFocus:a=!0,onEscape:n,...f},l){const e=F(null);return R({active:r,containerRef:e,initialFocusRef:i,returnFocusRef:u,restoreFocus:a,onEscape:n}),m("div",{ref:d(l,e),className:c,style:t,...f,children:s})});o.displayName="FocusTrap";export{o as FocusTrap};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as i}from"react/jsx-runtime";import{forwardRef as t}from"react";import n from"./FormMessage.module.css.js";import{cn as h}from"../../utils/cn.js";const a=t(function({variant:r="hint",children:e,className:o,style:l,role:m,id:d,...c},f){const p=m??(r==="error"?"alert":void 0);return i("p",{ref:f,className:h(n.message,n[r],o),style:l,id:d,...c,"data-variant":r,role:p,children:e})});a.displayName="FormMessage";const s=t(function({children:r,...e},o){return i(a,{ref:o,...e,variant:"error",children:r})});s.displayName="FieldError";export{s as FieldError,a as FormMessage};
@@ -0,0 +1 @@
1
+ "use client";var s=".FormMessage_fTP3v{margin:var(--altum-field-message-gap,var(--altum-g-space-1)) 0 0}.FormMessage_MKhyb,.FormMessage_fTP3v{font-size:var(--altum-form-helper-size,var(--altum-g-font-size-xs));line-height:var(--altum-form-helper-line-height,var(--altum-g-line-height-xs));margin-left:var(--altum-form-helper-indent,var(--altum-g-space-1))}.FormMessage_MKhyb{color:var(--altum-color-ink-danger);display:block;margin-top:var(--altum-field-message-gap,var(--altum-g-space-1))}.FormMessage_Idde-{color:var(--altum-color-ink-muted)}.FormMessage_zrDCe{color:var(--altum-color-status-success-strong,var(--altum-color-status-success))}";const r={message:"FormMessage_fTP3v",error:"FormMessage_MKhyb",hint:"FormMessage_Idde-",success:"FormMessage_zrDCe"};(function(a){if(!(typeof document>"u")){var e=document.createElement("style");e.textContent=a,document.head.appendChild(e)}})(s);export{r as default};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as a}from"react/jsx-runtime";import{forwardRef as i}from"react";import r from"./GrabHandle.module.css.js";import{cn as s}from"../../utils/cn.js";const e=i(function({className:n,...m},o){return a("div",{ref:o,className:s(r.handle,n),...m,"aria-hidden":!0,children:a("span",{className:r.handleBar})})});e.displayName="GrabHandle";export{e as GrabHandle};
@@ -0,0 +1 @@
1
+ "use client";var t=".GrabHandle_pBjjI{align-items:center;display:flex;flex-shrink:0;justify-content:center;padding:var(--altum-g-space-2) 0 var(--altum-g-space-1)}.GrabHandle_-rkH1{--altum-grab-handle-width:36px;--altum-grab-handle-height:var(--altum-g-space-1);background-color:var(--altum-color-input-border);border-radius:var(--altum-g-radius);height:var(--altum-grab-handle-height);width:var(--altum-grab-handle-width)}";const r={handle:"GrabHandle_pBjjI",handleBar:"GrabHandle_-rkH1"};(function(e){if(!(typeof document>"u")){var a=document.createElement("style");a.textContent=e,document.head.appendChild(a)}})(t);export{r as default};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as f}from"react/jsx-runtime";import{forwardRef as p}from"react";import g from"./Grid.module.css.js";import{cn as v}from"../../utils/cn.js";import{mergeStyles as x}from"../../utils/mergeStyles.js";import{isAdaptiveValue as s,applyAdaptiveVars as u,resolveColumnsTemplate as y,resolveGapCss as G,resolveAutoColumnsTemplate as w,resolveGridRowValue as N,resolveGridColumnValue as I}from"./Grid.utils.js";import{GRID_BREAKPOINTS as W}from"./Grid.utils.js";function A(r,o){if(s(o)){u(r,o,"--altum-grid-cols",y);return}r["--altum-grid-cols-xs"]=y(o)}function R(r,o,t){const i=w(o,t);r["--altum-grid-cols-xs"]=i}function S(r,o){if(s(o)){u(r,o,"--altum-grid-gap",G);return}r["--altum-grid-gap-xs"]=G(o)}const C=p(function({columns:r=1,gap:o="md",mode:t="fixed",minColumnWidth:i=240,children:d,className:l,style:m,as:e="div",...n},c){const a={};return t==="autoFit"||t==="autoFill"?R(a,t,i):A(a,r),S(a,o),f(e,{ref:c,className:v(g.grid,l),style:x(a,m),...n,children:d})});function T(r,o,t,i){const d=(l,m,e,n)=>{const c=I(m,e,n);c!==void 0&&(r[l]=c)};if(s(o)||s(t)||s(i)){for(const l of["xs","sm","md","lg","xl"]){const m=s(o)?o[l]:o,e=s(t)?t[l]:t,n=s(i)?i[l]:i;(m!==void 0||e!==void 0||n!==void 0)&&d(`--altum-grid-item-col-${l}`,m,e,n)}return}d("--altum-grid-item-col-xs",o,t,i)}function V(r,o){if(o===void 0)return;if(s(o)){u(r,o,"--altum-grid-item-row",N);return}const t=N(o);t!==void 0&&(r["--altum-grid-item-row-xs"]=t)}const h=p(function({span:r,colStart:o,colEnd:t,rowSpan:i,children:d,className:l,style:m,as:e="div",...n},c){const a={};return T(a,r,o,t),V(a,i),f(e,{ref:c,className:v(g.gridItem,l),style:x(a,m),...n,children:d})});C.displayName="Grid",h.displayName="GridItem";export{W as GRID_BREAKPOINTS,C as Grid,h as GridItem};
@@ -0,0 +1 @@
1
+ "use client";var m=".Grid_h49fk{display:grid;gap:var(--altum-grid-gap-xs,var(--altum-g-space-3));grid-template-columns:var(--altum-grid-cols-xs,repeat(1,minmax(0,1fr)));width:100%}@media (min-width:600px){.Grid_h49fk{gap:var(--altum-grid-gap-sm,var(--altum-grid-gap-xs,var(--altum-g-space-3)));grid-template-columns:var(--altum-grid-cols-sm,var(--altum-grid-cols-xs,repeat(1,minmax(0,1fr))))}}@media (min-width:768px){.Grid_h49fk{gap:var(--altum-grid-gap-md,var(--altum-grid-gap-sm,var(--altum-grid-gap-xs,var(--altum-g-space-3))));grid-template-columns:var(--altum-grid-cols-md,var(--altum-grid-cols-sm,var(--altum-grid-cols-xs,repeat(1,minmax(0,1fr)))))}}@media (min-width:1024px){.Grid_h49fk{gap:var(--altum-grid-gap-lg,var(--altum-grid-gap-md,var(--altum-grid-gap-sm,var(--altum-grid-gap-xs,var(--altum-g-space-3)))));grid-template-columns:var(--altum-grid-cols-lg,var(--altum-grid-cols-md,var(--altum-grid-cols-sm,var(--altum-grid-cols-xs,repeat(1,minmax(0,1fr))))))}}@media (min-width:1280px){.Grid_h49fk{gap:var(--altum-grid-gap-xl,var(--altum-grid-gap-lg,var(--altum-grid-gap-md,var(--altum-grid-gap-sm,var(--altum-grid-gap-xs,var(--altum-g-space-3))))));grid-template-columns:var(--altum-grid-cols-xl,var(--altum-grid-cols-lg,var(--altum-grid-cols-md,var(--altum-grid-cols-sm,var(--altum-grid-cols-xs,repeat(1,minmax(0,1fr)))))))}}.Grid_P3cvG{grid-column:var(--altum-grid-item-col-xs,auto);grid-row:var(--altum-grid-item-row-xs,auto);min-width:0}@media (min-width:600px){.Grid_P3cvG{grid-column:var(--altum-grid-item-col-sm,var(--altum-grid-item-col-xs,auto));grid-row:var(--altum-grid-item-row-sm,var(--altum-grid-item-row-xs,auto))}}@media (min-width:768px){.Grid_P3cvG{grid-column:var(--altum-grid-item-col-md,var(--altum-grid-item-col-sm,var(--altum-grid-item-col-xs,auto)));grid-row:var(--altum-grid-item-row-md,var(--altum-grid-item-row-sm,var(--altum-grid-item-row-xs,auto)))}}@media (min-width:1024px){.Grid_P3cvG{grid-column:var(--altum-grid-item-col-lg,var(--altum-grid-item-col-md,var(--altum-grid-item-col-sm,var(--altum-grid-item-col-xs,auto))));grid-row:var(--altum-grid-item-row-lg,var(--altum-grid-item-row-md,var(--altum-grid-item-row-sm,var(--altum-grid-item-row-xs,auto))))}}@media (min-width:1280px){.Grid_P3cvG{grid-column:var(--altum-grid-item-col-xl,var(--altum-grid-item-col-lg,var(--altum-grid-item-col-md,var(--altum-grid-item-col-sm,var(--altum-grid-item-col-xs,auto)))));grid-row:var(--altum-grid-item-row-xl,var(--altum-grid-item-row-lg,var(--altum-grid-item-row-md,var(--altum-grid-item-row-sm,var(--altum-grid-item-row-xs,auto)))))}}";const i={grid:"Grid_h49fk",gridItem:"Grid_P3cvG"};(function(r){if(!(typeof document>"u")){var a=document.createElement("style");a.textContent=r,document.head.appendChild(a)}})(m);export{i as default};
@@ -0,0 +1 @@
1
+ "use client";const s={xs:0,sm:600,md:768,lg:1024,xl:1280},l=["xs","sm","md","lg","xl"],a={none:"0",xs:"var(--altum-g-space-1)",sm:"var(--altum-g-space-2)",md:"var(--altum-g-space-3)",lg:"var(--altum-g-space-4)",xl:"var(--altum-g-space-6)"};function f(t){return typeof t=="number"?`${t}px`:t in a?a[t]:t}function p(t){return typeof t=="number"?`${t}px`:t}function m(t){return typeof t=="number"?`repeat(${t}, minmax(0, 1fr))`:t}function c(t,r){const o=p(r);return`repeat(${t==="autoFit"?"auto-fit":"auto-fill"}, minmax(${o}, 1fr))`}function v(t,r,o,e){for(const n of l){const u=r[n];if(u!==void 0){const i=e(u);i!==void 0&&(t[`${o}-${n}`]=i)}}}function d(t,r,o){if(r!==void 0&&o!==void 0)return`${r} / ${o}`;if(r!==void 0&&t!==void 0)return`${r} / span ${t}`;if(t!==void 0)return`span ${t}`;if(r!==void 0)return String(r)}function $(t){if(t!==void 0)return`span ${t}`}function x(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}export{s as GRID_BREAKPOINTS,v as applyAdaptiveVars,x as isAdaptiveValue,c as resolveAutoColumnsTemplate,m as resolveColumnsTemplate,f as resolveGapCss,d as resolveGridColumnValue,$ as resolveGridRowValue};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as i,jsxs as v,Fragment as Ve}from"react/jsx-runtime";import{forwardRef as Te,useId as Fe,useRef as X,useState as p,useEffect as E,useMemo as oe,useCallback as D}from"react";import{Box as le}from"../Box/Box.js";import{Button as se}from"../Button/Button.js";import{Layout as Ae}from"../Layout/Layout.js";import{Overlay as Ze}from"../Overlay/Overlay.js";import{cn as ce}from"../../utils/cn.js";import{composeEventHandlers as qe}from"../../utils/composeEvents.js";import{loadImageFromSrc as Ke,getMinCoverScale as We,getDisplaySize as I,clampOffset as T,exportCroppedImage as Ge}from"./ImageCrop.utils.js";import a from"./ImageCrop.module.css.js";import{useLocale as Je}from"../../locales/localeContext.js";import{DialogBase as z}from"../../base/DialogBase/DialogBase.js";const U=1,P=4,me=.1,de=Te(function({open:ue,onClose:pe,onOpenChange:fe,file:N=null,src:he=null,shape:F="circle",cropSize:f=280,outputSize:ge=512,title:we,confirmLabel:ve,cancelLabel:ye,className:Ce,style:be,onCrop:A,onClick:xe,...ke},Le){const h=ue,y=()=>{pe(),fe?.(!1)},{t:l}=Je(),Z=Fe(),Xe=we??l("imageCrop.title"),Ee=ve??l("imageCrop.confirm"),ze=ye??l("imageCrop.cancel"),C=X(null),S=X(null),$=X(null),[q,Ne]=p({width:400,height:400}),[Se,K]=p(null),[n,W]=p(null),[s,b]=p(0),[c,x]=p(0),[m,k]=p(1),[j,G]=p(!1),[H,Y]=p(null),d=Se??he??null;E(()=>{if(!h||!C.current)return;const e=C.current,r=()=>{const o=e.getBoundingClientRect();Ne({width:o.width,height:o.height})};r();const t=new ResizeObserver(r);return t.observe(e),()=>t.disconnect()},[h,d]),E(()=>{if(!h||!N){K(r=>(r&&URL.revokeObjectURL(r),null));return}const e=URL.createObjectURL(N);return K(e),()=>URL.revokeObjectURL(e)},[N,h]),E(()=>{if(!h||!d){W(null),k(1),b(0),x(0),Y(null),S.current=null;return}let e=!1;return Y(null),Ke(d,{errorMessage:l("imageCrop.loadError")}).then(r=>{e||(S.current=r,W({width:r.naturalWidth,height:r.naturalHeight}),k(1),b(0),x(0))}).catch(r=>{e||Y(r instanceof Error?r.message:l("imageCrop.loadError"))}),()=>{e=!0}},[d,h,l]);const g=oe(()=>n?We(n,f):1,[f,n]),O=oe(()=>n?I(n,g,m):{width:0,height:0},[g,n,m]),J=X({natural:n,baseScale:g,cropSize:f}),L=X(m);E(()=>{J.current={natural:n,baseScale:g,cropSize:f},L.current=m});const Q=D(()=>{$.current=null},[]),w=D(e=>{const r=$.current,t=J.current;if(!r||!t.natural)return;if(r.type==="pan"){const je=e.clientX-r.startX,He=e.clientY-r.startY,ie=I(t.natural,t.baseScale,L.current),ae=T(r.originOffsetX+je,r.originOffsetY+He,ie.width,ie.height,t.cropSize);b(ae.offsetX),x(ae.offsetY);return}const o=C.current?.getBoundingClientRect();if(!o)return;const B=o.left+o.width/2+r.originOffsetX,De=o.top+o.height/2+r.originOffsetY,Ie=e.clientX-B,Ue=e.clientY-De,Pe=Math.hypot(r.startVecX,r.startVecY)||1,$e=Math.hypot(Ie,Ue)/Pe,V=Math.min(P,Math.max(U,r.originZoom*$e)),te=I(t.natural,t.baseScale,V),ne=T(r.originOffsetX,r.originOffsetY,te.width,te.height,t.cropSize);k(V),b(ne.offsetX),x(ne.offsetY),L.current=V},[]),u=D(()=>{Q(),window.removeEventListener("pointermove",w),window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",u)},[Q,w]),_=D(e=>{$.current=e,window.addEventListener("pointermove",w),window.addEventListener("pointerup",u),window.addEventListener("pointercancel",u)},[w,u]);E(()=>()=>{window.removeEventListener("pointermove",w),window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",u)},[w,u]);const Ye=e=>{e.button!==0||!n||(e.preventDefault(),e.currentTarget.setPointerCapture?.(e.pointerId),_({type:"pan",startX:e.clientX,startY:e.clientY,originOffsetX:s,originOffsetY:c}))},Oe=e=>{if(e.button!==0||!n)return;e.preventDefault(),e.stopPropagation(),e.currentTarget.setPointerCapture?.(e.pointerId);const r=C.current?.getBoundingClientRect();if(!r)return;const t=r.left+r.width/2+s,o=r.top+r.height/2+c;_({type:"scale",startX:e.clientX,startY:e.clientY,originZoom:m,originOffsetX:s,originOffsetY:c,startVecX:e.clientX-t,startVecY:e.clientY-o})},Me=async()=>{if(!n||!S.current||!A){y();return}G(!0);try{const e=await Ge({image:S.current,natural:n,baseScale:g,zoom:m,offsetX:s,offsetY:c,cropSize:f,outputSize:ge,shape:F,exportErrorMessage:l("imageCrop.exportError"),fileName:(()=>{const r=N?.name?.replace(/\.\w+$/,"");return r?`${r}-cropped.png`:"cropped.png"})()});A(e),y()}catch(e){Y(e instanceof Error?e.message:l("imageCrop.cropError"))}finally{G(!1)}},Re=e=>{let r=m;if(e.key==="ArrowUp"||e.key==="ArrowRight")r=m+me;else if(e.key==="ArrowDown"||e.key==="ArrowLeft")r=m-me;else if(e.key==="Home")r=U;else if(e.key==="End")r=P;else return;e.preventDefault();const t=Math.min(P,Math.max(U,r));if(!n){k(t),L.current=t;return}const o=I(n,g,t),B=T(s,c,o.width,o.height,f);k(t),b(B.offsetX),x(B.offsetY),L.current=t},M=O.width/2,R=O.height/2,ee=Math.max(24,q.width/2-10),re=Math.max(24,q.height/2-10),Be=[{key:"nw",x:s-M,y:c-R,cursor:"nwse-resize"},{key:"ne",x:s+M,y:c-R,cursor:"nesw-resize"},{key:"se",x:s+M,y:c+R,cursor:"nwse-resize"},{key:"sw",x:s-M,y:c+R,cursor:"nesw-resize"}].map(e=>({...e,viewX:Math.min(ee,Math.max(-ee,e.x)),viewY:Math.min(re,Math.max(-re,e.y))}));return i(Ze,{ref:Le,variant:"modal",purpose:"lightbox",open:h,onClose:y,backdropVariant:"strong",backdropBlur:"md","aria-labelledby":Z,asChild:!1,children:(e,r)=>i(le,{as:"div",variant:"floating",padding:"none",ref:r,...ke,role:e.role,"aria-modal":e["aria-modal"],"aria-labelledby":e["aria-labelledby"],className:ce(a.panel,e.className,Ce),style:{...e.style,...be},onClick:qe(xe,e.onClick),children:i(z.Provider,{onClose:y,titleId:Z,children:v(Ae,{children:[v(z.Header,{children:[i(z.Title,{as:"h2",children:Xe}),i("p",{className:a.hint,children:l("imageCrop.hint")})]}),i(z.Body,{children:v("div",{ref:C,className:a.stage,style:{"--altum-image-crop-size":`${f}px`},children:[H&&i("div",{className:a.error,role:"alert",children:H}),v(le,{variant:"overlay",padding:"none",className:a.viewport,children:[d&&n&&v(Ve,{children:[i("div",{className:a.imageLayer,style:{width:O.width,height:O.height,transform:`translate(calc(-50% + ${s}px), calc(-50% + ${c}px))`},onPointerDown:Ye,children:i("img",{src:d,alt:"",draggable:!1,className:a.image})}),i("div",{className:ce(a.cropFrame,F==="circle"?a.cropCircle:a.cropSquare),"aria-hidden":!0})]}),!d&&!H&&i("div",{className:a.placeholder,children:l("imageCrop.choose")})]}),d&&n&&i("div",{className:a.handlesLayer,children:Be.map(t=>i("div",{role:"slider",tabIndex:0,className:a.handle,style:{transform:`translate(-50%, -50%) translate(${t.viewX}px, ${t.viewY}px)`,cursor:t.cursor},"aria-label":l("imageCrop.scaleHandle",{corner:t.key}),"aria-valuemin":U,"aria-valuemax":P,"aria-valuenow":Number(m.toFixed(2)),onPointerDown:Oe,onKeyDown:Re},t.key))})]})}),v(z.Footer,{className:a.footer,children:[i(se,{variant:"secondary",size:"sm",onClick:y,disabled:j,children:ze}),i(se,{variant:"primary",size:"sm",onClick:Me,disabled:j||!n,loading:j,children:Ee})]})]})})})})});de.displayName="ImageCrop";export{de as ImageCrop};
@@ -0,0 +1 @@
1
+ "use client";var a=".ImageCrop_VsqSJ{box-sizing:border-box;display:flex;flex-direction:column;pointer-events:auto;position:relative;width:min(100%,var(--altum-image-crop-panel-max));z-index:1}.ImageCrop_VsqSJ .ImageCrop_QNjqO{color:var(--altum-color-muted);font-size:var(--altum-g-font-size-sm);line-height:1.4;margin:0}.ImageCrop_VsqSJ .ImageCrop_br-aR{aspect-ratio:1;max-height:min(70vh,var(--altum-image-crop-stage-max));position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ImageCrop_VsqSJ .ImageCrop_FFs-o{inset:0;overflow:hidden;position:absolute}.ImageCrop_VsqSJ .ImageCrop_eighF{cursor:grab;left:50%;position:absolute;top:50%;will-change:transform}:is(.ImageCrop_VsqSJ .ImageCrop_eighF):active{cursor:grabbing}.ImageCrop_VsqSJ .ImageCrop_LAjrZ{-webkit-user-drag:none;display:block;height:100%;pointer-events:none;width:100%}.ImageCrop_VsqSJ .ImageCrop_FO4mc{border:2px solid var(--altum-overlay-on-scrim);box-shadow:0 0 0 9999px var(--altum-overlay-scrim-strong);box-sizing:border-box;height:var(--altum-image-crop-size);left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);width:var(--altum-image-crop-size);z-index:1}.ImageCrop_VsqSJ .ImageCrop_Ec10p{border-radius:50%}.ImageCrop_VsqSJ .ImageCrop_3d1Qs{border-radius:var(--altum-g-radius-sm)}.ImageCrop_VsqSJ .ImageCrop_lNRUd{inset:0;pointer-events:none;position:absolute;z-index:2}.ImageCrop_VsqSJ .ImageCrop_mBMAL{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--altum-color-brand);border:2px solid var(--altum-overlay-on-scrim);border-radius:var(--altum-g-radius-sm);box-shadow:var(--altum-shadow-brand);height:var(--altum-g-space-4);left:50%;margin:0;padding:0;pointer-events:auto;position:absolute;top:50%;transition:background-color .15s ease;width:var(--altum-g-space-4)}:is(.ImageCrop_VsqSJ .ImageCrop_mBMAL):focus-visible,:is(.ImageCrop_VsqSJ .ImageCrop_mBMAL):hover{background-color:var(--altum-color-brand-hover);outline:none}@media (prefers-reduced-motion:reduce){.ImageCrop_VsqSJ .ImageCrop_mBMAL{transition:none}}.ImageCrop_VsqSJ .ImageCrop_KGGho,.ImageCrop_VsqSJ.ImageCrop_wGZHl{align-items:center;color:var(--altum-color-muted);display:flex;font-size:var(--altum-g-font-size-base);inset:0;justify-content:center;padding:var(--altum-g-space-4);position:absolute;text-align:center;z-index:3}.ImageCrop_VsqSJ.ImageCrop_wGZHl{background-color:color-mix(in srgb,var(--altum-color-dropdown-bg) 88%,transparent);color:var(--altum-color-status-error)}.ImageCrop_VsqSJ .ImageCrop_Tf9YE{display:flex;gap:var(--altum-g-space-2);justify-content:flex-end}";const r={panel:"ImageCrop_VsqSJ",hint:"ImageCrop_QNjqO",stage:"ImageCrop_br-aR",viewport:"ImageCrop_FFs-o",imageLayer:"ImageCrop_eighF",image:"ImageCrop_LAjrZ",cropFrame:"ImageCrop_FO4mc",cropCircle:"ImageCrop_Ec10p",cropSquare:"ImageCrop_3d1Qs",handlesLayer:"ImageCrop_lNRUd",handle:"ImageCrop_mBMAL",placeholder:"ImageCrop_KGGho",error:"ImageCrop_wGZHl",footer:"ImageCrop_Tf9YE"};(function(o){if(!(typeof document>"u")){var e=document.createElement("style");e.textContent=o,document.head.appendChild(e)}})(a);export{r as default};
@@ -0,0 +1 @@
1
+ "use client";function L(e,t){return e.width<=0||e.height<=0||t<=0?1:Math.max(t/e.width,t/e.height)}function M(e,t,r){return{width:e.width*t*r,height:e.height*t*r}}function N(e,t,r,h,o){const s=Math.max(0,(r-o)/2),n=Math.max(0,(h-o)/2);return{offsetX:Math.min(s,Math.max(-s,e)),offsetY:Math.min(n,Math.max(-n,t))}}async function U(e,{errorMessage:t}){return new Promise((r,h)=>{const o=new Image;o.onload=()=>r(o),o.onerror=()=>h(new Error(t)),o.src=e})}async function X({image:e,natural:t,baseScale:r,zoom:h,offsetX:o,offsetY:s,cropSize:n,outputSize:a,shape:x,fileName:y="cropped.png",mimeType:m="image/png",quality:w=.92,exportErrorMessage:f}){const l=M(t,r,h),g=t.width/l.width,b=l.width/2-o,E=l.height/2-s,I=b-n/2,P=E-n/2,S=I*g,z=P*g,u=n*g,c=document.createElement("canvas");c.width=a,c.height=a;const i=c.getContext("2d");if(!i)throw new Error(f);x==="circle"&&(i.beginPath(),i.arc(a/2,a/2,a/2,0,Math.PI*2),i.closePath(),i.clip()),i.drawImage(e,S,z,u,u,0,0,a,a);const p=await new Promise((D,F)=>{c.toBlob(d=>{d?D(d):F(new Error(f))},m,w)}),C=c.toDataURL(m,w),v=new File([p],y,{type:m});return{blob:p,file:v,dataUrl:C}}export{N as clampOffset,X as exportCroppedImage,M as getDisplaySize,L as getMinCoverScale,U as loadImageFromSrc};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as i,jsxs as H}from"react/jsx-runtime";import{forwardRef as c,useState as M,useCallback as I,useMemo as W,createContext as O,useContext as Y}from"react";import{ButtonIcon as k}from"../ButtonIcon/ButtonIcon.js";import{IconChevronLeft as _}from"../../icons/icons/IconChevronLeft.js";import{IconChevronRight as q}from"../../icons/icons/IconChevronRight.js";import{useDocumentKeyDown as J}from"../../hooks/useDocumentKeyDown.js";import{useControlledStateWithCallback as Q}from"../../hooks/useControlledState.js";import{handleArrowPairKeyDown as U}from"../../utils/keyboard.js";import t from"./ImageGallery.module.css.js";import{cn as g}from"../../utils/cn.js";import{composeEventHandlers as x}from"../../utils/composeEvents.js";import{useLocale as h}from"../../locales/localeContext.js";function X(e,a){return e.map((l,r)=>typeof l=="string"?{src:l,alt:a(r+1)}:l)}const E=O(null);function v(e){const a=Y(E);if(!a)throw new Error(`${e} \u0434\u043E\u043B\u0436\u0435\u043D \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432\u043D\u0443\u0442\u0440\u0438 ImageGallery.Root`);return a}const C=c(function({images:e,index:a,defaultIndex:l=0,onIndexChange:r,className:n,enableKeyboard:m=!1,children:u,...s},y){const{t:N}=h(),f=X(e,d=>N("imageGallery.imageN",{index:d})),S=f.length>1,V=m&&S,[o,w]=Q(a,l,r),[P,$]=M("next"),p=I(d=>{d<0||d>=f.length||d===o||($(d>o?"next":"prev"),w(d))},[o,f.length,w]),b=I(()=>{p(o-1)},[o,p]),G=I(()=>{p(o+1)},[o,p]);J(d=>{U(d,b,G)},{enabled:V,target:"window"});const F=W(()=>({images:f,index:o,goTo:p,goPrev:b,goNext:G,canGoPrev:o>0,canGoNext:o<f.length-1,slideDirection:P}),[f,o,p,b,G,P]);return i(E.Provider,{value:F,children:i("div",{ref:y,className:g(t.gallery,!f.length&&t.empty,n),...s,children:u})})}),T=c(function({className:e,...a},l){return i("div",{ref:l,className:g(t.mainArea,e),...a})}),D=c(function({className:e,...a},l){const{images:r,index:n,slideDirection:m}=v("ImageGallery.Image"),{t:u}=h(),s=r[n];return s?i("img",{ref:l,src:s.src,alt:s.alt??u("imageGallery.imageN",{index:n+1}),className:g(t.mainImage,t[`slide_${m}`],e),draggable:!1,...a}):null}),B=c(function({className:e,...a},l){return i("div",{ref:l,className:g(t.viewport,e),...a})}),z=c(function({className:e,onClick:a,disabled:l,"aria-label":r,...n},m){const{goPrev:u,canGoPrev:s}=v("ImageGallery.Prev"),{t:y}=h();return i(k,{ref:m,className:g(t.navBtn,e),variant:"ghost",shape:"circle",size:"md",icon:i(_,{size:22}),...n,"aria-label":r??y("imageGallery.prev"),disabled:!s||l,onClick:x(a,()=>{u()})})}),R=c(function({className:e,onClick:a,disabled:l,"aria-label":r,...n},m){const{goNext:u,canGoNext:s}=v("ImageGallery.Next"),{t:y}=h();return i(k,{ref:m,className:g(t.navBtn,e),variant:"ghost",shape:"circle",size:"md",icon:i(q,{size:22}),...n,"aria-label":r??y("imageGallery.next"),disabled:!s||l,onClick:x(a,()=>{u()})})}),K=c(function({className:e,...a},l){return i("div",{ref:l,className:g(t.thumbnails,e),...a})}),j=c(function({index:e,className:a,onClick:l,...r},n){const{images:m,index:u,goTo:s}=v("ImageGallery.Thumb"),{t:y}=h(),N=m[e];return N?i("button",{ref:n,type:"button",className:g(t.thumbnailBtn,e===u&&t.active,a),"aria-label":N.alt??y("imageGallery.imageN",{index:e+1}),"aria-current":e===u?"true":void 0,onClick:x(l,()=>{s(e)}),...r,children:i("img",{src:N.thumbnail??N.src,alt:"",className:t.thumbnailImage,draggable:!1})}):null}),A=c(function({className:e,...a},l){const{images:r,index:n}=v("ImageGallery.Counter");return r.length<2?null:H("div",{ref:l,className:g(t.counter,e),"aria-live":"polite",...a,children:[n+1," ","/"," ",r.length]})}),L=c(function({className:e,children:a,...l},r){const{images:n}=v("ImageGallery.Empty"),{t:m}=h();return n.length?null:i("span",{ref:r,className:g(t.emptyText,e),...l,children:a??m("imageGallery.empty")})});C.displayName="ImageGallery",T.displayName="ImageGallery.Viewport",D.displayName="ImageGallery.Image",B.displayName="ImageGallery.Nav",z.displayName="ImageGallery.Prev",R.displayName="ImageGallery.Next",K.displayName="ImageGallery.Thumbnails",j.displayName="ImageGallery.Thumb",A.displayName="ImageGallery.Counter",L.displayName="ImageGallery.Empty";const Z=Object.assign(C,{Root:C,Viewport:T,Image:D,Nav:B,Prev:z,Next:R,Thumbnails:K,Thumb:j,Counter:A,Empty:L});export{Z as ImageGallery};
@@ -0,0 +1 @@
1
+ "use client";var l=".ImageGallery_20B5K{display:flex;flex-direction:column;font-family:var(--altum-g-font-family-ui);gap:var(--altum-g-space-4);width:100%}.ImageGallery_20B5K .ImageGallery_viRPM{align-items:center;background-color:var(--altum-color-surface);border:1px dashed var(--altum-color-border);border-radius:var(--altum-g-radius);justify-content:center;min-height:var(--altum-image-gallery-viewport-min)}.ImageGallery_20B5K .ImageGallery_9qVXv{color:var(--altum-color-muted);font-size:var(--altum-g-font-size-base)}.ImageGallery_20B5K .ImageGallery_-FEGS{align-items:center;display:flex;gap:var(--altum-g-space-2);position:relative;width:100%}.ImageGallery_20B5K .ImageGallery_ScF3c{align-items:center;background-color:var(--altum-image-gallery-viewport-bg,var(--altum-color-surface));border:1px solid var(--altum-image-gallery-viewport-border,var(--altum-color-border));border-radius:var(--altum-g-radius);display:flex;flex:1;height:var(--altum-image-gallery-viewport-height,min(60vh,480px));justify-content:center;min-width:0;overflow:hidden;position:relative}.ImageGallery_20B5K .ImageGallery_kuumv{height:auto;max-height:100%;max-width:100%;object-fit:contain;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto;will-change:transform,opacity}.ImageGallery_20B5K .ImageGallery_H6NBE{animation:ImageGallery_PAexP .42s cubic-bezier(.16,1,.3,1)}.ImageGallery_20B5K .ImageGallery_QibNu{animation:ImageGallery_Z6aVX .42s cubic-bezier(.16,1,.3,1)}.ImageGallery_20B5K .ImageGallery_ro8Ub{background-color:var(--altum-image-gallery-nav-bg,var(--altum-color-surface))!important;border:1px solid var(--altum-image-gallery-nav-border,var(--altum-color-border))!important;box-shadow:var(--altum-shadow-surface);color:var(--altum-image-gallery-nav-color,inherit);flex-shrink:0}:is(.ImageGallery_20B5K .ImageGallery_ro8Ub):disabled{opacity:.35;pointer-events:none}.ImageGallery_20B5K .ImageGallery_nCrhJ{display:flex;gap:var(--altum-g-space-2);overflow-x:auto;padding:var(--altum-g-space-1) var(--altum-g-space-1) var(--altum-g-space-2);scroll-behavior:smooth;scrollbar-width:thin}.ImageGallery_20B5K .ImageGallery_jcfWL{background:none;border:2px solid transparent;border-radius:var(--altum-g-radius-sm);cursor:pointer;flex:0 0 auto;height:var(--altum-image-gallery-thumb-height);opacity:.65;overflow:hidden;padding:0;transition:var(--altum-transition-smooth);width:var(--altum-image-gallery-thumb-width)}:is(.ImageGallery_20B5K .ImageGallery_jcfWL):hover:not(:disabled){opacity:.9}.ImageGallery_obGnC:is(.ImageGallery_20B5K .ImageGallery_jcfWL){border-color:var(--altum-color-brand);box-shadow:0 0 0 1px var(--altum-color-brand);opacity:1}:is(.ImageGallery_20B5K .ImageGallery_jcfWL) .ImageGallery_DlhBH{display:block;height:100%;object-fit:cover;pointer-events:none;width:100%}.ImageGallery_20B5K .ImageGallery_MdBOx{align-self:center;color:var(--altum-image-gallery-counter-color,var(--altum-color-muted));font-size:var(--altum-g-font-size-2xs);font-weight:var(--altum-g-font-weight-medium)}@keyframes ImageGallery_PAexP{0%{opacity:0;transform:translateX(var(--altum-g-space-7)) scale(.98)}to{opacity:1;transform:translateX(0) scale(1)}}@keyframes ImageGallery_Z6aVX{0%{opacity:0;transform:translateX(calc(var(--altum-g-space-7)*-1)) scale(.98)}to{opacity:1;transform:translateX(0) scale(1)}}@media (prefers-reduced-motion:reduce){.ImageGallery_H6NBE,.ImageGallery_QibNu{animation:none;transform:none}}";const r={gallery:"ImageGallery_20B5K",empty:"ImageGallery_viRPM",emptyText:"ImageGallery_9qVXv",mainArea:"ImageGallery_-FEGS",viewport:"ImageGallery_ScF3c",mainImage:"ImageGallery_kuumv",slide_next:"ImageGallery_H6NBE",gallerySlideNext:"ImageGallery_PAexP",slide_prev:"ImageGallery_QibNu",gallerySlidePrev:"ImageGallery_Z6aVX",navBtn:"ImageGallery_ro8Ub",thumbnails:"ImageGallery_nCrhJ",thumbnailBtn:"ImageGallery_jcfWL",active:"ImageGallery_obGnC",thumbnailImage:"ImageGallery_DlhBH",counter:"ImageGallery_MdBOx"};(function(e){if(!(typeof document>"u")){var a=document.createElement("style");a.textContent=e,document.head.appendChild(a)}})(l);export{r as default};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as e,jsxs as l}from"react/jsx-runtime";import{forwardRef as v}from"react";import{Overlay as y}from"../Overlay/Overlay.js";import{Box as N}from"../Box/Box.js";import{ImageGallery as a}from"../ImageGallery/ImageGallery.js";import{ButtonIcon as k}from"../ButtonIcon/ButtonIcon.js";import{IconCross as L}from"../../icons/icons/IconCross.js";import{cn as B}from"../../utils/cn.js";import{composeEventHandlers as j}from"../../utils/composeEvents.js";import r from"./ImageLightbox.module.css.js";import{useLocale as w}from"../../locales/localeContext.js";const t=v(function({open:m,onClose:s,onOpenChange:c,images:d,index:p,defaultIndex:g=0,onIndexChange:f,className:h,onClick:x,...b},C){const{t:i}=w(),u=i("imageLightbox.ariaLabel"),n=()=>{s(),c?.(!1)};return e(y,{ref:C,variant:"modal",purpose:"lightbox",open:m,onClose:n,backdropVariant:"strong",backdropBlur:"md","aria-label":u,asChild:!1,children:(o,I)=>l("div",{ref:I,className:B(r.lightboxStage,o.className,h),style:o.style,...b,role:o.role,"aria-modal":o["aria-modal"],"aria-label":o["aria-label"],onClick:j(x,o.onClick),children:[e(k,{className:r.closeBtn,variant:"ghost",shape:"circle",size:"md","aria-label":i("imageLightbox.close"),onClick:n,icon:e(L,{size:20})}),e(N,{variant:"overlay",padding:"md",className:r.lightboxContent,children:l(a,{images:d,index:p,defaultIndex:g,onIndexChange:f,enableKeyboard:!0,className:r.gallery,children:[l(a.Viewport,{children:[e(a.Prev,{}),e(a.Image,{}),e(a.Next,{})]}),e(a.Counter,{})]})})]})})});t.displayName="ImageLightbox";export{t as ImageLightbox};
@@ -0,0 +1 @@
1
+ "use client";var a=".ImageLightbox_eOvxn{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:center;overflow:visible;padding:var(--altum-g-space-6);pointer-events:none;position:relative;width:100%}.ImageLightbox_0WJys{max-height:calc(100vh - 48px);pointer-events:auto;position:relative;width:min(100%,960px);z-index:1}.ImageLightbox_gfE0G{--altum-image-gallery-counter-color:var(--altum-overlay-text-muted);--altum-image-gallery-viewport-height:min(72vh,640px);--altum-image-gallery-viewport-bg:transparent;--altum-image-gallery-viewport-border:transparent;--altum-image-gallery-nav-bg:var(--altum-overlay-control-bg);--altum-image-gallery-nav-border:var(--altum-overlay-control-border);--altum-image-gallery-nav-color:var(--altum-overlay-on-scrim)}.ImageLightbox_KjbkK{background-color:var(--altum-overlay-control-bg)!important;border:1px solid var(--altum-overlay-control-border)!important;color:var(--altum-overlay-on-scrim);pointer-events:auto;position:absolute!important;right:var(--altum-g-space-5);top:var(--altum-g-space-5);z-index:2}.ImageLightbox_KjbkK:hover:not(:disabled){background-color:var(--altum-overlay-control-hover)!important}.ImageLightbox_KjbkK:focus-visible{outline:2px solid var(--altum-overlay-on-scrim);outline-offset:var(--altum-focus-ring-offset)}";const o={lightboxStage:"ImageLightbox_eOvxn",lightboxContent:"ImageLightbox_0WJys",gallery:"ImageLightbox_gfE0G",closeBtn:"ImageLightbox_KjbkK"};(function(t){if(!(typeof document>"u")){var e=document.createElement("style");e.textContent=t,document.head.appendChild(e)}})(a);export{o as default};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as r}from"react/jsx-runtime";import{forwardRef as l}from"react";import{Box as T}from"../Box/Box.js";import a from"./Item.module.css.js";import{cn as o}from"../../utils/cn.js";import{MediaRowBase as c}from"../../base/MediaRowBase/MediaRowBase.js";const u=l(function({itemAs:i="div",...e},n){const t=i==="button"?e.type??"button":void 0;return r(T,{ref:n,as:i,...e,...t!=null?{type:t}:{}})});u.displayName="Item.Surface";const y=l(function({children:i,size:e="md",variant:n="ghost",interactive:t=!1,as:s,className:m,style:A,onClick:d,role:f,...C},M){const b=s??(t&&d!=null&&f==null?"button":"div");return r(c,{ref:M,as:u,itemAs:b,variant:n,padding:"none",className:o(a.item,a[e],t?a.interactive:"",m),style:A,"data-size":e,...C,role:f,onClick:d,children:i})}),p=l(function({children:i,variant:e="icon",className:n,style:t,...s},m){return r(c.Media,{ref:m,className:o(a.media,a[`media_${e}`],n),style:t,"data-variant":e,...s,children:i})}),N=l(function({children:i,className:e,style:n,...t},s){return r(c.Content,{ref:s,className:e,style:n,...t,children:i})}),h=l(function({children:i,className:e,style:n,...t},s){return r(c.Title,{ref:s,className:o(a.title,e),style:n,...t,children:i})}),v=l(function({children:i,className:e,style:n,...t},s){return r(c.Description,{ref:s,className:o(a.description,e),style:n,...t,children:i})}),I=l(function({children:i,className:e,style:n,...t},s){return r(c.Actions,{ref:s,className:o(a.actions,e),style:n,...t,children:i})});y.displayName="Item",p.displayName="Item.Media",N.displayName="Item.Content",h.displayName="Item.Title",v.displayName="Item.Description",I.displayName="Item.Actions";const g=Object.assign(y,{Media:p,Content:N,Title:h,Description:v,Actions:I});export{g as Item};
@@ -0,0 +1 @@
1
+ "use client";var a='.Item_c0x-9{--altum-item-media-lg:calc(var(--altum-g-space-8) + var(--altum-g-space-2));border-radius:var(--altum-g-radius);color:var(--altum-color-field-text);font-family:var(--altum-g-font-family-ui);padding:var(--altum-g-space-2) var(--altum-g-space-3);position:relative;text-align:start;transition:var(--altum-transition-smooth);width:100%}.Item_c0x-9:is(button){-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}.Item_c0x-9.Item_GRryI{gap:var(--altum-g-space-2);padding:var(--altum-g-space-1) var(--altum-g-space-2)}.Item_c0x-9.Item_oB8Iz{gap:var(--altum-g-space-4);padding:var(--altum-g-space-3) var(--altum-g-space-4)}.Item_c0x-9[data-size=sm] .Item_7dXq9{height:var(--altum-g-space-6);width:var(--altum-g-space-6)}.Item_c0x-9:not([data-size]) .Item_7dXq9,.Item_c0x-9[data-size=md] .Item_7dXq9{height:var(--altum-g-space-8);width:var(--altum-g-space-8)}.Item_c0x-9[data-size=lg] .Item_7dXq9{height:var(--altum-item-media-lg);width:var(--altum-item-media-lg)}.Item_c0x-9.Item_GRryI .Item_L7hoN,.Item_c0x-9.Item_oB8Iz .Item_L7hoN{font-size:var(--altum-g-font-size-sm)}.Item_c0x-9 .Item_7dXq9{color:var(--altum-field-label)}.Item_c0x-9 .Item_L7hoN{color:var(--altum-color-field-text);font-size:var(--altum-g-font-size-base)}.Item_c0x-9 .Item_B-ruZ{color:var(--altum-color-ink-muted);font-size:var(--altum-g-font-size-2xs);line-height:var(--altum-g-line-height-2xs)}.Item_c0x-9 .Item_zgxWz{gap:var(--altum-g-space-1)}.Item_4iApM{cursor:pointer}.Item_4iApM:after{background:transparent;border-radius:inherit;content:"";inset:0;pointer-events:none;position:absolute;transition:background .2s ease-in-out}.Item_4iApM:hover:not(:disabled):after{background:color-mix(in srgb,var(--altum-color-text-secondary) 6%,transparent)}.Item_4iApM:active:not(:disabled):after{background:color-mix(in srgb,var(--altum-color-text-secondary) 10%,transparent)}@media (prefers-reduced-motion:reduce){.Item_4iApM:after{transition:none}}.Item_Z-ge7{background:var(--altum-color-brand-tint);color:var(--altum-color-brand-tint-text)}.Item_Eid4d,.Item_Z-ge7{border-radius:var(--altum-g-radius-sm)}.Item_Eid4d,.Item_xHsEG{background:var(--altum-color-surface-active)}.Item_xHsEG{border-radius:50%}';const r={item:"Item_c0x-9",sm:"Item_GRryI",lg:"Item_oB8Iz",media:"Item_7dXq9",title:"Item_L7hoN",description:"Item_B-ruZ",actions:"Item_zgxWz",interactive:"Item_4iApM",media_icon:"Item_Z-ge7",media_image:"Item_Eid4d",media_avatar:"Item_xHsEG"};(function(e){if(!(typeof document>"u")){var t=document.createElement("style");t.textContent=e,document.head.appendChild(t)}})(a);export{r as default};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as n}from"react/jsx-runtime";import{forwardRef as m}from"react";import t from"./Kbd.module.css.js";import{cn as c}from"../../utils/cn.js";const p=/^[↑↓←→⟵⟶⇧⌃⌥⌘]$/u,d=m(function({children:r,symbol:o,className:e,...s},a){const l=o??(typeof r=="string"&&p.test(r.trim()));return n("kbd",{ref:a,className:c(t.kbd,l?t.kbdSymbol:"",e),...s,children:r})});d.displayName="Kbd";const i=m(function({children:r,className:o,...e},s){return n("span",{ref:s,className:c(t.kbdGroup,o),...e,role:"group",children:r})});i.displayName="KbdGroup";export{d as Kbd,i as KbdGroup};
@@ -0,0 +1 @@
1
+ "use client";var a=".Kbd_jgbYx{align-items:center;background:var(--altum-color-panel-bg);border:1px solid var(--altum-color-panel-border);border-radius:var(--altum-g-radius-sm);box-shadow:inset 0 -1px 0 color-mix(in srgb,var(--altum-color-panel-border) 80%,transparent);box-sizing:border-box;color:var(--altum-color-field-text);display:inline-flex;font-family:var(--altum-g-font-family-mono);font-size:var(--altum-g-font-size-xs);font-weight:var(--altum-g-font-weight-medium);justify-content:center;line-height:1;min-height:var(--altum-g-space-5);min-width:var(--altum-g-space-5);padding:0 var(--altum-g-space-1);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.Kbd_LCuSl{transform:translateY(.5px)}.Kbd_qCORQ{align-items:center;color:var(--altum-color-ink-muted);display:inline-flex;font-size:var(--altum-g-font-size-2xs);gap:var(--altum-g-space-1);line-height:var(--altum-g-line-height-2xs);vertical-align:middle}";const n={kbd:"Kbd_jgbYx",kbdSymbol:"Kbd_LCuSl",kbdGroup:"Kbd_qCORQ"};(function(t){if(!(typeof document>"u")){var e=document.createElement("style");e.textContent=t,document.head.appendChild(e)}})(a);export{n as default};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as f}from"react/jsx-runtime";import{forwardRef as u}from"react";import{cn as w}from"../../utils/cn.js";import{LayoutItem as y}from"./LayoutItem.js";import{justifyClass as d,alignClass as g,gapClass as C}from"./layoutClasses.js";import o from"./flexPrimitives.module.css.js";const R=u(function({children:t,gap:s="sm",align:e="center",justify:a="start",wrap:l=!0,className:m,role:i,style:n,...p},c){return f("div",{ref:c,className:w(o.base,o.controlRow,!l&&o.controlRowNowrap,C(s),g(e),d(a),m),style:n,...p,role:i??"group",children:t})}),r=R;r.Item=y,r.displayName="ControlRow";export{r as ControlRow};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as c}from"react/jsx-runtime";import{forwardRef as u}from"react";import{cn as d}from"../../utils/cn.js";import{justifyClass as y,alignClass as g,gapClass as N}from"./layoutClasses.js";import r from"./flexPrimitives.module.css.js";const s=u(function({children:e,gap:i="sm",align:a="center",justify:n="start",wrap:t=!0,className:l,as:o="div",style:m,...f},p){return c(o,{ref:p,className:d(r.base,r.inline,!t&&r.inlineNowrap,N(i),g(a),y(n),l),style:m,...f,children:e})});s.displayName="Inline";export{s as Inline};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as n}from"react/jsx-runtime";import{forwardRef as l}from"react";import{GridItem as S,Grid as C}from"../Grid/Grid.js";import{cn as m}from"../../utils/cn.js";import s from"./Layout.module.css.js";import{ControlRow as p}from"./ControlRow.js";import{Inline as N}from"./Inline.js";import{LayoutItem as h}from"./LayoutItem.js";import{Split as L}from"./Split.js";import{Stack as k}from"./Stack.js";const f=l(function({children:t,className:e,as:o="div",style:r,...a},i){return n(o,{ref:i,className:m(s.root,e),style:r,...a,children:t})}),y=l(function({children:t,className:e,sticky:o=!1,as:r="header",style:a,...i},c){return n(r,{ref:c,className:m(s.header,o&&s.headerSticky,e),style:a,...i,children:t})}),d=l(function({children:t,className:e,as:o="div",style:r,...a},i){return n(o,{ref:i,className:m(s.content,e),style:r,...a,children:t})}),u=l(function({children:t,className:e,sticky:o=!1,align:r="start",as:a="footer",style:i,...c},I){return n(a,{ref:I,className:m(s.footer,s[`footerAlign_${r}`],o&&s.footerSticky,e),style:i,...c,children:t})});f.displayName="Layout",y.displayName="Layout.Header",d.displayName="Layout.Content",u.displayName="Layout.Footer";const G=Object.assign(f,{Header:y,Content:d,Footer:u,Stack:k,Inline:N,Split:L,ControlRow:p,Item:h,Grid:C,GridItem:S});export{p as ControlRow,N as Inline,G as Layout,d as LayoutContent,u as LayoutFooter,y as LayoutHeader,h as LayoutItem,f as LayoutRoot,L as Split,k as Stack};
@@ -0,0 +1 @@
1
+ "use client";var e=".Layout_tyzJ8{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:column;height:100%;min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;width:100%}.Layout_j6ao5{box-sizing:border-box;flex-shrink:0}.Layout_j6ao5.Layout_xOqXx{position:sticky;top:0;z-index:var(--altum-g-z-raised,1)}.Layout_Wa4rZ{box-sizing:border-box;flex:1 0 auto;min-width:0}.Layout_266Qh{align-items:center;box-sizing:border-box;display:flex;flex-shrink:0;gap:var(--altum-g-space-3)}.Layout_266Qh.Layout_g9Lq-{justify-content:flex-start}.Layout_266Qh.Layout_7gjHl{justify-content:center}.Layout_266Qh.Layout_KPvRY{justify-content:flex-end}.Layout_266Qh.Layout_hTuuZ{justify-content:space-between}.Layout_266Qh.Layout_aAxEf{bottom:0;position:sticky;z-index:var(--altum-g-z-raised,1)}";const a={root:"Layout_tyzJ8",header:"Layout_j6ao5",headerSticky:"Layout_xOqXx",content:"Layout_Wa4rZ",footer:"Layout_266Qh",footerAlign_start:"Layout_g9Lq-",footerAlign_center:"Layout_7gjHl",footerAlign_end:"Layout_KPvRY","footerAlign_space-between":"Layout_hTuuZ",footerSticky:"Layout_aAxEf"};(function(o){if(!(typeof document>"u")){var t=document.createElement("style");t.textContent=o,document.head.appendChild(t)}})(e);export{a as default};
@@ -0,0 +1 @@
1
+ "use client";const e={none:"gapNone",xs:"gapXs",sm:"gapSm",md:"gapMd",lg:"gapLg",xl:"gapXl"},t={start:"alignStart",center:"alignCenter",end:"alignEnd",baseline:"alignBaseline",stretch:"alignStretch"},n={start:"justifyStart",center:"justifyCenter",end:"justifyEnd",between:"justifyBetween",around:"justifyAround",evenly:"justifyEvenly"};export{t as LAYOUT_ALIGN_CLASS,e as LAYOUT_GAP_CLASS,n as LAYOUT_JUSTIFY_CLASS};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as l}from"react/jsx-runtime";import{forwardRef as c}from"react";import{cn as p}from"../../utils/cn.js";import r from"./flexPrimitives.module.css.js";const e=c(function({children:t,grow:m=!1,shrink:o=!0,className:i,style:s,as:a="div",...n},f){return l(a,{ref:f,className:p(r.item,m&&r.itemGrow,!o&&r.itemShrink0,i),style:s,...n,children:t})});e.displayName="LayoutItem";export{e as LayoutItem};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as p}from"react/jsx-runtime";import{forwardRef as n}from"react";import{cn as c}from"../../utils/cn.js";import{alignClass as f,gapClass as d}from"./layoutClasses.js";import r from"./flexPrimitives.module.css.js";const t=n(function({children:e,gap:i="md",align:s="center",className:l,style:a,...m},o){return p("div",{ref:o,className:c(r.base,r.split,d(i),f(s),l),style:a,...m,children:e})});t.displayName="Split";export{t as Split};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as n}from"react/jsx-runtime";import{forwardRef as p}from"react";import{cn as d}from"../../utils/cn.js";import{justifyClass as u,alignClass as y,gapClass as g}from"./layoutClasses.js";import s from"./flexPrimitives.module.css.js";const t=p(function({children:a,gap:r="md",align:e="stretch",justify:i="start",className:m,as:o="div",style:l,...c},f){return n(o,{ref:f,className:d(s.base,s.stack,g(r),y(e),u(i),m),style:l,...c,children:a})});t.displayName="Stack";export{t as Stack};
@@ -0,0 +1 @@
1
+ "use client";var u=".Layout_3ut1k{box-sizing:border-box;display:flex;min-width:0;width:100%}.Layout_3ut1k.Layout_Zrb4q{gap:0}.Layout_3ut1k.Layout_fuezM{gap:var(--altum-g-space-1)}.Layout_3ut1k.Layout_-VTxA{gap:var(--altum-g-space-2)}.Layout_3ut1k.Layout_2UKyJ{gap:var(--altum-g-space-3)}.Layout_3ut1k.Layout_OwwGD{gap:var(--altum-g-space-4)}.Layout_3ut1k.Layout_bHROH{gap:var(--altum-g-space-6)}.Layout_3ut1k.Layout_Ptl-W{align-items:flex-start}.Layout_3ut1k.Layout_hh53a{align-items:center}.Layout_3ut1k.Layout_aSK3S{align-items:flex-end}.Layout_3ut1k.Layout_LHcAN{align-items:baseline}.Layout_3ut1k.Layout_Lo1b-{align-items:stretch}.Layout_3ut1k.Layout_kEWll{justify-content:flex-start}.Layout_3ut1k.Layout_v9TFE{justify-content:center}.Layout_3ut1k.Layout_m8Rw0{justify-content:flex-end}.Layout_3ut1k.Layout_0Tslv{justify-content:space-between}.Layout_3ut1k.Layout_rFGkb{justify-content:space-around}.Layout_3ut1k.Layout_3-8VU{justify-content:space-evenly}.Layout_3ut1k.Layout_XkwLZ{flex-direction:column}.Layout_3ut1k.Layout_B99n-{flex-direction:row;flex-wrap:wrap}.Layout_3ut1k.Layout_n2XDf{flex-wrap:nowrap}.Layout_3ut1k.Layout_vmUuB{justify-content:space-between}.Layout_3ut1k.Layout_b8tpS,.Layout_3ut1k.Layout_vmUuB{align-items:center;flex-direction:row;flex-wrap:wrap}.Layout_3ut1k.Layout_SO-uG{flex-wrap:nowrap}.Layout_Z5g6Z{box-sizing:border-box;min-width:0}.Layout_Z5g6Z.Layout_YDr-C{flex:1 1 auto}.Layout_Z5g6Z.Layout_OGEL6{flex-shrink:0}";const o={base:"Layout_3ut1k",gapNone:"Layout_Zrb4q",gapXs:"Layout_fuezM",gapSm:"Layout_-VTxA",gapMd:"Layout_2UKyJ",gapLg:"Layout_OwwGD",gapXl:"Layout_bHROH",alignStart:"Layout_Ptl-W",alignCenter:"Layout_hh53a",alignEnd:"Layout_aSK3S",alignBaseline:"Layout_LHcAN",alignStretch:"Layout_Lo1b-",justifyStart:"Layout_kEWll",justifyCenter:"Layout_v9TFE",justifyEnd:"Layout_m8Rw0",justifyBetween:"Layout_0Tslv",justifyAround:"Layout_rFGkb",justifyEvenly:"Layout_3-8VU",stack:"Layout_XkwLZ",inline:"Layout_B99n-",inlineNowrap:"Layout_n2XDf",split:"Layout_vmUuB",controlRow:"Layout_b8tpS",controlRowNowrap:"Layout_SO-uG",item:"Layout_Z5g6Z",itemGrow:"Layout_YDr-C",itemShrink0:"Layout_OGEL6"};(function(a){if(!(typeof document>"u")){var t=document.createElement("style");t.textContent=a,document.head.appendChild(t)}})(u);export{o as default};
@@ -0,0 +1 @@
1
+ "use client";import t from"./flexPrimitives.module.css.js";import{LAYOUT_JUSTIFY_CLASS as r,LAYOUT_ALIGN_CLASS as s,LAYOUT_GAP_CLASS as e}from"./Layout.types.js";function i(n){return t[e[n]]??t.gapMd}function a(n){return t[s[n]]??t.alignCenter}function u(n){return t[r[n]]??t.justifyStart}export{a as alignClass,t as flexStyles,i as gapClass,u as justifyClass};
@@ -0,0 +1 @@
1
+ "use client";import{jsxs as x,jsx as s}from"react/jsx-runtime";import{forwardRef as j,useRef as I,useId as O,useState as W}from"react";import y from"./LineChart.module.css.js";import{composeRefs as _}from"../../utils/composeRefs.js";import{useChartContainerSize as z}from"../../base/ChartBase/ChartBase.utils.js";import{linearYTicks as F,ChartBase as U,ChartYGrid as X,DEFAULT_CHART_PADDING as Z,chartCategoryClassName as q,ChartHoverBubble as J,ChartLegend as K,chartPlotRect as Q}from"../../base/ChartBase/ChartBase.js";const k=j(function({categories:g,datasets:d,height:R=300,className:A,...G},S){const C=I(null),N=O().replace(/:/g,""),h=z(C,R),[o,v]=W(null),m={...Z,right:20},{width:T,height:L}=Q(h.width,h.height,m),b=d.flatMap(e=>e.data),M=b.length?Math.max(...b):100,Y=F(M),n=e=>{const t=Math.max(1,g.length-1);return m.left+T/t*e},i=e=>m.top+L-e/(M||1)*L,B=e=>{if(e.length===0)return"";let t=`M ${n(0)} ${i(e[0])}`;for(let a=0;a<e.length-1;a++){const r=n(a),l=i(e[a]),f=n(a+1),c=i(e[a+1]),$=r+(f-r)/2,p=l,u=r+(f-r)/2;t+=` C ${$} ${p}, ${u} ${c}, ${f} ${c}`}return t},D=e=>{if(e.length===0)return"";const t=n(0),a=i(e[0]),r=i(0);let l=`M ${t} ${r} L ${t} ${a}`;for(let c=0;c<e.length-1;c++){const $=n(c),p=i(e[c]),u=n(c+1),w=i(e[c+1]),E=$+(u-$)/2,H=p,P=$+(u-$)/2;l+=` C ${E} ${H}, ${P} ${w}, ${u} ${w}`}const f=n(e.length-1);return l+=` L ${f} ${r} Z`,l};return x(U,{containerRef:_(S,C),className:A,...G,children:[x("svg",{className:y.chartSvg,width:h.width,height:h.height,children:[s("defs",{children:d.map((e,t)=>x("linearGradient",{id:`${N}-${t}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[s("stop",{offset:"0%",stopColor:e.color,stopOpacity:"0.25"}),s("stop",{offset:"100%",stopColor:e.color,stopOpacity:"0.0"})]},t))}),s(X,{ticks:Y,getY:i,x1:m.left,x2:h.width-m.right,labelX:m.left-10}),g.map((e,t)=>{const a=n(t);return s("text",{className:q(),x:a,y:h.height-m.bottom+20,textAnchor:"middle",children:e},t)}),d.map((e,t)=>s("path",{d:D(e.data),fill:`url(#${N}-${t})`},`area-${e.name}`)),d.map((e,t)=>s("path",{className:y.chartLine,d:B(e.data),style:{stroke:e.color}},e.name)),d.map(e=>e.data.map((t,a)=>{const r=n(a),l=i(t);return s("circle",{className:y.nodePoint,cx:r,cy:l,r:o?.x===r&&o?.y===l?6:4,fill:e.color,stroke:"var(--altum-color-surface)",strokeWidth:o?.x===r&&o?.y===l?3:1,onMouseEnter:f=>{v({x:r,y:l,label:g[a],datasetName:e.name,value:t,color:e.color})},onMouseLeave:()=>v(null)},`${e.name}-${a}`)})),o&&s(J,{x:o.x,y:o.y,canvasWidth:h.width,color:o.color,label:`${o.label} \xB7 ${o.datasetName}: ${o.value}`})]}),s(K,{items:d})]})});k.displayName="LineChart";export{k as LineChart};
@@ -0,0 +1 @@
1
+ "use client";var n=".LineChart_bH88c{display:block;height:100%;overflow:visible;width:100%}.LineChart_uGMTd{fill:none;stroke-width:3;stroke-linecap:round;transition:stroke-dasharray .5s ease-in-out}.LineChart_-sTy4{cursor:pointer;transition:r .25s cubic-bezier(.175,.885,.32,1.275),stroke-width .25s}.LineChart_-sTy4:hover:not(:disabled){stroke-width:4}";const i={chartSvg:"LineChart_bH88c",chartLine:"LineChart_uGMTd",nodePoint:"LineChart_-sTy4"};(function(t){if(!(typeof document>"u")){var e=document.createElement("style");e.textContent=t,document.head.appendChild(e)}})(n);export{i as default};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as f}from"react/jsx-runtime";import{forwardRef as u}from"react";import r from"./Link.module.css.js";import{cn as k}from"../../utils/cn.js";import{Slot as N}from"../../utils/slot.js";const c=u(function({variant:d="primary",status:p="default",size:a,weight:t,className:g,children:i,asChild:h=!1,target:e,rel:l,...n},o){const m=k(r.link,r[d],p==="danger"?r.danger:"",a&&r[a],t&&r[t],g),s=e==="_blank"?l??"noopener noreferrer":l;return h?f(N,{ref:o,className:m,target:e,rel:s,...n,children:i}):f("a",{ref:o,className:m,target:e,rel:s,...n,children:i})});c.displayName="Link";export{c as Link};
@@ -0,0 +1 @@
1
+ "use client";var e=".Link_Ly-e3{cursor:pointer;font-family:var(--altum-g-font-family-ui);font-size:inherit;font-weight:inherit;text-decoration:none;transition:color .2s ease-in-out,text-decoration-color .2s ease-in-out}.Link_Ly-e3:hover:not(:disabled){text-decoration:underline}.Link_Ly-e3:focus-visible{border-radius:var(--altum-g-radius-sm);outline:var(--altum-focus-ring-width) solid var(--altum-color-link-focus-ring);outline-offset:var(--altum-focus-ring-offset)}.Link_Ly-e3.Link_37pZm{color:var(--altum-color-link-color)}.Link_Ly-e3.Link_37pZm:hover:not(:disabled){color:var(--altum-color-link-color-hover)}.Link_Ly-e3.Link_b3Bpu{color:var(--altum-color-link-secondary)}.Link_Ly-e3.Link_b3Bpu:hover:not(:disabled){color:var(--altum-color-link-secondary-hover)}.Link_Ly-e3.Link_fS2v1{color:var(--altum-color-link-muted)}.Link_Ly-e3.Link_fS2v1:hover:not(:disabled){color:var(--altum-color-link-muted-hover)}.Link_Ly-e3.Link_Dh-RB{color:var(--altum-color-link-danger)}.Link_Ly-e3.Link_Dh-RB:hover:not(:disabled){color:var(--altum-color-link-danger-hover)}.Link_Ly-e3.Link_xpmpu{font-size:var(--altum-g-font-size-xs);line-height:1.35}.Link_Ly-e3.Link_np-gG{font-size:var(--altum-g-font-size-sm);line-height:1.35}.Link_Ly-e3.Link_TaT8T{font-size:var(--altum-g-font-size-base);line-height:1.45}.Link_Ly-e3.Link_Cbhwq{font-size:var(--altum-g-font-size-lg);line-height:1.45}.Link_Ly-e3.Link_qpMzS{font-size:var(--altum-g-font-size-xl);line-height:1.4}.Link_Ly-e3.Link_-u2KQ{font-weight:var(--altum-g-font-weight-normal)}.Link_Ly-e3.Link_s0zjJ{font-weight:var(--altum-g-font-weight-medium)}.Link_Ly-e3.Link_uRl49{font-weight:var(--altum-g-font-weight-bold)}";const o={link:"Link_Ly-e3",primary:"Link_37pZm",secondary:"Link_b3Bpu",muted:"Link_fS2v1",danger:"Link_Dh-RB",xs:"Link_xpmpu",sm:"Link_np-gG",md:"Link_TaT8T",lg:"Link_Cbhwq",xl:"Link_qpMzS",normal:"Link_-u2KQ",medium:"Link_s0zjJ",bold:"Link_uRl49"};(function(i){if(!(typeof document>"u")){var n=document.createElement("style");n.textContent=i,document.head.appendChild(n)}})(e);export{o as default};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as n,jsxs as ee}from"react/jsx-runtime";import be,{forwardRef as fe,useId as ve,useRef as F,useMemo as $,useCallback as u,useEffect as te,useImperativeHandle as xe}from"react";import{resolveListboxGroups as Ie,flattenResolvedListboxGroups as Le,moveListboxHighlight as we,findEnabledListboxIndex as ie,getListboxOptionDomId as W,getListboxOptionText as ye}from"../../utils/listboxOptions.js";import{handleListHighlightKeyDown as Oe}from"../../utils/keyboard.js";import{IconCheckmark as Se}from"../../icons/icons/IconCheckmark.js";import{VirtualList as De}from"../VirtualList/VirtualList.js";import{cn as le}from"../../utils/cn.js";import{composeEventHandlers as Ne}from"../../utils/composeEvents.js";import r from"./Listbox.module.css.js";import{useControlledStateWithCallback as ke}from"../../hooks/useControlledState.js";import{useLocale as Ce}from"../../locales/localeContext.js";import{ListOptionBase as He,ListOptionBaseLabel as Me}from"../../base/ListOptionBase/ListOptionBase.js";const Pe=100,ze=40,Ke=be.memo(function({option:o,index:s,listboxId:O,isSelected:b,isHighlighted:p,disabled:f,showCheck:S,multiline:D,preventOptionMouseDown:K,onHighlight:N,onSelect:E,registerOptionRef:k,wrapAsListItem:c=!0,tabIndex:G=-1}){const R=W(O,s),V=ye(o),v=ee(He,{...o.buttonProps,ref:a=>k?.(s,a),id:R,role:"option","aria-selected":b,"aria-disabled":f||void 0,"aria-label":o.buttonProps?.["aria-label"]??(typeof o.label!="string"?V:void 0),tabIndex:G,disabled:f,selected:b,highlighted:p,multiline:D,className:le(S?r.optionWithCheck:"",o.buttonProps?.className),onMouseDown:a=>{K&&a.preventDefault()},onMouseEnter:()=>N(s),onFocus:()=>N(s),onClick:()=>{f||E?.(o.value)},children:[S&&n("span",{className:r.optionCheck,"aria-hidden":"true",children:b?n(Se,{size:14}):null}),n(Me,{multiline:D,children:o.label})]});return c?n("li",{role:"presentation",children:v}):v}),ne=fe(function({options:o,groups:s,value:O=[],multiple:b=!1,onSelect:p,id:f,"aria-label":S,"aria-labelledby":D,noOptionsText:K,loading:N=!1,className:E="",showCheck:k=!1,navigation:c="roving",highlightedIndex:G,defaultHighlightedIndex:R=-1,onHighlightChange:V,preventOptionMouseDown:v=!1,disabled:a=!1,multiline:q=!1,virtualized:oe,onKeyDown:re,...ae},se){const{t:de}=Ce(),J=K??de("listbox.noOptions"),ue=ve(),h=f??ue,Q=F(null),ce=F(null),j=F(new Map),x=!!(s&&s.length>0),I=$(()=>x?Ie(o,s):null,[s,x,o]),l=$(()=>I?Le(I):o,[o,I]),[i,d]=ke(G,R,V),T=u((t,e)=>{if(e){j.current.set(t,e);return}j.current.delete(t)},[]),C=u(t=>j.current.get(t)??null,[]);te(()=>{if(l.length===0){i!==-1&&d(-1);return}i>=l.length&&d(l.length-1)},[i,l.length,d]),te(()=>{i<0||C(i)?.scrollIntoView({block:"nearest"})},[l.length,C,i]);const g=u(t=>{t<0||C(t)?.focus({preventScroll:!0})},[C]),L=u(t=>!!l[t]?.disabled,[l]),m=c==="roving",w=u(t=>{const e=we(i,l.length,t,{isDisabled:L});e<0||(d(e),c==="roving"&&g(e))},[g,i,L,c,l.length,d]),A=u(t=>{if(a)return;const e=l[t];if(!(!e||e.disabled))return p?.(e.value),e.value},[a,p,l]),y=u(t=>{const e=ie(l.length,t,L);e<0||(d(e),c==="roving"&&g(e))},[g,L,c,l.length,d]);xe(se,()=>({highlightNext:()=>w(1),highlightPrev:()=>w(-1),highlightFirst:()=>y("start"),highlightLast:()=>y("end"),selectHighlighted:()=>A(i),getHighlightedIndex:()=>i,getActiveDescendantId:()=>!m&&i>=0?W(h,i):void 0,focusOption:g}),[g,y,i,m,h,w,A]);const he=t=>{a||l.length===0||Oe(t,{onNext:()=>w(1),onPrev:()=>w(-1),onFirst:()=>y("start"),onLast:()=>y("end"),onSelect:i>=0?()=>A(i):void 0,includeSpace:!0})},U=$(()=>new Set(O),[O]),X=m?i>=0?i:ie(l.length,"start",L):-1,B=u((t,e,H=!0)=>{const M=U.has(t.value),P=e===i,z=a||!!t.disabled;return n(Ke,{option:t,index:e,listboxId:h,isSelected:M,isHighlighted:P,disabled:z,showCheck:k,multiline:q,preventOptionMouseDown:v,onHighlight:d,onSelect:p,registerOptionRef:T,wrapAsListItem:H,tabIndex:m&&!z&&e===X?0:-1},`${t.value}-${e}`)},[a,i,m,h,q,p,v,T,X,U,d,k]),pe=()=>{if(!I)return null;let t=-1;return I.map(e=>{if(e.options.length===0)return null;const H=`${h}-group-${e.id}`,M=e.label!=null,P=typeof e.label=="string"?e.label:void 0;return n("li",{role:"presentation",className:r.group,children:ee("div",{role:"group","aria-label":P,"aria-labelledby":M&&!P?H:void 0,children:[M?n("div",{id:H,className:r.groupLabel,children:e.label}):null,n("ul",{className:r.groupOptions,role:"presentation",children:e.options.map(z=>(t+=1,B(z,t)))})]})},e.id)})},Y=l.length===0,Z=!x&&(oe??l.length>Pe),ge=le(r.listbox,x&&r.listboxGrouped,Z&&r.listboxVirtualized,E),me=Y?n("li",{role:"presentation",children:n("div",{className:r.emptyState,"aria-live":"polite",children:J})}):x?pe():l.map((t,e)=>B(t,e)),_={id:h,className:ge,...ae,role:"listbox","aria-label":S,"aria-labelledby":D,"aria-multiselectable":b||void 0,"aria-busy":N||void 0,"aria-disabled":a||void 0,"aria-activedescendant":!m&&i>=0?W(h,i):void 0,tabIndex:-1,onKeyDown:Ne(re,he)};return Z?n("div",{..._,ref:Q,children:Y?n("div",{className:r.emptyState,"aria-live":"polite",children:J}):n(De,{scrollElement:Q,items:l,estimateSize:ze,gap:4,getItemKey:t=>t.value,className:r.virtualList,renderItem:({item:t,index:e})=>B(t,e,!1)})}):n("ul",{..._,ref:ce,children:me})});ne.displayName="Listbox";export{ne as Listbox};
@@ -0,0 +1 @@
1
+ "use client";var i=".Listbox_lSHQo{display:flex;flex-direction:column;gap:var(--altum-g-space-1);list-style:none;margin:0;padding:var(--altum-g-space-1)}.Listbox_lSHQo.Listbox_wgWhM{gap:var(--altum-g-space-2)}.Listbox_lSHQo.Listbox_4FYkP{max-height:min(320px,50vh);overflow:auto}.Listbox_lSHQo .Listbox_aL5VO,.Listbox_lSHQo .Listbox_maiGW{display:flex;flex-direction:column;gap:var(--altum-g-space-1)}.Listbox_lSHQo .Listbox_maiGW{list-style:none;margin:0;padding:0}.Listbox_lSHQo .Listbox_Knz6J{color:var(--altum-color-text-secondary);font-size:var(--altum-g-font-size-2xs);font-weight:var(--altum-g-font-weight-semibold);letter-spacing:.04em;padding:var(--altum-g-space-1) var(--altum-g-space-2);text-transform:uppercase}.Listbox_lSHQo .Listbox_2QZ9E{color:var(--altum-field-label);font-size:var(--altum-g-font-size-base);padding:var(--altum-g-space-3) var(--altum-g-space-4);text-align:center}.Listbox_lSHQo .Listbox_COEgV{gap:var(--altum-g-space-2)}.Listbox_lSHQo .Listbox_CnY3o{align-items:center;display:inline-flex;flex-shrink:0;font-size:var(--altum-g-font-size-2xs);justify-content:center;line-height:1;width:1em}.Listbox_lSHQo .Listbox_d7ICC{width:100%}";const e={listbox:"Listbox_lSHQo",listboxGrouped:"Listbox_wgWhM",listboxVirtualized:"Listbox_4FYkP",group:"Listbox_aL5VO",groupOptions:"Listbox_maiGW",groupLabel:"Listbox_Knz6J",emptyState:"Listbox_2QZ9E",optionWithCheck:"Listbox_COEgV",optionCheck:"Listbox_CnY3o",virtualList:"Listbox_d7ICC"};(function(o){if(!(typeof document>"u")){var t=document.createElement("style");t.textContent=o,document.head.appendChild(t)}})(i);export{e as default};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as c}from"react/jsx-runtime";import{useMemo as i}from"react";import{LocaleContext as n,defaultLocaleContext as u}from"../../locales/localeContext.js";import{useLocale as h,useT as C}from"../../locales/localeContext.js";import{deepMergeMessages as d,translate as p,builtInMessages as f}from"../../locales/translate.js";const s=({locale:e="ru",messages:r,children:t})=>{const a=i(()=>{const o=d(f[e]??u.messages,r);return{locale:e,messages:o,t:(l,m)=>p(o,l,m)}},[e,r]);return c(n.Provider,{value:a,children:t})};s.displayName="LocaleProvider";export{s as LocaleProvider,h as useLocale,C as useT};
@@ -0,0 +1 @@
1
+ "use client";import{jsxs as p,jsx as i}from"react/jsx-runtime";import{forwardRef as c}from"react";import a from"./Marker.module.css.js";import{cn as l}from"../../utils/cn.js";const m=c(function({children:n,variant:e="default",className:r,role:s,...t},f){return p("div",{ref:f,className:l(a.marker,a[e],r),"data-variant":e,...t,role:s,children:[e==="separator"&&i("span",{className:a.line,"aria-hidden":!0}),i("div",{className:a.inner,children:n}),e==="separator"&&i("span",{className:a.line,"aria-hidden":!0})]})}),o=c(function({children:n,className:e,...r},s){return i("span",{ref:s,className:l(a.icon,e),...r,"aria-hidden":r["aria-hidden"]??!0,children:n})}),d=c(function({children:n,className:e,shimmer:r=!1,...s},t){return i("span",{ref:t,className:l(a.content,r?a.shimmer:"",e),...s,children:n})});m.displayName="Marker",o.displayName="Marker.Icon",d.displayName="Marker.Content";const h=Object.assign(m,{Icon:o,Content:d});export{h as Marker};
@@ -0,0 +1 @@
1
+ "use client";var e=".Marker_SYkQ9{box-sizing:border-box;color:var(--altum-color-muted);display:flex;font-family:var(--altum-g-font-family-ui);justify-content:center;width:100%}.Marker_SYkQ9,.Marker_SYkQ9 .Marker_6uiTL{align-items:center;gap:var(--altum-g-space-2);min-width:0}.Marker_SYkQ9 .Marker_6uiTL{display:inline-flex;max-width:100%}.Marker_SYkQ9.Marker_G2GiA .Marker_6uiTL,.Marker_SYkQ9.Marker_LsI6O .Marker_6uiTL{border-radius:var(--altum-g-radius);padding:var(--altum-g-space-1) var(--altum-g-space-2)}.Marker_SYkQ9.Marker_G2GiA .Marker_6uiTL{background:var(--altum-color-brand-tint);color:var(--altum-color-brand-tint-text)}.Marker_SYkQ9.Marker_zT5lO .Marker_6uiTL{background:var(--altum-color-surface);border:1px solid var(--altum-color-border);border-radius:var(--altum-g-radius);color:var(--altum-color-input-text);justify-content:flex-start;padding:var(--altum-g-space-2) var(--altum-g-space-3);width:100%}.Marker_SYkQ9.Marker_lV2uw{gap:var(--altum-g-space-3)}.Marker_SYkQ9 .Marker_0MdSQ{background:var(--altum-color-border);flex:1 1 auto;height:1px;min-width:var(--altum-g-space-4)}.Marker_SYkQ9 .Marker_03s40{align-items:center;color:inherit;display:inline-flex;flex-shrink:0;justify-content:center}.Marker_SYkQ9 .Marker_Q-vUs{font-size:var(--altum-g-font-size-2xs);font-weight:var(--altum-g-font-weight-medium);line-height:1.35;min-width:0}.Marker_SYkQ9 .Marker_nuR4k{animation:Marker_nuR4k 1.4s ease-in-out infinite;background:linear-gradient(90deg,var(--altum-color-muted) 0,color-mix(in srgb,var(--altum-color-input-text) 70%,transparent) 50%,var(--altum-color-muted) 100%);-webkit-background-clip:text;background-clip:text;background-size:200% 100%;color:transparent}@media (prefers-reduced-motion:reduce){.Marker_SYkQ9 .Marker_nuR4k{animation:none;background:none;color:var(--altum-color-muted)}}@keyframes Marker_nuR4k{0%{background-position:100% 0}to{background-position:-100% 0}}";const t={marker:"Marker_SYkQ9",inner:"Marker_6uiTL",default:"Marker_LsI6O",note:"Marker_G2GiA",row:"Marker_zT5lO",separator:"Marker_lV2uw",line:"Marker_0MdSQ",icon:"Marker_03s40",content:"Marker_Q-vUs",shimmer:"Marker_nuR4k"};(function(a){if(!(typeof document>"u")){var r=document.createElement("style");r.textContent=a,document.head.appendChild(r)}})(e);export{t as default};
@@ -0,0 +1 @@
1
+ "use client";import{jsxs as de,jsx as S}from"react/jsx-runtime";import{forwardRef as me,useState as T,useRef as j,useLayoutEffect as ge}from"react";import{TextField as pe}from"../TextField/TextField.js";import o from"./MaskedField.module.css.js";import{cn as B}from"../../utils/cn.js";import{composeEventHandlers as h}from"../../utils/composeEvents.js";import{getFormattedValue as k,getRemainingGuides as w,getStaticDigitsPrefix as L}from"./MaskedField.utils.js";const M=me(function({mask:t,value:f,onChange:v,onClear:x,clearLabel:W,onFocus:z,onBlur:K,onKeyDown:A,disabled:d,readOnly:C,size:G="md",width:N="full",labelPlacement:b="inline",maskAsPlaceholder:H=!1,placeholder:V,prefix:X,postfix:Y,wrapperClassName:Z="",onClick:_,className:$,...q},m){const[J,F]=T(!1),O=j(null),u=j(null),[Q,U]=T(0),R=!!C&&!d,I=f.replace(/\D/g,""),y=e=>{u.current=e,U(r=>r+1)};ge(()=>{const e=O.current;e&&u.current!==null&&(e.setSelectionRange(u.current,u.current),u.current=null)},[f,Q]);const ee=e=>{if(d||R)return;const r=e.target,a=r.selectionStart||0,g=r.value;let n=g.replace(/\D/g,"");const i=L(t);i&&n.startsWith(i)&&(n=n.slice(i.length));const l=t.replace(/[^9]/g,"").length,s=n.slice(0,l),p=k(s,t);a>=g.length-1?y(p.length):y(a),v(s)},le=e=>{if(d||R)return;const r=e.currentTarget,a=r.selectionStart,g=r.selectionEnd,n=a!==null&&a===g,i=l=>{let s=0;for(let D=0;D<l;D++)t[D]==="9"&&s++;const p=f.replace(/\D/g,""),P=p.slice(0,s)+p.slice(s+1),fe=k(P.slice(0,s),t).length;y(fe),v(P)};if(e.key==="Backspace"&&n&&a!==null&&a>0){let l=a-1;for(;l>=0&&t[l]!=="9";)l--;e.preventDefault(),l>=0&&i(l)}if(e.key==="Delete"&&n&&a!==null&&a<t.length){let l=a;for(;l<t.length&&t[l]!=="9";)l++;l<t.length&&(e.preventDefault(),i(l))}},te=()=>{F(!0)},re=()=>{F(!1)},ae=e=>{const r=e.currentTarget;r.selectionStart!==null&&r.selectionStart>c.length&&r.setSelectionRange(c.length,c.length)},c=I?k(f,t):"",E=w(c,t),ne=H?w("",t):V,se=()=>{v(""),x?.()},oe=e=>{O.current=e,typeof m=="function"?m(e):m&&(m.current=e)},ce=b!=="inline",ie=B(o.maskedWrapper,ce?o.centered:"",N==="full"?o.fullWidth:"",Z),ue=J&&E.length>0?de("div",{className:o.maskOverlay,"aria-hidden":"true","data-testid":"masked-overlay",children:[S("span",{className:o.maskOffset,children:c}),S("span",{className:o.guideChar,children:E})]}):null;return S(pe,{...q,ref:oe,value:c,disabled:d,readOnly:C,size:G,width:N,labelPlacement:b,prefix:X,postfix:Y,onChange:ee,onKeyDown:h(A,le),onFocus:h(z,te),onBlur:h(K,re),onClick:h(_,ae),placeholder:ne,onClear:x?se:void 0,clearLabel:W,wrapperClassName:ie,controlOverlay:ue,className:B(o.input,$)})});M.displayName="MaskedField";export{M as MaskedField,k as getFormattedValue,w as getRemainingGuides,L as getStaticDigitsPrefix};
@@ -0,0 +1 @@
1
+ "use client";var i=".MaskedField_VQCHI{--altum-masked-field-line-height:1.25;--altum-masked-field-control-border-width:1px;position:relative;width:100%}.MaskedField_Ft9cB,.MaskedField_VQCHI .MaskedField_kKp2m{font-family:inherit;line-height:var(--altum-masked-field-line-height)}.MaskedField_Ft9cB{border:var(--altum-masked-field-control-border-width) solid transparent;box-sizing:border-box;font-size:var(--altum-field-font-size,var(--altum-g-font-size-base));inset:0;overflow:hidden;padding:var(--altum-field-pad-top) var(--altum-field-padding-end) var(--altum-field-pad-bottom) var(--altum-field-padding-start);pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:pre;z-index:var(--altum-g-z-local)}.MaskedField_PXj85 .MaskedField_Ft9cB{align-items:center;display:flex;padding-bottom:0;padding-top:0}.MaskedField_PXj85 .MaskedField_Ft9cB,.MaskedField_PXj85 .MaskedField_kKp2m{line-height:var(--altum-field-line-height,var(--altum-masked-field-line-height))}.MaskedField_b-Y4s,.MaskedField_cdqMI{white-space:pre}.MaskedField_b-Y4s{color:transparent}.MaskedField_cdqMI{color:var(--altum-field-label);opacity:.6}.MaskedField_vI7Bt{flex-shrink:1;max-width:100%;min-width:0}";const a={maskedWrapper:"MaskedField_VQCHI",input:"MaskedField_kKp2m",maskOverlay:"MaskedField_Ft9cB",centered:"MaskedField_PXj85",maskOffset:"MaskedField_b-Y4s",guideChar:"MaskedField_cdqMI",fullWidth:"MaskedField_vI7Bt"};(function(d){if(!(typeof document>"u")){var e=document.createElement("style");e.textContent=d,document.head.appendChild(e)}})(i);export{a as default};
@@ -0,0 +1 @@
1
+ "use client";const s=l=>{let t="";for(let e=0;e<l.length&&l[e]!=="9";e++)/\d/.test(l[e])&&(t+=l[e]);return t},o=(l,t)=>{const e=l.replace(/\D/g,"");let n="",g=0;for(let i=0;i<t.length;i++){const r=t[i];if(r==="9")if(g<e.length)n+=e[g],g++;else break;else n+=r}return n},a=(l,t)=>{let e="";for(let n=l.length;n<t.length;n++)t[n]==="9"?e+="_":e+=t[n];return e};export{o as getFormattedValue,a as getRemainingGuides,s as getStaticDigitsPrefix};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as o}from"react/jsx-runtime";import{forwardRef as v}from"react";import{AspectRatio as N}from"../AspectRatio/AspectRatio.js";import e from"./Media.module.css.js";import{cn as r}from"../../utils/cn.js";const l=v(function({src:a,alt:i="",as:s="img",poster:m,fit:t="cover",rounded:c=!0,ratio:d=16/9,className:n,...f},p){const u=s==="video"?void 0:i;return o(N,{ref:p,ratio:d,className:r(e.media,c?e.rounded:"",n),...f,children:s==="video"?o("video",{src:a,poster:m,className:r(e.el,e[t]),controls:!1,muted:!0,playsInline:!0,"aria-label":i||void 0}):o("img",{src:a,alt:u??"",className:r(e.el,e[t]),loading:"lazy",decoding:"async"})})});l.displayName="Media";export{l as Media};
@@ -0,0 +1 @@
1
+ "use client";var a=".Media_FudYc{background-color:var(--altum-color-option-hover)}.Media_S50m2{border-radius:var(--altum-g-radius-md)}.Media_JFEg4{display:block;height:100%;width:100%}.Media_xMVBo{object-fit:cover}.Media_QsNjj{object-fit:contain}";const t={media:"Media_FudYc",rounded:"Media_S50m2",el:"Media_JFEg4",cover:"Media_xMVBo",contain:"Media_QsNjj"};(function(d){if(!(typeof document>"u")){var e=document.createElement("style");e.textContent=d,document.head.appendChild(e)}})(a);export{t as default};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as o,jsxs as w}from"react/jsx-runtime";import d,{forwardRef as n,useId as P}from"react";import{Layout as R}from"../Layout/Layout.js";import{Box as q}from"../Box/Box.js";import{Overlay as z}from"../Overlay/Overlay.js";import t from"./Modal.module.css.js";import{cn as h}from"../../utils/cn.js";import{composeEventHandlers as A}from"../../utils/composeEvents.js";import{useLocale as D}from"../../locales/localeContext.js";import{DialogBase as s}from"../../base/DialogBase/DialogBase.js";function S(a){return a.type===d.Fragment}function m(a,e){d.Children.forEach(a,l=>{if(!d.isValidElement(l))return;if(S(l)){m(l.props.children,e);return}e(l);const i=l.props.children;i!=null&&m(i,e)})}function V(a){let e=!1;return m(a,l=>{l.type===c&&(e=!0)}),e}const C=n(function({open:a,onClose:e,onOpenChange:l,children:i,className:H,id:x,style:f,"aria-labelledby":u,"aria-label":p,"aria-describedby":L,onClick:T,...j},k){const{t:E}=D(),I=P(),y=u??I,N=u!=null||V(i),b=()=>{e(),l?.(!1)};return o(z,{ref:k,variant:"modal",purpose:"modal",open:a,onClose:b,"aria-labelledby":p||!N?void 0:y,"aria-label":p??(N?void 0:E("modal.ariaLabel")),"aria-describedby":L,asChild:!1,children:(r,O)=>o(q,{as:"div",variant:"floating",ref:O,role:r.role,"aria-modal":r["aria-modal"],"aria-labelledby":r["aria-labelledby"],"aria-label":r["aria-label"],"aria-describedby":r["aria-describedby"],className:h(t.modalContent,r.className,H),id:x,style:r.style?{...r.style,...f}:f,...j,onClick:A(T,r.onClick),children:o(s.Provider,{onClose:b,titleId:y,children:o(R,{className:t.modalLayout,children:i})})})})}),F=n(function({className:a,...e},l){return o(s.Header,{ref:l,className:a,...e})}),c=n(function({className:a,...e},l){return o(s.Title,{ref:l,className:a,...e})}),v=n(function(a,e){return o(s.Close,{...a,ref:e})}),g=n(function({className:a,...e},l){return o(s.Body,{ref:l,className:a,...e})}),M=n(function({className:a,...e},l){return o(s.Footer,{ref:l,className:a,...e})}),B=({className:a="",message:e,align:l,children:i})=>w(s.Footer,{align:l??(e!=null?"space-between":"end"),className:h(t.formFooter,a),children:[e!=null&&o("div",{className:t.formFooterStatus,role:"status",children:e}),i!=null&&o("div",{className:t.formFooterActions,children:i})]});C.displayName="Modal",F.displayName="Modal.Header",c.displayName="Modal.Title",v.displayName="Modal.Close",g.displayName="Modal.Body",M.displayName="Modal.Footer",B.displayName="Modal.FormFooter";const G=Object.assign(C,{Header:F,Title:c,Close:v,Body:g,Footer:M,FormFooter:B});export{G as Modal};
@@ -0,0 +1 @@
1
+ "use client";var a=".Modal_QNpBm{display:flex;flex-direction:column;font-family:var(--altum-g-font-family-ui);max-height:var(--altum-dialog-max-height);max-width:var(--altum-dialog-max-width-md);overflow:hidden;pointer-events:auto;position:relative;width:90%}.Modal_QNpBm .Modal_MBFBb{min-height:0}.Modal_0Ksyn{width:100%}.Modal_0Ksyn .Modal_KZy2r{color:var(--altum-color-muted);font-size:var(--altum-g-font-size-sm);line-height:1.4}.Modal_0Ksyn .Modal_X5ScN{align-items:center;display:flex;flex-shrink:0;gap:var(--altum-g-space-3)}";const e={modalContent:"Modal_QNpBm",modalLayout:"Modal_MBFBb",formFooter:"Modal_0Ksyn",formFooterStatus:"Modal_KZy2r",formFooterActions:"Modal_X5ScN"};(function(t){if(!(typeof document>"u")){var o=document.createElement("style");o.textContent=t,document.head.appendChild(o)}})(a);export{e as default};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as i,jsxs as L}from"react/jsx-runtime";import A,{forwardRef as N,useContext as F,useState as v,useRef as C,useCallback as S,useEffect as k,useMemo as $,createContext as O}from"react";import{IconCross as q}from"../../icons/icons/IconCross.js";import e from"./Notification.module.css.js";import{cn as p}from"../../utils/cn.js";import{composeEventHandlers as R}from"../../utils/composeEvents.js";import{createLibraryPortal as z}from"../../utils/portal.js";import{useDocumentKeyDown as Q}from"../../hooks/useDocumentKeyDown.js";import{matchesKeyboardShortcut as U,formatKeyboardShortcut as W}from"../../utils/keyboardShortcut.js";import{MediaRowBase as T}from"../../base/MediaRowBase/MediaRowBase.js";import{useLocale as X}from"../../locales/localeContext.js";const Y={"top-left":e.posTopLeft,"top-right":e.posTopRight,"top-center":e.posTopCenter,"bottom-left":e.posBottomLeft,"bottom-right":e.posBottomRight,"bottom-center":e.posBottomCenter},Z={"top-left":e.enterLeft,"top-right":e.enterRight,"top-center":e.enterTop,"bottom-left":e.enterLeft,"bottom-right":e.enterRight,"bottom-center":e.enterBottom},_={"top-left":e.exitLeft,"top-right":e.exitRight,"top-center":e.exitTop,"bottom-left":e.exitLeft,"bottom-right":e.exitRight,"bottom-center":e.exitBottom};function G(t){return t.startsWith("top-")}const H=O({position:"bottom-right"}),P=N(function({children:t,stacked:r=!0,stackDepth:n=3,position:o="bottom-right",className:s,...a},u){const m=G(o),d=$(()=>({position:o}),[o]);return z(i(H.Provider,{value:d,children:i("div",{ref:u,className:p(e.notificationsContainer,Y[o],m?e.anchorTop:e.anchorBottom,s),"data-position":o,...a,children:i(J,{stacked:r,stackDepth:n,fromTop:m,children:t})})}))}),J=({children:t,stacked:r,stackDepth:n,fromTop:o})=>{const[s,a]=v(!r),u=C(null),[m,d]=v(64),f=A.Children.toArray(t),h=Math.max(1,n);return k(()=>{a(!r)},[r]),k(()=>{const c=u.current;if(!c)return;const l=()=>d(c.getBoundingClientRect().height);l();const g=new ResizeObserver(l);return g.observe(c),()=>g.disconnect()},[f.length]),i("div",{className:p(e.stack,s?e.stackExpanded:e.stackCollapsed,o?e.stackFromTop:e.stackFromBottom),style:{"--altum-stack-depth":String(h),"--altum-stack-front-h":`${m}px`},onMouseEnter:()=>{r&&a(!0)},onMouseLeave:()=>{r&&a(!1)},onFocusCapture:()=>{r&&a(!0)},onBlurCapture:c=>{r&&!c.currentTarget.contains(c.relatedTarget)&&a(!1)},children:f.map((c,l)=>i("div",{ref:l===0?u:void 0,className:p(e.stackItem,l>=h?e.stackItemHidden:""),style:{"--altum-stack-i":String(l)},children:c},A.isValidElement(c)?c.key??l:l))})},I=O(null);function tt(t){const r=F(I);if(!r)throw new Error(`${t} \u0434\u043E\u043B\u0436\u0435\u043D \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u0432\u043D\u0443\u0442\u0440\u0438 Notification.Root`);return r}const et=({duration:t,paused:r,onComplete:n})=>{const[o,s]=v(t),a=C(t),u=C(null),m=C(n);m.current=n,k(()=>{a.current=t,s(t),u.current=null},[t]),k(()=>{if(t<=0)return;let f=0;const h=c=>{if(u.current==null&&(u.current=c),!r){const l=c-u.current;if(a.current=Math.max(0,a.current-l),s(a.current),a.current<=0){m.current?.();return}}u.current=c,f=requestAnimationFrame(h)};return f=requestAnimationFrame(h),()=>cancelAnimationFrame(f)},[t,r]);const d=t>0?o/t:0;return i("div",{className:e.progressTrack,"aria-hidden":!0,children:i("div",{className:e.progressBar,style:{transform:`scaleX(${d})`}})})},x=N(function({variant:t="info",duration:r=3e3,progress:n=r>0,pauseOnHover:o=!0,onClose:s,children:a,className:u,onMouseEnter:m,onMouseLeave:d,...f},h){const{position:c}=F(H),[l,g]=v(!1),[y,K]=v(!1),b=C(null),B=S(()=>{y||(K(!0),b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{s?.()},200))},[y,s]);k(()=>()=>{b.current&&clearTimeout(b.current)},[]);const V=$(()=>({close:B}),[B]),j=n&&r>0&&!y;return i(I.Provider,{value:V,children:L(T,{ref:h,className:p(e.notification,e[t],y?_[c]:Z[c],u),"data-variant":t,onMouseEnter:R(m,()=>{o&&g(!0)}),onMouseLeave:R(d,()=>{o&&g(!1)}),...f,role:t==="error"?"alert":"status","aria-live":t==="error"||t==="warning"?"assertive":"polite",children:[a,j&&i(et,{duration:r,paused:l,onComplete:B})]})})}),D=N(function({className:t,...r},n){return i(T.Title,{ref:n,className:p(e.title,t),...r})}),E=N(function({className:t,...r},n){return i(T.Description,{ref:n,className:p(e.description,t),...r})}),M=N(function({className:t,...r},n){return i(T.Actions,{ref:n,className:p(e.actions,t),...r})}),w=N(function({className:t,onClick:r,"aria-label":n,...o},s){const{close:a}=tt("Notification.Close"),{t:u}=X();return i("button",{ref:s,type:"button",className:p(e.close,t),...o,"aria-label":n??u("common.close"),onClick:R(r,()=>{a()}),children:i(q,{size:16})})});x.displayName="Notification",P.displayName="Notification.Viewport",D.displayName="Notification.Title",E.displayName="Notification.Description",M.displayName="Notification.Actions",w.displayName="Notification.Close";const rt=Object.assign(x,{Root:x,Viewport:P,Title:D,Description:E,Actions:M,Close:w}),ot=({item:t,onClose:r})=>{const n=S(()=>r(t.id),[t.id,r]);return Q(o=>{if(!o.defaultPrevented){for(const s of t.actions??[])if(!(!s.shortcut||!U(o,s.shortcut))){o.preventDefault(),s.onClick(),n();return}}}),L(x,{variant:t.variant,duration:t.duration,progress:t.progress,pauseOnHover:t.pauseOnHover,onClose:n,children:[i(D,{children:t.title}),t.description&&i(E,{children:t.description}),i(w,{}),t.actions?.length?i(M,{children:t.actions.map((o,s)=>L("button",{type:"button",className:p(e.actionBtn,o.variant==="secondary"&&e.actionBtnSecondary),onClick:()=>{o.onClick(),n()},children:[o.label,(o.shortcutLabel??o.shortcut)&&i("span",{className:e.actionShortcut,children:o.shortcutLabel??W(o.shortcut)})]},`${o.label}-${s}`))}):null]})};export{rt as Notification,ot as NotificationItemRenderer};
@@ -0,0 +1 @@
1
+ "use client";var o=".Notification_dUTtK{--altum-notification-max-width:360px;box-sizing:border-box;display:flex;flex-direction:column;gap:var(--altum-g-space-3);max-width:var(--altum-notification-max-width);pointer-events:none;position:fixed;width:min(var(--altum-notification-max-width),calc(100vw - var(--altum-g-space-8)));z-index:var(--altum-g-z-notification)}.Notification_O5YM7{bottom:auto;top:max(var(--altum-g-space-6),env(safe-area-inset-top,0px))}.Notification_CqVk2{bottom:max(calc(var(--altum-g-space-6) + env(safe-area-inset-bottom, 0px)),calc(var(--altum-notification-anchor-inset) + env(safe-area-inset-bottom, 0px) + var(--altum-g-space-3)));top:auto}.Notification_72TWO,.Notification_G7DUl{left:max(var(--altum-g-space-6),env(safe-area-inset-left,0px));right:auto}.Notification_GPjZR,.Notification_KSoDR{left:auto;right:max(var(--altum-g-space-6),env(safe-area-inset-right,0px))}.Notification_N2Otg,.Notification_qfZLM{left:50%;right:auto;transform:translateX(-50%)}.Notification_FMsLf{display:flex;flex-direction:column;gap:0;pointer-events:auto;position:relative;transition:gap .2s cubic-bezier(.16,1,.3,1);width:100%}.Notification_2rI42{gap:var(--altum-g-space-3)}.Notification_2rI42 .Notification_h-79S{left:auto;margin-top:0;position:relative;right:auto;top:auto;transform:none}.Notification_2rI42 .Notification_gKRWG,.Notification_2rI42 .Notification_h-79S{height:auto;opacity:1;overflow:visible;pointer-events:auto;visibility:visible}.Notification_h-79S{transform-origin:center top;transition:transform .2s cubic-bezier(.16,1,.3,1),margin-top .2s cubic-bezier(.16,1,.3,1),opacity .2s ease;width:100%;will-change:transform,margin-top}.Notification_b9NXd .Notification_h-79S:not(:first-child):not(.Notification_gKRWG){margin-top:calc(var(--altum-badge-overhang) - var(--altum-stack-front-h, var(--altum-notification-stack-front)));pointer-events:none;transform:scale(calc(1 - var(--altum-stack-i, 1)*.035))}.Notification_b9NXd.Notification_JAmav .Notification_h-79S:not(:first-child):not(.Notification_gKRWG){transform-origin:center top}.Notification_b9NXd.Notification_8pShX .Notification_h-79S:not(:first-child):not(.Notification_gKRWG){transform-origin:center bottom}.Notification_b9NXd .Notification_gKRWG{height:0;left:0;margin-top:0;opacity:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;transform:scale(.92);visibility:hidden}.Notification_JgJp1{align-items:start;background-color:var(--altum-color-fill-floating-bg);border:1px solid var(--altum-box-border-color,var(--altum-color-border));border-left:4px solid var(--altum-color-brand);border-radius:var(--altum-g-radius);box-shadow:var(--altum-shadow-dropdown,var(--altum-shadow-surface));box-sizing:border-box;color:var(--altum-color-fill-floating-fg);display:grid;font-family:var(--altum-g-font-family-ui);gap:var(--altum-g-space-2) var(--altum-g-space-3);grid-template-columns:minmax(0,1fr) auto;overflow:hidden;padding:var(--altum-g-space-3) var(--altum-g-space-4);pointer-events:auto;position:relative;transition:var(--altum-transition-smooth);width:100%}.Notification_JgJp1 .Notification_t-yqI{font-size:var(--altum-g-font-size-base);font-weight:var(--altum-g-font-weight-semibold);grid-column:1;grid-row:1;line-height:var(--altum-g-line-height-base);margin:0;overflow:visible;text-overflow:unset;white-space:normal}.Notification_JgJp1 .Notification_376uQ{color:var(--altum-color-ink-muted);font-size:var(--altum-g-font-size-sm);grid-column:1/-1;line-height:var(--altum-g-line-height-sm);margin:0;overflow:visible;text-overflow:unset;white-space:normal}.Notification_JgJp1 .Notification_zS2CB{align-items:center;background-color:initial;border:none;border-radius:var(--altum-g-radius-sm);box-sizing:border-box;color:var(--altum-color-muted);cursor:pointer;display:inline-flex;font-size:var(--altum-g-font-size-base);grid-column:2;grid-row:1;height:var(--altum-overlay-close-size);justify-content:center;margin:calc(var(--altum-g-space-1)*-1) calc(var(--altum-g-space-1)*-1) 0 0;padding:0;transition:var(--altum-transition-smooth);width:var(--altum-overlay-close-size)}:is(.Notification_JgJp1 .Notification_zS2CB):hover:not(:disabled){background-color:var(--altum-color-option-hover);color:var(--altum-color-input-text)}:is(.Notification_JgJp1 .Notification_zS2CB):focus-visible{outline:var(--altum-focus-ring-width) solid var(--altum-focus-ring-color);outline-offset:var(--altum-focus-ring-offset)}.Notification_JgJp1 .Notification_o7oIJ{display:flex;flex-wrap:wrap;gap:var(--altum-g-space-2);grid-column:1/-1;margin-left:0;margin-top:0}.Notification_JgJp1 .Notification_G-87Q{background-color:var(--altum-color-brand);border:1px solid var(--altum-color-brand-border);border-radius:var(--altum-g-radius-sm);color:var(--altum-color-brand-text);cursor:pointer;font-size:var(--altum-g-font-size-xs);font-weight:var(--altum-g-font-weight-medium);padding:var(--altum-g-space-1) var(--altum-g-space-3);transition:var(--altum-transition-smooth)}:is(.Notification_JgJp1 .Notification_G-87Q):hover:not(:disabled){background-color:var(--altum-color-brand-hover)}:is(.Notification_JgJp1 .Notification_G-87Q):focus-visible{outline:var(--altum-focus-ring-width) solid var(--altum-focus-ring-color);outline-offset:var(--altum-focus-ring-offset)}.Notification_JgJp1 .Notification_4-aCP{background-color:var(--altum-color-surface);border-color:var(--altum-color-border);color:var(--altum-color-text-secondary)}:is(.Notification_JgJp1 .Notification_4-aCP):hover:not(:disabled){background-color:var(--altum-color-option-hover)}:is(.Notification_JgJp1 .Notification_4-aCP):focus-visible{outline:var(--altum-focus-ring-width) solid var(--altum-focus-ring-color);outline-offset:var(--altum-focus-ring-offset)}.Notification_JgJp1 .Notification_qTnaw{font-size:var(--altum-g-font-size-3xs);font-variant-numeric:tabular-nums;margin-left:var(--altum-g-space-1);opacity:.75}.Notification_JgJp1 .Notification_2NUo9{background-color:var(--altum-color-surface);bottom:0;height:var(--altum-g-space-1);left:0;overflow:hidden;position:absolute;right:0}.Notification_JgJp1 .Notification_jHvMZ{background-color:var(--altum-color-brand);height:100%;transform-origin:left center;transition:transform .1s linear;width:100%}.Notification_JgJp1.Notification_2MPLO{border-left-color:var(--altum-color-status-info)}.Notification_JgJp1.Notification_2MPLO .Notification_jHvMZ{background-color:var(--altum-color-status-info)}.Notification_JgJp1.Notification_3NQub{border-left-color:var(--altum-color-status-success)}.Notification_JgJp1.Notification_3NQub .Notification_jHvMZ{background-color:var(--altum-color-status-success)}.Notification_JgJp1.Notification_06Yjl{border-left-color:var(--altum-color-status-warning)}.Notification_JgJp1.Notification_06Yjl .Notification_jHvMZ{background-color:var(--altum-color-status-warning)}.Notification_JgJp1.Notification_fLVyG{border-left-color:var(--altum-color-status-error)}.Notification_JgJp1.Notification_fLVyG .Notification_jHvMZ{background-color:var(--altum-color-status-error)}.Notification_VeIla{animation:Notification_mmdbJ .2s cubic-bezier(.16,1,.3,1)}.Notification_qcWNJ{animation:Notification_u5V2w .2s cubic-bezier(.16,1,.3,1)}.Notification_JXhwV{animation:Notification_sphrp .2s cubic-bezier(.16,1,.3,1)}.Notification_bbTiu{animation:Notification_GcU86 .2s cubic-bezier(.16,1,.3,1)}.Notification_XTo1h{animation:Notification_bNAeS .2s cubic-bezier(.16,1,.3,1) forwards}.Notification_jGqP-{animation:Notification_-7nh4 .2s cubic-bezier(.16,1,.3,1) forwards}.Notification_BK1nB{animation:Notification_2NvLi .2s cubic-bezier(.16,1,.3,1) forwards}.Notification_onBWI{animation:Notification_VkwJs .2s cubic-bezier(.16,1,.3,1) forwards}@keyframes Notification_mmdbJ{0%{opacity:0;transform:translateX(var(--altum-g-space-6)) scale(.96)}to{opacity:1;transform:translateX(0) scale(1)}}@keyframes Notification_u5V2w{0%{opacity:0;transform:translateX(calc(var(--altum-g-space-6)*-1)) scale(.96)}to{opacity:1;transform:translateX(0) scale(1)}}@keyframes Notification_sphrp{0%{opacity:0;transform:translateY(calc(var(--altum-g-space-5)*-1)) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes Notification_GcU86{0%{opacity:0;transform:translateY(var(--altum-g-space-5)) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes Notification_bNAeS{0%{opacity:1;transform:translateX(0) scale(1)}to{opacity:0;transform:translateX(var(--altum-g-space-6)) scale(.96)}}@keyframes Notification_-7nh4{0%{opacity:1;transform:translateX(0) scale(1)}to{opacity:0;transform:translateX(calc(var(--altum-g-space-6)*-1)) scale(.96)}}@keyframes Notification_2NvLi{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(calc(var(--altum-g-space-5)*-1)) scale(.96)}}@keyframes Notification_VkwJs{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(var(--altum-g-space-5)) scale(.96)}}@media (prefers-reduced-motion:reduce){.Notification_BK1nB,.Notification_JXhwV,.Notification_JgJp1,.Notification_VeIla,.Notification_XTo1h,.Notification_bbTiu,.Notification_jGqP-,.Notification_onBWI,.Notification_qcWNJ{animation:none}.Notification_FMsLf,.Notification_h-79S,.Notification_jHvMZ{transition:none}}";const a={notificationsContainer:"Notification_dUTtK",anchorTop:"Notification_O5YM7",anchorBottom:"Notification_CqVk2",posTopLeft:"Notification_72TWO",posBottomLeft:"Notification_G7DUl",posTopRight:"Notification_GPjZR",posBottomRight:"Notification_KSoDR",posTopCenter:"Notification_N2Otg",posBottomCenter:"Notification_qfZLM",stack:"Notification_FMsLf",stackExpanded:"Notification_2rI42",stackItem:"Notification_h-79S",stackItemHidden:"Notification_gKRWG",stackCollapsed:"Notification_b9NXd",stackFromTop:"Notification_JAmav",stackFromBottom:"Notification_8pShX",notification:"Notification_JgJp1",title:"Notification_t-yqI",description:"Notification_376uQ",close:"Notification_zS2CB",actions:"Notification_o7oIJ",actionBtn:"Notification_G-87Q",actionBtnSecondary:"Notification_4-aCP",actionShortcut:"Notification_qTnaw",progressTrack:"Notification_2NUo9",progressBar:"Notification_jHvMZ",info:"Notification_2MPLO",success:"Notification_3NQub",warning:"Notification_06Yjl",error:"Notification_fLVyG",enterRight:"Notification_VeIla",notificationSlideInRight:"Notification_mmdbJ",enterLeft:"Notification_qcWNJ",notificationSlideInLeft:"Notification_u5V2w",enterTop:"Notification_JXhwV",notificationSlideInTop:"Notification_sphrp",enterBottom:"Notification_bbTiu",notificationSlideInBottom:"Notification_GcU86",exitRight:"Notification_XTo1h",notificationSlideOutRight:"Notification_bNAeS",exitLeft:"Notification_jGqP-",notificationSlideOutLeft:"Notification_-7nh4",exitTop:"Notification_BK1nB",notificationSlideOutTop:"Notification_2NvLi",exitBottom:"Notification_onBWI",notificationSlideOutBottom:"Notification_VkwJs"};(function(t){if(!(typeof document>"u")){var i=document.createElement("style");i.textContent=t,document.head.appendChild(i)}})(o);export{a as default};
@@ -0,0 +1 @@
1
+ "use client";import{jsxs as D,jsx as m}from"react/jsx-runtime";import{useState as p,useEffect as v,useMemo as h,useCallback as x,useContext as C,createContext as P}from"react";import{Notification as w,NotificationItemRenderer as k}from"./Notification.js";function B(){let t=0,i=[];const s=new Set,n=()=>{s.forEach(u=>u(i))};return{subscribe:u=>(s.add(u),u(i),()=>{s.delete(u)}),notify:u=>{const e=typeof u=="string"?{title:u}:u,a=e.id??`toast-${Date.now()}-${t+=1}`,d={duration:3e3,variant:"info",...e,id:a};return i=[...i,d],n(),a},dismiss:u=>{i=i.filter(e=>e.id!==u),n()},dismissAll:()=>{i=[],n()}}}const c=[];function j(t){return c.push(t),()=>{const i=c.indexOf(t);i>=0&&c.splice(i,1)}}function F(){return c.length>0?c[c.length-1]:null}const M="notify() \u0442\u0440\u0435\u0431\u0443\u0435\u0442 NotificationProvider \u0432 \u0434\u0435\u0440\u0435\u0432\u0435 \u043A\u043E\u043C\u043F\u043E\u043D\u0435\u043D\u0442\u043E\u0432. \u041E\u0431\u0435\u0440\u043D\u0438\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435 \u0432 <NotificationProvider>.";function O(t){const i=(s=>t.notify(s));return i.info=(s,n,u)=>i({...u,title:s,description:n,variant:"info"}),i.success=(s,n,u)=>i({...u,title:s,description:n,variant:"success"}),i.warning=(s,n,u)=>i({...u,title:s,description:n,variant:"warning"}),i.error=(s,n,u)=>i({...u,title:s,description:n,variant:"error"}),i.dismiss=s=>t.dismiss(s),i.dismissAll=()=>t.dismissAll(),i}function l(){const t=F();if(!t)throw new Error(M);return t}function g(t){l().dismiss(t)}function y(){l().dismissAll()}function r(t){return l().notify(t)}r.info=(t,i,s)=>r({...s,title:t,description:i,variant:"info"}),r.success=(t,i,s)=>r({...s,title:t,description:i,variant:"success"}),r.warning=(t,i,s)=>r({...s,title:t,description:i,variant:"warning"}),r.error=(t,i,s)=>r({...s,title:t,description:i,variant:"error"}),r.dismiss=g,r.dismissAll=y;const E=P(null),f=({children:t,maxVisible:i=5,stacked:s=!0,stackDepth:n=3,position:u="bottom-right"})=>{const[e]=p(()=>B()),[a,d]=p([]);v(()=>j(e),[e]),v(()=>e.subscribe(d),[e]);const N=h(()=>a.slice(-Math.max(1,i)),[i,a]),b=h(()=>({notify:O(e),dismiss:o=>e.dismiss(o),dismissAll:()=>e.dismissAll()}),[e]),A=x(o=>{e.dismiss(o)},[e]);return D(E.Provider,{value:b,children:[t,m(w.Viewport,{stacked:s,stackDepth:n,position:u,children:N.slice().reverse().map(o=>m(k,{item:o,onClose:A},o.id))})]})};f.displayName="Notification.Provider",Object.assign(w,{Provider:f});function S(){const t=C(E);if(!t)throw new Error("useNotify \u0434\u043E\u043B\u0436\u0435\u043D \u0432\u044B\u0437\u044B\u0432\u0430\u0442\u044C\u0441\u044F \u0432\u043D\u0443\u0442\u0440\u0438 NotificationProvider");return t}export{f as NotificationProvider,g as dismiss,y as dismissAll,r as notify,S as useNotify};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as s,jsxs as V}from"react/jsx-runtime";import{forwardRef as A,useState as H}from"react";import f from"./NumberField.module.css.js";import{TextField as J}from"../TextField/TextField.js";import{ButtonGroup as N}from"../ButtonGroup/ButtonGroup.js";import{IconMinus as K}from"../../icons/icons/IconMinus.js";import{IconPlus as Q}from"../../icons/icons/IconPlus.js";import{getFormControlState as U}from"../../utils/formControl.js";import{cn as B}from"../../utils/cn.js";import{useLocale as X}from"../../locales/localeContext.js";function l(m,i,e){let t=m;return i!==void 0&&(t=Math.max(i,t)),e!==void 0&&(t=Math.min(e,t)),t}const I=A(function({value:m,min:i,max:e,step:t=1,onChange:o,onClear:C,onBlur:O,clearLabel:L,postfix:h,disabled:n,readOnly:x,size:c="md",wrapperClassName:W="",className:j,...k},G){const{t:b}=X(),[F,g]=H(null),a=m!==void 0?l(m,i,e):void 0,M=F!==null?F:a!==void 0?String(a):"",S=a??i??0,{isReadOnly:d}=U({disabled:n,readOnly:x}),w=a!==void 0&&i!==void 0&&S<=i,y=a!==void 0&&e!==void 0&&S>=e,R=()=>{if(!(d||n||y)){if(a===void 0){o?.(l(i??t,i,e));return}o?.(l(a+t,i,e))}},q=()=>{if(!(d||n||w)){if(a===void 0){o?.(l(i??0,i,e));return}o?.(l(a-t,i,e))}},D=p=>{if(d||n)return;const r=p.target.value;if(g(r),r===""||r==="-"||r==="."||r==="-."){o?.(void 0);return}if(r.endsWith(".")||r.endsWith("-"))return;const u=parseFloat(r);Number.isNaN(u)||o?.(l(u,i,e))},E=p=>{if(g(null),!d&&!n){const r=p.target.value.trim();if(r!==""&&r!=="-"&&r!=="."&&r!=="-."){const u=parseFloat(r);if(!Number.isNaN(u)){const z=l(u,i,e);z!==m&&o?.(z)}}}O?.(p)},P=()=>{o?.(void 0),C?.()},v=!n&&!d&&!h,T=v?s("span",{className:f.spinSlot,children:V(N,{size:c,focusable:!1,variant:"ghost",borderless:!0,className:f.spinControls,"aria-label":b("numberField.group"),children:[s(N.Item,{icon:s(K,{}),"aria-label":b("numberField.decrement"),disabled:w,onClick:q}),s(N.Item,{icon:s(Q,{}),"aria-label":b("numberField.increment"),disabled:y,onClick:R})]})}):null;return s(J,{ref:G,...k,size:c,type:"number",className:B(f.numberInput,j),min:i,max:e,step:t,disabled:n,readOnly:x,value:M,onChange:D,onBlur:E,onClear:C?P:void 0,clearLabel:L,postfix:h||T||void 0,wrapperClassName:B(v?f.withSpinButtons:"",v&&c==="sm"?f.spinSizeSm:"",W)})});I.displayName="NumberField";export{I as NumberField};
@@ -0,0 +1 @@
1
+ "use client";var i=".NumberField_zjmzH{--altum-number-field-hit-size:var(--altum-field-affix-size);--altum-field-postfix-actions-width:calc(var(--altum-number-field-hit-size)*2 + var(--altum-g-space-1));--altum-field-postfix-gap:var(--altum-g-space-1)}.NumberField_LMvuW{--altum-field-affix-inset:var(--altum-g-space-1)}.NumberField_df4n4{align-items:center;align-self:stretch;box-sizing:border-box;display:flex;height:100%;justify-content:center}.NumberField_df4n4 .NumberField_wbhfX{align-items:center;background:transparent!important;border:none!important;box-sizing:border-box;display:inline-flex;gap:var(--altum-g-space-1)!important;height:auto;max-width:none;padding:0!important;pointer-events:all}.NumberField_df4n4 .NumberField_wbhfX button{align-self:center;aspect-ratio:auto;box-sizing:border-box;flex:0 0 auto;height:var(--altum-number-field-hit-size)!important;max-height:var(--altum-number-field-hit-size)!important;max-width:var(--altum-number-field-hit-size)!important;min-height:var(--altum-number-field-hit-size)!important;min-width:var(--altum-number-field-hit-size)!important;padding:0!important;width:var(--altum-number-field-hit-size)!important}.NumberField_df4n4 .NumberField_wbhfX svg{height:var(--altum-field-icon-size)!important;width:var(--altum-field-icon-size)!important}.NumberField_PbtH1{-moz-appearance:textfield}.NumberField_PbtH1::-webkit-inner-spin-button,.NumberField_PbtH1::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}";const n={withSpinButtons:"NumberField_zjmzH",spinSizeSm:"NumberField_LMvuW",spinSlot:"NumberField_df4n4",spinControls:"NumberField_wbhfX",numberInput:"NumberField_PbtH1"};(function(t){if(!(typeof document>"u")){var e=document.createElement("style");e.textContent=t,document.head.appendChild(e)}})(i);export{n as default};
@@ -0,0 +1 @@
1
+ "use client";import{jsxs as w,jsx as l}from"react/jsx-runtime";import O,{forwardRef as Z,useId as _,useState as $,useMemo as x,useCallback as N}from"react";import{Dropdown as y}from"../Dropdown/Dropdown.js";import{ActionList as f}from"../ActionList/ActionList.js";import{Button as q}from"../Button/Button.js";import{ButtonIcon as k}from"../ButtonIcon/ButtonIcon.js";import{IconDots3 as J}from"../../icons/icons/IconDots3.js";import{cn as u}from"../../utils/cn.js";import{useActionSheetContext as Q}from"../ActionSheetTrigger/actionSheetContext.js";import c from"./OverflowActions.module.css.js";import{useLocale as U}from"../../locales/localeContext.js";const W=new Set(["id","icon","label","textValue","disabled","onSelect","className","key"]);function Y(e){return O.isValidElement(e)&&e.type===p}function ee(e){const o=[];return O.Children.forEach(e,(t,n)=>{if(!Y(t))return;const r=t.props.id??`action-${n}`;o.push({...t.props,id:r,key:String(t.key??r)})}),o}function C(e){return typeof e.textValue=="string"&&e.textValue.length>0?e.textValue:typeof e.label=="string"||typeof e.label=="number"?String(e.label):e.id??e.key}function z(e){const o={};for(const[t,n]of Object.entries(e))W.has(t)||n!==void 0&&(o[t]=n);return o}const p=()=>null;p.displayName="OverflowActions.Item";function ie({item:e,display:o,size:t}){const n=C(e),r=o==="icon"&&e.icon!=null,a=z(e);return r?l(k,{...a,type:"button",variant:"ghost",size:t,icon:e.icon,id:e.id,"aria-label":a["aria-label"]??(a["aria-labelledby"]?void 0:n),disabled:e.disabled,className:u(c.visibleAction,e.className),onClick:()=>e.onSelect?.()}):l(q,{...a,type:"button",variant:"ghost",size:t,iconStart:e.icon,id:e.id,disabled:e.disabled,className:u(c.visibleAction,e.className),onClick:()=>e.onSelect?.(),children:e.label})}const I=Z(function({children:e,visibleCount:o,display:t="icon-label",showOverflowTrigger:n,size:r="sm",mobileTitle:a,className:T,"aria-label":V,...j},L){const{t:d}=U(),A=V??d("overflowActions.ariaLabel"),M=a??d("overflowActions.title"),B=_(),s=Q(),[E,G]=$(!1),b=x(()=>ee(e),[e]),S=o===void 0||!Number.isFinite(o)?b.length:Math.max(0,Math.floor(o)),R=b.slice(0,S),h=b.slice(S),v=h.length>0,D=!(n??s?.shouldShowOverflowTrigger??!0),g=s!=null&&v,F=g?s.overflowOpen:E,m=N(i=>{g?s.setOverflowOpen(i):G(i)},[g,s]),H=x(()=>h.map(i=>({id:i.id??i.key,label:i.label,textValue:C(i),icon:i.icon,disabled:i.disabled,onSelect:i.onSelect,buttonProps:z(i)})),[h]),K=N(i=>{i.onSelect?.(),m(!1)},[m]),P=v&&!D,X=v;return w("div",{ref:L,className:u(c.root,T),...j,role:"toolbar","aria-label":A,children:[R.map(i=>l(ie,{item:i,display:t,size:r},i.key)),X&&w(y,{open:F,onOpenChange:m,onClose:()=>m(!1),align:"right",widthMode:"content",popupRole:"listbox",mobileTitle:M,children:[l(y.Trigger,{asChild:!0,children:l(k,{type:"button",variant:"ghost",size:r,icon:l(J,{size:r==="sm"?16:18}),"aria-label":d("overflowActions.more"),className:u(c.overflowTrigger,P?"":c.srOnlyTrigger)})}),l(y.Content,{children:l(f.Root,{id:B,"aria-label":A,onAction:K,children:w(f.Group,{id:"overflow",children:[l(f.GroupLabel,{children:d("overflowActions.title")}),H.map(i=>l(f.Item,{...i},i.id))]})})})]})]})});I.displayName="OverflowActions";const te=Object.assign(I,{Item:p});export{te as OverflowActions,p as OverflowActionsItem};
@@ -0,0 +1 @@
1
+ "use client";var o=".OverflowActions_HRssW{align-items:center;display:inline-flex;flex-wrap:wrap;gap:var(--altum-g-space-1);min-width:0;position:relative}.OverflowActions_KOnLs,.OverflowActions_XGjeZ{flex-shrink:0}.OverflowActions_fWj7C{clip:rect(0,0,0,0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.OverflowActions_fWj7C:focus-visible{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}";const t={root:"OverflowActions_HRssW",visibleAction:"OverflowActions_XGjeZ",overflowTrigger:"OverflowActions_KOnLs",srOnlyTrigger:"OverflowActions_fWj7C"};(function(i){if(!(typeof document>"u")){var e=document.createElement("style");e.textContent=i,document.head.appendChild(e)}})(o);export{t as default};
@@ -0,0 +1 @@
1
+ "use client";import{jsx as i,jsxs as D}from"react/jsx-runtime";import T,{forwardRef as ie,useMemo as P,useState as E,useRef as f,useCallback as q,useLayoutEffect as le,useEffect as ae}from"react";import{composeRefs as se}from"../../utils/composeRefs.js";import{Dropdown as O}from"../Dropdown/Dropdown.js";import{ButtonIcon as B}from"../ButtonIcon/ButtonIcon.js";import{IconDots3 as H}from"../../icons/icons/IconDots3.js";import{cn as z}from"../../utils/cn.js";import n from"./OverflowGroup.module.css.js";import{useLocale as ce}from"../../locales/localeContext.js";function ue(e){return T.Children.toArray(e).filter(l=>T.isValidElement(l))}function k(e,l){return e.key!=null?String(e.key):`overflow-item-${l}`}function me(e){switch(e){case"sm":return 16;case"lg":return 20;default:return 18}}function fe(e){return e==="sm"?n.gapSm:e==="lg"?n.gapLg:n.gapMd}function J(e){if(!e)return 0;const l=getComputedStyle(e).columnGap||getComputedStyle(e).gap,s=Number.parseFloat(l);return Number.isFinite(s)?s:0}function K(e,l,s,p,u){const c=l.length;if(c===0||e<=0)return 0;const b=o=>{if(o<=0)return 0;let m=0;for(let d=0;d<o;d+=1)m+=l[d]??0;return m+p*Math.max(0,o-1)},G=b(c),N=u!==void 0?Math.min(c,Math.max(0,Math.floor(u))):c;if(G<=e&&N>=c)return c;for(let o=N;o>=0;o-=1){const m=b(o);if((o<c?m+(o>0?p:0)+s:m)<=e)return o}return 0}const U=ie(function({children:e,gap:l="md",size:s="md",fit:p="content",maxVisible:u,align:c="right",moreLabel:b,mobileTitle:G,className:N,"aria-label":o,...m},d){const{t:I}=ce(),a=P(()=>ue(e),[e]),h=`${P(()=>a.map((r,t)=>k(r,t)).join("\0"),[a])}|${l}|${s}|${p}|${u??""}`,[R,X]=E(""),[w,Y]=E(a.length),[Z,W]=E(!1),C=f(null),$=f(null),j=f(null),y=f([]),M=f([]),L=f(0),g=R!==h,Q=o??I("overflowGroup.ariaLabel"),F=b??I("overflowGroup.more"),_=G??I("overflowGroup.title"),ee=fe(l),V=me(s),S=q(r=>{Y(t=>t===r?t:r)},[]),x=q(()=>{const r=C.current,t=$.current;if(!r||!t||M.current.length===0)return;const v=K(r.clientWidth,M.current,L.current,J(t),u);S(v)},[S,u]);le(()=>{const r=C.current,t=$.current;if(!(!r||!t)){if(g){y.current=y.current.slice(0,a.length),M.current=a.map((pe,oe)=>y.current[oe]?.offsetWidth??0),L.current=j.current?.offsetWidth??0;const v=K(r.clientWidth,M.current,L.current,J(t),u);S(v),X(h);return}x()}},[S,a.length,u,h,g,x]),ae(()=>{const r=C.current;if(!r||typeof ResizeObserver>"u")return;const t=new ResizeObserver(()=>{R===h&&x()});return t.observe(r),()=>t.disconnect()},[h,x,R]);const A=!g&&w<a.length,re=g?a.length:w,te=a.slice(0,re),ne=A?a.slice(w):[];return i("div",{ref:se(d,C),className:z(n.root,p==="container"?n.fitContainer:n.fitContent,N),role:"group","aria-label":Q,...m,children:D("div",{ref:$,className:z(n.row,ee),children:[te.map((r,t)=>i("div",{ref:v=>{y.current[t]=v},className:n.item,children:r},k(r,t))),g&&i("div",{ref:j,className:z(n.measureItem,n.moreMeasure),"aria-hidden":!0,children:i(B,{type:"button",variant:"ghost",size:s,icon:i(H,{size:V}),"aria-label":F,className:n.overflowTrigger,tabIndex:-1})}),A&&i("div",{className:n.moreSlot,children:D(O,{open:Z,onOpenChange:W,onClose:()=>W(!1),align:c,widthMode:"content",popupRole:"none",mobileTitle:_,children:[i(O.Trigger,{asChild:!0,children:i(B,{type:"button",variant:"ghost",size:s,icon:i(H,{size:V}),"aria-label":F,className:n.overflowTrigger})}),i(O.Content,{className:n.menuPanel,children:i("div",{className:n.menuStack,children:ne.map((r,t)=>i("div",{className:n.menuItem,children:T.cloneElement(r,{className:z(n.menuItemControl,r.props.className)})},k(r,w+t)))})})]})})]})})});U.displayName="OverflowGroup";export{U as OverflowGroup};
@@ -0,0 +1 @@
1
+ "use client";var e=".OverflowGroup_0E5kr{align-items:center;box-sizing:border-box;display:flex;flex-wrap:nowrap;max-width:100%;min-width:0;position:relative}.OverflowGroup_wjQXB{width:-moz-max-content;width:max-content}.OverflowGroup_PQu6a{align-self:stretch;height:100%;width:100%}.OverflowGroup_PQu6a .OverflowGroup_kuITI{align-items:stretch;height:100%}.OverflowGroup_PQu6a .OverflowGroup_G4TBy{align-items:stretch;display:flex}.OverflowGroup_PQu6a .OverflowGroup_fw5qu{align-items:stretch;margin-inline-start:auto}.OverflowGroup_PQu6a .OverflowGroup_tjg1Z{align-self:stretch;background-color:initial!important;border:none!important;border-radius:calc(var(--altum-g-radius) - 2px);box-shadow:none!important;height:auto!important;min-height:0!important;opacity:.75}.OverflowGroup_PQu6a .OverflowGroup_tjg1Z:hover:not(:disabled){background-color:color-mix(in srgb,var(--altum-field-label) 8%,transparent)!important;opacity:1}.OverflowGroup_PQu6a .OverflowGroup_tjg1Z:focus-visible{opacity:1}.OverflowGroup_kuITI{align-items:center;box-sizing:border-box;display:flex;flex-wrap:nowrap;min-width:0;width:100%}.OverflowGroup_7F-vQ,.OverflowGroup_G4TBy{flex-shrink:0}.OverflowGroup_2a-E-{pointer-events:none;position:absolute;visibility:hidden}.OverflowGroup_fw5qu{align-items:center;display:flex;flex-shrink:0}.OverflowGroup_zd3OL{gap:var(--altum-g-space-1)}.OverflowGroup_xZxkw{gap:var(--altum-g-space-2)}.OverflowGroup_EfQbk{gap:var(--altum-g-space-3)}.OverflowGroup_tjg1Z{flex-shrink:0}.OverflowGroup_TBWyw{box-sizing:border-box!important;max-width:min(20rem,calc(100vw - var(--altum-g-space-8)));overflow-x:hidden!important;overflow-y:auto!important}.OverflowGroup_kO8BD{flex-direction:column;gap:var(--altum-g-space-2);overflow-x:hidden;padding:var(--altum-g-space-2);width:-moz-max-content;width:max-content}.OverflowGroup_4-abr,.OverflowGroup_kO8BD{align-items:stretch;box-sizing:border-box;display:flex;max-width:100%}.OverflowGroup_4-abr{flex-shrink:0;min-width:0}.OverflowGroup_4-abr>*{box-sizing:border-box;max-width:100%}.OverflowGroup_4-abr>.OverflowGroup_GhO5S{height:auto!important;min-height:var(--altum-control-height-sm);width:100%}";const t={root:"OverflowGroup_0E5kr",fitContent:"OverflowGroup_wjQXB",fitContainer:"OverflowGroup_PQu6a",row:"OverflowGroup_kuITI",item:"OverflowGroup_G4TBy",moreSlot:"OverflowGroup_fw5qu",overflowTrigger:"OverflowGroup_tjg1Z",measureItem:"OverflowGroup_7F-vQ",moreMeasure:"OverflowGroup_2a-E-",gapSm:"OverflowGroup_zd3OL",gapMd:"OverflowGroup_xZxkw",gapLg:"OverflowGroup_EfQbk",menuPanel:"OverflowGroup_TBWyw",menuStack:"OverflowGroup_kO8BD",menuItem:"OverflowGroup_4-abr",menuItemControl:"OverflowGroup_GhO5S"};(function(r){if(!(typeof document>"u")){var o=document.createElement("style");o.textContent=r,document.head.appendChild(o)}})(e);export{t as default};
@@ -0,0 +1 @@
1
+ "use client";import{useRef as O,useEffect as k,useCallback as M}from"react";import{useEscapeKey as S}from"../../hooks/useEscapeKey.js";import{useOutsideClick as z}from"../../hooks/useOutsideClick.js";import{useOverlay as q}from"../../hooks/useOverlay.js";import{claimHoverTriggerOpen as A,releaseHoverTrigger as X,registerHoverTrigger as Y,createHoverTriggerId as j}from"../../utils/hoverTriggerGroup.js";function B(t,n,c,o=0){return n>=t.left-o&&n<=t.right+o&&c>=t.top-o&&c<=t.bottom+o}function I({enabled:t,open:n,targetRef:c,contentRef:o,triggerMode:r,purpose:E,openDelay:u,closeDelay:p,requestOpen:s}){const g=O(null),h=O(null),L=O(null),a=O(null),T=O(s);k(()=>{T.current=s},[s]);const v=E==="tooltip"&&r==="hover",f=M(()=>{h.current!=null&&(window.clearTimeout(h.current),h.current=null),L.current!=null&&(window.clearTimeout(L.current),L.current=null)},[]),d=M(e=>{v&&a.current&&(e?A(a.current,0):X(a.current)),T.current(e)},[v]);return k(()=>{if(!v)return;const e=j();a.current=e;const m=Y(e,()=>{f(),T.current(!1)});return()=>{m(),a.current=null}},[f,v]),k(()=>{if(!t||r==="manual")return;const e=c.current;if(!e)return;const m=(i,R)=>{g.current={x:i,y:R}},l=()=>{if(f(),r!=="hover"){s(!0);return}let i=u;if(v&&a.current&&(i=A(a.current,u)),i<=0){d(!0);return}h.current=window.setTimeout(()=>d(!0),i)},w=()=>{if(f(),r!=="hover"){s(!1);return}L.current=window.setTimeout(()=>d(!1),p)},b=()=>{r==="click"&&s(!n)},C=i=>{r==="hover"&&(m(i.clientX,i.clientY),l())},y=()=>{r==="hover"&&w()},H=i=>{r==="hover"&&m(i.clientX,i.clientY)},x=()=>{r==="hover"&&l()},D=i=>{if(r!=="hover")return;const R=i.relatedTarget;R&&(e.contains(R)||o.current?.contains(R))||w()};return r==="click"?e.addEventListener("click",b):(e.addEventListener("pointerenter",C),e.addEventListener("pointerleave",y),e.addEventListener("pointermove",H),e.addEventListener("focusin",x),e.addEventListener("focusout",D)),()=>{f(),e.removeEventListener("click",b),e.removeEventListener("pointerenter",C),e.removeEventListener("pointerleave",y),e.removeEventListener("pointermove",H),e.removeEventListener("focusin",x),e.removeEventListener("focusout",D)}},[f,p,o,t,n,u,d,s,c,r,v]),k(()=>{if(!t||!n||r!=="hover")return;const e=()=>{const m=c.current,l=g.current;if(!m||!l||B(m.getBoundingClientRect(),l.x,l.y,1))return;const w=o.current;w&&B(w.getBoundingClientRect(),l.x,l.y,1)||d(!1)};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[o,t,n,d,c,r]),{pointerRef:g,clearTimers:f,closeTimerRef:L,openHover:d,useHoverMutex:v}}function K({open:t,targetRef:n,contentRef:c,triggerMode:o,closeOnOutsideClick:r,closeOnEscape:E,requestOpen:u}){const p=r??o==="click",s=E??o!=="hover";z([n,c],()=>u(!1),{enabled:t&&p}),S(()=>u(!1),{enabled:t&&s})}function P({open:t,onClose:n,contentRef:c,rootRef:o,backdrop:r,closeOnOutsideClick:E,closeOnEscape:u,lockScroll:p}){const s=E??r,g=p??r;return S(n,{enabled:u!==!1&&t}),z([c],n,{enabled:s&&!r&&t}),q(n,{open:t&&(r||g),closeOnEscape:!1,lockScroll:g&&t,rootRef:r?o:void 0}),{resolvedCloseOnOutside:s}}function F({open:t,onClose:n,rootRef:c}){q(n,{open:t,rootRef:c,lockScroll:t})}export{K as useAnchorDismiss,I as useAnchorTrigger,F as useModalDismiss,P as useScrimLayerDismiss};
@@ -0,0 +1 @@
1
+ "use client";import{jsxs as H,jsx as i}from"react/jsx-runtime";import{useRef as N}from"react";import{Backdrop as B}from"../Backdrop/Backdrop.js";import{FocusTrap as P}from"../FocusTrap/FocusTrap.js";import{cn as s}from"../../utils/cn.js";import{composeRefs as E}from"../../utils/composeRefs.js";import{renderChildren as M}from"../../utils/renderChildren.js";import{useModalDismiss as A,useScrimLayerDismiss as x}from"./Overlay.Dismiss.js";import e from"./Overlay.module.css.js";function q({active:a,children:o}){return i(P,{active:a,restoreFocus:!1,className:e.modalFocusTrap,children:o})}function G({active:a,children:o}){return i(P,{active:a,restoreFocus:!1,className:e.floatingFocusTrap,children:o})}function I({active:a,side:o,children:n}){const d=o==="top"?e.sheetTrapTop:o==="left"?e.sheetTrapLeft:o==="right"?e.sheetTrapRight:e.sheetTrapBottom;return i(P,{active:a,restoreFocus:!1,className:s(e.sheetFocusTrap,d),children:n})}function j({open:a,onClose:o,children:n,asChild:d,className:m,presented:r,layerStyle:t,backdropVariant:c="default",backdropBlur:l="sm","aria-label":u,"aria-labelledby":f,"aria-describedby":h,role:y="dialog",contentRef:b}){const p=N(null);A({open:a,onClose:o,rootRef:p});const k={className:s(e.modalContent,r?e.modalContentVisible:e.modalContentHidden,m),role:y,"aria-modal":!0,"aria-label":u,"aria-labelledby":f,"aria-describedby":h,onClick:v=>v.stopPropagation()};return H("div",{ref:p,className:e.modalRoot,style:t,role:"presentation","data-open":a?"":void 0,"data-presented":r?"":void 0,children:[i(B,{position:"absolute",variant:c,blur:l,onClick:a?o:void 0,className:s(e.backdropFade,r?e.backdropVisible:e.backdropHidden)}),i(q,{active:a,children:M({asChild:d,children:n,props:k,contentRef:b})})]})}j.displayName="Overlay.ModalLayer";function D({open:a,onClose:o,children:n,asChild:d,className:m,style:r,presented:t,layerStyle:c,backdrop:l=!1,backdropVariant:u="default",backdropBlur:f="sm",closeOnOutsideClick:h,closeOnEscape:y=!0,lockScroll:b,trapFocus:p=!0,"aria-label":k,"aria-labelledby":v,"aria-describedby":T,role:R="dialog",contentRef:g}){const O=N(null),F=N(null),S=E(g,F),{resolvedCloseOnOutside:V}=x({open:a,onClose:o,contentRef:F,rootRef:O,backdrop:l,closeOnOutsideClick:h,closeOnEscape:y,lockScroll:b}),L={className:s(e.floatingContent,t?e.floatingContentVisible:e.floatingContentHidden,m),style:{...l?void 0:c,...r},role:R,"aria-modal":l||(b??l)?!0:void 0,"aria-label":k,"aria-labelledby":v,"aria-describedby":T,onClick:z=>z.stopPropagation()},C=M({asChild:d,children:n,props:L,contentRef:S});return!l&&!p?C:H("div",{ref:O,className:s(e.floatingRoot,l&&e.floatingRootBackdrop),style:l?c:void 0,role:"presentation","data-open":a?"":void 0,"data-presented":t?"":void 0,children:[l&&i(B,{position:"absolute",variant:u,blur:f,onClick:a&&V?o:void 0,className:s(e.backdropFade,t?e.backdropVisible:e.backdropHidden)}),p?i(G,{active:a,children:C}):C]})}D.displayName="Overlay.FloatingLayer";function w({side:a,open:o,children:n,asChild:d,className:m,presented:r,onClose:t,layerStyle:c,backdrop:l=!1,backdropVariant:u="default",backdropBlur:f="sm",closeOnOutsideClick:h,closeOnEscape:y=!0,"aria-label":b,"aria-labelledby":p,"aria-describedby":k,role:v="dialog",contentRef:T}){const R=N(null),g=N(null),O=E(T,g),{resolvedCloseOnOutside:F}=x({open:o,onClose:t,contentRef:g,rootRef:R,backdrop:l,closeOnOutsideClick:h,closeOnEscape:y,lockScroll:l}),S=a==="top"?e.sheetTop:a==="left"?e.sheetLeft:a==="right"?e.sheetRight:e.sheetBottom,V={className:s(e.sheetPanel,l&&e.sheetPanelRaised,S,r?e.sheetVisible:e.sheetHidden,m),style:l?void 0:c,role:v,"aria-modal":l,"aria-label":b,"aria-labelledby":p,"aria-describedby":k,onClick:C=>C.stopPropagation()},L=M({asChild:d,children:n,props:V,contentRef:O});return l?H("div",{ref:R,className:e.sheetRoot,style:c,role:"presentation","data-open":o?"":void 0,"data-presented":r?"":void 0,children:[i(B,{position:"absolute",variant:u,blur:f,onClick:o&&F?t:void 0,className:s(e.backdropFade,r?e.backdropVisible:e.backdropHidden)}),i(I,{active:o,side:a,children:L})]}):L}w.displayName="Overlay.SheetLayer";export{D as FloatingLayer,j as ModalLayer,w as SheetLayer};