@consta/uikit 3.18.0 → 3.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Attach/package.json +1 -1
- package/Attachment/package.json +1 -1
- package/Avatar/package.json +1 -1
- package/Badge/package.json +1 -1
- package/BasicSelectDeprecated/package.json +1 -1
- package/Breadcrumbs/package.json +1 -1
- package/BreadcrumbsCanary/package.json +1 -1
- package/Button/package.json +1 -1
- package/CHANGELOG.md +21 -11
- package/Calendar/package.json +1 -1
- package/Card/package.json +1 -1
- package/Checkbox/package.json +1 -1
- package/CheckboxGroup/package.json +1 -1
- package/ChoiceGroup/package.json +1 -1
- package/Collapse/package.json +1 -1
- package/CollapseGroup/package.json +1 -1
- package/Combobox/package.json +1 -1
- package/ComboboxDeprecated/package.json +1 -1
- package/ContextMenu/package.json +1 -1
- package/ContextMenuCanary/package.json +1 -1
- package/DatePickerCanary/package.json +1 -1
- package/DateTimeCanary/package.json +1 -1
- package/DragNDropField/package.json +1 -1
- package/EventInterceptor/package.json +1 -1
- package/FieldCaption/package.json +1 -1
- package/FieldLabel/package.json +1 -1
- package/File/package.json +1 -1
- package/FileField/package.json +1 -1
- package/FileIcon/package.json +1 -1
- package/FileIconAvi/package.json +1 -1
- package/FileIconBmp/package.json +1 -1
- package/FileIconCsv/package.json +1 -1
- package/FileIconDoc/package.json +1 -1
- package/FileIconExe/package.json +1 -1
- package/FileIconGif/package.json +1 -1
- package/FileIconJpg/package.json +1 -1
- package/FileIconJson/package.json +1 -1
- package/FileIconLoading/package.json +1 -1
- package/FileIconMov/package.json +1 -1
- package/FileIconMp3/package.json +1 -1
- package/FileIconMp4/package.json +1 -1
- package/FileIconPdf/package.json +1 -1
- package/FileIconPng/package.json +1 -1
- package/FileIconPtt/package.json +1 -1
- package/FileIconRar/package.json +1 -1
- package/FileIconRtf/package.json +1 -1
- package/FileIconTiff/package.json +1 -1
- package/FileIconTxt/package.json +1 -1
- package/FileIconUndefined/package.json +1 -1
- package/FileIconWav/package.json +1 -1
- package/FileIconXls/package.json +1 -1
- package/FileIconZip/package.json +1 -1
- package/Grid/package.json +1 -1
- package/Header/package.json +1 -1
- package/Icon/package.json +1 -1
- package/IconAdd/package.json +1 -1
- package/IconAddToComparison/package.json +1 -1
- package/IconAlert/package.json +1 -1
- package/IconAlignBlocksLeft/package.json +1 -1
- package/IconAlignBlocksRight/package.json +1 -1
- package/IconAlignCenter/package.json +1 -1
- package/IconAlignJustify/package.json +1 -1
- package/IconAlignLeft/package.json +1 -1
- package/IconAlignRight/package.json +1 -1
- package/IconAllDone/package.json +1 -1
- package/IconArrowDown/package.json +1 -1
- package/IconArrowLeft/package.json +1 -1
- package/IconArrowRight/package.json +1 -1
- package/IconArrowUp/package.json +1 -1
- package/IconArtBrush/package.json +1 -1
- package/IconAttach/package.json +1 -1
- package/IconBackward/package.json +1 -1
- package/IconBag/package.json +1 -1
- package/IconBarrier/package.json +1 -1
- package/IconBento/package.json +1 -1
- package/IconBold/package.json +1 -1
- package/IconBook/package.json +1 -1
- package/IconBookmarkFilled/package.json +1 -1
- package/IconBookmarkStroked/package.json +1 -1
- package/IconCalculator/package.json +1 -1
- package/IconCalendar/package.json +1 -1
- package/IconCamera/package.json +1 -1
- package/IconCancel/package.json +1 -1
- package/IconCards/package.json +1 -1
- package/IconChat/package.json +1 -1
- package/IconCheck/package.json +1 -1
- package/IconClose/package.json +1 -1
- package/IconCollapse/package.json +1 -1
- package/IconColorFill/package.json +1 -1
- package/IconColorText/package.json +1 -1
- package/IconColumns/package.json +1 -1
- package/IconComment/package.json +1 -1
- package/IconConnection/package.json +1 -1
- package/IconCopy/package.json +1 -1
- package/IconCrown/package.json +1 -1
- package/IconCursorMouse/package.json +1 -1
- package/IconDataNull/package.json +1 -1
- package/IconDiamond/package.json +1 -1
- package/IconDinosaur/package.json +1 -1
- package/IconDisconnection/package.json +1 -1
- package/IconDocAdd/package.json +1 -1
- package/IconDocBlank/package.json +1 -1
- package/IconDocDelete/package.json +1 -1
- package/IconDocExport/package.json +1 -1
- package/IconDocFilled/package.json +1 -1
- package/IconDown/package.json +1 -1
- package/IconDownload/package.json +1 -1
- package/IconDrag/package.json +1 -1
- package/IconDraggable/package.json +1 -1
- package/IconDrillingRig/package.json +1 -1
- package/IconDrop/package.json +1 -1
- package/IconEdit/package.json +1 -1
- package/IconExit/package.json +1 -1
- package/IconExpand/package.json +1 -1
- package/IconEye/package.json +1 -1
- package/IconEyeClose/package.json +1 -1
- package/IconFacebook/es.js +1 -0
- package/IconFacebook/index.d.ts +1 -0
- package/IconFacebook/index.js +4 -0
- package/IconFacebook/package.json +9 -0
- package/IconFavorite/package.json +1 -1
- package/IconFilter/package.json +1 -1
- package/IconFitToDefault/package.json +1 -1
- package/IconFlagFilled/package.json +1 -1
- package/IconFlagStroked/package.json +1 -1
- package/IconFolders/package.json +1 -1
- package/IconForward/package.json +1 -1
- package/IconFunnel/package.json +1 -1
- package/IconGas/package.json +1 -1
- package/IconGeo/package.json +1 -1
- package/IconGrouping/package.json +1 -1
- package/IconHamburger/package.json +1 -1
- package/IconHand/package.json +1 -1
- package/IconHealth/package.json +1 -1
- package/IconHome/package.json +1 -1
- package/IconInComparison/package.json +1 -1
- package/IconInfo/package.json +1 -1
- package/IconInstagram/es.js +1 -0
- package/IconInstagram/index.d.ts +1 -0
- package/IconInstagram/index.js +4 -0
- package/IconInstagram/package.json +9 -0
- package/IconIntroduction/package.json +1 -1
- package/IconIpad/package.json +1 -1
- package/IconItalic/package.json +1 -1
- package/IconKebab/package.json +1 -1
- package/IconLaptop/package.json +1 -1
- package/IconLayers/package.json +1 -1
- package/IconLeaf/package.json +1 -1
- package/IconLightningBolt/package.json +1 -1
- package/IconLineAndBarChart/package.json +1 -1
- package/IconLink/package.json +1 -1
- package/IconList/package.json +1 -1
- package/IconListNumbered/package.json +1 -1
- package/IconLock/package.json +1 -1
- package/IconLogicalElement/package.json +1 -1
- package/IconMBU/package.json +1 -1
- package/IconMGRP/package.json +1 -1
- package/IconMLSP/package.json +1 -1
- package/IconMMP/package.json +1 -1
- package/IconMail/package.json +1 -1
- package/IconMap/package.json +1 -1
- package/IconMaxHeight/package.json +1 -1
- package/IconMaxWidth/package.json +1 -1
- package/IconMeatball/package.json +1 -1
- package/IconMic/package.json +1 -1
- package/IconMolecules/package.json +1 -1
- package/IconMoon/package.json +1 -1
- package/IconNodeEnd/package.json +1 -1
- package/IconNodeStart/package.json +1 -1
- package/IconNodeStep/package.json +1 -1
- package/IconNodes/package.json +1 -1
- package/IconOpenInNew/package.json +1 -1
- package/IconOperators/package.json +1 -1
- package/IconPanelBottom/package.json +1 -1
- package/IconPanelLeft/package.json +1 -1
- package/IconPanelRight/package.json +1 -1
- package/IconPanelTop/package.json +1 -1
- package/IconPaste/package.json +1 -1
- package/IconPause/package.json +1 -1
- package/IconPhone/package.json +1 -1
- package/IconPhoto/package.json +1 -1
- package/IconPicture/package.json +1 -1
- package/IconPlay/package.json +1 -1
- package/IconPressure/package.json +1 -1
- package/IconPriceLabel/package.json +1 -1
- package/IconProcessing/package.json +1 -1
- package/IconQuestion/package.json +1 -1
- package/IconQuote/package.json +1 -1
- package/IconRUO/package.json +1 -1
- package/IconRUS/package.json +1 -1
- package/IconRecord/package.json +1 -1
- package/IconRemove/package.json +1 -1
- package/IconRemoveFromComparison/package.json +1 -1
- package/IconReply/package.json +1 -1
- package/IconResize/package.json +1 -1
- package/IconRestart/package.json +1 -1
- package/IconRevert/package.json +1 -1
- package/IconRing/package.json +1 -1
- package/IconRouble/package.json +1 -1
- package/IconRuler/package.json +1 -1
- package/IconSave/package.json +1 -1
- package/IconScreen/package.json +1 -1
- package/IconSearch/package.json +1 -1
- package/IconSelect/package.json +1 -1
- package/IconSelectOpen/package.json +1 -1
- package/IconSendMessage/package.json +1 -1
- package/IconSettings/package.json +1 -1
- package/IconShape/package.json +1 -1
- package/IconShuffle/package.json +1 -1
- package/IconSmile/package.json +1 -1
- package/IconSortDown/package.json +1 -1
- package/IconSortDownCenter/package.json +1 -1
- package/IconSortUp/package.json +1 -1
- package/IconSortUpCenter/package.json +1 -1
- package/IconStop/package.json +1 -1
- package/IconStorage/package.json +1 -1
- package/IconStrikethrough/package.json +1 -1
- package/IconSun/package.json +1 -1
- package/IconTable/package.json +1 -1
- package/IconTable2/package.json +1 -1
- package/IconTarget/package.json +1 -1
- package/IconTeam/package.json +1 -1
- package/IconTechResponse/package.json +1 -1
- package/IconTest/package.json +1 -1
- package/IconThumbUp/package.json +1 -1
- package/IconTie/package.json +1 -1
- package/IconTop/package.json +1 -1
- package/IconTrash/package.json +1 -1
- package/IconType/package.json +1 -1
- package/IconUnderline/package.json +1 -1
- package/IconUnlock/package.json +1 -1
- package/IconUnsort/package.json +1 -1
- package/IconUnsortCenter/package.json +1 -1
- package/IconUpload/package.json +1 -1
- package/IconUser/package.json +1 -1
- package/IconVZD/package.json +1 -1
- package/IconVideo/package.json +1 -1
- package/IconVkontakte/es.js +1 -0
- package/IconVkontakte/index.d.ts +1 -0
- package/IconVkontakte/index.js +4 -0
- package/IconVkontakte/package.json +9 -0
- package/IconWarning/package.json +1 -1
- package/IconWatch/package.json +1 -1
- package/IconWideScreen/package.json +1 -1
- package/IconWorld/package.json +1 -1
- package/IconWrench/package.json +1 -1
- package/IconYandexDzen/es.js +1 -0
- package/IconYandexDzen/index.d.ts +1 -0
- package/IconYandexDzen/index.js +4 -0
- package/IconYandexDzen/package.json +9 -0
- package/IconYoutube/es.js +1 -0
- package/IconYoutube/index.d.ts +1 -0
- package/IconYoutube/index.js +4 -0
- package/IconYoutube/package.json +9 -0
- package/Informer/package.json +1 -1
- package/LayoutCanary/package.json +1 -1
- package/Loader/package.json +1 -1
- package/MixCard/package.json +1 -1
- package/MixFocus/package.json +1 -1
- package/MixPopoverAnimate/package.json +1 -1
- package/MixPopoverArrow/package.json +1 -1
- package/MixSpace/package.json +1 -1
- package/MixVisuallyHidden/package.json +1 -1
- package/Modal/package.json +1 -1
- package/MultiComboboxDeprecated/package.json +1 -1
- package/Pagination/package.json +1 -1
- package/Popover/package.json +1 -1
- package/PortalWithTheme/package.json +1 -1
- package/ProgressSpin/package.json +1 -1
- package/ProgressStepBarCanary/package.json +1 -1
- package/Radio/package.json +1 -1
- package/RadioGroup/package.json +1 -1
- package/Responses/package.json +1 -1
- package/Responses403/package.json +1 -1
- package/Responses404/package.json +1 -1
- package/Responses500/package.json +1 -1
- package/Responses503/package.json +1 -1
- package/ResponsesConnectionError/package.json +1 -1
- package/ResponsesDeleted/package.json +1 -1
- package/ResponsesEmptyBox/package.json +1 -1
- package/ResponsesEmptyPockets/package.json +1 -1
- package/ResponsesExit/package.json +1 -1
- package/ResponsesImage/package.json +1 -1
- package/ResponsesImage403/package.json +1 -1
- package/ResponsesImage404/package.json +1 -1
- package/ResponsesImage500/package.json +1 -1
- package/ResponsesImage503/package.json +1 -1
- package/ResponsesImageConnectionError/package.json +1 -1
- package/ResponsesImageDeleted/package.json +1 -1
- package/ResponsesImageEmptyBox/package.json +1 -1
- package/ResponsesImageEmptyPockets/package.json +1 -1
- package/ResponsesImageNothingFound/package.json +1 -1
- package/ResponsesImageSuccess/package.json +1 -1
- package/ResponsesNothingFound/package.json +1 -1
- package/ResponsesSuccess/package.json +1 -1
- package/Select/package.json +1 -1
- package/Sidebar/package.json +1 -1
- package/Skeleton/package.json +1 -1
- package/SliderCanary/package.json +1 -1
- package/SnackBar/package.json +1 -1
- package/Steps/package.json +1 -1
- package/Switch/package.json +1 -1
- package/SwitchGroup/package.json +1 -1
- package/Table/package.json +1 -1
- package/Tabs/package.json +1 -1
- package/Tag/package.json +1 -1
- package/TagBase/package.json +1 -1
- package/Text/package.json +1 -1
- package/TextField/package.json +1 -1
- package/Theme/package.json +1 -1
- package/ThemeToggler/package.json +1 -1
- package/Timer/package.json +1 -1
- package/Tooltip/package.json +1 -1
- package/User/package.json +1 -1
- package/UserSelect/package.json +1 -1
- package/UserSelectDeprecated/package.json +1 -1
- package/__internal__/cjs-src/components/Calendar/Calendar.d.ts +1 -0
- package/__internal__/cjs-src/components/Calendar/Calendar.js +8 -4
- package/__internal__/cjs-src/components/Checkbox/Checkbox.d.ts +2 -0
- package/__internal__/cjs-src/components/Checkbox/Checkbox.js +2 -2
- package/__internal__/cjs-src/components/Collapse/Collapse.d.ts +1 -0
- package/__internal__/cjs-src/components/Collapse/Collapse.js +8 -4
- package/__internal__/cjs-src/components/Combobox/Combobox.d.ts +1 -0
- package/__internal__/cjs-src/components/Combobox/Combobox.js +11 -4
- package/__internal__/cjs-src/components/Combobox/helpers.d.ts +5 -0
- package/__internal__/cjs-src/components/ContextMenuCanary/ContextMenuCanary.d.ts +1 -0
- package/__internal__/cjs-src/components/ContextMenuCanary/ContextMenuCanary.js +6 -4
- package/__internal__/cjs-src/components/ContextMenuCanary/ContextMenuLevels/ContextMenuLevels.js +3 -4
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerCanary.d.ts +1 -0
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerCanary.js +7 -3
- package/__internal__/cjs-src/components/DateTimeCanary/DateTimeCanary.d.ts +1 -0
- package/__internal__/cjs-src/components/DateTimeCanary/DateTimeCanary.js +7 -3
- package/__internal__/cjs-src/components/DragNDropField/DragNDropField.d.ts +1 -0
- package/__internal__/cjs-src/components/DragNDropField/DragNDropField.js +8 -5
- package/__internal__/cjs-src/components/EventInterceptor/propsHandlers/useCheckboxEventsHandler.d.ts +2 -0
- package/__internal__/cjs-src/components/FileField/FileField.d.ts +1 -0
- package/__internal__/cjs-src/components/FileField/FileField.js +8 -4
- package/__internal__/cjs-src/components/Pagination/Pagination.d.ts +1 -0
- package/__internal__/cjs-src/components/Pagination/Pagination.js +9 -6
- package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBarCanary.d.ts +1 -0
- package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBarCanary.js +5 -3
- package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBarItem/ProgressStepBarItem.js +2 -2
- package/__internal__/cjs-src/components/Radio/Radio.d.ts +3 -0
- package/__internal__/cjs-src/components/Radio/Radio.js +9 -5
- package/__internal__/cjs-src/components/Select/Select.js +2 -2
- package/__internal__/cjs-src/components/Select/helpers.d.ts +2 -0
- package/__internal__/cjs-src/components/SelectComponents/SelectDropdown/SelectDropdown.css +0 -51
- package/__internal__/cjs-src/components/SelectComponents/SelectDropdown/SelectDropdown.d.ts +1 -0
- package/__internal__/cjs-src/components/SelectComponents/SelectDropdown/SelectDropdown.js +27 -18
- package/__internal__/cjs-src/components/SelectComponents/SelectLoader/SelectLoader.css +53 -0
- package/__internal__/cjs-src/components/SelectComponents/SelectLoader/SelectLoader.d.ts +9 -0
- package/__internal__/cjs-src/components/SelectComponents/SelectLoader/SelectLoader.js +15 -0
- package/__internal__/cjs-src/components/SliderCanary/SliderCanary.d.ts +1 -0
- package/__internal__/cjs-src/components/SliderCanary/SliderCanary.js +9 -7
- package/__internal__/cjs-src/components/Switch/Switch.d.ts +1 -0
- package/__internal__/cjs-src/components/Switch/Switch.js +8 -4
- package/__internal__/cjs-src/components/Table/FilterTooltip/TableFilterTooltip.js +10 -4
- package/__internal__/cjs-src/components/Tabs/MoreItems/TabsMoreItems.css +1 -1
- package/__internal__/cjs-src/components/Tabs/MoreItems/TabsMoreItems.js +33 -27
- package/__internal__/cjs-src/components/ThemeToggler/ThemeToggler.d.ts +2 -0
- package/__internal__/cjs-src/components/ThemeToggler/ThemeToggler.js +7 -4
- package/__internal__/cjs-src/components/UserSelect/UserSelect.d.ts +1 -0
- package/__internal__/cjs-src/components/UserSelect/UserSelect.js +5 -3
- package/__internal__/cjs-src/components/UserSelect/helpers.d.ts +2 -0
- package/__internal__/cjs-src/icons/IconFacebook/IconFacebook.d.ts +5 -0
- package/__internal__/cjs-src/icons/IconFacebook/IconFacebook.js +13 -0
- package/__internal__/cjs-src/icons/IconFacebook/IconFacebook_size_m.d.ts +3 -0
- package/__internal__/cjs-src/icons/IconFacebook/IconFacebook_size_m.js +9 -0
- package/__internal__/cjs-src/icons/IconFacebook/IconFacebook_size_m.svg +5 -0
- package/__internal__/cjs-src/icons/IconFacebook/IconFacebook_size_s.d.ts +3 -0
- package/__internal__/cjs-src/icons/IconFacebook/IconFacebook_size_s.js +9 -0
- package/__internal__/cjs-src/icons/IconFacebook/IconFacebook_size_s.svg +5 -0
- package/__internal__/cjs-src/icons/IconInstagram/IconInstagram.d.ts +5 -0
- package/__internal__/cjs-src/icons/IconInstagram/IconInstagram.js +13 -0
- package/__internal__/cjs-src/icons/IconInstagram/IconInstagram_size_m.d.ts +3 -0
- package/__internal__/cjs-src/icons/IconInstagram/IconInstagram_size_m.js +9 -0
- package/__internal__/cjs-src/icons/IconInstagram/IconInstagram_size_m.svg +7 -0
- package/__internal__/cjs-src/icons/IconInstagram/IconInstagram_size_s.d.ts +3 -0
- package/__internal__/cjs-src/icons/IconInstagram/IconInstagram_size_s.js +9 -0
- package/__internal__/cjs-src/icons/IconInstagram/IconInstagram_size_s.svg +7 -0
- package/__internal__/cjs-src/icons/IconVkontakte/IconVkontakte.d.ts +5 -0
- package/__internal__/cjs-src/icons/IconVkontakte/IconVkontakte.js +13 -0
- package/__internal__/cjs-src/icons/IconVkontakte/IconVkontakte_size_m.d.ts +3 -0
- package/__internal__/cjs-src/icons/IconVkontakte/IconVkontakte_size_m.js +9 -0
- package/__internal__/cjs-src/icons/IconVkontakte/IconVkontakte_size_m.svg +5 -0
- package/__internal__/cjs-src/icons/IconVkontakte/IconVkontakte_size_s.d.ts +3 -0
- package/__internal__/cjs-src/icons/IconVkontakte/IconVkontakte_size_s.js +9 -0
- package/__internal__/cjs-src/icons/IconVkontakte/IconVkontakte_size_s.svg +5 -0
- package/__internal__/cjs-src/icons/IconYandexDzen/IconYandexDzen.d.ts +5 -0
- package/__internal__/cjs-src/icons/IconYandexDzen/IconYandexDzen.js +13 -0
- package/__internal__/cjs-src/icons/IconYandexDzen/IconYandexDzen_size_m.d.ts +3 -0
- package/__internal__/cjs-src/icons/IconYandexDzen/IconYandexDzen_size_m.js +9 -0
- package/__internal__/cjs-src/icons/IconYandexDzen/IconYandexDzen_size_m.svg +7 -0
- package/__internal__/cjs-src/icons/IconYandexDzen/IconYandexDzen_size_s.d.ts +3 -0
- package/__internal__/cjs-src/icons/IconYandexDzen/IconYandexDzen_size_s.js +9 -0
- package/__internal__/cjs-src/icons/IconYandexDzen/IconYandexDzen_size_s.svg +7 -0
- package/__internal__/cjs-src/icons/IconYoutube/IconYoutube.d.ts +5 -0
- package/__internal__/cjs-src/icons/IconYoutube/IconYoutube.js +13 -0
- package/__internal__/cjs-src/icons/IconYoutube/IconYoutube_size_m.d.ts +3 -0
- package/__internal__/cjs-src/icons/IconYoutube/IconYoutube_size_m.js +9 -0
- package/__internal__/cjs-src/icons/IconYoutube/IconYoutube_size_m.svg +5 -0
- package/__internal__/cjs-src/icons/IconYoutube/IconYoutube_size_s.d.ts +3 -0
- package/__internal__/cjs-src/icons/IconYoutube/IconYoutube_size_s.js +9 -0
- package/__internal__/cjs-src/icons/IconYoutube/IconYoutube_size_s.svg +5 -0
- package/__internal__/src/components/Calendar/Calendar.d.ts +1 -0
- package/__internal__/src/components/Calendar/Calendar.js +7 -3
- package/__internal__/src/components/Checkbox/Checkbox.d.ts +2 -0
- package/__internal__/src/components/Checkbox/Checkbox.js +2 -2
- package/__internal__/src/components/Collapse/Collapse.d.ts +1 -0
- package/__internal__/src/components/Collapse/Collapse.js +7 -3
- package/__internal__/src/components/Combobox/Combobox.d.ts +1 -0
- package/__internal__/src/components/Combobox/Combobox.js +10 -3
- package/__internal__/src/components/Combobox/helpers.d.ts +5 -0
- package/__internal__/src/components/ContextMenuCanary/ContextMenuCanary.d.ts +1 -0
- package/__internal__/src/components/ContextMenuCanary/ContextMenuCanary.js +5 -3
- package/__internal__/src/components/ContextMenuCanary/ContextMenuLevels/ContextMenuLevels.js +3 -4
- package/__internal__/src/components/DatePickerCanary/DatePickerCanary.d.ts +1 -0
- package/__internal__/src/components/DatePickerCanary/DatePickerCanary.js +7 -3
- package/__internal__/src/components/DateTimeCanary/DateTimeCanary.d.ts +1 -0
- package/__internal__/src/components/DateTimeCanary/DateTimeCanary.js +7 -3
- package/__internal__/src/components/DragNDropField/DragNDropField.d.ts +1 -0
- package/__internal__/src/components/DragNDropField/DragNDropField.js +7 -4
- package/__internal__/src/components/EventInterceptor/propsHandlers/useCheckboxEventsHandler.d.ts +2 -0
- package/__internal__/src/components/FileField/FileField.d.ts +1 -0
- package/__internal__/src/components/FileField/FileField.js +7 -3
- package/__internal__/src/components/Pagination/Pagination.d.ts +1 -0
- package/__internal__/src/components/Pagination/Pagination.js +8 -5
- package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarCanary.d.ts +1 -0
- package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarCanary.js +4 -2
- package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarItem/ProgressStepBarItem.js +2 -2
- package/__internal__/src/components/Radio/Radio.d.ts +3 -0
- package/__internal__/src/components/Radio/Radio.js +8 -4
- package/__internal__/src/components/Select/Select.js +2 -2
- package/__internal__/src/components/Select/helpers.d.ts +2 -0
- package/__internal__/src/components/SelectComponents/SelectDropdown/SelectDropdown.css +0 -51
- package/__internal__/src/components/SelectComponents/SelectDropdown/SelectDropdown.d.ts +1 -0
- package/__internal__/src/components/SelectComponents/SelectDropdown/SelectDropdown.js +30 -21
- package/__internal__/src/components/SelectComponents/SelectLoader/SelectLoader.css +53 -0
- package/__internal__/src/components/SelectComponents/SelectLoader/SelectLoader.d.ts +9 -0
- package/__internal__/src/components/SelectComponents/SelectLoader/SelectLoader.js +11 -0
- package/__internal__/src/components/SliderCanary/SliderCanary.d.ts +1 -0
- package/__internal__/src/components/SliderCanary/SliderCanary.js +8 -6
- package/__internal__/src/components/Switch/Switch.d.ts +1 -0
- package/__internal__/src/components/Switch/Switch.js +7 -3
- package/__internal__/src/components/Table/FilterTooltip/TableFilterTooltip.js +10 -4
- package/__internal__/src/components/Tabs/MoreItems/TabsMoreItems.css +1 -1
- package/__internal__/src/components/Tabs/MoreItems/TabsMoreItems.js +33 -27
- package/__internal__/src/components/ThemeToggler/ThemeToggler.d.ts +2 -0
- package/__internal__/src/components/ThemeToggler/ThemeToggler.js +6 -3
- package/__internal__/src/components/UserSelect/UserSelect.d.ts +1 -0
- package/__internal__/src/components/UserSelect/UserSelect.js +4 -2
- package/__internal__/src/components/UserSelect/helpers.d.ts +2 -0
- package/__internal__/src/icons/IconFacebook/IconFacebook.d.ts +5 -0
- package/__internal__/src/icons/IconFacebook/IconFacebook.js +9 -0
- package/__internal__/src/icons/IconFacebook/IconFacebook_size_m.d.ts +3 -0
- package/__internal__/src/icons/IconFacebook/IconFacebook_size_m.js +7 -0
- package/__internal__/src/icons/IconFacebook/IconFacebook_size_m.svg +5 -0
- package/__internal__/src/icons/IconFacebook/IconFacebook_size_s.d.ts +3 -0
- package/__internal__/src/icons/IconFacebook/IconFacebook_size_s.js +7 -0
- package/__internal__/src/icons/IconFacebook/IconFacebook_size_s.svg +5 -0
- package/__internal__/src/icons/IconInstagram/IconInstagram.d.ts +5 -0
- package/__internal__/src/icons/IconInstagram/IconInstagram.js +9 -0
- package/__internal__/src/icons/IconInstagram/IconInstagram_size_m.d.ts +3 -0
- package/__internal__/src/icons/IconInstagram/IconInstagram_size_m.js +7 -0
- package/__internal__/src/icons/IconInstagram/IconInstagram_size_m.svg +7 -0
- package/__internal__/src/icons/IconInstagram/IconInstagram_size_s.d.ts +3 -0
- package/__internal__/src/icons/IconInstagram/IconInstagram_size_s.js +7 -0
- package/__internal__/src/icons/IconInstagram/IconInstagram_size_s.svg +7 -0
- package/__internal__/src/icons/IconVkontakte/IconVkontakte.d.ts +5 -0
- package/__internal__/src/icons/IconVkontakte/IconVkontakte.js +9 -0
- package/__internal__/src/icons/IconVkontakte/IconVkontakte_size_m.d.ts +3 -0
- package/__internal__/src/icons/IconVkontakte/IconVkontakte_size_m.js +7 -0
- package/__internal__/src/icons/IconVkontakte/IconVkontakte_size_m.svg +5 -0
- package/__internal__/src/icons/IconVkontakte/IconVkontakte_size_s.d.ts +3 -0
- package/__internal__/src/icons/IconVkontakte/IconVkontakte_size_s.js +7 -0
- package/__internal__/src/icons/IconVkontakte/IconVkontakte_size_s.svg +5 -0
- package/__internal__/src/icons/IconYandexDzen/IconYandexDzen.d.ts +5 -0
- package/__internal__/src/icons/IconYandexDzen/IconYandexDzen.js +9 -0
- package/__internal__/src/icons/IconYandexDzen/IconYandexDzen_size_m.d.ts +3 -0
- package/__internal__/src/icons/IconYandexDzen/IconYandexDzen_size_m.js +7 -0
- package/__internal__/src/icons/IconYandexDzen/IconYandexDzen_size_m.svg +7 -0
- package/__internal__/src/icons/IconYandexDzen/IconYandexDzen_size_s.d.ts +3 -0
- package/__internal__/src/icons/IconYandexDzen/IconYandexDzen_size_s.js +7 -0
- package/__internal__/src/icons/IconYandexDzen/IconYandexDzen_size_s.svg +7 -0
- package/__internal__/src/icons/IconYoutube/IconYoutube.d.ts +5 -0
- package/__internal__/src/icons/IconYoutube/IconYoutube.js +9 -0
- package/__internal__/src/icons/IconYoutube/IconYoutube_size_m.d.ts +3 -0
- package/__internal__/src/icons/IconYoutube/IconYoutube_size_m.js +7 -0
- package/__internal__/src/icons/IconYoutube/IconYoutube_size_m.svg +5 -0
- package/__internal__/src/icons/IconYoutube/IconYoutube_size_s.d.ts +3 -0
- package/__internal__/src/icons/IconYoutube/IconYoutube_size_s.js +7 -0
- package/__internal__/src/icons/IconYoutube/IconYoutube_size_s.svg +5 -0
- package/createIcon/package.json +1 -1
- package/createResponsesImage/package.json +1 -1
- package/package.json +6 -1
- package/useBreakpoints/package.json +1 -1
- package/useChoiceGroup/package.json +1 -1
- package/useChoiceGroupIndexed/package.json +1 -1
- package/useClickOutside/package.json +1 -1
- package/useComponentSize/package.json +1 -1
- package/useDebounce/package.json +1 -1
- package/useFlag/package.json +1 -1
- package/useForkRef/package.json +1 -1
- package/useGlobalKeys/package.json +1 -1
- package/useHideElementsInLine/package.json +1 -1
- package/useKeys/package.json +1 -1
- package/useMutableRef/package.json +1 -1
- package/useOverflow/package.json +1 -1
- package/usePrevious/package.json +1 -1
- package/useRefs/package.json +1 -1
- package/useResizeObserved/package.json +1 -1
- package/useScrollElements/package.json +1 -1
- package/useScrollPosition/package.json +1 -1
- package/useSelect/package.json +1 -1
- package/useSortSteps/package.json +1 -1
- package/useThemeVars/package.json +1 -1
- package/useTimer/package.json +1 -1
- package/withTooltip/package.json +1 -1
|
@@ -6,6 +6,7 @@ import { useSelect } from '../../hooks/useSelect/useSelect';
|
|
|
6
6
|
import { IconClose } from '../../icons/IconClose/IconClose';
|
|
7
7
|
import { IconSelect } from '../../icons/IconSelect/IconSelect';
|
|
8
8
|
import { cnMixFocus } from '../../mixs/MixFocus/MixFocus';
|
|
9
|
+
import { usePropsHandler } from '../EventInterceptor/usePropsHandler';
|
|
9
10
|
import { cnSelect } from '../SelectComponents/cnSelect';
|
|
10
11
|
import { defaultlabelForCreate, defaultLabelForEmptyItems, defaultlabelForNotFound, getInputWidth, getSelectDropdownForm, } from '../SelectComponents/helpers';
|
|
11
12
|
import { SelectContainer } from '../SelectComponents/SelectContainer/SelectContainer';
|
|
@@ -14,12 +15,13 @@ import { SelectItem } from '../SelectComponents/SelectItem/SelectItem';
|
|
|
14
15
|
import { SelectValueTag } from '../SelectComponents/SelectValueTag/SelectValueTag';
|
|
15
16
|
import { defaultPropForm, defaultPropSize, defaultPropView } from '../SelectComponents/types';
|
|
16
17
|
import { isMultipleParams, isNotMultipleParams, withDefaultGetters, } from './helpers';
|
|
18
|
+
export var COMPONENT_NAME = 'Combobox';
|
|
17
19
|
function ComboboxRender(props, ref) {
|
|
18
20
|
var defaultDropdownRef = useRef(null);
|
|
19
21
|
var controlInnerRef = useRef(null);
|
|
20
22
|
var helperInputFakeElement = useRef(null);
|
|
21
23
|
var controlRef = useRef(null);
|
|
22
|
-
var _a = withDefaultGetters(props), placeholder = _a.placeholder, onBlur = _a.onBlur, onFocus = _a.onFocus, items = _a.items, onChange = _a.onChange, value = _a.value, disabled = _a.disabled, ariaLabel = _a.ariaLabel, id = _a.id, required = _a.required, _b = _a.dropdownRef, dropdownRef = _b === void 0 ? defaultDropdownRef : _b, _c = _a.form, form = _c === void 0 ? defaultPropForm : _c, _d = _a.view, view = _d === void 0 ? defaultPropView : _d, _e = _a.size, size = _e === void 0 ? defaultPropSize : _e, dropdownClassName = _a.dropdownClassName, name = _a.name, _f = _a.groups, groups = _f === void 0 ? [] : _f, getItemLabel = _a.getItemLabel, getItemKey = _a.getItemKey, getItemGroupKey = _a.getItemGroupKey, getItemDisabled = _a.getItemDisabled, getGroupKey = _a.getGroupKey, getGroupLabel = _a.getGroupLabel, renderItem = _a.renderItem, renderValueProp = _a.renderValue, onCreate = _a.onCreate, inputRefProp = _a.inputRef, _g = _a.labelForNotFound, labelForNotFound = _g === void 0 ? defaultlabelForNotFound : _g, _h = _a.labelForCreate, labelForCreate = _h === void 0 ? defaultlabelForCreate : _h, _j = _a.labelForEmptyItems, labelForEmptyItems = _j === void 0 ? defaultLabelForEmptyItems : _j, searchFunction = _a.searchFunction, _k = _a.multiple, multiple = _k === void 0 ? false : _k, style = _a.style, otherProps = __rest(_a, ["placeholder", "onBlur", "onFocus", "items", "onChange", "value", "disabled", "ariaLabel", "id", "required", "dropdownRef", "form", "view", "size", "dropdownClassName", "name", "groups", "getItemLabel", "getItemKey", "getItemGroupKey", "getItemDisabled", "getGroupKey", "getGroupLabel", "renderItem", "renderValue", "onCreate", "inputRef", "labelForNotFound", "labelForCreate", "labelForEmptyItems", "searchFunction", "multiple", "style"]);
|
|
24
|
+
var _a = usePropsHandler(COMPONENT_NAME, withDefaultGetters(props), controlRef), placeholder = _a.placeholder, onBlur = _a.onBlur, onFocus = _a.onFocus, items = _a.items, onChange = _a.onChange, value = _a.value, disabled = _a.disabled, ariaLabel = _a.ariaLabel, id = _a.id, required = _a.required, _b = _a.dropdownRef, dropdownRef = _b === void 0 ? defaultDropdownRef : _b, _c = _a.form, form = _c === void 0 ? defaultPropForm : _c, _d = _a.view, view = _d === void 0 ? defaultPropView : _d, _e = _a.size, size = _e === void 0 ? defaultPropSize : _e, dropdownClassName = _a.dropdownClassName, name = _a.name, _f = _a.groups, groups = _f === void 0 ? [] : _f, getItemLabel = _a.getItemLabel, getItemKey = _a.getItemKey, getItemGroupKey = _a.getItemGroupKey, getItemDisabled = _a.getItemDisabled, getGroupKey = _a.getGroupKey, getGroupLabel = _a.getGroupLabel, renderItem = _a.renderItem, renderValueProp = _a.renderValue, onCreate = _a.onCreate, inputRefProp = _a.inputRef, _g = _a.labelForNotFound, labelForNotFound = _g === void 0 ? defaultlabelForNotFound : _g, _h = _a.labelForCreate, labelForCreate = _h === void 0 ? defaultlabelForCreate : _h, _j = _a.labelForEmptyItems, labelForEmptyItems = _j === void 0 ? defaultLabelForEmptyItems : _j, onInputChange = _a.onInputChange, searchFunction = _a.searchFunction, isLoading = _a.isLoading, _k = _a.multiple, multiple = _k === void 0 ? false : _k, style = _a.style, otherProps = __rest(_a, ["placeholder", "onBlur", "onFocus", "items", "onChange", "value", "disabled", "ariaLabel", "id", "required", "dropdownRef", "form", "view", "size", "dropdownClassName", "name", "groups", "getItemLabel", "getItemKey", "getItemGroupKey", "getItemDisabled", "getGroupKey", "getGroupLabel", "renderItem", "renderValue", "onCreate", "inputRef", "labelForNotFound", "labelForCreate", "labelForEmptyItems", "onInputChange", "searchFunction", "isLoading", "multiple", "style"]);
|
|
23
25
|
var _l = useSelect({
|
|
24
26
|
items: items,
|
|
25
27
|
groups: groups,
|
|
@@ -54,6 +56,11 @@ function ComboboxRender(props, ref) {
|
|
|
54
56
|
};
|
|
55
57
|
var renderValue = renderValueProp || (multiple ? renderValueDefaultMultiple : renderValueDefaultNotMultiple);
|
|
56
58
|
var inputRefForRender = useForkRef([inputRef, inputRefProp]);
|
|
59
|
+
var handleChangeValue = function (e) {
|
|
60
|
+
handleInputChange(e);
|
|
61
|
+
var value = e.target.value;
|
|
62
|
+
!disabled && (onInputChange === null || onInputChange === void 0 ? void 0 : onInputChange({ e: e, id: id, name: name, value: value || null }));
|
|
63
|
+
};
|
|
57
64
|
var renderControlValue = function () {
|
|
58
65
|
var width = multiple ? getInputWidth(controlInnerRef, helperInputFakeElement) : undefined;
|
|
59
66
|
return (React.createElement(React.Fragment, null,
|
|
@@ -64,7 +71,7 @@ function ComboboxRender(props, ref) {
|
|
|
64
71
|
}),
|
|
65
72
|
isNotMultipleParams(props) && props.value && renderValue({ item: props.value }),
|
|
66
73
|
(!value || (Array.isArray(value) && value.length === 0)) && !searchValue && placeholder && (React.createElement("span", { className: cnSelect('Placeholder'), title: "placeholder" }, placeholder)),
|
|
67
|
-
React.createElement("input", __assign({}, getKeyProps(), { type: "text", name: name, onFocus: handleInputFocus, onBlur: handleInputBlur, "aria-label": ariaLabel, onChange:
|
|
74
|
+
React.createElement("input", __assign({}, getKeyProps(), { type: "text", name: name, onFocus: handleInputFocus, onBlur: handleInputBlur, "aria-label": ariaLabel, onChange: handleChangeValue, ref: inputRefForRender, className: cnSelect('Input', { size: size, hide: !multiple && !!value, multiple: multiple }), value: searchValue, style: { width: width } }))));
|
|
68
75
|
};
|
|
69
76
|
return (React.createElement(SelectContainer, __assign({ focused: isFocused, disabled: disabled, size: size, view: view, required: required, form: form, multiple: multiple, ref: ref, style: style }, otherProps),
|
|
70
77
|
React.createElement("div", { className: cnSelect('Control', { hasInput: true }), ref: controlRef, "aria-expanded": isOpen, "aria-haspopup": "listbox", id: id },
|
|
@@ -76,7 +83,7 @@ function ComboboxRender(props, ref) {
|
|
|
76
83
|
React.createElement("span", { className: cnSelect('Delimiter') }),
|
|
77
84
|
React.createElement("button", { type: "button", className: cnSelect('IndicatorsDropdown'), tabIndex: -1, onClick: handleToggleDropdown },
|
|
78
85
|
React.createElement(IconSelect, { size: "xs", className: cnSelect('DropdownIndicatorIcon') })))),
|
|
79
|
-
React.createElement(SelectDropdown, { isOpen: isOpen, size: size, controlRef: controlRef, getOptionProps: getOptionProps, dropdownRef: dropdownRef, form: dropdownForm, className: dropdownClassName, renderItem: renderItem || renderItemDefault, getGroupLabel: getGroupLabel, visibleItems: visibleItems, labelForNotFound: labelForNotFound, labelForCreate: labelForCreate, labelForEmptyItems: labelForEmptyItems, notFound: notFound, hasItems: hasItems, style: typeof (style === null || style === void 0 ? void 0 : style.zIndex) === 'number' ? { zIndex: style.zIndex + 1 } : undefined }),
|
|
86
|
+
React.createElement(SelectDropdown, { isOpen: isOpen, size: size, controlRef: controlRef, getOptionProps: getOptionProps, dropdownRef: dropdownRef, form: dropdownForm, className: dropdownClassName, renderItem: renderItem || renderItemDefault, getGroupLabel: getGroupLabel, visibleItems: visibleItems, labelForNotFound: labelForNotFound, labelForCreate: labelForCreate, isLoading: isLoading, labelForEmptyItems: labelForEmptyItems, notFound: notFound, hasItems: hasItems, style: typeof (style === null || style === void 0 ? void 0 : style.zIndex) === 'number' ? { zIndex: style.zIndex + 1 } : undefined }),
|
|
80
87
|
React.createElement("div", { className: cnSelect('HelperInputFakeElement'), ref: helperInputFakeElement }, searchValue)));
|
|
81
88
|
}
|
|
82
89
|
export var Combobox = forwardRef(ComboboxRender);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';
|
|
3
3
|
import { PropForm, PropSize, PropStatus, PropView, RenderItemProps } from '../SelectComponents/types';
|
|
4
|
+
import { TextFieldPropOnChange } from '../TextField/helpers';
|
|
4
5
|
export declare type DefaultItem = {
|
|
5
6
|
label: string;
|
|
6
7
|
id: string | number;
|
|
@@ -39,6 +40,7 @@ export declare type ComboboxProps<ITEM = DefaultItem, GROUP = DefaultGroup, MULT
|
|
|
39
40
|
placeholder?: string;
|
|
40
41
|
ariaLabel?: string;
|
|
41
42
|
status?: PropStatus;
|
|
43
|
+
isLoading?: boolean;
|
|
42
44
|
dropdownClassName?: string;
|
|
43
45
|
dropdownRef?: React.RefObject<HTMLDivElement>;
|
|
44
46
|
name?: string;
|
|
@@ -59,6 +61,7 @@ export declare type ComboboxProps<ITEM = DefaultItem, GROUP = DefaultGroup, MULT
|
|
|
59
61
|
multiple?: MULTIPLE;
|
|
60
62
|
value?: PropValue<ITEM, MULTIPLE>;
|
|
61
63
|
groups?: GROUP[];
|
|
64
|
+
onInputChange?: TextFieldPropOnChange;
|
|
62
65
|
getItemLabel?: PropGetItemLabel<ITEM>;
|
|
63
66
|
getItemKey?: PropGetItemKey<ITEM>;
|
|
64
67
|
getItemGroupKey?: PropGetItemGroupKey<ITEM>;
|
|
@@ -104,6 +107,7 @@ export declare function withDefaultGetters<ITEM = DefaultItem, GROUP = DefaultGr
|
|
|
104
107
|
placeholder?: string | undefined;
|
|
105
108
|
ariaLabel?: string | undefined;
|
|
106
109
|
status?: "alert" | "success" | "warning" | undefined;
|
|
110
|
+
isLoading?: boolean | undefined;
|
|
107
111
|
dropdownClassName?: string | undefined;
|
|
108
112
|
dropdownRef?: React.RefObject<HTMLDivElement> | undefined;
|
|
109
113
|
name?: string | undefined;
|
|
@@ -124,6 +128,7 @@ export declare function withDefaultGetters<ITEM = DefaultItem, GROUP = DefaultGr
|
|
|
124
128
|
multiple?: MULTIPLE | undefined;
|
|
125
129
|
value?: PropValue<ITEM, MULTIPLE>;
|
|
126
130
|
groups?: GROUP[] | undefined;
|
|
131
|
+
onInputChange?: TextFieldPropOnChange | undefined;
|
|
127
132
|
getItemLabel?: PropGetItemLabel<ITEM> | undefined;
|
|
128
133
|
getItemKey?: PropGetItemKey<ITEM> | undefined;
|
|
129
134
|
getItemGroupKey?: PropGetItemGroupKey<ITEM> | undefined;
|
|
@@ -6,14 +6,16 @@ import { useFlag } from '../../hooks/useFlag/useFlag';
|
|
|
6
6
|
import { useForkRef } from '../../hooks/useForkRef/useForkRef';
|
|
7
7
|
import { animateTimeout, cnMixPopoverAnimate, } from '../../mixs/MixPopoverAnimate/MixPopoverAnimate';
|
|
8
8
|
import { cn } from '../../utils/bem';
|
|
9
|
+
import { usePropsHandler } from '../EventInterceptor/usePropsHandler';
|
|
9
10
|
import { ContextMenuLevels } from './ContextMenuLevels/ContextMenuLevels';
|
|
10
11
|
var cnContextMenu = cn('ContextMenuCanary');
|
|
12
|
+
export var COMPONENT_NAME = 'ContextMenu';
|
|
11
13
|
function ContextMenuRender(props, ref) {
|
|
12
|
-
var isOpen = props.isOpen, className = props.className, onSetDirection = props.onSetDirection, otherProps = __rest(props, ["isOpen", "className", "onSetDirection"]);
|
|
13
|
-
var _a = __read(useFlag(), 2), playAnimation = _a[0], setPlayAnimation = _a[1];
|
|
14
|
-
var _b = __read(useState(props.direction), 2), direction = _b[0], setDirection = _b[1];
|
|
15
14
|
var nodeRef = useRef(null);
|
|
16
15
|
var levelRef = useForkRef([ref, nodeRef]);
|
|
16
|
+
var _a = usePropsHandler(COMPONENT_NAME, props, levelRef), isOpen = _a.isOpen, className = _a.className, onSetDirection = _a.onSetDirection, otherProps = __rest(_a, ["isOpen", "className", "onSetDirection"]);
|
|
17
|
+
var _b = __read(useFlag(), 2), playAnimation = _b[0], setPlayAnimation = _b[1];
|
|
18
|
+
var _c = __read(useState(props.direction), 2), direction = _c[0], setDirection = _c[1];
|
|
17
19
|
var handleSetDirection = function (d) {
|
|
18
20
|
setDirection(d);
|
|
19
21
|
onSetDirection === null || onSetDirection === void 0 ? void 0 : onSetDirection(d);
|
package/__internal__/src/components/ContextMenuCanary/ContextMenuLevels/ContextMenuLevels.js
CHANGED
|
@@ -63,9 +63,8 @@ function ContextMenuLevelsRender(propsComponent, ref) {
|
|
|
63
63
|
}));
|
|
64
64
|
}, [items]);
|
|
65
65
|
var firstLevelRef = useForkRef([levelsRefs[0], ref]);
|
|
66
|
-
return (React.createElement(React.Fragment, null, levels.map(function (level, index) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
})));
|
|
66
|
+
return (React.createElement(React.Fragment, null, levels.map(function (level, index) { return (React.createElement(ContextMenuLevel, __assign({}, otherProps, level, { key: "ContextMenu-" + index, style: __assign(__assign({}, style), {
|
|
67
|
+
zIndex: typeof (style === null || style === void 0 ? void 0 : style.zIndex) === 'number' ? style.zIndex + 1 : undefined
|
|
68
|
+
}), levelDepth: index, getItemLabel: getItemLabel, addLevel: addLevel, deleteLevel: deleteLevel, onSetDirection: index > 0 ? setSubMenuDirection : props.onSetDirection, hoveredParenLevel: hoveredParenLevel, setHoveredParenLevel: setHoveredParenLevel, getItemSubMenu: getItemSubMenu, getItemKey: getItemKey, ref: index === 0 ? firstLevelRef : levelsRefs[index], spareDirection: index === 0 ? spareDirection : 'rightStartUp' }))); })));
|
|
70
69
|
}
|
|
71
70
|
export var ContextMenuLevels = React.forwardRef(ContextMenuLevelsRender);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
-
import React, { forwardRef } from 'react';
|
|
2
|
+
import React, { forwardRef, useRef } from 'react';
|
|
3
|
+
import { useForkRef } from '../../hooks/useForkRef/useForkRef';
|
|
3
4
|
import { maxDateDefault, minDateDefault } from '../../utils/date';
|
|
4
5
|
import { getByMap } from '../../utils/getByMap';
|
|
6
|
+
import { usePropsHandler } from '../EventInterceptor/usePropsHandler';
|
|
5
7
|
import { DatePickerTypeDate } from './DatePickerTypeDate/DatePickerTypeDate';
|
|
6
8
|
import { DatePickerTypeDateRange } from './DatePickerTypeDateRange/DatePickerTypeDateRange';
|
|
7
9
|
import { DatePickerTypeDateTime } from './DatePickerTypeDateTime/DatePickerTypeDateTime';
|
|
@@ -13,8 +15,10 @@ var typeMap = {
|
|
|
13
15
|
'date-time': DatePickerTypeDateTime,
|
|
14
16
|
'date-time-range': DatePickerTypeDateTimeRange
|
|
15
17
|
};
|
|
18
|
+
export var COMPONENT_NAME = 'DatePicker';
|
|
16
19
|
export var DatePicker = forwardRef(function (props, ref) {
|
|
17
|
-
var
|
|
20
|
+
var datePickerRef = useRef(null);
|
|
21
|
+
var _a = usePropsHandler(COMPONENT_NAME, props, datePickerRef), _b = _a.type, type = _b === void 0 ? datePickerPropTypeDefault : _b, _c = _a.minDate, minDate = _c === void 0 ? minDateDefault : _c, _d = _a.maxDate, maxDate = _d === void 0 ? maxDateDefault : _d, multiplicityMinutes = _a.multiplicityMinutes, multiplicitySeconds = _a.multiplicitySeconds, multiplicityHours = _a.multiplicityHours, otherProps = __rest(_a, ["type", "minDate", "maxDate", "multiplicityMinutes", "multiplicitySeconds", "multiplicityHours"]);
|
|
18
22
|
var timeProps = type === 'date-time'
|
|
19
23
|
? {
|
|
20
24
|
multiplicityMinutes: multiplicityMinutes,
|
|
@@ -23,6 +27,6 @@ export var DatePicker = forwardRef(function (props, ref) {
|
|
|
23
27
|
}
|
|
24
28
|
: undefined;
|
|
25
29
|
var Component = getByMap(typeMap, type);
|
|
26
|
-
return React.createElement(Component, __assign({}, otherProps, timeProps, { minDate: minDate, maxDate: maxDate, ref: ref }));
|
|
30
|
+
return (React.createElement(Component, __assign({}, otherProps, timeProps, { minDate: minDate, maxDate: maxDate, ref: useForkRef([ref, datePickerRef]) })));
|
|
27
31
|
});
|
|
28
32
|
export * from './helpers';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
-
import React, { forwardRef } from 'react';
|
|
2
|
+
import React, { forwardRef, useRef } from 'react';
|
|
3
|
+
import { useForkRef } from '../../hooks/useForkRef/useForkRef';
|
|
3
4
|
import { getByMap } from '../../utils/getByMap';
|
|
5
|
+
import { usePropsHandler } from '../EventInterceptor/usePropsHandler';
|
|
4
6
|
import { DateTimeTypeDate } from './DateTimeTypeDate/DateTimeTypeDate';
|
|
5
7
|
import { DateTimeTypeDateTime } from './DateTimeTypeDateTime/DateTimeTypeDateTime';
|
|
6
8
|
import { DateTimeTypeMonth } from './DateTimeTypeMonth/DateTimeTypeMonth';
|
|
@@ -14,9 +16,11 @@ var typeMap = {
|
|
|
14
16
|
'time': DateTimeTypeTime,
|
|
15
17
|
'date-time': DateTimeTypeDateTime
|
|
16
18
|
};
|
|
19
|
+
export var COMPONENT_NAME = 'DateTime';
|
|
17
20
|
export var DateTime = forwardRef(function (props, ref) {
|
|
18
|
-
var
|
|
21
|
+
var dateTimeRef = useRef(null);
|
|
22
|
+
var _a = usePropsHandler(COMPONENT_NAME, props, dateTimeRef), _b = _a.type, type = _b === void 0 ? dateTimePropTypeDefault : _b, otherProps = __rest(_a, ["type"]);
|
|
19
23
|
var Component = getByMap(typeMap, type);
|
|
20
|
-
return React.createElement(Component, __assign({}, otherProps, { ref: ref }));
|
|
24
|
+
return React.createElement(Component, __assign({}, otherProps, { ref: useForkRef([ref, dateTimeRef]) }));
|
|
21
25
|
});
|
|
22
26
|
export * from './helpers/types';
|
|
@@ -10,4 +10,5 @@ export declare type DragNDropFieldProps = {
|
|
|
10
10
|
export declare type DragNDropFieldChildrenRenderProp = (props: {
|
|
11
11
|
openFileDialog: () => void;
|
|
12
12
|
} & Pick<DragNDropFieldProps, 'accept' | 'maxSize' | 'multiple'>) => React.ReactNode;
|
|
13
|
+
export declare const COMPONENT_NAME: "DragNDropField";
|
|
13
14
|
export declare const DragNDropField: React.ForwardRefExoticComponent<DragNDropFieldProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import './DragNDropField.css';
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { useRef } from 'react';
|
|
4
4
|
import { useDropzone } from 'react-dropzone';
|
|
5
5
|
import { useForkRef } from '../../hooks/useForkRef/useForkRef';
|
|
6
6
|
import { cn } from '../../utils/bem';
|
|
7
|
+
import { usePropsHandler } from '../EventInterceptor/usePropsHandler';
|
|
7
8
|
import { Text } from '../Text/Text';
|
|
8
9
|
import { DragNDropFieldContent } from './DragNDropFieldContent/DragNDropFieldContent';
|
|
9
10
|
import { DragNDropFieldTooltip } from './DragNDropFieldTooltip/DragNDropFieldTooltip';
|
|
10
11
|
import { getErrorsList } from './getErrorsList';
|
|
11
12
|
var cnDragNDropField = cn('DragNDropField');
|
|
12
|
-
export var
|
|
13
|
-
|
|
13
|
+
export var COMPONENT_NAME = 'DragNDropField';
|
|
14
|
+
export var DragNDropField = React.forwardRef(function (props, ref) {
|
|
15
|
+
var dragNDropFieldRef = useRef(null);
|
|
16
|
+
var _a = usePropsHandler(COMPONENT_NAME, props, dragNDropFieldRef), accept = _a.accept, maxSize = _a.maxSize, _b = _a.multiple, multiple = _b === void 0 ? false : _b, onDropFiles = _a.onDropFiles, _c = _a.children, children = _c === void 0 ? DragNDropFieldContent : _c;
|
|
14
17
|
var handleDrop = React.useCallback(function (acceptedFiles) { return acceptedFiles.length > 0 && onDropFiles(acceptedFiles); }, [onDropFiles]);
|
|
15
18
|
var _d = useDropzone({
|
|
16
19
|
accept: (accept === null || accept === void 0 ? void 0 : accept.length) ? accept : undefined,
|
|
@@ -33,7 +36,7 @@ export var DragNDropField = React.forwardRef(function (_a, ref) {
|
|
|
33
36
|
: children;
|
|
34
37
|
var errors = React.useMemo(function () { return getErrorsList(fileRejections); }, [fileRejections]);
|
|
35
38
|
return (React.createElement(React.Fragment, null,
|
|
36
|
-
React.createElement("div", __assign({}, rootProps, { ref: useForkRef([ref, rootRef]) }),
|
|
39
|
+
React.createElement("div", __assign({}, rootProps, { ref: useForkRef([ref, rootRef, dragNDropFieldRef]) }),
|
|
37
40
|
React.createElement("input", __assign({}, getInputProps())),
|
|
38
41
|
isDragActive ? (React.createElement(Text, { view: "secondary", size: "s", align: "center" }, "\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B \u0441\u044E\u0434\u0430")) : (content)),
|
|
39
42
|
React.createElement(DragNDropFieldTooltip, { anchorRef: rootRef, errors: errors })));
|
package/__internal__/src/components/EventInterceptor/propsHandlers/useCheckboxEventsHandler.d.ts
CHANGED
|
@@ -19,4 +19,6 @@ export declare const useCheckboxEventsHandler: <P extends {
|
|
|
19
19
|
tabIndex?: number | undefined;
|
|
20
20
|
inputRef?: ((instance: HTMLInputElement | null) => void) | React.RefObject<HTMLInputElement> | null | undefined;
|
|
21
21
|
children?: undefined;
|
|
22
|
+
for?: string | undefined;
|
|
23
|
+
inputId?: string | undefined;
|
|
22
24
|
} & Pick<React.HTMLAttributes<HTMLLabelElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLLabelElement>>(props: P, handler: EventInterceptorHandler, ref: React.RefObject<HTMLLabelElement>) => P;
|
|
@@ -12,6 +12,7 @@ export declare type FileFieldProps = PropsWithJsxAttributes<{
|
|
|
12
12
|
children?: RenderFn | React.ReactNode;
|
|
13
13
|
inputRef?: React.Ref<HTMLInputElement>;
|
|
14
14
|
}, 'input'>;
|
|
15
|
+
export declare const COMPONENT_NAME: "FileField";
|
|
15
16
|
export declare const cnFileField: import("@bem-react/classname").ClassNameFormatter;
|
|
16
17
|
export declare const FileField: React.FC<FileFieldProps>;
|
|
17
18
|
export {};
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
2
|
import './FileField.css';
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { useRef } from 'react';
|
|
4
|
+
import { useForkRef } from '../../hooks/useForkRef/useForkRef';
|
|
4
5
|
import { cnMixVisuallyHidden } from '../../mixs/MixVisuallyHidden/MixVisuallyHidden';
|
|
5
6
|
import { cn } from '../../utils/bem';
|
|
7
|
+
import { usePropsHandler } from '../EventInterceptor/usePropsHandler';
|
|
8
|
+
export var COMPONENT_NAME = 'FileField';
|
|
6
9
|
function isRenderFn(fn) {
|
|
7
10
|
return fn.call !== undefined;
|
|
8
11
|
}
|
|
9
12
|
export var cnFileField = cn('FileField');
|
|
10
13
|
export var FileField = function (props) {
|
|
11
|
-
var
|
|
14
|
+
var fileFieldRef = useRef(null);
|
|
15
|
+
var _a = usePropsHandler(COMPONENT_NAME, props, fileFieldRef), className = _a.className, children = _a.children, id = _a.id, inputRef = _a.inputRef, _b = _a["aria-label"], ariaLabel = _b === void 0 ? 'File input' : _b, inputProps = __rest(_a, ["className", "children", "id", "inputRef", 'aria-label']);
|
|
12
16
|
var content = isRenderFn(children) ? children({ role: 'button', as: 'span' }) : children;
|
|
13
17
|
return (React.createElement("label", { htmlFor: id, className: cnFileField(null, [className]) },
|
|
14
|
-
React.createElement("input", __assign({}, inputProps, { className: cnFileField('Input', [cnMixVisuallyHidden()]), id: id, type: "file", "aria-label": ariaLabel, ref: inputRef })),
|
|
18
|
+
React.createElement("input", __assign({}, inputProps, { className: cnFileField('Input', [cnMixVisuallyHidden()]), id: id, type: "file", "aria-label": ariaLabel, ref: useForkRef([inputRef, fileFieldRef]) })),
|
|
15
19
|
content));
|
|
16
20
|
};
|
|
@@ -41,5 +41,6 @@ declare type Props = {
|
|
|
41
41
|
position?: PaginationPropPosition;
|
|
42
42
|
});
|
|
43
43
|
declare type Pagination = (props: PropsWithHTMLAttributesAndRef<Props, HTMLDivElement>) => React.ReactElement | null;
|
|
44
|
+
export declare const COMPONENT_NAME: "Pagination";
|
|
44
45
|
export declare const Pagination: Pagination;
|
|
45
46
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { __assign, __read, __rest, __spread } from "tslib";
|
|
2
2
|
import './Pagination.css';
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { useRef } from 'react';
|
|
4
4
|
import { IconBackward } from '../../icons/IconBackward/IconBackward';
|
|
5
5
|
import { IconForward } from '../../icons/IconForward/IconForward';
|
|
6
6
|
import { cn } from '../../utils/bem';
|
|
7
7
|
import { Button } from '../Button/Button';
|
|
8
|
+
import { usePropsHandler } from '../EventInterceptor/usePropsHandler';
|
|
8
9
|
import { Text } from '../Text/Text';
|
|
9
10
|
import { TextField } from '../TextField/TextField';
|
|
10
11
|
import { getPaginationInfo } from './helpers';
|
|
@@ -18,8 +19,10 @@ export var paginationPositions = ['left', 'center', 'right'];
|
|
|
18
19
|
export var paginationDefaultPosition = 'center';
|
|
19
20
|
var getDefaultLabel = function (totalPages) { return "\u0438\u0437 " + totalPages; };
|
|
20
21
|
export var cnPagination = cn('Pagination');
|
|
22
|
+
export var COMPONENT_NAME = 'Pagination';
|
|
21
23
|
export var Pagination = React.forwardRef(function (props, ref) {
|
|
22
|
-
var
|
|
24
|
+
var paginationRef = useRef(null);
|
|
25
|
+
var _a = usePropsHandler(COMPONENT_NAME, props, paginationRef), _b = _a.currentPage, currentPage = _b === void 0 ? 0 : _b, _c = _a.totalPages, totalPages = _c === void 0 ? 0 : _c, onChange = _a.onChange, _d = _a.getLabel, getLabel = _d === void 0 ? getDefaultLabel(totalPages) : _d, _e = _a.form, form = _e === void 0 ? paginationDefaultForm : _e, _f = _a.size, size = _f === void 0 ? paginationDefaultSize : _f, _g = _a.type, type = _g === void 0 ? paginationDefaultType : _g, _h = _a.position, position = _h === void 0 ? paginationDefaultPosition : _h, _j = _a.minified, minified = _j === void 0 ? false : _j, _k = _a.hotkeys, hotkeys = _k === void 0 ? {
|
|
23
26
|
nextPage: {
|
|
24
27
|
label: 'Alt →',
|
|
25
28
|
values: ['Alt', 'ArrowRight']
|
|
@@ -28,12 +31,12 @@ export var Pagination = React.forwardRef(function (props, ref) {
|
|
|
28
31
|
label: '← Alt',
|
|
29
32
|
values: ['Alt', 'ArrowLeft']
|
|
30
33
|
}
|
|
31
|
-
} :
|
|
34
|
+
} : _k, _l = _a.containerEventListener, containerEventListener = _l === void 0 ? window : _l, className = _a.className, otherProps = __rest(_a, ["currentPage", "totalPages", "onChange", "getLabel", "form", "size", "type", "position", "minified", "hotkeys", "containerEventListener", "className"]);
|
|
32
35
|
if (!totalPages)
|
|
33
36
|
return null;
|
|
34
37
|
var currPage = currentPage + 1;
|
|
35
|
-
var
|
|
36
|
-
var
|
|
38
|
+
var _m = getPaginationInfo(currPage, totalPages), prevPage = _m.prevPage, nextPage = _m.nextPage, isStartDots = _m.isStartDots, isEndDots = _m.isEndDots, pages = _m.pages, isEmpty = _m.isEmpty;
|
|
39
|
+
var _o = __read(React.useState([]), 2), keys = _o[0], setKeys = _o[1];
|
|
37
40
|
var changePage = function (page) {
|
|
38
41
|
if (page && page !== currPage && onChange) {
|
|
39
42
|
onChange(page - 1);
|
|
@@ -8,14 +8,16 @@ import { useScrollElements } from '../../hooks/useScrollElements/useScrollElemen
|
|
|
8
8
|
import { IconArrowLeft } from '../../icons/IconArrowLeft/IconArrowLeft';
|
|
9
9
|
import { IconArrowRight } from '../../icons/IconArrowRight/IconArrowRight';
|
|
10
10
|
import { Button } from '../Button/Button';
|
|
11
|
+
import { usePropsHandler } from '../EventInterceptor/usePropsHandler';
|
|
11
12
|
import { ProgressStepBarItem } from './ProgressStepBarItem/ProgressStepBarItem';
|
|
12
13
|
import { ProgressStepBarLine } from './ProgressStepBarLine/ProgressStepBarLine';
|
|
13
14
|
import { cnProgressStepBar, getItemPosition, getLineSize, propDirectionDefault, propSizeDefault, withDefaultGetters, } from './helpers';
|
|
15
|
+
export var COMPONENT_NAME = 'ProgressStepBar';
|
|
14
16
|
function ProgressStepBarRender(props, ref) {
|
|
15
|
-
var
|
|
17
|
+
var containerRef = useRef(null);
|
|
18
|
+
var _a = usePropsHandler(COMPONENT_NAME, withDefaultGetters(props), containerRef), _b = _a.steps, steps = _b === void 0 ? [] : _b, _c = _a.direction, direction = _c === void 0 ? propDirectionDefault : _c, _d = _a.size, size = _d === void 0 ? propSizeDefault : _d, className = _a.className, activeStepIndex = _a.activeStepIndex, onItemClick = _a.onItemClick, getItemContent = _a.getItemContent, getItemLabel = _a.getItemLabel, getItemPoint = _a.getItemPoint, getItemProgress = _a.getItemProgress, getItemStatus = _a.getItemStatus, getItemTooltipContent = _a.getItemTooltipContent, getItemLineStatus = _a.getItemLineStatus, getItemOnClick = _a.getItemOnClick, style = _a.style, otherProps = __rest(_a, ["steps", "direction", "size", "className", "activeStepIndex", "onItemClick", "getItemContent", "getItemLabel", "getItemPoint", "getItemProgress", "getItemStatus", "getItemTooltipContent", "getItemLineStatus", "getItemOnClick", "style"]);
|
|
16
19
|
var _e = __read(useState([]), 2), lines = _e[0], setLines = _e[1];
|
|
17
20
|
var _f = __read(useState(activeStepIndex || 0), 2), visibleIndex = _f[0], setVisibleIndex = _f[1];
|
|
18
|
-
var containerRef = useRef(null);
|
|
19
21
|
var listRef = useRef(null);
|
|
20
22
|
var _g = useComponentSize(containerRef), width = _g.width, height = _g.height;
|
|
21
23
|
var _h = useScrollElements(steps), refs = _h.refs, scrollTo = _h.scrollTo;
|
package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarItem/ProgressStepBarItem.js
CHANGED
|
@@ -33,7 +33,7 @@ var renderPointContent = function (point, size, progress) {
|
|
|
33
33
|
return React.createElement(Icon, { size: "xs" });
|
|
34
34
|
};
|
|
35
35
|
export var ProgressStepBarItem = React.forwardRef(function (props, ref) {
|
|
36
|
-
var content = props.content, tooltipContent = props.tooltipContent, label = props.label, point = props.point, status = props.status, progress = props.progress, direction = props.direction, size = props.size, pointRef = props.pointRef, onClick = props.onClick, _a = props.position, position = _a === void 0 ? propPositionDefault : _a, otherProps = __rest(props, ["content", "tooltipContent", "label", "point", "status", "progress", "direction", "size", "pointRef", "onClick", "position"]);
|
|
36
|
+
var content = props.content, tooltipContent = props.tooltipContent, label = props.label, point = props.point, status = props.status, progress = props.progress, direction = props.direction, size = props.size, pointRef = props.pointRef, onClick = props.onClick, _a = props.position, position = _a === void 0 ? propPositionDefault : _a, tooltipZIndex = props.tooltipZIndex, otherProps = __rest(props, ["content", "tooltipContent", "label", "point", "status", "progress", "direction", "size", "pointRef", "onClick", "position", "tooltipZIndex"]);
|
|
37
37
|
var _b = __read(useFlag(), 2), isTooltipVisible = _b[0], _c = _b[1], setTooltipVisible = _c.on, setTooltipUnVisible = _c.off;
|
|
38
38
|
var anchorRef = useRef(null);
|
|
39
39
|
var pointProps = {
|
|
@@ -62,5 +62,5 @@ export var ProgressStepBarItem = React.forwardRef(function (props, ref) {
|
|
|
62
62
|
(label || content) && (React.createElement("div", { className: cnProgressStepBarItem('Content', { bottomOffset: !!content }) },
|
|
63
63
|
label && (React.createElement(Text, { className: cnProgressStepBarItem('Label'), ref: anchorRef, size: size, onMouseEnter: setTooltipVisible, onMouseLeave: setTooltipUnVisible, lineHeight: size === 's' ? 'xs' : size, view: "primary" }, label)),
|
|
64
64
|
content))),
|
|
65
|
-
tooltipContent && isTooltipVisible && (React.createElement(Tooltip, { anchorRef: label || content ? anchorRef : pointRef, className: cnProgressStepBarItem('Tooltip'), direction: direction === 'horizontal' ? 'downCenter' : 'leftUp', possibleDirections: direction === 'horizontal' ? possibleHorizontalDirections : possibleVerticalDirections }, tooltipContent))));
|
|
65
|
+
tooltipContent && isTooltipVisible && (React.createElement(Tooltip, { anchorRef: label || content ? anchorRef : pointRef, className: cnProgressStepBarItem('Tooltip'), direction: direction === 'horizontal' ? 'downCenter' : 'leftUp', style: { zIndex: tooltipZIndex }, possibleDirections: direction === 'horizontal' ? possibleHorizontalDirections : possibleVerticalDirections }, tooltipContent))));
|
|
66
66
|
});
|
|
@@ -33,7 +33,10 @@ export declare type Props = {
|
|
|
33
33
|
tabIndex?: number;
|
|
34
34
|
inputRef?: React.Ref<HTMLInputElement>;
|
|
35
35
|
children?: never;
|
|
36
|
+
for?: string;
|
|
37
|
+
inputId?: string;
|
|
36
38
|
};
|
|
37
39
|
export declare type RadioProps = PropsWithHTMLAttributes<Props, HTMLLabelElement>;
|
|
38
40
|
export declare const cnRadio: import("@bem-react/classname").ClassNameFormatter;
|
|
41
|
+
export declare const COMPONENT_NAME: "Radio";
|
|
39
42
|
export declare const Radio: React.ForwardRefExoticComponent<Props & Pick<React.HTMLAttributes<HTMLLabelElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLLabelElement>>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
2
|
import './Radio.css';
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { useRef } from 'react';
|
|
4
|
+
import { useForkRef } from '../../hooks/useForkRef/useForkRef';
|
|
4
5
|
import { cnMixFocus } from '../../mixs/MixFocus/MixFocus';
|
|
5
6
|
import { cn } from '../../utils/bem';
|
|
7
|
+
import { usePropsHandler } from '../EventInterceptor/usePropsHandler';
|
|
6
8
|
export var radioPropSize = ['m', 'l'];
|
|
7
9
|
export var radioPropSizeDefault = radioPropSize[0];
|
|
8
10
|
export var radioPropView = ['primary', 'ghost'];
|
|
@@ -10,14 +12,16 @@ export var radioPropViewDefault = radioPropView[0];
|
|
|
10
12
|
export var radioPropAlign = ['center', 'top'];
|
|
11
13
|
export var radioPropAlignDefault = radioPropAlign[0];
|
|
12
14
|
export var cnRadio = cn('Radio');
|
|
15
|
+
export var COMPONENT_NAME = 'Radio';
|
|
13
16
|
export var Radio = React.forwardRef(function (props, ref) {
|
|
14
|
-
var
|
|
17
|
+
var radioRef = useRef(null);
|
|
18
|
+
var _a = usePropsHandler(COMPONENT_NAME, props, radioRef), _b = _a.checked, checked = _b === void 0 ? false : _b, name = _a.name, _c = _a.size, size = _c === void 0 ? radioPropSizeDefault : _c, _d = _a.view, view = _d === void 0 ? radioPropViewDefault : _d, _e = _a.align, align = _e === void 0 ? radioPropAlignDefault : _e, disabled = _a.disabled, className = _a.className, label = _a.label, onChange = _a.onChange, onFocus = _a.onFocus, onBlur = _a.onBlur, readOnly = _a.readOnly, required = _a.required, step = _a.step, tabIndex = _a.tabIndex, inputId = _a.inputId, inputRef = _a.inputRef, otherProps = __rest(_a, ["checked", "name", "size", "view", "align", "disabled", "className", "label", "onChange", "onFocus", "onBlur", "readOnly", "required", "step", "tabIndex", "inputId", "inputRef"]);
|
|
15
19
|
var handleChange = function (e) {
|
|
16
20
|
if (onChange) {
|
|
17
21
|
onChange({ e: e, checked: !checked });
|
|
18
22
|
}
|
|
19
23
|
};
|
|
20
|
-
return (React.createElement("label", __assign({}, otherProps, { className: cnRadio({ size: size, view: view, disabled: disabled, align: align }, [className]), ref: ref }),
|
|
21
|
-
React.createElement("input", { type: "radio", name: name, className: cnRadio('Input', [cnMixFocus()]), checked: checked, disabled: disabled, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, readOnly: readOnly, required: required, step: step, tabIndex: tabIndex, ref: inputRef }),
|
|
24
|
+
return (React.createElement("label", __assign({}, otherProps, { className: cnRadio({ size: size, view: view, disabled: disabled, align: align }, [className]), ref: useForkRef([ref, radioRef]) }),
|
|
25
|
+
React.createElement("input", { type: "radio", name: name, className: cnRadio('Input', [cnMixFocus()]), checked: checked, disabled: disabled, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, readOnly: readOnly, required: required, step: step, id: inputId, tabIndex: tabIndex, ref: inputRef }),
|
|
22
26
|
label && React.createElement("span", { className: cnRadio('Label') }, label)));
|
|
23
27
|
});
|
|
@@ -15,7 +15,7 @@ import { withDefaultGetters, } from './helpers';
|
|
|
15
15
|
function SelectRender(props, ref) {
|
|
16
16
|
var defaultDropdownRef = useRef(null);
|
|
17
17
|
var controlRef = useRef(null);
|
|
18
|
-
var _a = usePropsHandler(COMPONENT_NAME, withDefaultGetters(props), controlRef), placeholder = _a.placeholder, onBlur = _a.onBlur, onFocus = _a.onFocus, items = _a.items, onChange = _a.onChange, value = _a.value, required = _a.required, disabled = _a.disabled, ariaLabel = _a.ariaLabel, id = _a.id, _b = _a.dropdownRef, dropdownRef = _b === void 0 ? defaultDropdownRef : _b, _c = _a.form, form = _c === void 0 ? defaultPropForm : _c, _d = _a.view, view = _d === void 0 ? defaultPropView : _d, _e = _a.size, size = _e === void 0 ? defaultPropSize : _e, dropdownClassName = _a.dropdownClassName, name = _a.name, _f = _a.groups, groups = _f === void 0 ? [] : _f, getItemLabel = _a.getItemLabel, _g = _a.labelForEmptyItems, labelForEmptyItems = _g === void 0 ? defaultLabelForEmptyItems : _g, getItemKey = _a.getItemKey, getItemGroupKey = _a.getItemGroupKey, getItemDisabled = _a.getItemDisabled, getGroupKey = _a.getGroupKey, getGroupLabel = _a.getGroupLabel, renderItem = _a.renderItem, renderValueProp = _a.renderValue, inputRefProp = _a.inputRef, style = _a.style, restProps = __rest(_a, ["placeholder", "onBlur", "onFocus", "items", "onChange", "value", "required", "disabled", "ariaLabel", "id", "dropdownRef", "form", "view", "size", "dropdownClassName", "name", "groups", "getItemLabel", "labelForEmptyItems", "getItemKey", "getItemGroupKey", "getItemDisabled", "getGroupKey", "getGroupLabel", "renderItem", "renderValue", "inputRef", "style"]);
|
|
18
|
+
var _a = usePropsHandler(COMPONENT_NAME, withDefaultGetters(props), controlRef), placeholder = _a.placeholder, onBlur = _a.onBlur, onFocus = _a.onFocus, items = _a.items, onChange = _a.onChange, value = _a.value, required = _a.required, disabled = _a.disabled, ariaLabel = _a.ariaLabel, id = _a.id, _b = _a.dropdownRef, dropdownRef = _b === void 0 ? defaultDropdownRef : _b, _c = _a.form, form = _c === void 0 ? defaultPropForm : _c, _d = _a.view, view = _d === void 0 ? defaultPropView : _d, _e = _a.size, size = _e === void 0 ? defaultPropSize : _e, dropdownClassName = _a.dropdownClassName, name = _a.name, _f = _a.groups, groups = _f === void 0 ? [] : _f, getItemLabel = _a.getItemLabel, _g = _a.labelForEmptyItems, labelForEmptyItems = _g === void 0 ? defaultLabelForEmptyItems : _g, getItemKey = _a.getItemKey, getItemGroupKey = _a.getItemGroupKey, getItemDisabled = _a.getItemDisabled, getGroupKey = _a.getGroupKey, getGroupLabel = _a.getGroupLabel, renderItem = _a.renderItem, isLoading = _a.isLoading, renderValueProp = _a.renderValue, inputRefProp = _a.inputRef, style = _a.style, restProps = __rest(_a, ["placeholder", "onBlur", "onFocus", "items", "onChange", "value", "required", "disabled", "ariaLabel", "id", "dropdownRef", "form", "view", "size", "dropdownClassName", "name", "groups", "getItemLabel", "labelForEmptyItems", "getItemKey", "getItemGroupKey", "getItemDisabled", "getGroupKey", "getGroupLabel", "renderItem", "isLoading", "renderValue", "inputRef", "style"]);
|
|
19
19
|
var _h = useSelect({
|
|
20
20
|
items: items,
|
|
21
21
|
groups: groups,
|
|
@@ -53,7 +53,7 @@ function SelectRender(props, ref) {
|
|
|
53
53
|
React.createElement("span", { className: cnSelect('Indicators') },
|
|
54
54
|
React.createElement("button", { type: "button", className: cnSelect('IndicatorsDropdown'), tabIndex: -1, onClick: handleToggleDropdown },
|
|
55
55
|
React.createElement(IconSelect, { size: "xs", className: cnSelect('DropdownIndicatorIcon') })))),
|
|
56
|
-
React.createElement(SelectDropdown, { isOpen: isOpen, size: size, controlRef: controlRef, getOptionProps: getOptionProps, dropdownRef: dropdownRef, form: dropdownForm, className: dropdownClassName, renderItem: renderItem || renderItemDefault, getGroupLabel: getGroupLabel, visibleItems: visibleItems, notFound: notFound, labelForEmptyItems: labelForEmptyItems, hasItems: hasItems, style: typeof (style === null || style === void 0 ? void 0 : style.zIndex) === 'number' ? { zIndex: style.zIndex + 1 } : undefined })));
|
|
56
|
+
React.createElement(SelectDropdown, { isOpen: isOpen, size: size, controlRef: controlRef, getOptionProps: getOptionProps, dropdownRef: dropdownRef, form: dropdownForm, className: dropdownClassName, renderItem: renderItem || renderItemDefault, getGroupLabel: getGroupLabel, visibleItems: visibleItems, notFound: notFound, isLoading: isLoading, labelForEmptyItems: labelForEmptyItems, hasItems: hasItems, style: typeof (style === null || style === void 0 ? void 0 : style.zIndex) === 'number' ? { zIndex: style.zIndex + 1 } : undefined })));
|
|
57
57
|
}
|
|
58
58
|
export var Select = forwardRef(SelectRender);
|
|
59
59
|
export * from './helpers';
|
|
@@ -42,6 +42,7 @@ export declare type SelectProps<ITEM = DefaultItem, GROUP = DefaultGroup> = Prop
|
|
|
42
42
|
dropdownRef?: React.RefObject<HTMLDivElement>;
|
|
43
43
|
required?: boolean;
|
|
44
44
|
name?: string;
|
|
45
|
+
isLoading?: boolean;
|
|
45
46
|
labelForEmptyItems?: string;
|
|
46
47
|
value?: PropValue<ITEM>;
|
|
47
48
|
renderItem?: PropRenderItem<ITEM>;
|
|
@@ -102,6 +103,7 @@ export declare function withDefaultGetters<ITEM, GROUP>(props: SelectProps<ITEM,
|
|
|
102
103
|
dropdownRef?: React.RefObject<HTMLDivElement> | undefined;
|
|
103
104
|
required?: boolean | undefined;
|
|
104
105
|
name?: string | undefined;
|
|
106
|
+
isLoading?: boolean | undefined;
|
|
105
107
|
labelForEmptyItems?: string | undefined;
|
|
106
108
|
value?: PropValue<ITEM>;
|
|
107
109
|
renderItem?: PropRenderItem<ITEM> | undefined;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
.SelectDropdown {
|
|
2
|
-
--transition-spase: var(--space-2xs);
|
|
3
|
-
z-index: 9999;
|
|
4
2
|
overflow: hidden;
|
|
5
3
|
-webkit-box-sizing: border-box;
|
|
6
4
|
box-sizing: border-box;
|
|
@@ -9,12 +7,9 @@
|
|
|
9
7
|
background: var(--color-bg-default);
|
|
10
8
|
border: var(--control-border-width) solid var(--color-control-bg-border-default);
|
|
11
9
|
outline: none;
|
|
12
|
-
opacity: 0;
|
|
13
10
|
-webkit-box-shadow: var(--shadow-layer);
|
|
14
11
|
box-shadow: var(--shadow-layer);
|
|
15
12
|
font-size: var(--font-size);
|
|
16
|
-
-webkit-transform: translateY(var(--transition-spase));
|
|
17
|
-
transform: translateY(var(--transition-spase));
|
|
18
13
|
}
|
|
19
14
|
|
|
20
15
|
.SelectDropdown_size_xs {
|
|
@@ -57,52 +52,6 @@
|
|
|
57
52
|
border-radius: calc(var(--input-height) * 0.5);
|
|
58
53
|
}
|
|
59
54
|
|
|
60
|
-
.SelectDropdown_animate_appear,
|
|
61
|
-
.SelectDropdown_animate_appearActive,
|
|
62
|
-
.SelectDropdown_animate_appearDone,
|
|
63
|
-
.SelectDropdown_animate_enter,
|
|
64
|
-
.SelectDropdown_animate_enterActive,
|
|
65
|
-
.SelectDropdown_animate_enterDone,
|
|
66
|
-
.SelectDropdown_animate_exit,
|
|
67
|
-
.SelectDropdown_animate_exitActive,
|
|
68
|
-
.SelectDropdown_animate_exitDone {
|
|
69
|
-
-webkit-transition: 0.2s ease;
|
|
70
|
-
transition: 0.2s ease;
|
|
71
|
-
-webkit-transition-property: opacity, -webkit-transform;
|
|
72
|
-
transition-property: opacity, -webkit-transform;
|
|
73
|
-
transition-property: opacity, transform;
|
|
74
|
-
transition-property: opacity, transform, -webkit-transform;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.SelectDropdown_animate_appear,
|
|
78
|
-
.SelectDropdown_animate_enter {
|
|
79
|
-
opacity: 0;
|
|
80
|
-
-webkit-transform: translateY(var(--transition-spase));
|
|
81
|
-
transform: translateY(var(--transition-spase));
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.SelectDropdown_animate_enterActive,
|
|
85
|
-
.SelectDropdown_animate_appearActive,
|
|
86
|
-
.SelectDropdown_animate_appearDone,
|
|
87
|
-
.SelectDropdown_animate_enterDone {
|
|
88
|
-
opacity: 1;
|
|
89
|
-
-webkit-transform: translateY(0);
|
|
90
|
-
transform: translateY(0);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.SelectDropdown_animate_exit {
|
|
94
|
-
opacity: 1;
|
|
95
|
-
-webkit-transform: translateY(0);
|
|
96
|
-
transform: translateY(0);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.SelectDropdown_animate_exitActive,
|
|
100
|
-
.SelectDropdown_animate_exitDone {
|
|
101
|
-
opacity: 0;
|
|
102
|
-
-webkit-transform: translateY(var(--transition-spase));
|
|
103
|
-
transform: translateY(var(--transition-spase));
|
|
104
|
-
}
|
|
105
|
-
|
|
106
55
|
.SelectDropdown-LabelForNotFound,
|
|
107
56
|
.SelectDropdown-LabelForEmptyItems {
|
|
108
57
|
padding: 0 var(--space-xs);
|
|
@@ -13,6 +13,7 @@ declare type Props<ITEM, GROUP> = PropsWithJsxAttributes<{
|
|
|
13
13
|
getOptionProps(props: OptionProps<ITEM>): GetOptionPropsResult;
|
|
14
14
|
form: SelectDropdownPropForm;
|
|
15
15
|
isOpen: boolean;
|
|
16
|
+
isLoading?: boolean;
|
|
16
17
|
renderItem: (props: RenderItemProps<ITEM>) => JSX.Element | null;
|
|
17
18
|
visibleItems: (OptionForCreate | {
|
|
18
19
|
items: ITEM[];
|