urfu-ui-kit-react 2.1.2 → 2.1.4

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 (408) hide show
  1. package/README.md +4 -25
  2. package/dist/components/Accordion/Accordion.js +18 -0
  3. package/dist/components/BreadCrumbs/BreadCrumbs.d.ts +1 -1
  4. package/dist/components/BreadCrumbs/BreadCrumbs.d.ts.map +1 -1
  5. package/dist/components/BreadCrumbs/BreadCrumbs.js +32 -0
  6. package/dist/components/Button/Button.d.ts +1 -0
  7. package/dist/components/Button/Button.d.ts.map +1 -1
  8. package/dist/components/Button/Button.js +88 -0
  9. package/dist/components/Button/Button.types.d.ts +9 -3
  10. package/dist/components/Button/Button.types.d.ts.map +1 -1
  11. package/dist/components/Button/ButtonRefreshIcon.js +35 -0
  12. package/dist/components/Calendar/Calendar.d.ts +1 -5
  13. package/dist/components/Calendar/Calendar.d.ts.map +1 -1
  14. package/dist/components/Calendar/Calendar.js +355 -0
  15. package/dist/components/Calendar/CalendarSelect.js +149 -0
  16. package/dist/components/Calendar/MaskedDateInput.d.ts.map +1 -1
  17. package/dist/components/Calendar/MaskedDateInput.js +191 -0
  18. package/dist/components/Calendar/dateMask.d.ts +0 -1
  19. package/dist/components/Calendar/dateMask.d.ts.map +1 -1
  20. package/dist/components/Card/Card.d.ts +1 -1
  21. package/dist/components/Card/Card.d.ts.map +1 -1
  22. package/dist/components/Card/Card.js +75 -0
  23. package/dist/components/Checkbox/Checkbox.js +30 -0
  24. package/dist/components/ColumnSettings/ColumnSettings.js +216 -0
  25. package/dist/components/ConfirmModal/ConfirmModal.d.ts +1 -0
  26. package/dist/components/ConfirmModal/ConfirmModal.d.ts.map +1 -1
  27. package/dist/components/ConfirmModal/ConfirmModal.js +40 -0
  28. package/dist/components/ErrorScreen/ErrorScreen.d.ts +1 -1
  29. package/dist/components/ErrorScreen/ErrorScreen.d.ts.map +1 -1
  30. package/dist/components/ErrorScreen/ErrorScreen.js +221 -0
  31. package/dist/components/ErrorScreen/ErrorScreenIllustration.js +57 -0
  32. package/dist/components/FormField/FormField.d.ts +1 -1
  33. package/dist/components/FormField/FormField.d.ts.map +1 -1
  34. package/dist/components/FormField/FormField.js +40 -0
  35. package/dist/components/Icon/Icon.d.ts +1 -1
  36. package/dist/components/Icon/Icon.d.ts.map +1 -1
  37. package/dist/components/Icon/Icon.js +32 -0
  38. package/dist/components/Icon/Icon.types.d.ts +3 -1
  39. package/dist/components/Icon/Icon.types.d.ts.map +1 -1
  40. package/dist/components/InputExpandTextarea/InputExpandTextarea.d.ts +1 -1
  41. package/dist/components/InputExpandTextarea/InputExpandTextarea.d.ts.map +1 -1
  42. package/dist/components/InputExpandTextarea/InputExpandTextarea.js +144 -0
  43. package/dist/components/InputFile/InputFile.d.ts +1 -1
  44. package/dist/components/InputFile/InputFile.d.ts.map +1 -1
  45. package/dist/components/InputFile/InputFile.js +203 -0
  46. package/dist/components/InputFile/InputFile.types.d.ts +0 -6
  47. package/dist/components/InputFile/InputFile.types.d.ts.map +1 -1
  48. package/dist/components/InputNumber/InputNumber.d.ts +1 -1
  49. package/dist/components/InputNumber/InputNumber.d.ts.map +1 -1
  50. package/dist/components/InputNumber/InputNumber.js +220 -0
  51. package/dist/components/InputText/InputAffix.d.ts +1 -1
  52. package/dist/components/InputText/InputAffix.js +109 -0
  53. package/dist/components/InputText/InputText.d.ts +2 -1
  54. package/dist/components/InputText/InputText.d.ts.map +1 -1
  55. package/dist/components/InputText/InputText.js +137 -0
  56. package/dist/components/InputTime/InputTime.d.ts +1 -1
  57. package/dist/components/InputTime/InputTime.d.ts.map +1 -1
  58. package/dist/components/InputTime/InputTime.js +335 -0
  59. package/dist/components/InputTime/InputTimeDropdown.js +31 -0
  60. package/dist/components/InputTime/inputTimeKeyDown.js +63 -0
  61. package/dist/components/InputTime/useInputTimeWheel.js +45 -0
  62. package/dist/components/Menu/Menu.d.ts +1 -1
  63. package/dist/components/Menu/Menu.d.ts.map +1 -1
  64. package/dist/components/Menu/Menu.js +113 -0
  65. package/dist/components/Message/Message.js +29 -0
  66. package/dist/components/Modal/Modal.d.ts +1 -0
  67. package/dist/components/Modal/Modal.d.ts.map +1 -1
  68. package/dist/components/Modal/Modal.js +102 -0
  69. package/dist/components/Modal/editorFocus.js +15 -0
  70. package/dist/components/Modal/useModalFocus.js +112 -0
  71. package/dist/components/Modal/useModalTitleClearance.js +48 -0
  72. package/dist/components/Multiselect/Multiselect.d.ts +1 -0
  73. package/dist/components/Multiselect/Multiselect.d.ts.map +1 -1
  74. package/dist/components/Multiselect/Multiselect.js +408 -0
  75. package/dist/components/Notification/Notification.d.ts +1 -1
  76. package/dist/components/Notification/Notification.d.ts.map +1 -1
  77. package/dist/components/Notification/Notification.js +156 -0
  78. package/dist/components/OfflineBanner/OfflineBanner.d.ts +1 -1
  79. package/dist/components/OfflineBanner/OfflineBanner.d.ts.map +1 -1
  80. package/dist/components/OfflineBanner/OfflineBanner.js +40 -0
  81. package/dist/components/Pagination/Pagination.d.ts +1 -1
  82. package/dist/components/Pagination/Pagination.d.ts.map +1 -1
  83. package/dist/components/Pagination/Pagination.js +126 -0
  84. package/dist/components/Preloader/Preloader.d.ts.map +1 -1
  85. package/dist/components/Preloader/Preloader.js +60 -0
  86. package/dist/components/Radio/Radio.js +34 -0
  87. package/dist/components/Search/Search.d.ts +1 -1
  88. package/dist/components/Search/Search.d.ts.map +1 -1
  89. package/dist/components/Search/Search.js +47 -0
  90. package/dist/components/SearchSelect/SearchSelect.js +295 -0
  91. package/dist/components/SearchSelect/SearchSelectOption.js +41 -0
  92. package/dist/components/SearchSelect/useFlippedPlacement.js +25 -0
  93. package/dist/components/Select/MobileOptionSheet.d.ts +1 -1
  94. package/dist/components/Select/MobileOptionSheet.d.ts.map +1 -1
  95. package/dist/components/Select/MobileOptionSheet.js +116 -0
  96. package/dist/components/Select/Select.js +319 -0
  97. package/dist/components/Skeleton/Skeleton.js +38 -0
  98. package/dist/components/Skeleton/Skeleton.types.d.ts +4 -2
  99. package/dist/components/Skeleton/Skeleton.types.d.ts.map +1 -1
  100. package/dist/components/Status/Status.js +43 -0
  101. package/dist/components/StickyActionBar/StickyActionBar.d.ts +1 -1
  102. package/dist/components/StickyActionBar/StickyActionBar.d.ts.map +1 -1
  103. package/dist/components/StickyActionBar/StickyActionBar.js +73 -0
  104. package/dist/components/Switch/Switch.d.ts +1 -1
  105. package/dist/components/Switch/Switch.d.ts.map +1 -1
  106. package/dist/components/Switch/Switch.js +29 -0
  107. package/dist/components/Table/Filter/DefaultInput.d.ts.map +1 -1
  108. package/dist/components/Table/Filter/DefaultInput.js +22 -0
  109. package/dist/components/Table/Filter/Filter.js +233 -0
  110. package/dist/components/Table/Filter/Filter.types.d.ts +17 -13
  111. package/dist/components/Table/Filter/Filter.types.d.ts.map +1 -1
  112. package/dist/components/Table/Filter/FilterBooleanBox.d.ts +1 -0
  113. package/dist/components/Table/Filter/FilterBooleanBox.d.ts.map +1 -1
  114. package/dist/components/Table/Filter/FilterBooleanBox.js +40 -0
  115. package/dist/components/Table/Filter/FilterBoxShell.js +89 -0
  116. package/dist/components/Table/Filter/FilterConditionSelect.js +14 -0
  117. package/dist/components/Table/Filter/FilterDateBox.d.ts +1 -0
  118. package/dist/components/Table/Filter/FilterDateBox.d.ts.map +1 -1
  119. package/dist/components/Table/Filter/FilterDateBox.js +173 -0
  120. package/dist/components/Table/Filter/FilterPanel.js +25 -0
  121. package/dist/components/Table/Filter/FilterSortIndicator.js +24 -0
  122. package/dist/components/Table/Filter/FilterStringBox.js +115 -0
  123. package/dist/components/Table/Filter/Functions.d.ts +0 -6
  124. package/dist/components/Table/Filter/Functions.d.ts.map +1 -1
  125. package/dist/components/Table/Filter/Functions.js +76 -0
  126. package/dist/components/Table/Filter/SelectFilter.js +114 -0
  127. package/dist/components/Table/Filter/SelectOptions.js +21 -0
  128. package/dist/components/Table/Filter/TableFilterOptions.d.ts +1 -0
  129. package/dist/components/Table/Filter/TableFilterOptions.d.ts.map +1 -1
  130. package/dist/components/Table/Filter/TableFilterOptions.js +268 -0
  131. package/dist/components/Table/Filter/TableFilterSortButton.js +17 -0
  132. package/dist/components/Table/Filter/filterBoxHelpers.js +2 -0
  133. package/dist/components/Table/Filter/filterExpression.js +48 -0
  134. package/dist/components/Table/Filter/filterLoading.js +2 -0
  135. package/dist/components/Table/Filter/useFilterDates.js +33 -0
  136. package/dist/components/Table/Filter/useFilterOptionsPreload.js +22 -0
  137. package/dist/components/Table/Filter/useLocalFilterSearch.js +32 -0
  138. package/dist/components/Table/Filter/usePagedFilterOptions.js +71 -0
  139. package/dist/components/Table/Filter/useServerFilterOptions.js +35 -0
  140. package/dist/components/Table/Filter/useVirtualOptionWindow.js +80 -0
  141. package/dist/components/Table/Functions.js +54 -0
  142. package/dist/components/Table/Skeleton/TableSkeleton.js +28 -0
  143. package/dist/components/Table/Skeleton/createSkeletonColumns.js +9 -0
  144. package/dist/components/Table/Table.d.ts +1 -0
  145. package/dist/components/Table/Table.d.ts.map +1 -1
  146. package/dist/components/Table/Table.dataPipeline.d.ts.map +1 -1
  147. package/dist/components/Table/Table.dataPipeline.js +75 -0
  148. package/dist/components/Table/Table.helpers.d.ts +2 -2
  149. package/dist/components/Table/Table.helpers.d.ts.map +1 -1
  150. package/dist/components/Table/Table.helpers.js +72 -0
  151. package/dist/components/Table/Table.js +419 -0
  152. package/dist/components/Table/Table.types.d.ts +6 -2
  153. package/dist/components/Table/Table.types.d.ts.map +1 -1
  154. package/dist/components/Table/TableHead.d.ts.map +1 -1
  155. package/dist/components/Table/TableHead.js +189 -0
  156. package/dist/components/Table/TableMobileCard.js +215 -0
  157. package/dist/components/Table/TableMobileFilters.js +56 -0
  158. package/dist/components/Table/TableMobileView.js +316 -0
  159. package/dist/components/Table/TableRow.js +136 -0
  160. package/dist/components/Table/useColumnResize.d.ts +3 -2
  161. package/dist/components/Table/useColumnResize.d.ts.map +1 -1
  162. package/dist/components/Table/useColumnResize.js +44 -0
  163. package/dist/components/Table/useDelayedSkeleton.d.ts +0 -2
  164. package/dist/components/Table/useDelayedSkeleton.d.ts.map +1 -1
  165. package/dist/components/Table/useDelayedSkeleton.js +32 -0
  166. package/dist/components/Table/useMobileFilterColumns.d.ts +1 -1
  167. package/dist/components/Table/useMobileFilterColumns.d.ts.map +1 -1
  168. package/dist/components/Table/useMobileFilterColumns.js +52 -0
  169. package/dist/components/Table/useStableColumnWidths.js +22 -0
  170. package/dist/components/Table/useTableColumnPinning.d.ts +2 -57
  171. package/dist/components/Table/useTableColumnPinning.d.ts.map +1 -1
  172. package/dist/components/Table/useTableColumnPinning.js +52 -0
  173. package/dist/components/Table/useTableFilters.js +39 -0
  174. package/dist/components/Table/useTableSortState.js +38 -0
  175. package/dist/components/Table/useTableVirtualization.js +145 -0
  176. package/dist/components/Tabs/Tabs.d.ts +1 -0
  177. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  178. package/dist/components/Tabs/Tabs.js +135 -0
  179. package/dist/components/Tabs/useTabsOverflow.js +49 -0
  180. package/dist/components/Textarea/Textarea.js +102 -0
  181. package/dist/components/Tooltip/Tooltip.d.ts +1 -0
  182. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  183. package/dist/components/Tooltip/Tooltip.js +218 -0
  184. package/dist/components/TreeView/TreeView.d.ts +1 -0
  185. package/dist/components/TreeView/TreeView.d.ts.map +1 -1
  186. package/dist/components/TreeView/TreeView.js +323 -0
  187. package/dist/components/TreeView/TreeView.types.d.ts +0 -4
  188. package/dist/components/TreeView/TreeView.types.d.ts.map +1 -1
  189. package/dist/dev/index.js +336 -336
  190. package/dist/dev/types/vanilla/src/dev/shown.d.ts +0 -2
  191. package/dist/dev/types/vanilla/src/dev/store.d.ts +0 -4
  192. package/dist/fonts/icons/urfu-ui-icon-font.eot +0 -0
  193. package/dist/fonts/icons/urfu-ui-icon-font.svg +3 -0
  194. package/dist/fonts/icons/urfu-ui-icon-font.ttf +0 -0
  195. package/dist/fonts/icons/urfu-ui-icon-font.woff +0 -0
  196. package/dist/fonts/icons/urfu-ui-icon-font.woff2 +0 -0
  197. package/dist/hooks/useActiveOptionScroll.js +20 -0
  198. package/dist/hooks/useAnchoredPosition.d.ts +12 -0
  199. package/dist/hooks/useAnchoredPosition.d.ts.map +1 -1
  200. package/dist/hooks/useAnchoredPosition.js +37 -0
  201. package/dist/hooks/useAutoId.d.ts +0 -1
  202. package/dist/hooks/useAutoId.d.ts.map +1 -1
  203. package/dist/hooks/useAutoId.js +7 -0
  204. package/dist/hooks/useAutoPortal.js +11 -0
  205. package/dist/hooks/useDebounce.js +11 -0
  206. package/dist/hooks/useDismiss.d.ts +1 -1
  207. package/dist/hooks/useDismiss.d.ts.map +1 -1
  208. package/dist/hooks/useDismiss.js +20 -0
  209. package/dist/hooks/useInputOverflow.d.ts +9 -0
  210. package/dist/hooks/useInputOverflow.d.ts.map +1 -0
  211. package/dist/hooks/useInputOverflow.js +16 -0
  212. package/dist/hooks/useMediaQuery.js +21 -0
  213. package/dist/hooks/useMobilePicker.js +7 -0
  214. package/dist/hooks/useMountTransition.d.ts +1 -1
  215. package/dist/hooks/useMountTransition.d.ts.map +1 -1
  216. package/dist/hooks/useMountTransition.js +21 -0
  217. package/dist/hooks/useOnlineStatus.js +11 -0
  218. package/dist/hooks/useOptionKeyboardNavigation.js +63 -0
  219. package/dist/hooks/usePagination.js +31 -0
  220. package/dist/hooks/useSelectEngine.d.ts +3 -3
  221. package/dist/hooks/useSelectEngine.d.ts.map +1 -1
  222. package/dist/hooks/useSelectEngine.js +96 -0
  223. package/dist/hooks/useTableSort.js +13 -0
  224. package/dist/index.d.ts +16 -0
  225. package/dist/index.d.ts.map +1 -1
  226. package/dist/responsive/uiKitResponsive.js +44 -0
  227. package/dist/shared/fieldAccessibility.js +8 -0
  228. package/dist/shared/iconNames.d.ts +5 -0
  229. package/dist/shared/iconNames.d.ts.map +1 -0
  230. package/dist/shared/inputOverflow.d.ts +10 -0
  231. package/dist/shared/inputOverflow.d.ts.map +1 -0
  232. package/dist/shared/kitCopy.js +9 -0
  233. package/dist/shared/optionStateColors.js +5 -0
  234. package/dist/shared/optionValue.d.ts +1 -1
  235. package/dist/shared/optionValue.d.ts.map +1 -1
  236. package/dist/shared/optionValue.js +11 -0
  237. package/dist/shared/popupTransition.js +11 -0
  238. package/dist/shared/size.d.ts +0 -1
  239. package/dist/shared/size.d.ts.map +1 -1
  240. package/dist/shared/size.js +4 -0
  241. package/dist/shared/sortRows.js +24 -0
  242. package/dist/shared/uiKitDefaults.js +25 -0
  243. package/dist/style-no-fonts.css +1 -1
  244. package/dist/style.css +1 -1
  245. package/dist/style.layer.css +9 -9
  246. package/dist/style.shell.css +15 -11
  247. package/dist/urfu-ui-kit-react.js +57 -17502
  248. package/dist/vanilla/core/BoundedOptionPageCache.js +41 -0
  249. package/dist/vanilla/core/dateMask.js +28 -0
  250. package/dist/vanilla/core/describeError.js +243 -0
  251. package/dist/vanilla/core/devLauncherOffset.js +20 -0
  252. package/dist/vanilla/core/distributeTabs.js +25 -0
  253. package/dist/vanilla/core/hasPreviousPage.js +6 -0
  254. package/dist/vanilla/core/inputMode.js +17 -0
  255. package/dist/vanilla/core/inputOverflow.js +34 -0
  256. package/dist/vanilla/core/kitRegistry.js +160 -0
  257. package/dist/vanilla/core/reconcileColumnOrder.js +5 -0
  258. package/dist/vanilla/core/sheetTitle.js +11 -0
  259. package/dist/vanilla/core/validation.js +21 -0
  260. package/dist/vendor/@floating-ui/core/dist/floating-ui.core.js +323 -0
  261. package/dist/vendor/@floating-ui/dom/dist/floating-ui.dom.js +383 -0
  262. package/dist/vendor/@floating-ui/react/dist/floating-ui.react.js +255 -0
  263. package/dist/vendor/@floating-ui/react-dom/dist/floating-ui.react-dom.js +183 -0
  264. package/dist/vendor/@floating-ui/utils/dist/floating-ui.utils.dom.js +110 -0
  265. package/dist/vendor/@floating-ui/utils/dist/floating-ui.utils.js +106 -0
  266. package/dist/vendor/clsx/dist/clsx.js +14 -0
  267. package/dist/vendor/date-fns/_lib/addLeadingZeros.js +5 -0
  268. package/dist/vendor/date-fns/_lib/defaultOptions.js +5 -0
  269. package/dist/vendor/date-fns/_lib/format/formatters.js +547 -0
  270. package/dist/vendor/date-fns/_lib/format/lightFormatters.js +56 -0
  271. package/dist/vendor/date-fns/_lib/format/longFormatters.js +47 -0
  272. package/dist/vendor/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +16 -0
  273. package/dist/vendor/date-fns/_lib/protectedTokens.js +16 -0
  274. package/dist/vendor/date-fns/addDays.js +7 -0
  275. package/dist/vendor/date-fns/addHours.js +6 -0
  276. package/dist/vendor/date-fns/addMilliseconds.js +7 -0
  277. package/dist/vendor/date-fns/addMinutes.js +6 -0
  278. package/dist/vendor/date-fns/addMonths.js +17 -0
  279. package/dist/vendor/date-fns/addQuarters.js +6 -0
  280. package/dist/vendor/date-fns/addSeconds.js +5 -0
  281. package/dist/vendor/date-fns/addWeeks.js +6 -0
  282. package/dist/vendor/date-fns/addYears.js +5 -0
  283. package/dist/vendor/date-fns/constants.js +2 -0
  284. package/dist/vendor/date-fns/constructFrom.js +4 -0
  285. package/dist/vendor/date-fns/differenceInCalendarDays.js +8 -0
  286. package/dist/vendor/date-fns/differenceInCalendarMonths.js +6 -0
  287. package/dist/vendor/date-fns/differenceInCalendarQuarters.js +7 -0
  288. package/dist/vendor/date-fns/differenceInCalendarYears.js +6 -0
  289. package/dist/vendor/date-fns/differenceInDays.js +13 -0
  290. package/dist/vendor/date-fns/endOfDay.js +6 -0
  291. package/dist/vendor/date-fns/endOfMonth.js +6 -0
  292. package/dist/vendor/date-fns/endOfWeek.js +8 -0
  293. package/dist/vendor/date-fns/endOfYear.js +6 -0
  294. package/dist/vendor/date-fns/format.js +53 -0
  295. package/dist/vendor/date-fns/getDate.js +5 -0
  296. package/dist/vendor/date-fns/getDay.js +5 -0
  297. package/dist/vendor/date-fns/getDayOfYear.js +8 -0
  298. package/dist/vendor/date-fns/getDaysInMonth.js +7 -0
  299. package/dist/vendor/date-fns/getDefaultOptions.js +5 -0
  300. package/dist/vendor/date-fns/getHours.js +5 -0
  301. package/dist/vendor/date-fns/getISODay.js +6 -0
  302. package/dist/vendor/date-fns/getISOWeek.js +9 -0
  303. package/dist/vendor/date-fns/getISOWeekYear.js +12 -0
  304. package/dist/vendor/date-fns/getMinutes.js +5 -0
  305. package/dist/vendor/date-fns/getMonth.js +5 -0
  306. package/dist/vendor/date-fns/getQuarter.js +6 -0
  307. package/dist/vendor/date-fns/getSeconds.js +5 -0
  308. package/dist/vendor/date-fns/getTime.js +5 -0
  309. package/dist/vendor/date-fns/getWeek.js +9 -0
  310. package/dist/vendor/date-fns/getWeekYear.js +14 -0
  311. package/dist/vendor/date-fns/getYear.js +5 -0
  312. package/dist/vendor/date-fns/isAfter.js +6 -0
  313. package/dist/vendor/date-fns/isBefore.js +6 -0
  314. package/dist/vendor/date-fns/isDate.js +4 -0
  315. package/dist/vendor/date-fns/isEqual.js +6 -0
  316. package/dist/vendor/date-fns/isSameDay.js +6 -0
  317. package/dist/vendor/date-fns/isSameMonth.js +6 -0
  318. package/dist/vendor/date-fns/isSameQuarter.js +6 -0
  319. package/dist/vendor/date-fns/isSameWeek.js +6 -0
  320. package/dist/vendor/date-fns/isSameYear.js +6 -0
  321. package/dist/vendor/date-fns/isValid.js +9 -0
  322. package/dist/vendor/date-fns/isWithinInterval.js +9 -0
  323. package/dist/vendor/date-fns/locale/_lib/buildFormatLongFn.js +7 -0
  324. package/dist/vendor/date-fns/locale/_lib/buildLocalizeFn.js +16 -0
  325. package/dist/vendor/date-fns/locale/_lib/buildMatchFn.js +29 -0
  326. package/dist/vendor/date-fns/locale/_lib/buildMatchPatternFn.js +13 -0
  327. package/dist/vendor/date-fns/locale/en-US/_lib/formatDistance.js +68 -0
  328. package/dist/vendor/date-fns/locale/en-US/_lib/formatLong.js +31 -0
  329. package/dist/vendor/date-fns/locale/en-US/_lib/formatRelative.js +9 -0
  330. package/dist/vendor/date-fns/locale/en-US/_lib/localize.js +153 -0
  331. package/dist/vendor/date-fns/locale/en-US/_lib/match.js +108 -0
  332. package/dist/vendor/date-fns/locale/en-US.js +18 -0
  333. package/dist/vendor/date-fns/locale/ru/_lib/formatDistance.js +182 -0
  334. package/dist/vendor/date-fns/locale/ru/_lib/formatLong.js +28 -0
  335. package/dist/vendor/date-fns/locale/ru/_lib/formatRelative.js +62 -0
  336. package/dist/vendor/date-fns/locale/ru/_lib/localize.js +177 -0
  337. package/dist/vendor/date-fns/locale/ru/_lib/match.js +109 -0
  338. package/dist/vendor/date-fns/locale/ru.js +18 -0
  339. package/dist/vendor/date-fns/max.js +9 -0
  340. package/dist/vendor/date-fns/min.js +9 -0
  341. package/dist/vendor/date-fns/parse/_lib/Parser.js +20 -0
  342. package/dist/vendor/date-fns/parse/_lib/Setter.js +36 -0
  343. package/dist/vendor/date-fns/parse/_lib/constants.js +46 -0
  344. package/dist/vendor/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +46 -0
  345. package/dist/vendor/date-fns/parse/_lib/parsers/AMPMParser.js +46 -0
  346. package/dist/vendor/date-fns/parse/_lib/parsers/DateParser.js +59 -0
  347. package/dist/vendor/date-fns/parse/_lib/parsers/DayOfYearParser.js +49 -0
  348. package/dist/vendor/date-fns/parse/_lib/parsers/DayParser.js +45 -0
  349. package/dist/vendor/date-fns/parse/_lib/parsers/DayPeriodParser.js +46 -0
  350. package/dist/vendor/date-fns/parse/_lib/parsers/EraParser.js +29 -0
  351. package/dist/vendor/date-fns/parse/_lib/parsers/ExtendedYearParser.js +19 -0
  352. package/dist/vendor/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +20 -0
  353. package/dist/vendor/date-fns/parse/_lib/parsers/Hour0To11Parser.js +30 -0
  354. package/dist/vendor/date-fns/parse/_lib/parsers/Hour0to23Parser.js +30 -0
  355. package/dist/vendor/date-fns/parse/_lib/parsers/Hour1To24Parser.js +31 -0
  356. package/dist/vendor/date-fns/parse/_lib/parsers/Hour1to12Parser.js +31 -0
  357. package/dist/vendor/date-fns/parse/_lib/parsers/ISODayParser.js +101 -0
  358. package/dist/vendor/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +45 -0
  359. package/dist/vendor/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +45 -0
  360. package/dist/vendor/date-fns/parse/_lib/parsers/ISOWeekParser.js +47 -0
  361. package/dist/vendor/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +38 -0
  362. package/dist/vendor/date-fns/parse/_lib/parsers/LocalDayParser.js +76 -0
  363. package/dist/vendor/date-fns/parse/_lib/parsers/LocalWeekParser.js +46 -0
  364. package/dist/vendor/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +67 -0
  365. package/dist/vendor/date-fns/parse/_lib/parsers/MinuteParser.js +30 -0
  366. package/dist/vendor/date-fns/parse/_lib/parsers/MonthParser.js +73 -0
  367. package/dist/vendor/date-fns/parse/_lib/parsers/QuarterParser.js +71 -0
  368. package/dist/vendor/date-fns/parse/_lib/parsers/SecondParser.js +30 -0
  369. package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +76 -0
  370. package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +73 -0
  371. package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +71 -0
  372. package/dist/vendor/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +20 -0
  373. package/dist/vendor/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +20 -0
  374. package/dist/vendor/date-fns/parse/_lib/parsers/YearParser.js +47 -0
  375. package/dist/vendor/date-fns/parse/_lib/parsers.js +65 -0
  376. package/dist/vendor/date-fns/parse/_lib/utils.js +90 -0
  377. package/dist/vendor/date-fns/parse.js +85 -0
  378. package/dist/vendor/date-fns/parseISO.js +119 -0
  379. package/dist/vendor/date-fns/set.js +8 -0
  380. package/dist/vendor/date-fns/setDay.js +9 -0
  381. package/dist/vendor/date-fns/setHours.js +6 -0
  382. package/dist/vendor/date-fns/setISODay.js +8 -0
  383. package/dist/vendor/date-fns/setISOWeek.js +7 -0
  384. package/dist/vendor/date-fns/setMinutes.js +6 -0
  385. package/dist/vendor/date-fns/setMonth.js +10 -0
  386. package/dist/vendor/date-fns/setQuarter.js +7 -0
  387. package/dist/vendor/date-fns/setSeconds.js +6 -0
  388. package/dist/vendor/date-fns/setWeek.js +7 -0
  389. package/dist/vendor/date-fns/setYear.js +7 -0
  390. package/dist/vendor/date-fns/startOfDay.js +6 -0
  391. package/dist/vendor/date-fns/startOfISOWeek.js +5 -0
  392. package/dist/vendor/date-fns/startOfISOWeekYear.js +8 -0
  393. package/dist/vendor/date-fns/startOfMonth.js +6 -0
  394. package/dist/vendor/date-fns/startOfQuarter.js +6 -0
  395. package/dist/vendor/date-fns/startOfWeek.js +8 -0
  396. package/dist/vendor/date-fns/startOfWeekYear.js +10 -0
  397. package/dist/vendor/date-fns/startOfYear.js +7 -0
  398. package/dist/vendor/date-fns/subDays.js +5 -0
  399. package/dist/vendor/date-fns/subMonths.js +5 -0
  400. package/dist/vendor/date-fns/subQuarters.js +5 -0
  401. package/dist/vendor/date-fns/subWeeks.js +5 -0
  402. package/dist/vendor/date-fns/subYears.js +5 -0
  403. package/dist/vendor/date-fns/toDate.js +5 -0
  404. package/dist/vendor/date-fns/transpose.js +15 -0
  405. package/dist/vendor/react-datepicker/dist/es/index.js +2696 -0
  406. package/package.json +37 -35
  407. package/dist/hooks/useOutsideAlerter.d.ts +0 -3
  408. package/dist/hooks/useOutsideAlerter.d.ts.map +0 -1
@@ -0,0 +1,126 @@
1
+ import { jsxs as _, jsx as o, Fragment as Z } from "react/jsx-runtime";
2
+ /* empty css */
3
+ const B = () => /* @__PURE__ */ o("button", { type: "button", children: /* @__PURE__ */ o(
4
+ "svg",
5
+ {
6
+ xmlns: "http://www.w3.org/2000/svg",
7
+ width: "9",
8
+ height: "3",
9
+ viewBox: "0 0 9 3",
10
+ fill: "none",
11
+ children: /* @__PURE__ */ o(
12
+ "path",
13
+ {
14
+ d: "M1.61584 2.07C1.4105 2.07 1.23317 1.99533 1.08384 1.846C0.943836 1.69667 0.873836 1.51467 0.873836 1.3C0.873836 1.076 0.943836 0.894 1.08384 0.754C1.23317 0.614 1.4105 0.544 1.61584 0.544C1.82117 0.544 1.99384 0.614 2.13384 0.754C2.28317 0.894 2.35784 1.076 2.35784 1.3C2.35784 1.51467 2.28317 1.69667 2.13384 1.846C1.99384 1.99533 1.82117 2.07 1.61584 2.07ZM4.58263 2.07C4.3773 2.07 4.19997 1.99533 4.05063 1.846C3.91063 1.69667 3.84063 1.51467 3.84063 1.3C3.84063 1.076 3.91063 0.894 4.05063 0.754C4.19997 0.614 4.3773 0.544 4.58263 0.544C4.78797 0.544 4.96063 0.614 5.10063 0.754C5.24997 0.894 5.32463 1.076 5.32463 1.3C5.32463 1.51467 5.24997 1.69667 5.10063 1.846C4.96063 1.99533 4.78797 2.07 4.58263 2.07ZM7.54943 2.07C7.3441 2.07 7.16676 1.99533 7.01743 1.846C6.87743 1.69667 6.80743 1.51467 6.80743 1.3C6.80743 1.076 6.87743 0.894 7.01743 0.754C7.16676 0.614 7.3441 0.544 7.54943 0.544C7.75476 0.544 7.92743 0.614 8.06743 0.754C8.21676 0.894 8.29143 1.076 8.29143 1.3C8.29143 1.51467 8.21676 1.69667 8.06743 1.846C7.92743 1.99533 7.75476 2.07 7.54943 2.07Z",
15
+ fill: "#545454"
16
+ }
17
+ )
18
+ }
19
+ ) });
20
+ function L(n, t, s) {
21
+ if (n <= s + 2)
22
+ return Array.from({ length: n }, (i, d) => d + 1);
23
+ const l = [1], r = Math.max(2, t - 1), u = Math.min(n - 1, t + 2);
24
+ if (r > 2)
25
+ l.push("dots");
26
+ else
27
+ for (let i = 2; i < r; i += 1) l.push(i);
28
+ for (let i = r; i <= u; i += 1)
29
+ l.push(i);
30
+ if (u < n - 1)
31
+ l.push("dots");
32
+ else
33
+ for (let i = u + 1; i < n; i += 1) l.push(i);
34
+ return l.push(n), l;
35
+ }
36
+ const A = ({
37
+ startItem: n,
38
+ endItem: t,
39
+ totalItems: s
40
+ }) => `Записи с ${n} по ${t} из ${s}`;
41
+ function V({
42
+ totalItems: n,
43
+ currentPage: t,
44
+ pageSize: s,
45
+ onPageChange: l,
46
+ onPageSizeChange: r,
47
+ dataLength: u,
48
+ pageWindow: i = 6,
49
+ pageSizeOptions: d,
50
+ resultsRenderer: N,
51
+ hideResults: m = !1,
52
+ className: g = "",
53
+ style: M,
54
+ marginTop: c
55
+ }) {
56
+ const C = d ?? [10, 20, ...n > 20 ? [50] : []], p = C.length > 0 ? C : [s], y = p[0] ?? s, b = p.filter((a, e) => {
57
+ if (e === 0) return !0;
58
+ const R = p[e - 1];
59
+ return n > R;
60
+ }), f = n > y && b.length > 1, h = Math.ceil(n / s), v = h > 1;
61
+ if ((u ?? Math.max(0, Math.min(s, n - (t - 1) * s))) === 0 || !v && !f) return null;
62
+ const $ = (t - 1) * s + 1, x = Math.min(t * s, n), k = () => L(h, t, i).map((a, e) => a === "dots" ? /* @__PURE__ */ o(B, {}, `dots-${e}`) : /* @__PURE__ */ o(
63
+ "button",
64
+ {
65
+ type: "button",
66
+ className: `u-paginator__pages-num ${a === t ? "u-paginator__pages-num_active" : ""}`,
67
+ onClick: () => l(a),
68
+ children: a
69
+ },
70
+ a
71
+ )), D = N ?? A, w = c == null ? void 0 : typeof c == "number" ? `${c}px` : c, j = [
72
+ "u-pagination",
73
+ m ? "u-pagination_no-results" : "",
74
+ g
75
+ ].filter(Boolean).join(" ");
76
+ return /* @__PURE__ */ _(
77
+ "div",
78
+ {
79
+ className: j,
80
+ style: {
81
+ ...w != null ? { marginTop: w } : null,
82
+ ...M
83
+ },
84
+ children: [
85
+ m ? null : /* @__PURE__ */ o("p", { className: "u-pagination__result", children: D({ startItem: $, endItem: x, totalItems: n }) }),
86
+ /* @__PURE__ */ o("div", { className: "u-pagination__limits", children: f && /* @__PURE__ */ _(Z, { children: [
87
+ "Выводить по",
88
+ /* @__PURE__ */ o("div", { className: "u-pagination__limit-wrapper", children: b.map((a) => /* @__PURE__ */ o(
89
+ "span",
90
+ {
91
+ className: `u-pagination__limit ${a === s ? "u-pagination__limit_active" : ""}`,
92
+ onClick: () => r(a),
93
+ role: "button",
94
+ tabIndex: 0,
95
+ onKeyDown: (e) => e.key === "Enter" && r(a),
96
+ children: a
97
+ },
98
+ a
99
+ )) })
100
+ ] }) }),
101
+ /* @__PURE__ */ o("div", { className: "u-table-pagination-paginator-column", children: v ? /* @__PURE__ */ _("div", { className: "u-paginator", children: [
102
+ /* @__PURE__ */ o(
103
+ "button",
104
+ {
105
+ type: "button",
106
+ className: `u-paginator__arrow-btn ${t === 1 ? "u-paginator__arrow-btn_inactive" : ""}`,
107
+ "aria-label": "Предыдущая страница",
108
+ onClick: () => t > 1 && l(t - 1)
109
+ }
110
+ ),
111
+ /* @__PURE__ */ o("div", { className: "u-paginator__pages", children: k() }),
112
+ /* @__PURE__ */ o(
113
+ "button",
114
+ {
115
+ type: "button",
116
+ className: `u-paginator__arrow-btn u-paginator__arrow-btn-right ${t === h ? "u-paginator__arrow-btn-right_inactive" : ""}`,
117
+ "aria-label": "Следующая страница",
118
+ onClick: () => t < h && l(t + 1)
119
+ }
120
+ )
121
+ ] }) : null })
122
+ ]
123
+ }
124
+ );
125
+ }
126
+ export { V as Pagination$u };
@@ -1 +1 @@
1
- {"version":3,"file":"Preloader.d.ts","sourceRoot":"","sources":["../../../src/components/Preloader/Preloader.tsx"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,kBAAkB,CAAA;AAEzB,eAAO,MAAM,SAAS,GAAI,wBAGvB,mBAAmB,4CA8DrB,CAAA"}
1
+ {"version":3,"file":"Preloader.d.ts","sourceRoot":"","sources":["../../../src/components/Preloader/Preloader.tsx"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAE1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,kBAAkB,CAAA;AAEzB,eAAO,MAAM,SAAS,GAAI,wBAGvB,mBAAmB,4CAmErB,CAAA"}
@@ -0,0 +1,60 @@
1
+ import { jsxs as r, Fragment as a, jsx as e } from "react/jsx-runtime";
2
+ /* empty css */
3
+ import { useId as n } from "react";
4
+ /* empty css */
5
+ const h = ({
6
+ variant: i = "small-primary",
7
+ className: o = ""
8
+ }) => {
9
+ const t = n().replace(/[^\w-]/g, ""), l = (s) => `${s}_${t}`;
10
+ return /* @__PURE__ */ r(a, { children: [
11
+ i === "small-primary" && /* @__PURE__ */ e("div", { className: `u-preloader-mini ${o}`, children: /* @__PURE__ */ r("svg", { className: "u-preloader-mini-container", width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
12
+ /* @__PURE__ */ e("circle", { cx: "24", cy: "24", r: "23", stroke: "#1E4391", strokeWidth: "2" }),
13
+ /* @__PURE__ */ e("circle", { className: "u-preloader-mini-dot", cx: "6.5", cy: "6.5", r: "6.5", fill: "#1E4391" })
14
+ ] }) }),
15
+ i === "small-special" && /* @__PURE__ */ e("div", { className: `u-preloader-mini-gradient ${o}`, children: /* @__PURE__ */ r("svg", { className: "u-preloader-mini-gradient-container", width: "48", height: "48", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
16
+ /* @__PURE__ */ e("circle", { cx: "24", cy: "24", r: "23", stroke: `url(#${l("paint0_linear_8025_35626")})`, strokeWidth: "2" }),
17
+ /* @__PURE__ */ e("circle", { className: "u-preloader-mini-dot", cx: "6.5", cy: "6.5", r: "6.5", fill: `url(#${l("paint0_linear_8025_35627")})` }),
18
+ /* @__PURE__ */ r("defs", { children: [
19
+ /* @__PURE__ */ r("linearGradient", { id: l("paint0_linear_8025_35626"), x1: "54.3387", y1: "23.9985", x2: "6", y2: "23.9985", gradientUnits: "userSpaceOnUse", children: [
20
+ /* @__PURE__ */ e("stop", { stopColor: "#FF2D7F" }),
21
+ /* @__PURE__ */ e("stop", { offset: "0.48", stopColor: "#FB3727" }),
22
+ /* @__PURE__ */ e("stop", { offset: "1", stopColor: "#FEEA0F" })
23
+ ] }),
24
+ /* @__PURE__ */ r("linearGradient", { id: l("paint0_linear_8025_35627"), x1: "0.50109", y1: "13", x2: "8.00065", y2: "0.000589107", gradientUnits: "userSpaceOnUse", children: [
25
+ /* @__PURE__ */ e("stop", { stopColor: "#FF2D7F" }),
26
+ /* @__PURE__ */ e("stop", { offset: "0.192259", stopColor: "#FB3727" }),
27
+ /* @__PURE__ */ e("stop", { offset: "1", stopColor: "#FEEA0F" })
28
+ ] })
29
+ ] })
30
+ ] }) }),
31
+ i === "large-primary" && /* @__PURE__ */ e("div", { className: `u-preloader ${o}`, children: /* @__PURE__ */ r("svg", { className: "u-preloader-container", width: "76", height: "76", viewBox: "0 0 76 76", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
32
+ /* @__PURE__ */ e("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M38 74C57.8823 74 74 57.8823 74 38C74 18.1177 57.8823 2 38 2C18.1177 2 2 18.1177 2 38C2 57.8823 18.1177 74 38 74ZM38 76C58.9868 76 76 58.9868 76 38C76 17.0132 58.9868 0 38 0C17.0132 0 0 17.0132 0 38C0 58.9868 17.0132 76 38 76Z", fill: "#1E4391" }),
33
+ /* @__PURE__ */ e("path", { className: "u-preloader-dot", d: "M12.2573 17.5283C12.2573 20.0136 10.2426 22.0283 7.75732 22.0283C5.27204 22.0283 3.25732 20.0136 3.25732 17.5283C3.25732 15.043 5.27204 13.0283 7.75732 13.0283C10.2426 13.0283 12.2573 15.043 12.2573 17.5283Z", fill: "#1E4391" }),
34
+ /* @__PURE__ */ e("path", { className: "u-preloader-logo", d: "M52.5974 25.4219C52.9649 24.721 53.5215 24.137 54.2039 23.7362C54.8864 23.3354 55.6675 23.1338 56.4587 23.1542L56.8417 21.7254H45.4303L45.0472 23.1542C46.9626 23.1542 49.575 23.9203 49.7512 25.4219H52.5897H52.5974ZM19.543 23.1542C22.4274 23.1542 23.6456 25.1653 24.9441 27.3219L35.5588 45.525C36.0606 46.4329 36.5509 47.5322 36.5356 48.5589C36.4973 51.2403 33.0229 52.2171 30.9429 52.3167C29.4339 52.3686 27.9339 52.0642 26.5645 51.428L25.7179 52.5159C26.2121 54.6151 28.1542 57.1663 30.8242 57.1471C35.463 57.1126 37.8993 52.8721 39.7648 49.4169L43.2124 43.016L33.1838 25.8203C32.2568 24.288 33.7776 23.1618 35.3941 23.1389L35.7771 21.7139H19.9145L19.543 23.1542Z", fill: "#1E4391" })
35
+ ] }) }),
36
+ i === "large-special" && /* @__PURE__ */ e("div", { className: `u-preloader-gradient ${o}`, children: /* @__PURE__ */ r("svg", { className: "u-preloader-gradient-container", width: "76", height: "76", viewBox: "0 0 76 76", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
37
+ /* @__PURE__ */ e("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M38 74C57.8823 74 74 57.8823 74 38C74 18.1177 57.8823 2 38 2C18.1177 2 2 18.1177 2 38C2 57.8823 18.1177 74 38 74ZM38 76C58.9868 76 76 58.9868 76 38C76 17.0132 58.9868 0 38 0C17.0132 0 0 17.0132 0 38C0 58.9868 17.0132 76 38 76Z", fill: `url(#${l("paint0_linear_1804_4939")})` }),
38
+ /* @__PURE__ */ e("path", { className: "u-preloader-gradient-dot", d: "M12.2573 17.5283C12.2573 20.0136 10.2426 22.0283 7.75732 22.0283C5.27204 22.0283 3.25732 20.0136 3.25732 17.5283C3.25732 15.043 5.27204 13.0283 7.75732 13.0283C10.2426 13.0283 12.2573 15.043 12.2573 17.5283Z", fill: `url(#${l("paint1_linear_1804_4939")})` }),
39
+ /* @__PURE__ */ e("path", { className: "u-preloader-gradient-logo", d: "M52.5974 25.4219C52.9649 24.721 53.5215 24.137 54.2039 23.7362C54.8864 23.3354 55.6675 23.1338 56.4587 23.1542L56.8417 21.7254H45.4303L45.0472 23.1542C46.9626 23.1542 49.575 23.9203 49.7512 25.4219H52.5897H52.5974ZM19.543 23.1542C22.4274 23.1542 23.6456 25.1653 24.9441 27.3219L35.5588 45.525C36.0606 46.4329 36.5509 47.5322 36.5356 48.5589C36.4973 51.2403 33.0229 52.2171 30.9429 52.3167C29.4339 52.3686 27.9339 52.0642 26.5645 51.428L25.7179 52.5159C26.2121 54.6151 28.1542 57.1663 30.8242 57.1471C35.463 57.1126 37.8993 52.8721 39.7648 49.4169L43.2124 43.016L33.1838 25.8203C32.2568 24.288 33.7776 23.1618 35.3941 23.1389L35.7771 21.7139H19.9145L19.543 23.1542Z", fill: `url(#${l("paint2_linear_1804_4939")})` }),
40
+ /* @__PURE__ */ r("defs", { children: [
41
+ /* @__PURE__ */ r("linearGradient", { id: l("paint0_linear_1804_4939"), x1: "76.5363", y1: "37.9977", x2: "1.9146e-07", y2: "37.9977", gradientUnits: "userSpaceOnUse", children: [
42
+ /* @__PURE__ */ e("stop", { stopColor: "#FF2D7F" }),
43
+ /* @__PURE__ */ e("stop", { offset: "0.48", stopColor: "#FB3727" }),
44
+ /* @__PURE__ */ e("stop", { offset: "1", stopColor: "#FEEA0F" })
45
+ ] }),
46
+ /* @__PURE__ */ r("linearGradient", { id: l("paint1_linear_1804_4939"), x1: "5.06202", y1: "20.769", x2: "11.2799", y2: "12.9983", gradientUnits: "userSpaceOnUse", children: [
47
+ /* @__PURE__ */ e("stop", { stopColor: "#FF2D7F" }),
48
+ /* @__PURE__ */ e("stop", { offset: "0.48", stopColor: "#FB3727" }),
49
+ /* @__PURE__ */ e("stop", { offset: "1", stopColor: "#FEEA0F" })
50
+ ] }),
51
+ /* @__PURE__ */ r("linearGradient", { id: l("paint2_linear_1804_4939"), x1: "35.9984", y1: "21.9995", x2: "36.4978", y2: "56.9995", gradientUnits: "userSpaceOnUse", children: [
52
+ /* @__PURE__ */ e("stop", { stopColor: "#FF2D7F" }),
53
+ /* @__PURE__ */ e("stop", { offset: "0.48", stopColor: "#FB3727" }),
54
+ /* @__PURE__ */ e("stop", { offset: "1", stopColor: "#FEEA0F" })
55
+ ] })
56
+ ] })
57
+ ] }) })
58
+ ] });
59
+ };
60
+ export { h as Preloader$u };
@@ -0,0 +1,34 @@
1
+ import { jsx as s, jsxs as n, Fragment as m } from "react/jsx-runtime";
2
+ /* empty css */
3
+ /* empty css */
4
+ const N = ({
5
+ children: a,
6
+ disabled: i,
7
+ checked: o,
8
+ rightRadio: p = !1,
9
+ onClick: r,
10
+ onChange: t,
11
+ className: d = "",
12
+ style: e
13
+ }) => {
14
+ const u = t || (r ? (l) => {
15
+ r(l);
16
+ } : void 0);
17
+ return /* @__PURE__ */ s("div", { className: "u-radio-wrapper", children: /* @__PURE__ */ n("label", { style: Object.assign({ columnGap: a ? "" : 0 }, e || {}), className: `u-radio ${d}`, children: [
18
+ p && a && /* @__PURE__ */ s(m, { children: a }),
19
+ /* @__PURE__ */ s(
20
+ "input",
21
+ {
22
+ checked: o,
23
+ disabled: i,
24
+ type: "radio",
25
+ onChange: u,
26
+ onClick: r,
27
+ readOnly: o !== void 0 && !t && !r
28
+ }
29
+ ),
30
+ /* @__PURE__ */ s("div", { className: "u-radio-input" }),
31
+ !p && a && /* @__PURE__ */ s(m, { children: a })
32
+ ] }) });
33
+ };
34
+ export { N as Radio$u };
@@ -1,5 +1,5 @@
1
1
 
2
2
  import { SearchProperties } from './Search.types';
3
- import "./Search.less";
3
+
4
4
  export declare const Search: ({ id, placeholder, value, onChange, onKeyDown, disabled, className, size, }: SearchProperties) => import("react/jsx-runtime").JSX.Element;
5
5
  //# sourceMappingURL=Search.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../../src/components/Search/Search.tsx"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,eAAe,CAAC;AAGvB,eAAO,MAAM,MAAM,GAAI,6EASpB,gBAAgB,4CAqClB,CAAA"}
1
+ {"version":3,"file":"Search.d.ts","sourceRoot":"","sources":["../../../src/components/Search/Search.tsx"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,qDAAqD,CAAC;AAG7D,eAAO,MAAM,MAAM,GAAI,6EASpB,gBAAgB,4CAwClB,CAAA"}
@@ -0,0 +1,47 @@
1
+ import { jsxs as p, jsx as t } from "react/jsx-runtime";
2
+ /* empty css */
3
+ /* empty css */
4
+ import { sizeClassName$u as h } from "../../shared/size.js";
5
+ const x = ({
6
+ id: c,
7
+ placeholder: l = "Введите запрос",
8
+ value: s,
9
+ onChange: a,
10
+ onKeyDown: n,
11
+ disabled: e = !1,
12
+ className: o = "",
13
+ size: i
14
+ }) => {
15
+ const r = h(i), u = (m) => {
16
+ m.preventDefault(), a && a({
17
+ target: { value: "" }
18
+ });
19
+ };
20
+ return /* @__PURE__ */ p("div", { className: `u-search${r ? ` ${r}` : ""} ${o}`, children: [
21
+ /* @__PURE__ */ t(
22
+ "input",
23
+ {
24
+ id: c,
25
+ placeholder: l,
26
+ className: `u-input${s && !e ? " u-input--clearable" : ""}`,
27
+ type: "search",
28
+ value: s,
29
+ onChange: a,
30
+ onKeyDown: n,
31
+ disabled: e
32
+ }
33
+ ),
34
+ s && !e && /* @__PURE__ */ t(
35
+ "button",
36
+ {
37
+ type: "button",
38
+ className: "u-search-clear",
39
+ "aria-label": "Очистить",
40
+ onClick: u,
41
+ children: /* @__PURE__ */ t("i", { className: "u-icon icon-cross-small", "aria-hidden": "true" })
42
+ }
43
+ ),
44
+ /* @__PURE__ */ t("button", { className: "u-search-loupe", type: "button", disabled: e })
45
+ ] });
46
+ };
47
+ export { x as Search$u };
@@ -0,0 +1,295 @@
1
+ import { jsx as o, jsxs as S } from "react/jsx-runtime";
2
+ import { getFieldAccessibility$u as De } from "../../shared/fieldAccessibility.js";
3
+ import { useState as Ee, useRef as U, useEffect as N, useMemo as Ke } from "react";
4
+ /* empty css */
5
+ import { createPortal as Pe } from "react-dom";
6
+ /* empty css */
7
+ /* empty css */
8
+ import { useSelectEngine$u as Ae } from "../../hooks/useSelectEngine.js";
9
+ import { isSameOptionValue$u as Le, getOptionKeys$u as Be } from "../../shared/optionValue.js";
10
+ import { getPopupTransitionStyle$u as I } from "../../shared/popupTransition.js";
11
+ import { useFlippedPlacement$u as He } from "./useFlippedPlacement.js";
12
+ import { SearchSelectOption$u as Fe } from "./SearchSelectOption.js";
13
+ import { isCompact$u as Ge, sizeClassName$u as Me } from "../../shared/size.js";
14
+ import { getPortalScopeProps$u as We } from "../../shared/uiKitDefaults.js";
15
+ import { resolveValidation$u as Ye } from "../../vanilla/core/validation.js";
16
+ const lt = ({
17
+ "aria-label": V,
18
+ "aria-labelledby": C,
19
+ "aria-describedby": ee,
20
+ title: O = "",
21
+ required: z = !1,
22
+ options: R,
23
+ styleSelectContainer: te,
24
+ styleTitle: ce,
25
+ styleSelect: ie,
26
+ lineUp: v = !1,
27
+ rowGap: se = 4,
28
+ columnGap: le = 20,
29
+ placeholder: re = "Не выбрано",
30
+ value: t,
31
+ isClearable: g = !1,
32
+ onChange: f,
33
+ className: oe,
34
+ tableView: T = !1,
35
+ size: $,
36
+ validationText: ae = "Заполните поле",
37
+ validationOn: D,
38
+ error: ne,
39
+ absoluteValidationText: de,
40
+ disabled: n,
41
+ portalOn: pe,
42
+ onInputChange: y,
43
+ loading: x,
44
+ inputValue: b,
45
+ onInputValueChange: c,
46
+ emptyOptionsText: fe = "Ничего не найдено",
47
+ id: me
48
+ }) => {
49
+ const h = Ge($, T), E = Me($, T), w = Ye({ error: ne, validationOn: D, validationText: ae }), [j, m] = Ee(""), K = U(!1), a = typeof b == "string" && typeof c == "function", r = j && !a ? R.filter((e) => (e.label ?? "").toLowerCase().includes((a ? b : j).toLowerCase())) : R, P = r.findIndex((e) => Le(e == null ? void 0 : e.value, t == null ? void 0 : t.value)), d = Ae({
50
+ optionsLength: r.length,
51
+ initialIndex: Math.max(0, P),
52
+ selectedIndex: P,
53
+ disabled: n,
54
+ portalOn: pe,
55
+ loading: x,
56
+ id: me,
57
+ idPrefix: "u-search-select",
58
+ // Под полем, а не в 30 пикселях от его верха: прежняя постоянная
59
+ // подходила только компактному полю и накрывала обычное.
60
+ getPortalPosition: (e) => ({ x: e.x, y: e.y + 60 + e.height + e.scrollY }),
61
+ onSelectByIndex: (e) => {
62
+ const l = r[e];
63
+ l && M.current(l);
64
+ }
65
+ }), {
66
+ isOpen: s,
67
+ blockRef: A,
68
+ portalOptionsRef: L,
69
+ optionsListRef: B,
70
+ listboxId: p,
71
+ activeDescendantId: xe,
72
+ activeIndex: be,
73
+ hoveredIndex: ye,
74
+ setHoveredIndex: he,
75
+ handleKeyDown: ue,
76
+ shouldRenderPortal: Se,
77
+ portalStatus: Oe,
78
+ shouldRenderLocal: ve,
79
+ localStatus: ge,
80
+ isAnimated: H,
81
+ portalWidth: we,
82
+ anchor: je,
83
+ usePortal: k
84
+ } = d, i = d.portalPosition, ke = De(p, O, z, w, {
85
+ "aria-label": V,
86
+ "aria-labelledby": C,
87
+ "aria-describedby": ee
88
+ }), F = d.close, G = (e) => typeof e == "number" ? `calc(${e} * var(--u-preset-unit, 1px))` : String(e), M = U(() => {
89
+ }), { flippedTop: Ne, flippedUp: ze } = He({
90
+ isOpen: s,
91
+ portalOn: k,
92
+ anchor: je,
93
+ blockRef: A,
94
+ portalOptionsRef: L,
95
+ optionsListRef: B,
96
+ dependencies: [i == null ? void 0 : i.x, i == null ? void 0 : i.y, r.length, x]
97
+ });
98
+ N(() => {
99
+ t && Object.keys(t).length == 0 && m("");
100
+ }, [t]), N(() => {
101
+ t != null && t.label && Object.keys(t).length && !s && m(t.label);
102
+ }, [s, t]);
103
+ const W = a ? b : j, Re = (e) => {
104
+ n || (s || d.open(e.currentTarget), a ? c && c(e.target.value) : m(e.target.value), y && y(e.target.value));
105
+ }, u = !!(t && typeof t == "object" && t.value !== void 0 && String(t.value).length > 0);
106
+ N(() => {
107
+ const e = K.current;
108
+ K.current = s, e && !s && a && u && b.length > 0 && (c == null || c(""));
109
+ }, [s, a, u, b, c]);
110
+ const Te = () => {
111
+ n || (f == null || f(null), a ? c == null || c("") : m(""), y && y(""), F());
112
+ }, Y = (e) => {
113
+ e.preventDefault(), e.stopPropagation(), Te();
114
+ }, q = (e) => {
115
+ f == null || f(e), F(), a ? c == null || c("") : m(e.label ?? "");
116
+ }, $e = Ke(() => Be(r), [r]);
117
+ M.current = q;
118
+ const J = g && u ? h ? "calc(28 * var(--u-unit, 1px))" : "calc(40 * var(--u-unit, 1px))" : void 0, Q = g ? { display: "block" } : null, X = /* @__PURE__ */ o("div", { className: "u-selectbox-empty-text", children: fe }), Z = (e, l) => /* @__PURE__ */ o(
119
+ Fe,
120
+ {
121
+ option: e,
122
+ index: l,
123
+ listboxId: p,
124
+ selectedValue: t == null ? void 0 : t.value,
125
+ isActive: ye === l || be === l,
126
+ tableView: h,
127
+ onSelect: q,
128
+ onHover: he
129
+ },
130
+ $e[l]
131
+ ), _ = /* @__PURE__ */ o(
132
+ "input",
133
+ {
134
+ className: s ? "u-selectbox-select u-selectbox-select-open" : "u-selectbox-select",
135
+ role: "combobox",
136
+ ...ke,
137
+ "aria-expanded": s,
138
+ "aria-haspopup": "listbox",
139
+ "aria-controls": p,
140
+ "aria-autocomplete": "list",
141
+ "aria-activedescendant": xe,
142
+ onClick: (e) => {
143
+ W.length > 0 && (a ? c && c("") : m("")), !n && s && e.currentTarget.blur(), d.toggle(e.currentTarget);
144
+ },
145
+ style: Object.assign(
146
+ h ? {
147
+ height: "var(--u-compact-height)",
148
+ fontSize: "var(--u-compact-font-size)",
149
+ lineHeight: 1,
150
+ padding: "var(--u-compact-padding)",
151
+ borderRadius: "calc(8 * var(--u-unit, 1px))"
152
+ } : {},
153
+ J != null ? { paddingRight: J } : {},
154
+ D && { border: "1px solid var(--u-color-error, #EF302B)" }
155
+ ),
156
+ type: "text",
157
+ disabled: n,
158
+ value: W || "",
159
+ onChange: Re,
160
+ onKeyDown: ue,
161
+ placeholder: t != null && t.label && Object.keys(t).length ? t.label : re
162
+ }
163
+ );
164
+ return /* @__PURE__ */ S("div", { className: `u-react-select-container${E ? ` ${E}` : ""} ${oe ?? ""}`, style: { position: "relative" }, children: [
165
+ /* @__PURE__ */ S(
166
+ "div",
167
+ {
168
+ style: Object.assign(
169
+ {
170
+ display: "flex",
171
+ flexDirection: v ? "row" : "column",
172
+ rowGap: v ? null : G(se),
173
+ columnGap: v ? G(le) : null
174
+ },
175
+ te
176
+ ),
177
+ children: [
178
+ O && /* @__PURE__ */ o(
179
+ "div",
180
+ {
181
+ id: `${p}-label`,
182
+ className: `${z ? "u-required" : ""} u-react-select-title`,
183
+ style: Object.assign(
184
+ {
185
+ color: "var(--u-field-title-color, #545454)",
186
+ fontSize: "var(--u-field-label-size-main, calc(14 * var(--u-unit, 1px)))"
187
+ },
188
+ ce
189
+ ),
190
+ children: O
191
+ }
192
+ ),
193
+ /* @__PURE__ */ S(
194
+ "div",
195
+ {
196
+ className: `u-selectbox${n ? " u-selectbox-disabled" : ""} u-react-select`,
197
+ ref: A,
198
+ style: Object.assign(
199
+ {
200
+ width: "100%"
201
+ },
202
+ ie
203
+ ),
204
+ children: [
205
+ g ? /* @__PURE__ */ S("div", { style: { position: "relative", width: "100%" }, children: [
206
+ _,
207
+ !n && u ? /* @__PURE__ */ o(
208
+ "div",
209
+ {
210
+ role: "button",
211
+ tabIndex: -1,
212
+ className: "u-selectbox-select-icon-cross",
213
+ "aria-label": "Очистить",
214
+ onClick: Y,
215
+ onKeyDown: (e) => {
216
+ (e.key === "Enter" || e.key === " ") && Y(e);
217
+ },
218
+ style: {
219
+ zIndex: 2,
220
+ cursor: "pointer",
221
+ right: h ? "calc(8 * var(--u-unit, 1px))" : "calc(20 * var(--u-unit, 1px))"
222
+ }
223
+ }
224
+ ) : null
225
+ ] }) : _,
226
+ s && x ? /* @__PURE__ */ o(
227
+ "div",
228
+ {
229
+ className: "u-selectbox-options",
230
+ style: Object.assign(
231
+ { textAlign: "center", padding: "calc(16 * var(--u-unit, 1px))" },
232
+ Q ?? {}
233
+ ),
234
+ children: /* @__PURE__ */ o("span", { className: "u-selectbox-loading", children: "Загрузка..." })
235
+ }
236
+ ) : null,
237
+ !x && k && Se && i && Pe(
238
+ /* @__PURE__ */ o(
239
+ "div",
240
+ {
241
+ ref: L,
242
+ ...We(),
243
+ id: p,
244
+ role: "listbox",
245
+ className: "u-selectbox-options",
246
+ style: Object.assign(
247
+ {
248
+ width: we,
249
+ left: i == null ? void 0 : i.x,
250
+ top: Ne ?? (i == null ? void 0 : i.y) - 60,
251
+ opacity: 1,
252
+ visibility: "visible",
253
+ height: "fit-content",
254
+ // Переменная, чтобы список внутри модалки можно было
255
+ // поднять над ней, не трогая код потребителя.
256
+ zIndex: "var(--u-select-popup-z, 10010)",
257
+ display: "block"
258
+ },
259
+ d.optionsStyle,
260
+ I(Oe, H)
261
+ ),
262
+ children: r.length > 0 ? r.map((e, l) => Z(e, l)) : X
263
+ }
264
+ ),
265
+ document.body
266
+ ),
267
+ !x && !k && ve ? /* @__PURE__ */ o(
268
+ "div",
269
+ {
270
+ ref: B,
271
+ id: p,
272
+ role: "listbox",
273
+ className: ze ? "u-selectbox-options u-selectbox-options-up" : "u-selectbox-options",
274
+ style: Object.assign(
275
+ {},
276
+ Q ?? {},
277
+ // см. Select: без своего `display` переход срывается на кадре,
278
+ // когда vanilla уже спрятала список, а узел ещё нужен
279
+ { display: "block" },
280
+ d.optionsStyle,
281
+ I(ge, H)
282
+ ),
283
+ children: r.length > 0 ? r.map((e, l) => Z(e, l)) : X
284
+ }
285
+ ) : null
286
+ ]
287
+ }
288
+ )
289
+ ]
290
+ }
291
+ ),
292
+ w.showText && /* @__PURE__ */ o("h5", { id: `${p}-error`, className: "h5 clr-red-main", style: de ? { position: "absolute", bottom: "calc(-20 * var(--u-unit, 1px))" } : { position: "relative", marginTop: "calc(4 * var(--u-unit, 1px))" }, children: w.text })
293
+ ] });
294
+ };
295
+ export { lt as SearchSelect$u };
@@ -0,0 +1,41 @@
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import { OPTION_STATE_COLORS$u as r } from "../../shared/optionStateColors.js";
3
+ import { isSameOptionValue$u as m } from "../../shared/optionValue.js";
4
+ const O = ({
5
+ option: e,
6
+ index: o,
7
+ listboxId: c,
8
+ selectedValue: i,
9
+ isActive: l,
10
+ tableView: n,
11
+ onSelect: s,
12
+ onHover: a
13
+ }) => {
14
+ const t = m(i, e == null ? void 0 : e.value);
15
+ return /* @__PURE__ */ u(
16
+ "div",
17
+ {
18
+ className: "u-selectbox-option",
19
+ "data-option-index": o,
20
+ id: `${c}-option-${o}`,
21
+ role: "option",
22
+ "aria-selected": t,
23
+ onClick: (d) => {
24
+ d.stopPropagation(), s(e);
25
+ },
26
+ style: Object.assign(
27
+ n ? {
28
+ minHeight: "var(--u-compact-height)",
29
+ fontSize: "var(--u-compact-font-size)",
30
+ lineHeight: 1,
31
+ padding: "var(--u-compact-padding)"
32
+ } : {},
33
+ t ? { backgroundColor: r.selectedBackground } : l ? { backgroundColor: r.hoveredBackground } : {}
34
+ ),
35
+ onMouseEnter: () => a(o),
36
+ onMouseLeave: () => a(null),
37
+ children: e.label
38
+ }
39
+ );
40
+ };
41
+ export { O as SearchSelectOption$u };
@@ -0,0 +1,25 @@
1
+ import { useState as d, useLayoutEffect as a } from "react";
2
+ const B = 4, T = ({
3
+ isOpen: n,
4
+ portalOn: e,
5
+ anchor: o,
6
+ blockRef: f,
7
+ portalOptionsRef: g,
8
+ optionsListRef: h,
9
+ dependencies: m
10
+ }) => {
11
+ const [w, p] = d(null), [F, c] = d(!1);
12
+ return a(() => {
13
+ if (!n) {
14
+ p(null), c(!1);
15
+ return;
16
+ }
17
+ const s = e ? g.current : h.current, l = e ? o : f.current;
18
+ if (!s || !l) return;
19
+ const t = l.getBoundingClientRect(), i = s.getBoundingClientRect().height, u = window.innerHeight - t.bottom, P = t.top, r = i > u && P > u;
20
+ c(r), p(
21
+ e && r ? t.top + window.scrollY - i - B : null
22
+ );
23
+ }, [n, e, o, ...m]), { flippedTop: w, flippedUp: F };
24
+ };
25
+ export { T as useFlippedPlacement$u };
@@ -1,4 +1,4 @@
1
- import './MobileOptionSheet.less';
1
+
2
2
  type SheetOption = {
3
3
  label?: string;
4
4
  value?: string | number | null;