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.
- package/README.md +4 -25
- package/dist/components/Accordion/Accordion.js +18 -0
- package/dist/components/BreadCrumbs/BreadCrumbs.d.ts +1 -1
- package/dist/components/BreadCrumbs/BreadCrumbs.d.ts.map +1 -1
- package/dist/components/BreadCrumbs/BreadCrumbs.js +32 -0
- package/dist/components/Button/Button.d.ts +1 -0
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +88 -0
- package/dist/components/Button/Button.types.d.ts +9 -3
- package/dist/components/Button/Button.types.d.ts.map +1 -1
- package/dist/components/Button/ButtonRefreshIcon.js +35 -0
- package/dist/components/Calendar/Calendar.d.ts +1 -5
- package/dist/components/Calendar/Calendar.d.ts.map +1 -1
- package/dist/components/Calendar/Calendar.js +355 -0
- package/dist/components/Calendar/CalendarSelect.js +149 -0
- package/dist/components/Calendar/MaskedDateInput.d.ts.map +1 -1
- package/dist/components/Calendar/MaskedDateInput.js +191 -0
- package/dist/components/Calendar/dateMask.d.ts +0 -1
- package/dist/components/Calendar/dateMask.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/Card.js +75 -0
- package/dist/components/Checkbox/Checkbox.js +30 -0
- package/dist/components/ColumnSettings/ColumnSettings.js +216 -0
- package/dist/components/ConfirmModal/ConfirmModal.d.ts +1 -0
- package/dist/components/ConfirmModal/ConfirmModal.d.ts.map +1 -1
- package/dist/components/ConfirmModal/ConfirmModal.js +40 -0
- package/dist/components/ErrorScreen/ErrorScreen.d.ts +1 -1
- package/dist/components/ErrorScreen/ErrorScreen.d.ts.map +1 -1
- package/dist/components/ErrorScreen/ErrorScreen.js +221 -0
- package/dist/components/ErrorScreen/ErrorScreenIllustration.js +57 -0
- package/dist/components/FormField/FormField.d.ts +1 -1
- package/dist/components/FormField/FormField.d.ts.map +1 -1
- package/dist/components/FormField/FormField.js +40 -0
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/Icon.js +32 -0
- package/dist/components/Icon/Icon.types.d.ts +3 -1
- package/dist/components/Icon/Icon.types.d.ts.map +1 -1
- package/dist/components/InputExpandTextarea/InputExpandTextarea.d.ts +1 -1
- package/dist/components/InputExpandTextarea/InputExpandTextarea.d.ts.map +1 -1
- package/dist/components/InputExpandTextarea/InputExpandTextarea.js +144 -0
- package/dist/components/InputFile/InputFile.d.ts +1 -1
- package/dist/components/InputFile/InputFile.d.ts.map +1 -1
- package/dist/components/InputFile/InputFile.js +203 -0
- package/dist/components/InputFile/InputFile.types.d.ts +0 -6
- package/dist/components/InputFile/InputFile.types.d.ts.map +1 -1
- package/dist/components/InputNumber/InputNumber.d.ts +1 -1
- package/dist/components/InputNumber/InputNumber.d.ts.map +1 -1
- package/dist/components/InputNumber/InputNumber.js +220 -0
- package/dist/components/InputText/InputAffix.d.ts +1 -1
- package/dist/components/InputText/InputAffix.js +109 -0
- package/dist/components/InputText/InputText.d.ts +2 -1
- package/dist/components/InputText/InputText.d.ts.map +1 -1
- package/dist/components/InputText/InputText.js +137 -0
- package/dist/components/InputTime/InputTime.d.ts +1 -1
- package/dist/components/InputTime/InputTime.d.ts.map +1 -1
- package/dist/components/InputTime/InputTime.js +335 -0
- package/dist/components/InputTime/InputTimeDropdown.js +31 -0
- package/dist/components/InputTime/inputTimeKeyDown.js +63 -0
- package/dist/components/InputTime/useInputTimeWheel.js +45 -0
- package/dist/components/Menu/Menu.d.ts +1 -1
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/Menu.js +113 -0
- package/dist/components/Message/Message.js +29 -0
- package/dist/components/Modal/Modal.d.ts +1 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +102 -0
- package/dist/components/Modal/editorFocus.js +15 -0
- package/dist/components/Modal/useModalFocus.js +112 -0
- package/dist/components/Modal/useModalTitleClearance.js +48 -0
- package/dist/components/Multiselect/Multiselect.d.ts +1 -0
- package/dist/components/Multiselect/Multiselect.d.ts.map +1 -1
- package/dist/components/Multiselect/Multiselect.js +408 -0
- package/dist/components/Notification/Notification.d.ts +1 -1
- package/dist/components/Notification/Notification.d.ts.map +1 -1
- package/dist/components/Notification/Notification.js +156 -0
- package/dist/components/OfflineBanner/OfflineBanner.d.ts +1 -1
- package/dist/components/OfflineBanner/OfflineBanner.d.ts.map +1 -1
- package/dist/components/OfflineBanner/OfflineBanner.js +40 -0
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.js +126 -0
- package/dist/components/Preloader/Preloader.d.ts.map +1 -1
- package/dist/components/Preloader/Preloader.js +60 -0
- package/dist/components/Radio/Radio.js +34 -0
- package/dist/components/Search/Search.d.ts +1 -1
- package/dist/components/Search/Search.d.ts.map +1 -1
- package/dist/components/Search/Search.js +47 -0
- package/dist/components/SearchSelect/SearchSelect.js +295 -0
- package/dist/components/SearchSelect/SearchSelectOption.js +41 -0
- package/dist/components/SearchSelect/useFlippedPlacement.js +25 -0
- package/dist/components/Select/MobileOptionSheet.d.ts +1 -1
- package/dist/components/Select/MobileOptionSheet.d.ts.map +1 -1
- package/dist/components/Select/MobileOptionSheet.js +116 -0
- package/dist/components/Select/Select.js +319 -0
- package/dist/components/Skeleton/Skeleton.js +38 -0
- package/dist/components/Skeleton/Skeleton.types.d.ts +4 -2
- package/dist/components/Skeleton/Skeleton.types.d.ts.map +1 -1
- package/dist/components/Status/Status.js +43 -0
- package/dist/components/StickyActionBar/StickyActionBar.d.ts +1 -1
- package/dist/components/StickyActionBar/StickyActionBar.d.ts.map +1 -1
- package/dist/components/StickyActionBar/StickyActionBar.js +73 -0
- package/dist/components/Switch/Switch.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.js +29 -0
- package/dist/components/Table/Filter/DefaultInput.d.ts.map +1 -1
- package/dist/components/Table/Filter/DefaultInput.js +22 -0
- package/dist/components/Table/Filter/Filter.js +233 -0
- package/dist/components/Table/Filter/Filter.types.d.ts +17 -13
- package/dist/components/Table/Filter/Filter.types.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterBooleanBox.d.ts +1 -0
- package/dist/components/Table/Filter/FilterBooleanBox.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterBooleanBox.js +40 -0
- package/dist/components/Table/Filter/FilterBoxShell.js +89 -0
- package/dist/components/Table/Filter/FilterConditionSelect.js +14 -0
- package/dist/components/Table/Filter/FilterDateBox.d.ts +1 -0
- package/dist/components/Table/Filter/FilterDateBox.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterDateBox.js +173 -0
- package/dist/components/Table/Filter/FilterPanel.js +25 -0
- package/dist/components/Table/Filter/FilterSortIndicator.js +24 -0
- package/dist/components/Table/Filter/FilterStringBox.js +115 -0
- package/dist/components/Table/Filter/Functions.d.ts +0 -6
- package/dist/components/Table/Filter/Functions.d.ts.map +1 -1
- package/dist/components/Table/Filter/Functions.js +76 -0
- package/dist/components/Table/Filter/SelectFilter.js +114 -0
- package/dist/components/Table/Filter/SelectOptions.js +21 -0
- package/dist/components/Table/Filter/TableFilterOptions.d.ts +1 -0
- package/dist/components/Table/Filter/TableFilterOptions.d.ts.map +1 -1
- package/dist/components/Table/Filter/TableFilterOptions.js +268 -0
- package/dist/components/Table/Filter/TableFilterSortButton.js +17 -0
- package/dist/components/Table/Filter/filterBoxHelpers.js +2 -0
- package/dist/components/Table/Filter/filterExpression.js +48 -0
- package/dist/components/Table/Filter/filterLoading.js +2 -0
- package/dist/components/Table/Filter/useFilterDates.js +33 -0
- package/dist/components/Table/Filter/useFilterOptionsPreload.js +22 -0
- package/dist/components/Table/Filter/useLocalFilterSearch.js +32 -0
- package/dist/components/Table/Filter/usePagedFilterOptions.js +71 -0
- package/dist/components/Table/Filter/useServerFilterOptions.js +35 -0
- package/dist/components/Table/Filter/useVirtualOptionWindow.js +80 -0
- package/dist/components/Table/Functions.js +54 -0
- package/dist/components/Table/Skeleton/TableSkeleton.js +28 -0
- package/dist/components/Table/Skeleton/createSkeletonColumns.js +9 -0
- package/dist/components/Table/Table.d.ts +1 -0
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/Table.dataPipeline.d.ts.map +1 -1
- package/dist/components/Table/Table.dataPipeline.js +75 -0
- package/dist/components/Table/Table.helpers.d.ts +2 -2
- package/dist/components/Table/Table.helpers.d.ts.map +1 -1
- package/dist/components/Table/Table.helpers.js +72 -0
- package/dist/components/Table/Table.js +419 -0
- package/dist/components/Table/Table.types.d.ts +6 -2
- package/dist/components/Table/Table.types.d.ts.map +1 -1
- package/dist/components/Table/TableHead.d.ts.map +1 -1
- package/dist/components/Table/TableHead.js +189 -0
- package/dist/components/Table/TableMobileCard.js +215 -0
- package/dist/components/Table/TableMobileFilters.js +56 -0
- package/dist/components/Table/TableMobileView.js +316 -0
- package/dist/components/Table/TableRow.js +136 -0
- package/dist/components/Table/useColumnResize.d.ts +3 -2
- package/dist/components/Table/useColumnResize.d.ts.map +1 -1
- package/dist/components/Table/useColumnResize.js +44 -0
- package/dist/components/Table/useDelayedSkeleton.d.ts +0 -2
- package/dist/components/Table/useDelayedSkeleton.d.ts.map +1 -1
- package/dist/components/Table/useDelayedSkeleton.js +32 -0
- package/dist/components/Table/useMobileFilterColumns.d.ts +1 -1
- package/dist/components/Table/useMobileFilterColumns.d.ts.map +1 -1
- package/dist/components/Table/useMobileFilterColumns.js +52 -0
- package/dist/components/Table/useStableColumnWidths.js +22 -0
- package/dist/components/Table/useTableColumnPinning.d.ts +2 -57
- package/dist/components/Table/useTableColumnPinning.d.ts.map +1 -1
- package/dist/components/Table/useTableColumnPinning.js +52 -0
- package/dist/components/Table/useTableFilters.js +39 -0
- package/dist/components/Table/useTableSortState.js +38 -0
- package/dist/components/Table/useTableVirtualization.js +145 -0
- package/dist/components/Tabs/Tabs.d.ts +1 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.js +135 -0
- package/dist/components/Tabs/useTabsOverflow.js +49 -0
- package/dist/components/Textarea/Textarea.js +102 -0
- package/dist/components/Tooltip/Tooltip.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +218 -0
- package/dist/components/TreeView/TreeView.d.ts +1 -0
- package/dist/components/TreeView/TreeView.d.ts.map +1 -1
- package/dist/components/TreeView/TreeView.js +323 -0
- package/dist/components/TreeView/TreeView.types.d.ts +0 -4
- package/dist/components/TreeView/TreeView.types.d.ts.map +1 -1
- package/dist/dev/index.js +336 -336
- package/dist/dev/types/vanilla/src/dev/shown.d.ts +0 -2
- package/dist/dev/types/vanilla/src/dev/store.d.ts +0 -4
- package/dist/fonts/icons/urfu-ui-icon-font.eot +0 -0
- package/dist/fonts/icons/urfu-ui-icon-font.svg +3 -0
- package/dist/fonts/icons/urfu-ui-icon-font.ttf +0 -0
- package/dist/fonts/icons/urfu-ui-icon-font.woff +0 -0
- package/dist/fonts/icons/urfu-ui-icon-font.woff2 +0 -0
- package/dist/hooks/useActiveOptionScroll.js +20 -0
- package/dist/hooks/useAnchoredPosition.d.ts +12 -0
- package/dist/hooks/useAnchoredPosition.d.ts.map +1 -1
- package/dist/hooks/useAnchoredPosition.js +37 -0
- package/dist/hooks/useAutoId.d.ts +0 -1
- package/dist/hooks/useAutoId.d.ts.map +1 -1
- package/dist/hooks/useAutoId.js +7 -0
- package/dist/hooks/useAutoPortal.js +11 -0
- package/dist/hooks/useDebounce.js +11 -0
- package/dist/hooks/useDismiss.d.ts +1 -1
- package/dist/hooks/useDismiss.d.ts.map +1 -1
- package/dist/hooks/useDismiss.js +20 -0
- package/dist/hooks/useInputOverflow.d.ts +9 -0
- package/dist/hooks/useInputOverflow.d.ts.map +1 -0
- package/dist/hooks/useInputOverflow.js +16 -0
- package/dist/hooks/useMediaQuery.js +21 -0
- package/dist/hooks/useMobilePicker.js +7 -0
- package/dist/hooks/useMountTransition.d.ts +1 -1
- package/dist/hooks/useMountTransition.d.ts.map +1 -1
- package/dist/hooks/useMountTransition.js +21 -0
- package/dist/hooks/useOnlineStatus.js +11 -0
- package/dist/hooks/useOptionKeyboardNavigation.js +63 -0
- package/dist/hooks/usePagination.js +31 -0
- package/dist/hooks/useSelectEngine.d.ts +3 -3
- package/dist/hooks/useSelectEngine.d.ts.map +1 -1
- package/dist/hooks/useSelectEngine.js +96 -0
- package/dist/hooks/useTableSort.js +13 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/responsive/uiKitResponsive.js +44 -0
- package/dist/shared/fieldAccessibility.js +8 -0
- package/dist/shared/iconNames.d.ts +5 -0
- package/dist/shared/iconNames.d.ts.map +1 -0
- package/dist/shared/inputOverflow.d.ts +10 -0
- package/dist/shared/inputOverflow.d.ts.map +1 -0
- package/dist/shared/kitCopy.js +9 -0
- package/dist/shared/optionStateColors.js +5 -0
- package/dist/shared/optionValue.d.ts +1 -1
- package/dist/shared/optionValue.d.ts.map +1 -1
- package/dist/shared/optionValue.js +11 -0
- package/dist/shared/popupTransition.js +11 -0
- package/dist/shared/size.d.ts +0 -1
- package/dist/shared/size.d.ts.map +1 -1
- package/dist/shared/size.js +4 -0
- package/dist/shared/sortRows.js +24 -0
- package/dist/shared/uiKitDefaults.js +25 -0
- package/dist/style-no-fonts.css +1 -1
- package/dist/style.css +1 -1
- package/dist/style.layer.css +9 -9
- package/dist/style.shell.css +15 -11
- package/dist/urfu-ui-kit-react.js +57 -17502
- package/dist/vanilla/core/BoundedOptionPageCache.js +41 -0
- package/dist/vanilla/core/dateMask.js +28 -0
- package/dist/vanilla/core/describeError.js +243 -0
- package/dist/vanilla/core/devLauncherOffset.js +20 -0
- package/dist/vanilla/core/distributeTabs.js +25 -0
- package/dist/vanilla/core/hasPreviousPage.js +6 -0
- package/dist/vanilla/core/inputMode.js +17 -0
- package/dist/vanilla/core/inputOverflow.js +34 -0
- package/dist/vanilla/core/kitRegistry.js +160 -0
- package/dist/vanilla/core/reconcileColumnOrder.js +5 -0
- package/dist/vanilla/core/sheetTitle.js +11 -0
- package/dist/vanilla/core/validation.js +21 -0
- package/dist/vendor/@floating-ui/core/dist/floating-ui.core.js +323 -0
- package/dist/vendor/@floating-ui/dom/dist/floating-ui.dom.js +383 -0
- package/dist/vendor/@floating-ui/react/dist/floating-ui.react.js +255 -0
- package/dist/vendor/@floating-ui/react-dom/dist/floating-ui.react-dom.js +183 -0
- package/dist/vendor/@floating-ui/utils/dist/floating-ui.utils.dom.js +110 -0
- package/dist/vendor/@floating-ui/utils/dist/floating-ui.utils.js +106 -0
- package/dist/vendor/clsx/dist/clsx.js +14 -0
- package/dist/vendor/date-fns/_lib/addLeadingZeros.js +5 -0
- package/dist/vendor/date-fns/_lib/defaultOptions.js +5 -0
- package/dist/vendor/date-fns/_lib/format/formatters.js +547 -0
- package/dist/vendor/date-fns/_lib/format/lightFormatters.js +56 -0
- package/dist/vendor/date-fns/_lib/format/longFormatters.js +47 -0
- package/dist/vendor/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +16 -0
- package/dist/vendor/date-fns/_lib/protectedTokens.js +16 -0
- package/dist/vendor/date-fns/addDays.js +7 -0
- package/dist/vendor/date-fns/addHours.js +6 -0
- package/dist/vendor/date-fns/addMilliseconds.js +7 -0
- package/dist/vendor/date-fns/addMinutes.js +6 -0
- package/dist/vendor/date-fns/addMonths.js +17 -0
- package/dist/vendor/date-fns/addQuarters.js +6 -0
- package/dist/vendor/date-fns/addSeconds.js +5 -0
- package/dist/vendor/date-fns/addWeeks.js +6 -0
- package/dist/vendor/date-fns/addYears.js +5 -0
- package/dist/vendor/date-fns/constants.js +2 -0
- package/dist/vendor/date-fns/constructFrom.js +4 -0
- package/dist/vendor/date-fns/differenceInCalendarDays.js +8 -0
- package/dist/vendor/date-fns/differenceInCalendarMonths.js +6 -0
- package/dist/vendor/date-fns/differenceInCalendarQuarters.js +7 -0
- package/dist/vendor/date-fns/differenceInCalendarYears.js +6 -0
- package/dist/vendor/date-fns/differenceInDays.js +13 -0
- package/dist/vendor/date-fns/endOfDay.js +6 -0
- package/dist/vendor/date-fns/endOfMonth.js +6 -0
- package/dist/vendor/date-fns/endOfWeek.js +8 -0
- package/dist/vendor/date-fns/endOfYear.js +6 -0
- package/dist/vendor/date-fns/format.js +53 -0
- package/dist/vendor/date-fns/getDate.js +5 -0
- package/dist/vendor/date-fns/getDay.js +5 -0
- package/dist/vendor/date-fns/getDayOfYear.js +8 -0
- package/dist/vendor/date-fns/getDaysInMonth.js +7 -0
- package/dist/vendor/date-fns/getDefaultOptions.js +5 -0
- package/dist/vendor/date-fns/getHours.js +5 -0
- package/dist/vendor/date-fns/getISODay.js +6 -0
- package/dist/vendor/date-fns/getISOWeek.js +9 -0
- package/dist/vendor/date-fns/getISOWeekYear.js +12 -0
- package/dist/vendor/date-fns/getMinutes.js +5 -0
- package/dist/vendor/date-fns/getMonth.js +5 -0
- package/dist/vendor/date-fns/getQuarter.js +6 -0
- package/dist/vendor/date-fns/getSeconds.js +5 -0
- package/dist/vendor/date-fns/getTime.js +5 -0
- package/dist/vendor/date-fns/getWeek.js +9 -0
- package/dist/vendor/date-fns/getWeekYear.js +14 -0
- package/dist/vendor/date-fns/getYear.js +5 -0
- package/dist/vendor/date-fns/isAfter.js +6 -0
- package/dist/vendor/date-fns/isBefore.js +6 -0
- package/dist/vendor/date-fns/isDate.js +4 -0
- package/dist/vendor/date-fns/isEqual.js +6 -0
- package/dist/vendor/date-fns/isSameDay.js +6 -0
- package/dist/vendor/date-fns/isSameMonth.js +6 -0
- package/dist/vendor/date-fns/isSameQuarter.js +6 -0
- package/dist/vendor/date-fns/isSameWeek.js +6 -0
- package/dist/vendor/date-fns/isSameYear.js +6 -0
- package/dist/vendor/date-fns/isValid.js +9 -0
- package/dist/vendor/date-fns/isWithinInterval.js +9 -0
- package/dist/vendor/date-fns/locale/_lib/buildFormatLongFn.js +7 -0
- package/dist/vendor/date-fns/locale/_lib/buildLocalizeFn.js +16 -0
- package/dist/vendor/date-fns/locale/_lib/buildMatchFn.js +29 -0
- package/dist/vendor/date-fns/locale/_lib/buildMatchPatternFn.js +13 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/formatDistance.js +68 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/formatLong.js +31 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/formatRelative.js +9 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/localize.js +153 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/match.js +108 -0
- package/dist/vendor/date-fns/locale/en-US.js +18 -0
- package/dist/vendor/date-fns/locale/ru/_lib/formatDistance.js +182 -0
- package/dist/vendor/date-fns/locale/ru/_lib/formatLong.js +28 -0
- package/dist/vendor/date-fns/locale/ru/_lib/formatRelative.js +62 -0
- package/dist/vendor/date-fns/locale/ru/_lib/localize.js +177 -0
- package/dist/vendor/date-fns/locale/ru/_lib/match.js +109 -0
- package/dist/vendor/date-fns/locale/ru.js +18 -0
- package/dist/vendor/date-fns/max.js +9 -0
- package/dist/vendor/date-fns/min.js +9 -0
- package/dist/vendor/date-fns/parse/_lib/Parser.js +20 -0
- package/dist/vendor/date-fns/parse/_lib/Setter.js +36 -0
- package/dist/vendor/date-fns/parse/_lib/constants.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/AMPMParser.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/DateParser.js +59 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/DayOfYearParser.js +49 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/DayParser.js +45 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/DayPeriodParser.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/EraParser.js +29 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ExtendedYearParser.js +19 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +20 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/Hour0To11Parser.js +30 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/Hour0to23Parser.js +30 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/Hour1To24Parser.js +31 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/Hour1to12Parser.js +31 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISODayParser.js +101 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +45 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +45 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISOWeekParser.js +47 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +38 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/LocalDayParser.js +76 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/LocalWeekParser.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +67 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/MinuteParser.js +30 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/MonthParser.js +73 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/QuarterParser.js +71 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/SecondParser.js +30 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +76 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +73 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +71 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +20 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +20 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/YearParser.js +47 -0
- package/dist/vendor/date-fns/parse/_lib/parsers.js +65 -0
- package/dist/vendor/date-fns/parse/_lib/utils.js +90 -0
- package/dist/vendor/date-fns/parse.js +85 -0
- package/dist/vendor/date-fns/parseISO.js +119 -0
- package/dist/vendor/date-fns/set.js +8 -0
- package/dist/vendor/date-fns/setDay.js +9 -0
- package/dist/vendor/date-fns/setHours.js +6 -0
- package/dist/vendor/date-fns/setISODay.js +8 -0
- package/dist/vendor/date-fns/setISOWeek.js +7 -0
- package/dist/vendor/date-fns/setMinutes.js +6 -0
- package/dist/vendor/date-fns/setMonth.js +10 -0
- package/dist/vendor/date-fns/setQuarter.js +7 -0
- package/dist/vendor/date-fns/setSeconds.js +6 -0
- package/dist/vendor/date-fns/setWeek.js +7 -0
- package/dist/vendor/date-fns/setYear.js +7 -0
- package/dist/vendor/date-fns/startOfDay.js +6 -0
- package/dist/vendor/date-fns/startOfISOWeek.js +5 -0
- package/dist/vendor/date-fns/startOfISOWeekYear.js +8 -0
- package/dist/vendor/date-fns/startOfMonth.js +6 -0
- package/dist/vendor/date-fns/startOfQuarter.js +6 -0
- package/dist/vendor/date-fns/startOfWeek.js +8 -0
- package/dist/vendor/date-fns/startOfWeekYear.js +10 -0
- package/dist/vendor/date-fns/startOfYear.js +7 -0
- package/dist/vendor/date-fns/subDays.js +5 -0
- package/dist/vendor/date-fns/subMonths.js +5 -0
- package/dist/vendor/date-fns/subQuarters.js +5 -0
- package/dist/vendor/date-fns/subWeeks.js +5 -0
- package/dist/vendor/date-fns/subYears.js +5 -0
- package/dist/vendor/date-fns/toDate.js +5 -0
- package/dist/vendor/date-fns/transpose.js +15 -0
- package/dist/vendor/react-datepicker/dist/es/index.js +2696 -0
- package/package.json +37 -35
- package/dist/hooks/useOutsideAlerter.d.ts +0 -3
- package/dist/hooks/useOutsideAlerter.d.ts.map +0 -1
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { jsxs as v, jsx as r, Fragment as re } from "react/jsx-runtime";
|
|
2
|
+
import { useState as T, useRef as W, useId as ce, useEffect as Y, useLayoutEffect as ae, Fragment as le } from "react";
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { Button$u as ie } from "../Button/Button.js";
|
|
6
|
+
import { Tooltip$u as oe } from "../Tooltip/Tooltip.js";
|
|
7
|
+
import { Icon$u as ue } from "../Icon/Icon.js";
|
|
8
|
+
import { Checkbox$u as A } from "../Checkbox/Checkbox.js";
|
|
9
|
+
import { reconcileColumnOrder$u as de } from "../../vanilla/core/reconcileColumnOrder.js";
|
|
10
|
+
function ke({
|
|
11
|
+
options: p,
|
|
12
|
+
visible: N,
|
|
13
|
+
onChange: Z,
|
|
14
|
+
order: j,
|
|
15
|
+
onOrderChange: E,
|
|
16
|
+
pinned: y,
|
|
17
|
+
onPinnedChange: u,
|
|
18
|
+
pinnedRight: b,
|
|
19
|
+
onPinnedRightChange: d,
|
|
20
|
+
pinLabel: k = "Закрепить",
|
|
21
|
+
variant: _ = "default",
|
|
22
|
+
title: H = "Настройка отображения таблицы",
|
|
23
|
+
icon: P = "sliders",
|
|
24
|
+
buttonLabel: K = "Настроить таблицу",
|
|
25
|
+
tooltipOn: S = !1,
|
|
26
|
+
align: B = "right",
|
|
27
|
+
maxListHeight: q = 320,
|
|
28
|
+
className: ee = ""
|
|
29
|
+
}) {
|
|
30
|
+
const [i, F] = T(!1), [L, x] = T(0), [te, ne] = T(""), I = W(null), M = W(null), R = ce(), o = N instanceof Set ? N : new Set(N), m = y instanceof Set ? y : new Set(y), f = b instanceof Set ? b : new Set(b), $ = y !== void 0 && u !== void 0, h = b !== void 0 && d !== void 0, z = $ || h, a = E !== void 0, w = de(p.map((e) => e.key), j), U = new Map(p.map((e) => [e.key, e])), C = j !== void 0 || a ? w.map((e) => U.get(e)) : p, se = (e, t) => {
|
|
31
|
+
var c;
|
|
32
|
+
if (!E) return;
|
|
33
|
+
const n = w.indexOf(e);
|
|
34
|
+
if (n < 0 || t < 0 || t >= w.length || n === t) return;
|
|
35
|
+
const s = [...w];
|
|
36
|
+
s.splice(n, 1), s.splice(t, 0, e), E(s), ne("Колонка «" + ((c = U.get(e)) == null ? void 0 : c.label) + "»: позиция " + (t + 1) + " из " + s.length);
|
|
37
|
+
}, X = (e, t) => se(e, w.indexOf(e) + t);
|
|
38
|
+
Y(() => {
|
|
39
|
+
if (!i) return;
|
|
40
|
+
const e = (n) => {
|
|
41
|
+
var s;
|
|
42
|
+
(s = I.current) != null && s.contains(n.target) || F(!1);
|
|
43
|
+
}, t = (n) => {
|
|
44
|
+
n.key === "Escape" && F(!1);
|
|
45
|
+
};
|
|
46
|
+
return document.addEventListener("mousedown", e), document.addEventListener("keydown", t), () => {
|
|
47
|
+
document.removeEventListener("mousedown", e), document.removeEventListener("keydown", t);
|
|
48
|
+
};
|
|
49
|
+
}, [i]);
|
|
50
|
+
const D = () => {
|
|
51
|
+
const e = I.current, t = M.current;
|
|
52
|
+
if (!e || !t) return;
|
|
53
|
+
const n = e.getBoundingClientRect(), s = t.offsetWidth, c = B === "right" ? n.right - s : n.left, g = c + s, l = 8;
|
|
54
|
+
c < l ? x(l - c) : g > window.innerWidth - l ? x(window.innerWidth - l - g) : x(0);
|
|
55
|
+
};
|
|
56
|
+
ae(() => {
|
|
57
|
+
i ? D() : x(0);
|
|
58
|
+
});
|
|
59
|
+
const G = W(D);
|
|
60
|
+
G.current = D, Y(() => {
|
|
61
|
+
if (!i) return;
|
|
62
|
+
let e = 0;
|
|
63
|
+
const t = () => G.current(), n = () => {
|
|
64
|
+
t(), cancelAnimationFrame(e), e = requestAnimationFrame(() => {
|
|
65
|
+
t(), e = requestAnimationFrame(t);
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
return window.addEventListener("resize", n), () => {
|
|
69
|
+
window.removeEventListener("resize", n), cancelAnimationFrame(e);
|
|
70
|
+
};
|
|
71
|
+
}, [i]);
|
|
72
|
+
const J = (e) => {
|
|
73
|
+
var n;
|
|
74
|
+
if ((n = p.find((s) => s.key === e)) != null && n.required) return;
|
|
75
|
+
const t = new Set(o);
|
|
76
|
+
if (t.has(e)) {
|
|
77
|
+
if (t.delete(e), m.has(e) && u) {
|
|
78
|
+
const s = new Set(m);
|
|
79
|
+
s.delete(e), u(s);
|
|
80
|
+
}
|
|
81
|
+
if (f.has(e) && d) {
|
|
82
|
+
const s = new Set(f);
|
|
83
|
+
s.delete(e), d(s);
|
|
84
|
+
}
|
|
85
|
+
} else
|
|
86
|
+
t.add(e);
|
|
87
|
+
Z(t);
|
|
88
|
+
}, Q = (e, t) => {
|
|
89
|
+
const n = t === "left" ? u : d, s = t === "left" ? m : f;
|
|
90
|
+
if (!n || !o.has(e)) return;
|
|
91
|
+
const c = new Set(s);
|
|
92
|
+
if (c.has(e)) c.delete(e);
|
|
93
|
+
else {
|
|
94
|
+
c.add(e);
|
|
95
|
+
const g = t === "left" ? f : m, l = t === "left" ? d : u;
|
|
96
|
+
if (g.has(e) && l) {
|
|
97
|
+
const V = new Set(g);
|
|
98
|
+
V.delete(e), l(V);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
n(c);
|
|
102
|
+
}, O = (e, t) => S ? /* @__PURE__ */ r(oe, { tooltipText: t, portalOn: !0, children: e }) : e;
|
|
103
|
+
return /* @__PURE__ */ v("div", { className: `u-react-column-settings u-react-column-settings-${_}${$ && h ? " u-react-column-settings-both-sides" : ""} ${ee}`.trim(), ref: I, children: [
|
|
104
|
+
O(
|
|
105
|
+
/* @__PURE__ */ r(
|
|
106
|
+
ie,
|
|
107
|
+
{
|
|
108
|
+
variant: "icon",
|
|
109
|
+
icon: P,
|
|
110
|
+
iconOnly: !0,
|
|
111
|
+
iconSize: 20,
|
|
112
|
+
onClick: () => F((e) => !e),
|
|
113
|
+
"aria-label": K,
|
|
114
|
+
title: S ? void 0 : K
|
|
115
|
+
}
|
|
116
|
+
),
|
|
117
|
+
K
|
|
118
|
+
),
|
|
119
|
+
i && /* @__PURE__ */ v(
|
|
120
|
+
"div",
|
|
121
|
+
{
|
|
122
|
+
className: `u-react-column-settings-panel u-react-column-settings-panel-${B}`,
|
|
123
|
+
role: "dialog",
|
|
124
|
+
"aria-labelledby": R,
|
|
125
|
+
ref: M,
|
|
126
|
+
style: L ? { transform: `translateX(${L}px)` } : void 0,
|
|
127
|
+
children: [
|
|
128
|
+
/* @__PURE__ */ r("p", { className: "u-react-column-settings-title", id: R, children: H }),
|
|
129
|
+
z && /* @__PURE__ */ v("div", { className: `u-react-column-settings-head${a ? " u-react-column-settings-head-with-order" : ""}`, "aria-hidden": "true", children: [
|
|
130
|
+
/* @__PURE__ */ r("span", { children: "Колонка" }),
|
|
131
|
+
/* @__PURE__ */ r("span", { children: a ? "Вид" : "Показывать" }),
|
|
132
|
+
$ && O(/* @__PURE__ */ r("span", { title: S ? void 0 : k, children: h ? "Слева" : a && k === "Закрепить" ? "Закр" : k }), k),
|
|
133
|
+
h && /* @__PURE__ */ r("span", { children: "Справа" }),
|
|
134
|
+
a && /* @__PURE__ */ r("span", { children: "Порядок" })
|
|
135
|
+
] }),
|
|
136
|
+
/* @__PURE__ */ r(
|
|
137
|
+
"ul",
|
|
138
|
+
{
|
|
139
|
+
className: "u-react-column-settings-list",
|
|
140
|
+
style: q ? { maxHeight: `${q}px`, "--u-column-settings-list-max": `${q}px` } : void 0,
|
|
141
|
+
children: C.map((e, t) => /* @__PURE__ */ v(
|
|
142
|
+
"li",
|
|
143
|
+
{
|
|
144
|
+
"data-column-key": e.key,
|
|
145
|
+
className: `u-react-column-settings-item${z ? " u-react-column-settings-item-with-pinning" : ""}${a ? " u-react-column-settings-item-with-order" : ""}`,
|
|
146
|
+
onKeyDown: a ? (n) => {
|
|
147
|
+
!n.altKey || !["ArrowUp", "ArrowDown"].includes(n.key) || (n.preventDefault(), X(e.key, n.key === "ArrowUp" ? -1 : 1));
|
|
148
|
+
} : void 0,
|
|
149
|
+
children: [
|
|
150
|
+
z ? /* @__PURE__ */ v(re, { children: [
|
|
151
|
+
/* @__PURE__ */ r("span", { className: "u-react-column-settings-label", children: e.label }),
|
|
152
|
+
/* @__PURE__ */ r(
|
|
153
|
+
A,
|
|
154
|
+
{
|
|
155
|
+
checked: e.required || o.has(e.key),
|
|
156
|
+
disabled: e.required,
|
|
157
|
+
propsInput: { "aria-label": `Показывать: ${e.label}` },
|
|
158
|
+
onChange: () => J(e.key)
|
|
159
|
+
}
|
|
160
|
+
),
|
|
161
|
+
$ && /* @__PURE__ */ r(
|
|
162
|
+
A,
|
|
163
|
+
{
|
|
164
|
+
checked: m.has(e.key),
|
|
165
|
+
disabled: !o.has(e.key),
|
|
166
|
+
propsInput: { "aria-label": `Закрепить слева: ${e.label}` },
|
|
167
|
+
onChange: () => Q(e.key, "left")
|
|
168
|
+
}
|
|
169
|
+
),
|
|
170
|
+
h && /* @__PURE__ */ r(
|
|
171
|
+
A,
|
|
172
|
+
{
|
|
173
|
+
checked: f.has(e.key),
|
|
174
|
+
disabled: !o.has(e.key),
|
|
175
|
+
propsInput: { "aria-label": `Закрепить справа: ${e.label}` },
|
|
176
|
+
onChange: () => Q(e.key, "right")
|
|
177
|
+
}
|
|
178
|
+
)
|
|
179
|
+
] }) : (
|
|
180
|
+
/* Подпись слева, квадрат справа: строка читается как
|
|
181
|
+
«колонка — показывать?», а не наоборот. */
|
|
182
|
+
/* @__PURE__ */ r(
|
|
183
|
+
A,
|
|
184
|
+
{
|
|
185
|
+
rightCheckbox: !0,
|
|
186
|
+
checked: e.required || o.has(e.key),
|
|
187
|
+
disabled: e.required,
|
|
188
|
+
onChange: () => J(e.key),
|
|
189
|
+
children: /* @__PURE__ */ r("span", { className: "u-react-column-settings-label", children: e.label })
|
|
190
|
+
}
|
|
191
|
+
)
|
|
192
|
+
),
|
|
193
|
+
a && /* @__PURE__ */ r("span", { className: "u-react-column-settings-order", children: [-1, 1].map((n) => /* @__PURE__ */ r(le, { children: O(/* @__PURE__ */ r(
|
|
194
|
+
"button",
|
|
195
|
+
{
|
|
196
|
+
type: "button",
|
|
197
|
+
"aria-label": (n < 0 ? "Выше: " : "Ниже: ") + e.label,
|
|
198
|
+
title: S ? void 0 : n < 0 ? "Переместить выше (Alt+↑)" : "Переместить ниже (Alt+↓)",
|
|
199
|
+
"aria-disabled": n < 0 ? t === 0 : t === C.length - 1,
|
|
200
|
+
onClick: () => X(e.key, n),
|
|
201
|
+
children: /* @__PURE__ */ r(ue, { name: n < 0 ? "up-arrow" : "down-arrow", size: "16px" })
|
|
202
|
+
}
|
|
203
|
+
), n < 0 ? "Переместить выше (Alt+↑)" : "Переместить ниже (Alt+↓)") }, n)) })
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
e.key
|
|
207
|
+
))
|
|
208
|
+
}
|
|
209
|
+
),
|
|
210
|
+
a && /* @__PURE__ */ r("span", { className: "u-react-column-settings-announcement", role: "status", "aria-live": "polite", children: te })
|
|
211
|
+
]
|
|
212
|
+
}
|
|
213
|
+
)
|
|
214
|
+
] });
|
|
215
|
+
}
|
|
216
|
+
export { ke as ColumnSettings$u };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmModal.d.ts","sourceRoot":"","sources":["../../../src/components/ConfirmModal/ConfirmModal.tsx"],"names":[],"mappings":"AAGA,OAAO,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfirmModal.d.ts","sourceRoot":"","sources":["../../../src/components/ConfirmModal/ConfirmModal.tsx"],"names":[],"mappings":"AAGA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,4DAA4D,CAAC;AAEpE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAEnE;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,yIAY1B,sBAAsB,4CAwBxB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsxs as a, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useAutoId$u as h } from "../../hooks/useAutoId.js";
|
|
3
|
+
import { Button$u as e } from "../Button/Button.js";
|
|
4
|
+
import { Modal$u as _ } from "../Modal/Modal.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
/* empty css */
|
|
7
|
+
const k = ({
|
|
8
|
+
active: m,
|
|
9
|
+
title: c,
|
|
10
|
+
description: r,
|
|
11
|
+
onCancel: t,
|
|
12
|
+
onConfirm: o,
|
|
13
|
+
confirmText: d = "Да",
|
|
14
|
+
cancelText: n = "Нет",
|
|
15
|
+
confirmVariant: s = "primary",
|
|
16
|
+
confirmDisabled: u = !1,
|
|
17
|
+
className: p = "",
|
|
18
|
+
...f
|
|
19
|
+
}) => {
|
|
20
|
+
const l = h(void 0, "u-confirm-modal-title");
|
|
21
|
+
return /* @__PURE__ */ a(
|
|
22
|
+
_,
|
|
23
|
+
{
|
|
24
|
+
...f,
|
|
25
|
+
ariaLabelledBy: l,
|
|
26
|
+
active: m,
|
|
27
|
+
onCancel: t,
|
|
28
|
+
className: `u-react-confirm-modal ${p}`,
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ i("h3", { id: l, className: "u-react-confirm-modal__title", children: c }),
|
|
31
|
+
r ? /* @__PURE__ */ i("div", { className: "u-react-confirm-modal__description", children: r }) : null,
|
|
32
|
+
/* @__PURE__ */ a("div", { className: "u-react-confirm-modal__actions", children: [
|
|
33
|
+
/* @__PURE__ */ i(e, { type: "button", variant: "simple", onClick: t, children: n }),
|
|
34
|
+
o ? /* @__PURE__ */ i(e, { type: "button", variant: s, disabled: u, onClick: o, children: d }) : null
|
|
35
|
+
] })
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
export { k as ConfirmModal$u };
|
|
@@ -2,7 +2,7 @@ import { type ReactNode } from 'react';
|
|
|
2
2
|
import { type ErrorScreenIllustrationName } from './ErrorScreenIllustration';
|
|
3
3
|
import { type SupportRequest } from '../../utils/describeError';
|
|
4
4
|
import '../../styles/tokens.less';
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
export type ErrorScreenVariant = 'notFound' | 'forbidden' | 'serverError' | 'maintenance';
|
|
7
7
|
export type { ErrorScreenIllustrationName };
|
|
8
8
|
export interface ErrorScreenProperties {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorScreen.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorScreen/ErrorScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6E,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlH,OAAO,EAA6C,KAAK,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AACxH,OAAO,EAEoB,KAAK,cAAc,EAC7C,MAAM,2BAA2B,CAAC;AACnC,OAAO,0BAA0B,CAAC;AAClC,OAAO,
|
|
1
|
+
{"version":3,"file":"ErrorScreen.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorScreen/ErrorScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6E,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlH,OAAO,EAA6C,KAAK,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AACxH,OAAO,EAEoB,KAAK,cAAc,EAC7C,MAAM,2BAA2B,CAAC;AACnC,OAAO,0BAA0B,CAAC;AAClC,OAAO,2DAA2D,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,aAAa,CAAC;AAC1F,YAAY,EAAE,2BAA2B,EAAE,CAAC;AAc5C,MAAM,WAAW,qBAAqB;IAClC,yFAAyF;IACzF,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yFAAyF;IACzF,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,+FAA+F;IAC/F,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,yGAAyG;IACzG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8FAA8F;IAC9F,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IAC9C,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,wFAAwF;IACxF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC9B,qGAAqG;IACrG,YAAY,CAAC,EAAE,2BAA2B,GAAG,MAAM,CAAC;IACpD,oGAAoG;IACpG,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC;IACtB,iFAAiF;IACjF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qGAAqG;IACrG,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAoCD,sFAAsF;AACtF,wBAAgB,WAAW,CAAC,EACxB,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAChI,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,WAAW,EAC7E,oBAAoB,EAAE,iBAAiB,EAAE,OAAe,EAAE,SAAc,EAAE,UAAkB,GAC/F,EAAE,qBAAqB,2CAsHvB"}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { jsxs as s, jsx as o, Fragment as se } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as _, useState as v, useEffect as ue, useLayoutEffect as de, useMemo as me } from "react";
|
|
3
|
+
import { Button$u as k } from "../Button/Button.js";
|
|
4
|
+
import { Card$u as fe } from "../Card/Card.js";
|
|
5
|
+
import { Icon$u as pe } from "../Icon/Icon.js";
|
|
6
|
+
import { ErrorScreenIllustration$u as he, ErrorScreenDecor$u as Q } from "./ErrorScreenIllustration.js";
|
|
7
|
+
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
|
+
import { describeError$u as ve, formatErrorDetails$u as Ee, DEFAULT_SUPPORT_EMAIL$u as be, DEFAULT_SUPPORT_LABEL$u as we, supportMailto$u as ge, getErrorReportConfig$u as Ce } from "../../vanilla/core/describeError.js";
|
|
10
|
+
const ye = {
|
|
11
|
+
notFound: { code: "404", title: "Страница не найдена", text: "Возможно, страница была удалена или адрес введён с ошибкой." },
|
|
12
|
+
forbidden: { code: "403", title: "Нет доступа к странице", text: "Права вашей роли не позволяют открыть этот раздел." },
|
|
13
|
+
serverError: { code: "500", title: "Ошибка в работе сервиса", text: "Попробуйте обновить страницу. Если ошибка повторится, обратитесь в техническую поддержку." },
|
|
14
|
+
maintenance: { code: "503", title: "Сервис на обслуживании", text: "Сейчас идут плановые работы — сервис скоро вернётся к работе. Всё, что вы успели сделать до этого, сохранено." }
|
|
15
|
+
}, Ne = {
|
|
16
|
+
notFound: "none",
|
|
17
|
+
forbidden: "forbidden",
|
|
18
|
+
serverError: "error",
|
|
19
|
+
maintenance: "maintenance"
|
|
20
|
+
}, Se = '[id^="__qiankun_microapp_wrapper_for_"]';
|
|
21
|
+
function Le() {
|
|
22
|
+
return typeof window < "u" && !!window.__POWERED_BY_QIANKUN__;
|
|
23
|
+
}
|
|
24
|
+
function Re(r) {
|
|
25
|
+
for (let e = r.parentElement; e && e !== document.body; e = e.parentElement) {
|
|
26
|
+
const { overflowY: t } = getComputedStyle(e);
|
|
27
|
+
if (t === "auto" || t === "scroll") return e;
|
|
28
|
+
}
|
|
29
|
+
return r;
|
|
30
|
+
}
|
|
31
|
+
function Ae(r, e) {
|
|
32
|
+
const t = [];
|
|
33
|
+
for (let n = r; n && n !== e; n = n.parentElement) {
|
|
34
|
+
const u = n.parentElement;
|
|
35
|
+
if (!u) break;
|
|
36
|
+
for (const a of Array.from(u.children))
|
|
37
|
+
a !== n && a instanceof HTMLElement && !a.inert && (a.inert = !0, t.push(a));
|
|
38
|
+
}
|
|
39
|
+
return () => t.forEach((n) => {
|
|
40
|
+
n.inert = !1;
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function $e({
|
|
44
|
+
variant: r,
|
|
45
|
+
error: e,
|
|
46
|
+
subject: t,
|
|
47
|
+
operation: n,
|
|
48
|
+
notFoundIsPage: u,
|
|
49
|
+
onRetry: a,
|
|
50
|
+
onLogin: f,
|
|
51
|
+
onHome: E,
|
|
52
|
+
showDetails: b,
|
|
53
|
+
supportEmail: T,
|
|
54
|
+
supportLabel: x,
|
|
55
|
+
onSupport: z,
|
|
56
|
+
title: w,
|
|
57
|
+
text: g,
|
|
58
|
+
code: l,
|
|
59
|
+
illustration: C,
|
|
60
|
+
reasons: y,
|
|
61
|
+
reasonsTitle: X,
|
|
62
|
+
onAction: Z,
|
|
63
|
+
actionLabel: ee,
|
|
64
|
+
secondaryActionLabel: j,
|
|
65
|
+
onSecondaryAction: q,
|
|
66
|
+
loading: F = !1,
|
|
67
|
+
className: I = "",
|
|
68
|
+
fullScreen: N = !1
|
|
69
|
+
}) {
|
|
70
|
+
const K = _(null), W = _(null), B = _(null), [re] = v(Le), [te, ne] = v(null), [oe, le] = v(!1), p = N && re && !oe;
|
|
71
|
+
ue(() => {
|
|
72
|
+
const i = K.current;
|
|
73
|
+
if (!N || p || !i) return;
|
|
74
|
+
const d = (L) => L.preventDefault();
|
|
75
|
+
return i.setAttribute("closedby", "none"), i.addEventListener("cancel", d), i.showModal(), J(B.current), () => {
|
|
76
|
+
i.removeEventListener("cancel", d), i.close();
|
|
77
|
+
};
|
|
78
|
+
}, [N, p]), de(() => {
|
|
79
|
+
const i = W.current;
|
|
80
|
+
if (!p || !i) return;
|
|
81
|
+
const d = i.closest(Se);
|
|
82
|
+
if (!d) {
|
|
83
|
+
le(!0);
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
const L = Re(d), R = () => {
|
|
87
|
+
const A = L.getBoundingClientRect();
|
|
88
|
+
ne({ top: A.top, left: A.left, width: A.width, height: A.height });
|
|
89
|
+
};
|
|
90
|
+
R();
|
|
91
|
+
const m = typeof ResizeObserver > "u" ? null : new ResizeObserver(R);
|
|
92
|
+
m == null || m.observe(L), window.addEventListener("resize", R);
|
|
93
|
+
const ae = Ae(i, d), H = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
94
|
+
return J(B.current), () => {
|
|
95
|
+
m == null || m.disconnect(), window.removeEventListener("resize", R), ae(), H == null || H.focus();
|
|
96
|
+
};
|
|
97
|
+
}, [p]);
|
|
98
|
+
const c = me(() => {
|
|
99
|
+
if (e == null) return;
|
|
100
|
+
const i = ve(e, { subject: t, operation: n, notFoundIsPage: u });
|
|
101
|
+
return i.group === "aborted" ? void 0 : i;
|
|
102
|
+
}, [e, t, n, u]), Y = r ?? (c == null ? void 0 : c.variant) ?? "serverError", S = ye[Y], D = l !== void 0 ? l : c ? c.code : S.code, O = C ?? (l != null ? "none" : Ne[Y]), h = y != null && y.length ? y : null, P = D ?? void 0, U = w ?? (c == null ? void 0 : c.title) ?? S.title, M = typeof U == "string" ? U : S.title, ce = !!(j && q), V = _e(c, { onAction: Z, actionLabel: ee, onRetry: a, onLogin: f, onHome: E }), ie = [
|
|
103
|
+
"u-error-screen-card",
|
|
104
|
+
O !== "none" && "u-error-screen-card--illustrated",
|
|
105
|
+
h && "u-error-screen-card--reasons"
|
|
106
|
+
].filter(Boolean).join(" "), $ = /* @__PURE__ */ s(fe, { className: ie, children: [
|
|
107
|
+
O !== "none" ? /* @__PURE__ */ o(he, { name: O }) : D !== null && /* @__PURE__ */ o("span", { className: "u-error-screen-code", "aria-hidden": "true", children: D }),
|
|
108
|
+
/* @__PURE__ */ s("div", { className: "u-error-screen-message", children: [
|
|
109
|
+
/* @__PURE__ */ o("p", { className: "u-error-screen-title", children: U }),
|
|
110
|
+
(g !== void 0 || c || !h) && /* @__PURE__ */ o("p", { className: "u-error-screen-description", children: g ?? (c == null ? void 0 : c.text) ?? S.text }),
|
|
111
|
+
h && /* @__PURE__ */ s("div", { className: "u-error-screen-reasons", children: [
|
|
112
|
+
/* @__PURE__ */ o("p", { className: "u-error-screen-reasons-title", children: X ?? (h.length > 1 ? "Причины" : "Причина") }),
|
|
113
|
+
/* @__PURE__ */ o("ul", { className: "u-error-screen-reasons-list", children: h.map((i, d) => /* @__PURE__ */ o("li", { children: i }, d)) })
|
|
114
|
+
] })
|
|
115
|
+
] }),
|
|
116
|
+
/* @__PURE__ */ s("div", { className: "u-error-screen-actions", ref: B, children: [
|
|
117
|
+
ce && /* @__PURE__ */ o(k, { size: "small", variant: "simple", disabled: F, onClick: q, children: j }),
|
|
118
|
+
/* @__PURE__ */ o(k, { size: "small", loading: F, onClick: V.onClick, children: V.label })
|
|
119
|
+
] }),
|
|
120
|
+
c && b !== !1 && /* @__PURE__ */ o(Te, { description: { ...c, title: M }, support: ke({ supportEmail: T, supportLabel: x, onSupport: z }) })
|
|
121
|
+
] });
|
|
122
|
+
return p ? /* @__PURE__ */ s(
|
|
123
|
+
"div",
|
|
124
|
+
{
|
|
125
|
+
ref: W,
|
|
126
|
+
role: "dialog",
|
|
127
|
+
"aria-label": M,
|
|
128
|
+
style: te ?? void 0,
|
|
129
|
+
"data-error-code": P,
|
|
130
|
+
className: `u-error-screen u-error-screen-fullscreen u-error-screen-area ${I}`,
|
|
131
|
+
children: [
|
|
132
|
+
/* @__PURE__ */ o(Q, {}),
|
|
133
|
+
$
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
) : N ? /* @__PURE__ */ s(
|
|
137
|
+
"dialog",
|
|
138
|
+
{
|
|
139
|
+
ref: K,
|
|
140
|
+
className: `u-error-screen u-error-screen-fullscreen ${I}`,
|
|
141
|
+
"aria-label": M,
|
|
142
|
+
"data-error-code": P,
|
|
143
|
+
children: [
|
|
144
|
+
/* @__PURE__ */ o(Q, {}),
|
|
145
|
+
$
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
) : /* @__PURE__ */ s("div", { className: `u-error-screen ${I}`, role: "alert", "data-error-code": P, children: [
|
|
149
|
+
/* @__PURE__ */ o(Q, {}),
|
|
150
|
+
$
|
|
151
|
+
] });
|
|
152
|
+
}
|
|
153
|
+
const G = () => window.location.reload();
|
|
154
|
+
function J(r) {
|
|
155
|
+
var e;
|
|
156
|
+
(e = r == null ? void 0 : r.querySelector("button:last-of-type")) == null || e.focus();
|
|
157
|
+
}
|
|
158
|
+
function _e(r, e) {
|
|
159
|
+
const t = e.actionLabel;
|
|
160
|
+
if (e.onAction) return { label: t ?? (r ? "Повторить" : "Обновить страницу"), onClick: e.onAction };
|
|
161
|
+
if (!r) return { label: t ?? "Обновить страницу", onClick: e.onRetry ?? G };
|
|
162
|
+
const n = { label: t ?? "Обновить страницу", onClick: G };
|
|
163
|
+
switch (r.action) {
|
|
164
|
+
case "login":
|
|
165
|
+
return e.onLogin ? { label: t ?? r.actionLabel, onClick: e.onLogin } : n;
|
|
166
|
+
case "home":
|
|
167
|
+
return e.onHome ? { label: t ?? r.actionLabel, onClick: e.onHome } : n;
|
|
168
|
+
case "retry":
|
|
169
|
+
case "wait":
|
|
170
|
+
case "fix":
|
|
171
|
+
return e.onRetry ? { label: t ?? r.actionLabel, onClick: e.onRetry } : n;
|
|
172
|
+
default:
|
|
173
|
+
return n;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
function ke(r) {
|
|
177
|
+
const e = Ce();
|
|
178
|
+
return { email: r.supportEmail !== void 0 ? r.supportEmail : e.supportEmail !== void 0 ? e.supportEmail : be, label: r.supportLabel ?? e.supportLabel ?? we, onSupport: r.onSupport ?? e.onSupport };
|
|
179
|
+
}
|
|
180
|
+
function Te({ description: r, support: e }) {
|
|
181
|
+
const t = e.email, [n, u] = v("idle"), a = _(null), f = Ee(r), E = () => {
|
|
182
|
+
const l = window.getSelection();
|
|
183
|
+
l && a.current && l.selectAllChildren(a.current);
|
|
184
|
+
}, b = (l, C) => {
|
|
185
|
+
if (!navigator.clipboard) {
|
|
186
|
+
E(), C();
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
navigator.clipboard.writeText(f).then(l, () => {
|
|
190
|
+
E(), C();
|
|
191
|
+
});
|
|
192
|
+
}, T = () => b(() => u("copied"), () => u("selected")), x = () => {
|
|
193
|
+
const l = t ? ge(r, t) : null;
|
|
194
|
+
if (e.onSupport) {
|
|
195
|
+
e.onSupport({ report: f, description: r, mailto: l });
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
l && (b(() => u("mailCopied"), () => u("mailSelected")), window.open(l, "_self"));
|
|
199
|
+
}, z = {
|
|
200
|
+
idle: "",
|
|
201
|
+
copied: "Скопировано",
|
|
202
|
+
selected: "Выделено — нажмите Ctrl+C",
|
|
203
|
+
mailCopied: `Открываем письмо. Если почта не открылась — текст скопирован, вставьте его в письмо на ${t}`,
|
|
204
|
+
mailSelected: `Открываем письмо. Если почта не открылась — текст выделен: нажмите Ctrl+C и вставьте его в письмо на ${t}`
|
|
205
|
+
}[n], [w, g] = v(!1);
|
|
206
|
+
return /* @__PURE__ */ s("details", { className: "u-error-screen-details", onToggle: (l) => g(l.currentTarget.open), children: [
|
|
207
|
+
/* @__PURE__ */ s("summary", { children: [
|
|
208
|
+
"Подробности для технической поддержки",
|
|
209
|
+
/* @__PURE__ */ o(pe, { name: "up", size: 14, rotate: w ? 0 : 180 })
|
|
210
|
+
] }),
|
|
211
|
+
w && /* @__PURE__ */ s(se, { children: [
|
|
212
|
+
/* @__PURE__ */ o("pre", { ref: a, className: "u-error-screen-report", children: f }),
|
|
213
|
+
/* @__PURE__ */ s("div", { className: "u-error-screen-copy", children: [
|
|
214
|
+
(t || e.onSupport) && /* @__PURE__ */ o(k, { size: "small", variant: "outline", onClick: x, children: e.label }),
|
|
215
|
+
/* @__PURE__ */ o(k, { size: "small", variant: "text", onClick: T, children: "Скопировать" })
|
|
216
|
+
] }),
|
|
217
|
+
/* @__PURE__ */ o("p", { className: "u-error-screen-copy-status", role: "status", "aria-live": "polite", children: z })
|
|
218
|
+
] })
|
|
219
|
+
] });
|
|
220
|
+
}
|
|
221
|
+
export { $e as ErrorScreen$u };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsx as r, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
const c = "var(--u-color-text, #222222)", C = "var(--u-color-primary, #1E4391)";
|
|
3
|
+
function n({ y: e, gapFrom: i, gapTo: a }) {
|
|
4
|
+
const o = e + 72;
|
|
5
|
+
return /* @__PURE__ */ t("g", { stroke: c, strokeWidth: "3", strokeLinecap: "round", fill: "none", children: [
|
|
6
|
+
/* @__PURE__ */ r("path", { d: `M${i} ${o}H8C4.686 ${o} 2 ${o - 2.686} 2 ${o - 6}V${e + 6}C2 ${e + 2.686} 4.686 ${e} 8 ${e}H102C105.314 ${e} 108 ${e + 2.686} 108 ${e + 6}V${o - 6}C108 ${o - 2.686} 105.314 ${o} 102 ${o}H${a}` }),
|
|
7
|
+
/* @__PURE__ */ r("path", { d: `M8.5 ${e + 15}H101.5` }),
|
|
8
|
+
/* @__PURE__ */ r("path", { d: `M95.5 ${e + 5}L99.5 ${e + 9}M99.5 ${e + 5}L95.5 ${e + 9}` }),
|
|
9
|
+
/* @__PURE__ */ r("path", { d: `M84.5 ${e + 9}H88.5` })
|
|
10
|
+
] });
|
|
11
|
+
}
|
|
12
|
+
const l = "M32.274 64.071C33.354 61.036 37.646 61.036 38.726 64.071C39.406 65.983 41.589 66.887 43.422 66.016C46.331 64.633 49.367 67.669 47.984 70.578C47.113 72.411 48.017 74.594 49.929 75.274C52.964 76.354 52.964 80.646 49.929 81.726C48.017 82.406 47.113 84.589 47.984 86.422C49.367 89.331 46.331 92.367 43.422 90.984C41.589 90.113 39.406 91.017 38.726 92.929C37.646 95.964 33.354 95.964 32.274 92.929C31.594 91.017 29.411 90.113 27.578 90.984C24.669 92.367 21.633 89.331 23.016 86.422C23.887 84.589 22.983 82.406 21.071 81.726C18.036 80.646 18.036 76.354 21.071 75.274C22.983 74.594 23.887 72.411 23.016 70.578C21.633 67.669 24.669 64.633 27.578 66.016C29.411 66.887 31.594 65.983 32.274 64.071Z", L = "M25.235 29.369C25.993 27.238 29.007 27.238 29.765 29.369C30.242 30.711 31.775 31.346 33.062 30.735C35.105 29.764 37.236 31.895 36.265 33.938C35.654 35.225 36.289 36.758 37.631 37.235C39.762 37.993 39.762 41.007 37.631 41.765C36.289 42.242 35.654 43.775 36.265 45.062C37.236 47.105 35.105 49.236 33.062 48.265C31.775 47.654 30.242 48.289 29.765 49.631C29.007 51.762 25.993 51.762 25.235 49.631C24.758 48.289 23.225 47.654 21.938 48.265C19.895 49.236 17.764 47.105 18.735 45.062C19.346 43.775 18.711 42.242 17.369 41.765C15.238 41.007 15.238 37.993 17.369 37.235C18.711 36.758 19.346 35.225 18.735 33.938C17.764 31.895 19.895 29.764 21.938 30.735C23.225 31.346 24.758 30.711 25.235 29.369Z";
|
|
13
|
+
function s() {
|
|
14
|
+
return /* @__PURE__ */ t("g", { stroke: c, strokeWidth: "3", children: [
|
|
15
|
+
/* @__PURE__ */ r("path", { d: l }),
|
|
16
|
+
/* @__PURE__ */ r("circle", { cx: "35.5", cy: "78.5", r: "7" }),
|
|
17
|
+
/* @__PURE__ */ r("path", { d: L }),
|
|
18
|
+
/* @__PURE__ */ r("circle", { cx: "27.5", cy: "39.5", r: "4" })
|
|
19
|
+
] });
|
|
20
|
+
}
|
|
21
|
+
function d() {
|
|
22
|
+
return /* @__PURE__ */ t("svg", { className: "u-error-screen-illustration", width: "110", height: "134", viewBox: "0 0 110 134", fill: "none", "aria-hidden": "true", focusable: "false", children: [
|
|
23
|
+
/* @__PURE__ */ r(n, { y: 7, gapFrom: 10.894, gapTo: 31.11 }),
|
|
24
|
+
/* @__PURE__ */ r("rect", { x: "23.5", y: "36.5", width: "73", height: "96", rx: "4.5", fill: "var(--u-color-surface, #FFFFFF)", stroke: c, strokeWidth: "3" }),
|
|
25
|
+
/* @__PURE__ */ r("g", { stroke: c, strokeWidth: "3", strokeLinecap: "round", children: /* @__PURE__ */ r("path", { d: "M36.5 49.5H83.5M36.5 60.5H83.5M36.5 71.5H83.5" }) }),
|
|
26
|
+
/* @__PURE__ */ t("g", { stroke: C, strokeWidth: "3", fill: "none", children: [
|
|
27
|
+
/* @__PURE__ */ r("circle", { cx: "59.5", cy: "104.5", r: "14" }),
|
|
28
|
+
/* @__PURE__ */ r("path", { d: "M50.7 95.7L67.6 113.9" })
|
|
29
|
+
] })
|
|
30
|
+
] });
|
|
31
|
+
}
|
|
32
|
+
function h() {
|
|
33
|
+
return /* @__PURE__ */ t("svg", { className: "u-error-screen-illustration", width: "110", height: "100", viewBox: "0 0 110 100", fill: "none", "aria-hidden": "true", focusable: "false", children: [
|
|
34
|
+
/* @__PURE__ */ r(n, { y: 2, gapFrom: 10.56, gapTo: 62.5 }),
|
|
35
|
+
/* @__PURE__ */ r(s, {}),
|
|
36
|
+
/* @__PURE__ */ r("path", { d: "M79.286 27.85C80.063 26.558 81.937 26.558 82.714 27.85L100.828 57.969C101.63 59.302 100.67 61 99.114 61H62.886C61.331 61 60.37 59.302 61.172 57.969Z", stroke: c, strokeWidth: "3" }),
|
|
37
|
+
/* @__PURE__ */ r("path", { d: "M80.312 49.752L79.976 43.2H82.048L81.698 49.752H80.312ZM81.012 53.098C80.685 53.098 80.414 52.991 80.2 52.776C79.985 52.561 79.878 52.305 79.878 52.006C79.878 51.707 79.985 51.455 80.2 51.25C80.414 51.035 80.685 50.928 81.012 50.928C81.338 50.928 81.604 51.035 81.81 51.25C82.015 51.455 82.118 51.707 82.118 52.006C82.118 52.305 82.015 52.561 81.81 52.776C81.604 52.991 81.338 53.098 81.012 53.098Z", fill: c })
|
|
38
|
+
] });
|
|
39
|
+
}
|
|
40
|
+
function u() {
|
|
41
|
+
return /* @__PURE__ */ t("svg", { className: "u-error-screen-illustration", width: "110", height: "100", viewBox: "0 0 110 100", fill: "none", "aria-hidden": "true", focusable: "false", children: [
|
|
42
|
+
/* @__PURE__ */ r(n, { y: 2, gapFrom: 10.56, gapTo: 62.5 }),
|
|
43
|
+
/* @__PURE__ */ r(s, {}),
|
|
44
|
+
/* @__PURE__ */ r("path", { d: "M89.309 64.31L73.681 54.994C73.555 54.919 73.404 54.9 73.265 54.943L68.076 56.518C67.8 56.602 67.5 56.563 67.256 56.41L61.932 53.085C61.768 52.982 61.637 52.834 61.555 52.658L58.125 45.281C57.705 44.379 58.717 43.484 59.561 44.011L67.65 49.063C68.118 49.355 68.735 49.213 69.028 48.744L73.329 41.857C73.622 41.389 73.479 40.772 73.011 40.479L64.922 35.428C64.078 34.9 64.438 33.598 65.433 33.58L73.567 33.425C73.761 33.422 73.952 33.474 74.116 33.577L79.495 36.937C79.707 37.069 79.862 37.276 79.929 37.517L81.228 42.199C81.263 42.322 81.343 42.428 81.453 42.493L96.845 51.668C100.387 53.78 101.502 58.389 99.318 61.887C97.197 65.283 92.749 66.36 89.309 64.31Z", stroke: c, strokeWidth: "3" })
|
|
45
|
+
] });
|
|
46
|
+
}
|
|
47
|
+
function p({ name: e }) {
|
|
48
|
+
return e === "forbidden" ? /* @__PURE__ */ r(d, {}) : e === "maintenance" ? /* @__PURE__ */ r(u, {}) : /* @__PURE__ */ r(h, {});
|
|
49
|
+
}
|
|
50
|
+
function g() {
|
|
51
|
+
return /* @__PURE__ */ r("span", { className: "u-error-screen-decor", "aria-hidden": "true", children: /* @__PURE__ */ t("span", { className: "u-error-screen-decor-stars", children: [
|
|
52
|
+
/* @__PURE__ */ r("svg", { className: "u-error-screen-decor-star u-error-screen-decor-star--big", width: "85", height: "85", viewBox: "0 0 85 85", focusable: "false", children: /* @__PURE__ */ r("path", { d: "M42.503 0L43.621 39.794L72.552 12.449L45.202 41.383L85 42.5L45.202 43.624L72.552 72.551L43.621 45.206L42.503 85L41.38 45.206L12.448 72.551L39.798 43.624L0 42.5L39.798 41.383L12.448 12.449L41.38 39.794Z", fill: "var(--u-error-screen-decor-color, #003DA6)" }) }),
|
|
53
|
+
/* @__PURE__ */ r("svg", { className: "u-error-screen-decor-star u-error-screen-decor-star--small", width: "37", height: "37", viewBox: "0 0 37 37", focusable: "false", children: /* @__PURE__ */ r("path", { d: "M37 18.5C26.784 18.5 18.5 10.216 18.5 0C18.5 10.216 10.216 18.5 0 18.5C10.216 18.5 18.5 26.784 18.5 37C18.5 26.784 26.784 18.5 37 18.5Z", fill: "var(--u-error-screen-decor-color, #003DA6)" }) }),
|
|
54
|
+
/* @__PURE__ */ r("svg", { className: "u-error-screen-decor-star u-error-screen-decor-star--ring", width: "65", height: "65", viewBox: "0 0 65 65", fill: "none", focusable: "false", children: /* @__PURE__ */ r("path", { d: "M32.212 0.032L32.722 7.962C33.012 12.442 39.042 13.642 41.022 9.612L44.522 2.482L41.962 10.002C40.512 14.252 45.632 17.662 48.992 14.702L54.962 9.452L49.712 15.422C46.752 18.792 50.162 23.902 54.412 22.462L61.932 19.902L54.802 23.412C50.782 25.392 51.982 31.422 56.452 31.712L64.382 32.222L56.452 32.732C51.972 33.022 50.772 39.052 54.802 41.032L61.932 44.542L54.412 41.982C50.162 40.532 46.752 45.652 49.712 49.022L54.962 54.992L48.992 49.742C45.622 46.782 40.512 50.192 41.962 54.442L44.522 61.962L41.022 54.832C39.042 50.802 33.012 52.002 32.722 56.482L32.212 64.412L31.702 56.482C31.412 52.002 25.382 50.802 23.402 54.832L19.902 61.962L22.462 54.442C23.912 50.192 18.792 46.782 15.422 49.742L9.452 54.992L14.702 49.022C17.662 45.652 14.252 40.542 10.002 41.982L2.482 44.542L9.612 41.032C13.642 39.052 12.442 33.022 7.962 32.732L0.032 32.222L7.962 31.712C12.442 31.422 13.642 25.392 9.612 23.412L2.482 19.902L10.002 22.462C14.242 23.912 17.662 18.792 14.702 15.422L9.452 9.452L15.422 14.702C18.792 17.662 23.902 14.252 22.462 10.002L19.902 2.482L23.402 9.612C25.382 13.642 31.412 12.442 31.702 7.962Z", stroke: "var(--u-error-screen-decor-color, #174496)" }) })
|
|
55
|
+
] }) });
|
|
56
|
+
}
|
|
57
|
+
export { g as ErrorScreenDecor$u, p as ErrorScreenIllustration$u };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../src/components/FormField/FormField.tsx"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,0BAA0B,CAAC;AAClC,OAAO,
|
|
1
|
+
{"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../src/components/FormField/FormField.tsx"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,0BAA0B,CAAC;AAClC,OAAO,yDAAyD,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAG7D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,GAAI,qFAWvB,mBAAmB,4CA6BrB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsxs as u, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { resolveValidation$u as p } from "../../vanilla/core/validation.js";
|
|
6
|
+
const $ = ({
|
|
7
|
+
title: i,
|
|
8
|
+
required: a = !1,
|
|
9
|
+
error: m,
|
|
10
|
+
inline: t = !1,
|
|
11
|
+
gap: r,
|
|
12
|
+
hint: o,
|
|
13
|
+
htmlFor: n,
|
|
14
|
+
className: f = "",
|
|
15
|
+
style: d,
|
|
16
|
+
children: c
|
|
17
|
+
}) => {
|
|
18
|
+
const l = p({ error: m }), s = typeof r == "number" ? `calc(${r} * var(--u-preset-unit, 1px))` : r;
|
|
19
|
+
return /* @__PURE__ */ u(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
className: `u-form-field${t ? " u-form-field--inline" : ""} ${f}`.trim(),
|
|
23
|
+
style: { ...s ? { gap: s } : null, ...d },
|
|
24
|
+
children: [
|
|
25
|
+
i && /* @__PURE__ */ e(
|
|
26
|
+
"label",
|
|
27
|
+
{
|
|
28
|
+
className: `u-form-field__title${a ? " u-required" : ""}`,
|
|
29
|
+
htmlFor: n,
|
|
30
|
+
children: i
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
/* @__PURE__ */ e("div", { className: "u-form-field__control", children: c }),
|
|
34
|
+
l.showText && /* @__PURE__ */ e("span", { className: "u-form-field__error", children: l.text }),
|
|
35
|
+
!l.hasError && o && /* @__PURE__ */ e("span", { className: "u-form-field__hint", children: o })
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
export { $ as FormField$u };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,mDAAmD,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,eAAO,MAAM,IAAI,GAAI,oEAOlB,cAAc,4CAgChB,CAAC"}
|