@consta/uikit 3.18.0 → 3.18.3
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 +51 -62
- 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/README.md +6 -6
- 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/ChoiceGroup/ChoiceGroup.css +4 -1
- package/__internal__/cjs-src/components/ChoiceGroup/ChoiceGroup.d.ts +1 -0
- package/__internal__/cjs-src/components/ChoiceGroup/ChoiceGroup.js +4 -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/ContextMenuLevel/ContextMenuLevel.d.ts +1 -0
- package/__internal__/cjs-src/components/ContextMenuCanary/ContextMenuLevel/ContextMenuLevel.js +27 -5
- package/__internal__/cjs-src/components/ContextMenuCanary/ContextMenuLevels/ContextMenuLevels.js +5 -4
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerCanary.d.ts +1 -0
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerCanary.js +19 -11
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDate/DatePickerFieldTypeDate.js +6 -70
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDate/helpers.d.ts +1 -1
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDate/helpers.js +82 -13
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDateTime/DatePickerFieldTypeDateTime.js +9 -2
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDateTime/helpers.d.ts +0 -2
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDateTime/helpers.js +12 -22
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeTime/DatePickerFieldTypeTime.d.ts +48 -0
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeTime/DatePickerFieldTypeTime.js +75 -0
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeTime/helpers.d.ts +49 -0
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeTime/helpers.js +83 -0
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerTypeDateTime/DatePickerTypeDateTime.js +3 -3
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerTypeTime/DatePickerTypeTime.d.ts +2 -0
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerTypeTime/DatePickerTypeTime.js +35 -0
- package/__internal__/cjs-src/components/DatePickerCanary/helpers.d.ts +6 -1
- package/__internal__/cjs-src/components/DatePickerCanary/helpers.js +33 -4
- 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/EventInterceptor/types.d.ts +1 -1
- 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/Modal/Modal.css +50 -25
- package/__internal__/cjs-src/components/Modal/Modal.js +3 -3
- package/__internal__/cjs-src/components/Pagination/Pagination.js +2 -2
- package/__internal__/cjs-src/components/PortalWithTheme/PortalWithTheme.js +15 -4
- package/__internal__/cjs-src/components/PortalWithTheme/PortalWithThemeContext/PortalWithThemeContext.d.ts +4 -1
- package/__internal__/cjs-src/components/PortalWithTheme/PortalWithThemeContext/PortalWithThemeContext.js +3 -2
- 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/Sidebar/Sidebar.css +10 -10
- package/__internal__/cjs-src/components/Sidebar/Sidebar.js +2 -2
- 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/hooks/useClickOutside/useClickOutside.d.ts +3 -3
- package/__internal__/cjs-src/hooks/useClickOutside/useClickOutside.js +18 -7
- 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/ChoiceGroup/ChoiceGroup.css +4 -1
- package/__internal__/src/components/ChoiceGroup/ChoiceGroup.d.ts +1 -0
- package/__internal__/src/components/ChoiceGroup/ChoiceGroup.js +4 -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/ContextMenuLevel/ContextMenuLevel.d.ts +1 -0
- package/__internal__/src/components/ContextMenuCanary/ContextMenuLevel/ContextMenuLevel.js +25 -4
- package/__internal__/src/components/ContextMenuCanary/ContextMenuLevels/ContextMenuLevels.js +6 -5
- package/__internal__/src/components/DatePickerCanary/DatePickerCanary.d.ts +1 -0
- package/__internal__/src/components/DatePickerCanary/DatePickerCanary.js +20 -12
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDate/DatePickerFieldTypeDate.js +9 -73
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDate/helpers.d.ts +1 -1
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDate/helpers.js +81 -12
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDateTime/DatePickerFieldTypeDateTime.js +11 -4
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDateTime/helpers.d.ts +0 -2
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDateTime/helpers.js +13 -23
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeTime/DatePickerFieldTypeTime.d.ts +48 -0
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeTime/DatePickerFieldTypeTime.js +72 -0
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeTime/helpers.d.ts +49 -0
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeTime/helpers.js +80 -0
- package/__internal__/src/components/DatePickerCanary/DatePickerTypeDateTime/DatePickerTypeDateTime.js +3 -3
- package/__internal__/src/components/DatePickerCanary/DatePickerTypeTime/DatePickerTypeTime.d.ts +2 -0
- package/__internal__/src/components/DatePickerCanary/DatePickerTypeTime/DatePickerTypeTime.js +32 -0
- package/__internal__/src/components/DatePickerCanary/helpers.d.ts +6 -1
- package/__internal__/src/components/DatePickerCanary/helpers.js +32 -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/EventInterceptor/types.d.ts +1 -1
- package/__internal__/src/components/FileField/FileField.d.ts +1 -0
- package/__internal__/src/components/FileField/FileField.js +7 -3
- package/__internal__/src/components/Modal/Modal.css +50 -25
- package/__internal__/src/components/Modal/Modal.js +3 -3
- package/__internal__/src/components/Pagination/Pagination.js +2 -2
- package/__internal__/src/components/PortalWithTheme/PortalWithTheme.js +15 -4
- package/__internal__/src/components/PortalWithTheme/PortalWithThemeContext/PortalWithThemeContext.d.ts +4 -1
- package/__internal__/src/components/PortalWithTheme/PortalWithThemeContext/PortalWithThemeContext.js +3 -2
- 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/Sidebar/Sidebar.css +10 -10
- package/__internal__/src/components/Sidebar/Sidebar.js +2 -2
- 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/hooks/useClickOutside/useClickOutside.d.ts +3 -3
- package/__internal__/src/hooks/useClickOutside/useClickOutside.js +18 -7
- 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
|
@@ -47,18 +47,18 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.Sidebar-Overlay {
|
|
50
|
-
position:
|
|
50
|
+
position: absolute;
|
|
51
51
|
top: 0;
|
|
52
|
+
right: 0;
|
|
52
53
|
left: 0;
|
|
53
|
-
|
|
54
|
-
height: 100%;
|
|
54
|
+
bottom: 0;
|
|
55
55
|
padding: 0;
|
|
56
56
|
background: var(--color-bg-tone);
|
|
57
57
|
border: none;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.Sidebar-Window {
|
|
61
|
-
|
|
61
|
+
position: absolute;
|
|
62
62
|
display: -webkit-box;
|
|
63
63
|
display: -ms-flexbox;
|
|
64
64
|
display: flex;
|
|
@@ -143,15 +143,15 @@
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
.Sidebar_animate_appear .Sidebar-Overlay, .Sidebar_animate_enter .Sidebar-Overlay, .Sidebar_animate_exit .Sidebar-Overlay, .Sidebar_animate_appearActive .Sidebar-Overlay, .Sidebar_animate_enterActive .Sidebar-Overlay, .Sidebar_animate_exitActive .Sidebar-Overlay {
|
|
146
|
-
-webkit-transition: opacity 0.
|
|
147
|
-
transition: opacity 0.
|
|
146
|
+
-webkit-transition: opacity 0.24s ease;
|
|
147
|
+
transition: opacity 0.24s ease;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
.Sidebar_animate_appear .Sidebar-Window, .Sidebar_animate_enter .Sidebar-Window, .Sidebar_animate_exit .Sidebar-Window, .Sidebar_animate_appearActive .Sidebar-Window, .Sidebar_animate_enterActive .Sidebar-Window, .Sidebar_animate_exitActive .Sidebar-Window {
|
|
151
|
-
-webkit-transition: -webkit-transform 0.
|
|
152
|
-
transition: -webkit-transform 0.
|
|
153
|
-
transition: transform 0.
|
|
154
|
-
transition: transform 0.
|
|
151
|
+
-webkit-transition: -webkit-transform 0.24s ease;
|
|
152
|
+
transition: -webkit-transform 0.24s ease;
|
|
153
|
+
transition: transform 0.24s ease;
|
|
154
|
+
transition: transform 0.24s ease, -webkit-transform 0.24s ease;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
.Sidebar_animate_appear .Sidebar-Overlay, .Sidebar_animate_enter .Sidebar-Overlay {
|
|
@@ -47,10 +47,10 @@ export var Sidebar = function (props) {
|
|
|
47
47
|
useGlobalKeys({
|
|
48
48
|
Escape: function (e) { return isOpen && onEsc && onEsc(e); }
|
|
49
49
|
});
|
|
50
|
-
return (React.createElement(CSSTransition, { "in": isOpen, unmountOnExit: true, className: cnSidebar({ position: position, hasOverlay: hasOverlay }), classNames: cnForCssTransition(cnSidebar), timeout:
|
|
50
|
+
return (React.createElement(CSSTransition, { "in": isOpen, unmountOnExit: true, className: cnSidebar({ position: position, hasOverlay: hasOverlay }), classNames: cnForCssTransition(cnSidebar), timeout: 240, nodeRef: portalRef },
|
|
51
51
|
React.createElement(PortalWithTheme, { preset: theme, ref: portalRef, container: container, className: rootClassName, style: typeof (style === null || style === void 0 ? void 0 : style.zIndex) === 'number' ? { zIndex: style.zIndex } : undefined },
|
|
52
52
|
hasOverlay && React.createElement("div", { className: cnSidebar('Overlay'), "aria-label": "Overlay" }),
|
|
53
|
-
React.createElement("div", __assign({}, otherProps, { style: __assign(__assign({}, style),
|
|
53
|
+
React.createElement("div", __assign({}, otherProps, { style: __assign(__assign({}, style), { zIndex: undefined }), className: cnSidebar('Window', { size: size, position: position }, [className]), ref: ref }),
|
|
54
54
|
React.createElement(ContextConsumer, { onClickOutside: onClickOutside || onOverlayClick, ignoreClicksInsideRefs: [ref] }, children)))));
|
|
55
55
|
};
|
|
56
56
|
Sidebar.Content = SidebarContent;
|
|
@@ -5,6 +5,7 @@ import { useFlag } from '../../hooks/useFlag/useFlag';
|
|
|
5
5
|
import { useSortSteps } from '../../hooks/useSortSteps/useSortSteps';
|
|
6
6
|
import { cn } from '../../utils/bem';
|
|
7
7
|
import { getByMap } from '../../utils/getByMap';
|
|
8
|
+
import { usePropsHandler } from '../EventInterceptor/usePropsHandler';
|
|
8
9
|
import { FieldCaption } from '../FieldCaption/FieldCaption';
|
|
9
10
|
import { FieldLabel } from '../FieldLabel/FieldLabel';
|
|
10
11
|
import { SliderInput } from './SliderInput/SliderInput';
|
|
@@ -20,17 +21,18 @@ var sizeMap = {
|
|
|
20
21
|
m: 'm',
|
|
21
22
|
l: 'm'
|
|
22
23
|
};
|
|
24
|
+
export var COMPONENT_NAME = 'Slider';
|
|
23
25
|
function SliderRender(props, ref) {
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
+
var sliderRef = useRef(null);
|
|
27
|
+
var _a = usePropsHandler(COMPONENT_NAME, props, sliderRef), _b = _a.min, min = _b === void 0 ? 0 : _b, _c = _a.max, max = _c === void 0 ? 100 : _c, onChange = _a.onChange, onAfterChange = _a.onAfterChange, value = _a.value, _d = _a.step, step = _d === void 0 ? 1 : _d, _e = _a.disabled, disabled = _e === void 0 ? false : _e, _f = _a.size, size = _f === void 0 ? defaultPropSize : _f, _g = _a.view, view = _g === void 0 ? 'default' : _g, leftSide = _a.leftSide, rightSide = _a.rightSide, withTooltip = _a.withTooltip, _h = _a.range, range = _h === void 0 ? false : _h, label = _a.label, status = _a.status, caption = _a.caption, _j = _a.tooltipFormatter, tooltipFormatter = _j === void 0 ? defaultTooltipFormatter : _j, className = _a.className, style = _a.style, otherProps = __rest(_a, ["min", "max", "onChange", "onAfterChange", "value", "step", "disabled", "size", "view", "leftSide", "rightSide", "withTooltip", "range", "label", "status", "caption", "tooltipFormatter", "className", "style"]);
|
|
28
|
+
var _k = __read(useFlag(false), 2), isHovered = _k[0], _l = _k[1], on = _l.on, off = _l.off;
|
|
26
29
|
var leftButtonRef = useRef(null);
|
|
27
30
|
var rightButtonRef = useRef(null);
|
|
28
|
-
var sliderRef = useRef(null);
|
|
29
31
|
var sortedSteps = useSortSteps({ step: step, min: min, max: max });
|
|
30
32
|
var IconRight = rightSide;
|
|
31
33
|
var IconLeft = isNotRangeParams && props.leftSide && props.leftSide !== 'input' ? props.leftSide : undefined;
|
|
32
34
|
var iconSize = getByMap(sizeMap, size);
|
|
33
|
-
var
|
|
35
|
+
var _m = useSlider({
|
|
34
36
|
disabled: disabled,
|
|
35
37
|
range: range,
|
|
36
38
|
value: value,
|
|
@@ -41,8 +43,8 @@ function SliderRender(props, ref) {
|
|
|
41
43
|
onAfterChange: onAfterChange,
|
|
42
44
|
sliderRef: sliderRef,
|
|
43
45
|
buttonRefs: [leftButtonRef, rightButtonRef]
|
|
44
|
-
}), onKeyPress =
|
|
45
|
-
var
|
|
46
|
+
}), onKeyPress = _m.onKeyPress, onFocus = _m.onFocus, handlePress = _m.handlePress, popoverPosition = _m.popoverPosition, activeButton = _m.activeButton, currentValue = _m.currentValue;
|
|
47
|
+
var _o = useSliderStationing(currentValue.length === 1 ? currentValue[0] : currentValue, min, max, view, range, sortedSteps, [leftButtonRef, rightButtonRef], sliderRef), lineSizes = _o.lineSizes, buttonPositions = _o.buttonPositions;
|
|
46
48
|
var changeHovered = function (status) {
|
|
47
49
|
if (status)
|
|
48
50
|
on();
|
|
@@ -36,5 +36,6 @@ declare type Props = {
|
|
|
36
36
|
};
|
|
37
37
|
export declare type SwitchProps = PropsWithHTMLAttributes<Props, HTMLLabelElement>;
|
|
38
38
|
export declare const cnSwitch: import("@bem-react/classname").ClassNameFormatter;
|
|
39
|
+
export declare const COMPONENT_NAME: "Switch";
|
|
39
40
|
export declare const Switch: 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>>;
|
|
40
41
|
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
2
|
import './Switch.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 switchPropSize = ['m', 's', 'l'];
|
|
7
9
|
export var switchPropSizeDefault = switchPropSize[0];
|
|
8
10
|
export var switchPropView = ['primary', 'ghost'];
|
|
@@ -10,14 +12,16 @@ export var switchPropViewDefault = switchPropView[0];
|
|
|
10
12
|
export var switchPropAlign = ['center', 'top'];
|
|
11
13
|
export var switchPropAlignDefault = switchPropAlign[0];
|
|
12
14
|
export var cnSwitch = cn('Switch');
|
|
15
|
+
export var COMPONENT_NAME = 'Switch';
|
|
13
16
|
export var Switch = React.forwardRef(function (props, ref) {
|
|
14
|
-
var
|
|
17
|
+
var switchRef = useRef(null);
|
|
18
|
+
var _a = usePropsHandler(COMPONENT_NAME, props, switchRef), _b = _a.checked, checked = _b === void 0 ? false : _b, name = _a.name, _c = _a.size, size = _c === void 0 ? switchPropSizeDefault : _c, _d = _a.view, view = _d === void 0 ? switchPropViewDefault : _d, _e = _a.align, align = _e === void 0 ? switchPropAlignDefault : _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, inputRef = _a.inputRef, otherProps = __rest(_a, ["checked", "name", "size", "view", "align", "disabled", "className", "label", "onChange", "onFocus", "onBlur", "readOnly", "required", "step", "tabIndex", "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: cnSwitch({ size: size, view: view, disabled: disabled, align: align }, [className]), ref: ref }),
|
|
24
|
+
return (React.createElement("label", __assign({}, otherProps, { className: cnSwitch({ size: size, view: view, disabled: disabled, align: align }, [className]), ref: useForkRef([switchRef, ref]) }),
|
|
21
25
|
React.createElement("input", { type: "checkbox", name: name, className: cnSwitch('Input', [cnMixFocus()]), checked: checked, disabled: disabled, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, readOnly: readOnly, required: required, step: step, tabIndex: tabIndex, ref: inputRef }),
|
|
22
26
|
label && React.createElement("span", { className: cnSwitch('Label') }, label)));
|
|
23
27
|
});
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { __read, __spread } from "tslib";
|
|
2
2
|
import './TableFilterTooltip.css';
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { useRef, useState } from 'react';
|
|
4
|
+
import { Transition } from 'react-transition-group';
|
|
4
5
|
import { IconFunnel } from '../../../icons/IconFunnel/IconFunnel';
|
|
6
|
+
import { animateTimeout, cnMixPopoverAnimate, } from '../../../mixs/MixPopoverAnimate/MixPopoverAnimate';
|
|
5
7
|
import { cn } from '../../../utils/bem';
|
|
6
8
|
import { Button } from '../../Button/Button';
|
|
7
9
|
import { Popover } from '../../Popover/Popover';
|
|
@@ -9,12 +11,16 @@ import { Text } from '../../Text/Text';
|
|
|
9
11
|
var cnTableFilterTooltip = cn('TableFilterTooltip');
|
|
10
12
|
export var TableFilterTooltip = function (_a) {
|
|
11
13
|
var field = _a.field, isOpened = _a.isOpened, options = _a.options, values = _a.values, className = _a.className, children = _a.children, onChange = _a.onChange, onToggle = _a.onToggle;
|
|
12
|
-
var
|
|
14
|
+
var _b = __read(useState('downRight'), 2), direction = _b[0], setDirection = _b[1];
|
|
15
|
+
var buttonRef = useRef(null);
|
|
16
|
+
var popoverRef = useRef(null);
|
|
13
17
|
return (React.createElement(React.Fragment, null,
|
|
14
18
|
React.createElement(Button, { ref: buttonRef, size: "xs", iconSize: "s", view: "clear", onlyIcon: true, onClick: onToggle, className: cnTableFilterTooltip('Button', { isOpened: isOpened }, [className]), iconLeft: IconFunnel }),
|
|
15
|
-
isOpened
|
|
19
|
+
React.createElement(Transition, { "in": isOpened, unmountOnExit: true, nodeRef: popoverRef, timeout: animateTimeout }, function (animate) { return (React.createElement(Popover, { anchorRef: buttonRef, possibleDirections: ['downRight', 'downLeft'], direction: "downRight", offset: 4, arrowOffset: 12, ref: popoverRef, onSetDirection: setDirection, onClickOutside: onToggle, className: cnTableFilterTooltip('Popover', [
|
|
20
|
+
cnMixPopoverAnimate({ animate: animate, direction: direction }),
|
|
21
|
+
]) }, children || (React.createElement("div", { className: cnTableFilterTooltip('Content') },
|
|
16
22
|
React.createElement(Text, { as: "div", size: "xs", view: "primary", className: cnTableFilterTooltip('Title') }, "\u0424\u0438\u043B\u044C\u0442\u0440\u043E\u0432\u0430\u0442\u044C \u043F\u043E \u0443\u0441\u043B\u043E\u0432\u0438\u044E"),
|
|
17
23
|
React.createElement("select", { className: cnTableFilterTooltip('Select'), value: __spread(values), multiple: true, onChange: function (e) {
|
|
18
24
|
onChange(field, Array.from(e.target.selectedOptions).map(function (option) { return option.value; }));
|
|
19
|
-
} }, options.map(function (option) { return (React.createElement("option", { key: option.value, className: cnTableFilterTooltip('Option'), value: option.value, title: option.label }, option.label)); }))))))));
|
|
25
|
+
} }, options.map(function (option) { return (React.createElement("option", { key: option.value, className: cnTableFilterTooltip('Option'), value: option.value, title: option.label }, option.label)); })))))); })));
|
|
20
26
|
};
|
|
@@ -1,42 +1,48 @@
|
|
|
1
1
|
import { __read } from "tslib";
|
|
2
2
|
import './TabsMoreItems.css';
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
4
|
+
import { Transition } from 'react-transition-group';
|
|
4
5
|
import FocusTrap from 'focus-trap-react';
|
|
6
|
+
import { useFlag } from '../../../hooks/useFlag/useFlag';
|
|
5
7
|
import { useForkRef } from '../../../hooks/useForkRef/useForkRef';
|
|
6
8
|
import { IconMeatball } from '../../../icons/IconMeatball/IconMeatball';
|
|
9
|
+
import { animateTimeout, cnMixPopoverAnimate, } from '../../../mixs/MixPopoverAnimate/MixPopoverAnimate';
|
|
7
10
|
import { cn } from '../../../utils/bem';
|
|
8
11
|
import { Button } from '../../Button/Button';
|
|
9
12
|
import { Popover } from '../../Popover/Popover';
|
|
10
13
|
var cnTabsMoreItems = cn('TabsMoreItems');
|
|
11
14
|
export var TabsMoreItems = React.forwardRef(function (_a, ref) {
|
|
12
15
|
var items = _a.items, renderItem = _a.renderItem, getLabel = _a.getLabel, getChecked = _a.getChecked, height = _a.height;
|
|
13
|
-
var _b = __read(
|
|
14
|
-
var buttonRef =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
var _b = __read(useFlag(false), 2), isOpen = _b[0], _c = _b[1], off = _c.off, toogle = _c.toogle;
|
|
17
|
+
var buttonRef = useRef(null);
|
|
18
|
+
var popoverRef = useRef(null);
|
|
19
|
+
var _d = __read(useState('downStartLeft'), 2), direction = _d[0], setDirection = _d[1];
|
|
20
|
+
useEffect(function () {
|
|
21
|
+
items.length === 0 && off();
|
|
19
22
|
}, [items]);
|
|
20
23
|
return (React.createElement(React.Fragment, null,
|
|
21
24
|
React.createElement("div", { ref: useForkRef([ref, buttonRef]), className: cnTabsMoreItems('Button'), style: { height: height } },
|
|
22
|
-
React.createElement(Button, { size: "xs", view: "ghost", onlyIcon: true, iconLeft: IconMeatball, onClick:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
25
|
+
React.createElement(Button, { size: "xs", view: "ghost", onlyIcon: true, iconLeft: IconMeatball, onClick: toogle })),
|
|
26
|
+
React.createElement(Transition, { "in": isOpen, unmountOnExit: true, nodeRef: popoverRef, timeout: animateTimeout }, function (animate) {
|
|
27
|
+
var _a;
|
|
28
|
+
return (React.createElement(Popover, { anchorRef: buttonRef, offset: -1, ref: popoverRef, direction: "downStartRight", spareDirection: "downStartLeft", className: cnTabsMoreItems('Popover', [cnMixPopoverAnimate({ animate: animate, direction: direction })]), onSetDirection: setDirection, possibleDirections: [
|
|
29
|
+
'downStartRight',
|
|
30
|
+
'downStartLeft',
|
|
31
|
+
'upStartRight',
|
|
32
|
+
'upStartLeft',
|
|
33
|
+
'downCenter',
|
|
34
|
+
'upCenter',
|
|
35
|
+
] },
|
|
36
|
+
React.createElement(FocusTrap, { focusTrapOptions: {
|
|
37
|
+
fallbackFocus: (_a = buttonRef.current) !== null && _a !== void 0 ? _a : undefined,
|
|
38
|
+
clickOutsideDeactivates: function (e) {
|
|
39
|
+
var _a;
|
|
40
|
+
var isClickInsideButton = (_a = buttonRef.current) === null || _a === void 0 ? void 0 : _a.contains(e.target);
|
|
41
|
+
return !isClickInsideButton;
|
|
42
|
+
},
|
|
43
|
+
allowOutsideClick: true,
|
|
44
|
+
onDeactivate: off
|
|
45
|
+
} },
|
|
46
|
+
React.createElement("div", { className: cnTabsMoreItems('Content') }, items.map(function (item) { return (React.createElement("div", { key: getLabel(item), className: cnTabsMoreItems('Item', { active: getChecked(item) }) }, renderItem(item, off))); })))));
|
|
47
|
+
})));
|
|
42
48
|
});
|
|
@@ -8,10 +8,14 @@ import { getByMap } from '../../utils/getByMap';
|
|
|
8
8
|
import { Button } from '../Button/Button';
|
|
9
9
|
import { isNotMultipleParams } from '../Combobox/helpers';
|
|
10
10
|
import { ContextMenu } from '../ContextMenu/ContextMenu';
|
|
11
|
+
import { usePropsHandler } from '../EventInterceptor/usePropsHandler';
|
|
11
12
|
import { contextMenuSizeMap, iconSizeMap, withDefaultGetters } from './helpers';
|
|
12
13
|
import { themeTogglerPropSizeDefault } from './types';
|
|
14
|
+
export var COMPONENT_NAME = 'ThemeToggler';
|
|
13
15
|
function ThemeTogglerRender(props, ref) {
|
|
14
|
-
var
|
|
16
|
+
var anchorRef = useRef(null);
|
|
17
|
+
var buttonRef = useForkRef([anchorRef, ref]);
|
|
18
|
+
var _a = usePropsHandler(COMPONENT_NAME, withDefaultGetters(props), buttonRef), _b = _a.size, size = _b === void 0 ? themeTogglerPropSizeDefault : _b, items = _a.items, value = _a.value, onChange = _a.onChange, getItemKey = _a.getItemKey, getItemLabel = _a.getItemLabel, getItemIcon = _a.getItemIcon, direction = _a.direction, possibleDirections = _a.possibleDirections, style = _a.style, otherProps = __rest(_a, ["size", "items", "value", "onChange", "getItemKey", "getItemLabel", "getItemIcon", "direction", "possibleDirections", "style"]);
|
|
15
19
|
var _c = __read(useFlag(false), 2), isOpen = _c[0], setIsOpen = _c[1];
|
|
16
20
|
var _d = useChoiceGroup({
|
|
17
21
|
value: value,
|
|
@@ -19,8 +23,6 @@ function ThemeTogglerRender(props, ref) {
|
|
|
19
23
|
callBack: onChange,
|
|
20
24
|
multiple: false
|
|
21
25
|
}), getOnChange = _d.getOnChange, getChecked = _d.getChecked;
|
|
22
|
-
var anchorRef = useRef(null);
|
|
23
|
-
var buttonRef = useForkRef([anchorRef, ref]);
|
|
24
26
|
var iconSize = getByMap(iconSizeMap, size);
|
|
25
27
|
var contextMenuSize = getByMap(contextMenuSizeMap, size);
|
|
26
28
|
var getButtonIcon = function () { var _a; return getItemIcon((_a = items.find(function (theme) { return getChecked(theme); })) !== null && _a !== void 0 ? _a : items[0]); };
|
|
@@ -47,3 +49,4 @@ function ThemeTogglerRender(props, ref) {
|
|
|
47
49
|
items.length > 2 && isOpen && (React.createElement(ContextMenu, { offset: "s", items: items, getLabel: getItemLabel, anchorRef: anchorRef, direction: direction, possibleDirections: possibleDirections, getLeftSideBar: renderIcons, getRightSideBar: renderChecks, onClickOutside: setIsOpen.off, getItemOnClick: getOnChange, size: contextMenuSize, style: typeof (style === null || style === void 0 ? void 0 : style.zIndex) === 'number' ? { zIndex: style.zIndex + 1 } : undefined }))));
|
|
48
50
|
}
|
|
49
51
|
export var ThemeToggler = forwardRef(ThemeTogglerRender);
|
|
52
|
+
export * from './types';
|
|
@@ -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 { defaultPropForm, defaultPropSize, defaultPropView } from '../SelectComp
|
|
|
14
15
|
import { UserSelectItem } from './UserSelectItem/UserSelectItem';
|
|
15
16
|
import { UserSelectValue } from './UserSelectValue/UserSelectValue';
|
|
16
17
|
import { isMultipleParams, isNotMultipleParams, searchCompare, withDefaultGetters, } from './helpers';
|
|
18
|
+
export var COMPONENT_NAME = 'UserSelect';
|
|
17
19
|
function UserSelectRender(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, getItemKey = _a.getItemKey, getItemLabel = _a.getItemLabel, getItemSubLabel = _a.getItemSubLabel, getItemAvatarUrl = _a.getItemAvatarUrl, 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, _k = _a.multiple, multiple = _k === void 0 ? false : _k, searchFunction = _a.searchFunction, style = _a.style, restProps = __rest(_a, ["placeholder", "onBlur", "onFocus", "items", "onChange", "value", "disabled", "ariaLabel", "id", "required", "dropdownRef", "form", "view", "size", "dropdownClassName", "name", "groups", "getItemKey", "getItemLabel", "getItemSubLabel", "getItemAvatarUrl", "getItemGroupKey", "getItemDisabled", "getGroupKey", "getGroupLabel", "renderItem", "renderValue", "onCreate", "inputRef", "labelForNotFound", "labelForCreate", "labelForEmptyItems", "multiple", "searchFunction", "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, isLoading = _a.isLoading, 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, getItemKey = _a.getItemKey, getItemLabel = _a.getItemLabel, getItemSubLabel = _a.getItemSubLabel, getItemAvatarUrl = _a.getItemAvatarUrl, 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, _k = _a.multiple, multiple = _k === void 0 ? false : _k, searchFunction = _a.searchFunction, style = _a.style, restProps = __rest(_a, ["placeholder", "onBlur", "onFocus", "items", "onChange", "value", "disabled", "ariaLabel", "id", "isLoading", "required", "dropdownRef", "form", "view", "size", "dropdownClassName", "name", "groups", "getItemKey", "getItemLabel", "getItemSubLabel", "getItemAvatarUrl", "getItemGroupKey", "getItemDisabled", "getGroupKey", "getGroupLabel", "renderItem", "renderValue", "onCreate", "inputRef", "labelForNotFound", "labelForCreate", "labelForEmptyItems", "multiple", "searchFunction", "style"]);
|
|
23
25
|
var searchFunctionDefault = function (item, searchValue) {
|
|
24
26
|
var searchOfLabel = searchCompare(searchValue, getItemLabel(item));
|
|
25
27
|
if (searchOfLabel) {
|
|
@@ -84,7 +86,7 @@ function UserSelectRender(props, ref) {
|
|
|
84
86
|
React.createElement("span", { className: cnSelect('Delimiter') }),
|
|
85
87
|
React.createElement("button", { type: "button", className: cnSelect('IndicatorsDropdown'), tabIndex: -1, onClick: handleToggleDropdown },
|
|
86
88
|
React.createElement(IconSelect, { size: "xs", className: cnSelect('DropdownIndicatorIcon') })))),
|
|
87
|
-
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, notFound: notFound, hasItems: hasItems, labelForEmptyItems: labelForEmptyItems, style: typeof (style === null || style === void 0 ? void 0 : style.zIndex) === 'number' ? { zIndex: style.zIndex + 1 } : undefined }),
|
|
89
|
+
React.createElement(SelectDropdown, { isOpen: isOpen, size: size, controlRef: controlRef, getOptionProps: getOptionProps, dropdownRef: dropdownRef, form: dropdownForm, isLoading: isLoading, className: dropdownClassName, renderItem: renderItem || renderItemDefault, getGroupLabel: getGroupLabel, visibleItems: visibleItems, labelForNotFound: labelForNotFound, labelForCreate: labelForCreate, notFound: notFound, hasItems: hasItems, labelForEmptyItems: labelForEmptyItems, style: typeof (style === null || style === void 0 ? void 0 : style.zIndex) === 'number' ? { zIndex: style.zIndex + 1 } : undefined }),
|
|
88
90
|
React.createElement("div", { className: cnSelect('HelperInputFakeElement'), ref: helperInputFakeElement }, searchValue)));
|
|
89
91
|
}
|
|
90
92
|
export var UserSelect = forwardRef(UserSelectRender);
|
|
@@ -46,6 +46,7 @@ export declare type UserSelectProps<ITEM = DefaultItem, GROUP = DefaultGroup, MU
|
|
|
46
46
|
name?: string;
|
|
47
47
|
items: ITEM[];
|
|
48
48
|
required?: boolean;
|
|
49
|
+
isLoading?: boolean;
|
|
49
50
|
renderItem?: PropRenderItem<ITEM>;
|
|
50
51
|
renderValue?: PropRenderValue<ITEM>;
|
|
51
52
|
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
@@ -115,6 +116,7 @@ export declare function withDefaultGetters<ITEM = DefaultItem, GROUP = DefaultGr
|
|
|
115
116
|
name?: string | undefined;
|
|
116
117
|
items: ITEM[];
|
|
117
118
|
required?: boolean | undefined;
|
|
119
|
+
isLoading?: boolean | undefined;
|
|
118
120
|
renderItem?: PropRenderItem<ITEM> | undefined;
|
|
119
121
|
renderValue?: PropRenderValue<ITEM> | undefined;
|
|
120
122
|
onFocus?: ((event: React.FocusEvent<HTMLInputElement>) => void) | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
export declare type ClickOutsideHandler = (event: MouseEvent) => void;
|
|
3
3
|
declare type UseClickOutsideProps = {
|
|
4
|
-
isActive
|
|
5
|
-
ignoreClicksInsideRefs
|
|
6
|
-
handler
|
|
4
|
+
isActive?: boolean;
|
|
5
|
+
ignoreClicksInsideRefs?: ReadonlyArray<RefObject<HTMLElement>>;
|
|
6
|
+
handler?: ClickOutsideHandler;
|
|
7
7
|
};
|
|
8
8
|
export declare function useClickOutside({ isActive, ignoreClicksInsideRefs, handler, }: UseClickOutsideProps): void;
|
|
9
9
|
export {};
|
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
|
+
import { useMutableRef } from '../useMutableRef/useMutableRef';
|
|
2
3
|
export function useClickOutside(_a) {
|
|
4
|
+
// Аргументы вынесены в рефки за тем, чтобы не пересоздавать подписку `mousedown` при кажом чихе.
|
|
5
|
+
// Бывают кейсы когда на странице несколко `useClickOutside` и один вызывает рендер,
|
|
6
|
+
// А второй не успевает отрабатывать а просто пересоздается
|
|
7
|
+
// С такой реализацией пересоздание только при удалении из дома, а аргументы всегда актуалны.
|
|
3
8
|
var isActive = _a.isActive, ignoreClicksInsideRefs = _a.ignoreClicksInsideRefs, handler = _a.handler;
|
|
9
|
+
var handlerRef = useMutableRef(handler);
|
|
10
|
+
var ignoreClicksInsideRefsRef = useMutableRef(ignoreClicksInsideRefs);
|
|
11
|
+
var isActiveRef = useMutableRef(isActive);
|
|
4
12
|
useEffect(function () {
|
|
5
|
-
if (!isActive) {
|
|
6
|
-
return;
|
|
7
|
-
}
|
|
8
13
|
var handleClick = function (event) {
|
|
14
|
+
var _a, _b;
|
|
15
|
+
if (!isActiveRef.current) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
9
18
|
var target = event.target;
|
|
10
|
-
var shouldCallHandler =
|
|
11
|
-
shouldCallHandler &&
|
|
19
|
+
var shouldCallHandler = (_a = ignoreClicksInsideRefsRef.current) === null || _a === void 0 ? void 0 : _a.every(function (ref) { var _a; return !((_a = ref.current) === null || _a === void 0 ? void 0 : _a.contains(target)); });
|
|
20
|
+
shouldCallHandler && ((_b = handlerRef.current) === null || _b === void 0 ? void 0 : _b.call(handlerRef, event));
|
|
12
21
|
};
|
|
13
22
|
document.addEventListener('mousedown', handleClick);
|
|
14
|
-
return function () {
|
|
15
|
-
|
|
23
|
+
return function () {
|
|
24
|
+
document.removeEventListener('mousedown', handleClick);
|
|
25
|
+
};
|
|
26
|
+
}, []);
|
|
16
27
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const IconFacebook: import("react").ForwardRefExoticComponent<Pick<import("../../utils/types/PropsWithHTMLAttributes").PropsWithHTMLAttributesAndRef<{
|
|
3
|
+
view?: "link" | "alert" | "brand" | "ghost" | "primary" | "secondary" | "success" | "warning" | "disabled" | undefined;
|
|
4
|
+
size?: "xs" | "s" | "m" | undefined;
|
|
5
|
+
}, HTMLSpanElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "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" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "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" | "view" | "size" | "key"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createIcon } from '../createIcon/createIcon';
|
|
2
|
+
import IconFacebookSizeM from './IconFacebook_size_m';
|
|
3
|
+
import IconFacebookSizeS from './IconFacebook_size_s';
|
|
4
|
+
export var IconFacebook = createIcon({
|
|
5
|
+
m: IconFacebookSizeM,
|
|
6
|
+
s: IconFacebookSizeS,
|
|
7
|
+
xs: IconFacebookSizeS,
|
|
8
|
+
name: 'IconFacebook'
|
|
9
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
function IconFacebookSizeM(props) {
|
|
4
|
+
return (React.createElement("svg", __assign({ viewBox: "0 0 24 24" }, props),
|
|
5
|
+
React.createElement("path", { d: "M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12s4.477 10 10 10c.059 0 .117 0 .176-.004v-7.781h-2.149V11.71h2.149V9.867c0-2.137 1.304-3.3 3.21-3.3.915 0 1.7.066 1.927.097v2.234H16c-1.035 0-1.238.493-1.238 1.215v1.594h2.48l-.324 2.504h-2.156v7.402C18.942 20.414 22 16.566 22 12z" })));
|
|
6
|
+
}
|
|
7
|
+
export default IconFacebookSizeM;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path
|
|
3
|
+
d="M22 12C22 6.47656 17.5234 2 12 2C6.47656 2 2 6.47656 2 12C2 17.5234 6.47656 22 12 22C12.0586 22 12.1172 22 12.1758 21.9961V14.2148H10.0273V11.7109H12.1758V9.86719C12.1758 7.73047 13.4805 6.56641 15.3867 6.56641C16.3008 6.56641 17.0859 6.63281 17.3125 6.66406V8.89844H16C14.9648 8.89844 14.7617 9.39062 14.7617 10.1133V11.707H17.2422L16.918 14.2109H14.7617V21.6133C18.9414 20.4141 22 16.5664 22 12Z"
|
|
4
|
+
/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
function IconFacebookSizeS(props) {
|
|
4
|
+
return (React.createElement("svg", __assign({ viewBox: "0 0 16 16" }, props),
|
|
5
|
+
React.createElement("path", { d: "M14 8A6 6 0 102 8a6 6 0 006 6c.035 0 .07 0 .105-.002v-4.67H6.816V7.828h1.29V6.72c0-1.282.782-1.98 1.926-1.98.549 0 1.02.04 1.155.058V6.14H10.4c-.621 0-.743.295-.743.729v.956h1.488l-.194 1.503H9.657v4.441A6.002 6.002 0 0014 8z" })));
|
|
6
|
+
}
|
|
7
|
+
export default IconFacebookSizeS;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path
|
|
3
|
+
d="M14 8C14 4.68594 11.3141 2 8 2C4.68594 2 2 4.68594 2 8C2 11.3141 4.68594 14 8 14C8.03516 14 8.07031 14 8.10547 13.9977V9.32891H6.81641V7.82656H8.10547V6.72031C8.10547 5.43828 8.88828 4.73984 10.032 4.73984C10.5805 4.73984 11.0516 4.77969 11.1875 4.79844V6.13906H10.4C9.77891 6.13906 9.65703 6.43437 9.65703 6.86797V7.82422H11.1453L10.9508 9.32656H9.65703V13.768C12.1648 13.0484 14 10.7398 14 8Z"
|
|
4
|
+
/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const IconInstagram: import("react").ForwardRefExoticComponent<Pick<import("../../utils/types/PropsWithHTMLAttributes").PropsWithHTMLAttributesAndRef<{
|
|
3
|
+
view?: "link" | "alert" | "brand" | "ghost" | "primary" | "secondary" | "success" | "warning" | "disabled" | undefined;
|
|
4
|
+
size?: "xs" | "s" | "m" | undefined;
|
|
5
|
+
}, HTMLSpanElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "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" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "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" | "view" | "size" | "key"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createIcon } from '../createIcon/createIcon';
|
|
2
|
+
import IconInstagramSizeM from './IconInstagram_size_m';
|
|
3
|
+
import IconInstagramSizeS from './IconInstagram_size_s';
|
|
4
|
+
export var IconInstagram = createIcon({
|
|
5
|
+
m: IconInstagramSizeM,
|
|
6
|
+
s: IconInstagramSizeS,
|
|
7
|
+
xs: IconInstagramSizeS,
|
|
8
|
+
name: 'IconInstagram'
|
|
9
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
function IconInstagramSizeM(props) {
|
|
4
|
+
return (React.createElement("svg", __assign({ viewBox: "0 0 24 24" }, props),
|
|
5
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.95 7.88c-.048-1.063-.22-1.793-.466-2.426a4.88 4.88 0 00-1.157-1.774 4.923 4.923 0 00-1.77-1.153c-.637-.246-1.364-.418-2.426-.464C15.06 2.012 14.72 2 12.004 2c-2.716 0-3.056.012-4.123.059-1.063.046-1.793.218-2.426.464A4.881 4.881 0 003.68 3.68a4.924 4.924 0 00-1.152 1.77c-.247.637-.419 1.363-.465 2.426C2.012 8.946 2 9.286 2 12.002c0 2.715.012 3.055.059 4.122.046 1.063.219 1.793.465 2.426a4.931 4.931 0 001.156 1.774c.5.508 1.106.902 1.77 1.152.638.247 1.364.419 2.427.465C8.944 21.988 9.284 22 12 22s3.056-.012 4.123-.059c1.063-.046 1.793-.218 2.426-.464a5.116 5.116 0 002.927-2.927c.247-.637.419-1.363.465-2.426.047-1.067.059-1.407.059-4.122s-.004-3.055-.05-4.122zm-1.802 8.166c-.043.977-.207 1.504-.344 1.856a3.318 3.318 0 01-1.9 1.898c-.351.137-.882.301-1.856.344-1.055.047-1.371.059-4.04.059-2.67 0-2.99-.012-4.04-.059-.978-.043-1.505-.207-1.857-.343a3.079 3.079 0 01-1.149-.747 3.11 3.11 0 01-.746-1.148c-.137-.352-.301-.883-.344-1.856-.047-1.055-.059-1.372-.059-4.04 0-2.669.012-2.99.059-4.04.043-.977.207-1.504.344-1.856a3.04 3.04 0 01.75-1.149 3.105 3.105 0 011.149-.746c.352-.137.883-.3 1.856-.344 1.055-.046 1.372-.058 4.04-.058 2.674 0 2.99.012 4.041.058.977.043 1.505.207 1.857.344.433.16.828.414 1.148.746.333.325.587.715.747 1.15.137.35.3.882.344 1.855.047 1.055.058 1.371.058 4.04 0 2.668-.011 2.98-.058 4.036zm-8.144-9.182a5.14 5.14 0 00-5.139 5.138 5.14 5.14 0 0010.278 0 5.14 5.14 0 00-5.14-5.138zm0 8.47a3.334 3.334 0 110-6.667 3.334 3.334 0 010 6.668zm5.342-7.474a1.2 1.2 0 100-2.399 1.2 1.2 0 000 2.4z" })));
|
|
6
|
+
}
|
|
7
|
+
export default IconInstagramSizeM;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path
|
|
3
|
+
fill-rule="evenodd"
|
|
4
|
+
clip-rule="evenodd"
|
|
5
|
+
d="M21.9492 7.88007C21.9023 6.81739 21.7304 6.08681 21.4842 5.45375C21.2302 4.78177 20.8394 4.18015 20.3274 3.68002C19.8272 3.17211 19.2215 2.77744 18.5572 2.52745C17.9203 2.28128 17.1934 2.10943 16.1306 2.06257C15.0597 2.01175 14.7198 2 12.0039 2C9.28799 2 8.94805 2.01175 7.8812 2.05861C6.81831 2.10546 6.08759 2.27746 5.45456 2.52348C4.7823 2.77744 4.18057 3.16814 3.68034 3.68002C3.17233 4.18015 2.77774 4.78574 2.52755 5.44993C2.28133 6.08681 2.10945 6.81342 2.06259 7.8761C2.01175 8.94672 2 9.2866 2 12.002C2 14.7174 2.01175 15.0572 2.05862 16.1239C2.10548 17.1866 2.27751 17.9172 2.52373 18.5502C2.77774 19.2222 3.17233 19.8238 3.68034 20.3239C4.18057 20.8319 4.78627 21.2265 5.45059 21.4765C6.08759 21.7227 6.81434 21.8945 7.87738 21.9414C8.94408 21.9884 9.28418 22 12.0001 22C14.716 22 15.0559 21.9884 16.1228 21.9414C17.1857 21.8945 17.9164 21.7227 18.5494 21.4765C19.8938 20.9569 20.9567 19.8942 21.4764 18.5502C21.7225 17.9133 21.8945 17.1866 21.9414 16.1239C21.9882 15.0572 22 14.7174 22 12.002C22 9.2866 21.996 8.94672 21.9492 7.88007ZM20.1478 16.0458C20.1047 17.0225 19.9406 17.55 19.8039 17.9016C19.4677 18.7729 18.7761 19.4644 17.9046 19.8005C17.5529 19.9372 17.0216 20.1013 16.0484 20.1442C14.9933 20.1912 14.6769 20.2028 12.0079 20.2028C9.33882 20.2028 9.01842 20.1912 7.96714 20.1442C6.99019 20.1013 6.46264 19.9372 6.11094 19.8005C5.67727 19.6402 5.28253 19.3863 4.96212 19.0542C4.62996 18.7299 4.37596 18.3391 4.21568 17.9056C4.0789 17.5539 3.91481 17.0225 3.87191 16.0497C3.8249 14.9948 3.8133 14.6783 3.8133 12.0098C3.8133 9.34124 3.8249 9.02089 3.87191 7.96996C3.91481 6.99321 4.0789 6.46576 4.21568 6.11413C4.37596 5.68039 4.62996 5.28587 4.96609 4.96537C5.29031 4.63327 5.68109 4.37932 6.11491 4.21922C6.46661 4.08247 6.99813 3.91841 7.9711 3.87537C9.0262 3.82852 9.34279 3.81677 12.0117 3.81677C14.6847 3.81677 15.0011 3.82852 16.0524 3.87537C17.0293 3.91841 17.5569 4.08247 17.9086 4.21922C18.3423 4.37932 18.737 4.63327 19.0574 4.96537C19.3896 5.28968 19.6436 5.68039 19.8039 6.11413C19.9406 6.46576 20.1047 6.99702 20.1478 7.96996C20.1946 9.02486 20.2064 9.34124 20.2064 12.0098C20.2064 14.6783 20.1946 14.9909 20.1478 16.0458ZM12.0039 6.8641C9.16693 6.8641 6.86516 9.16527 6.86516 12.0018C6.86516 14.8384 9.16693 17.1396 12.0039 17.1396C14.841 17.1396 17.1426 14.8384 17.1426 12.0018C17.1426 9.16527 14.841 6.8641 12.0039 6.8641ZM12.0039 15.3346C10.1634 15.3346 8.67052 13.8421 8.67052 12.0018C8.67052 10.1616 10.1634 8.66911 12.0039 8.66911C13.8445 8.66911 15.3372 10.1616 15.3372 12.0018C15.3372 13.8421 13.8445 15.3346 12.0039 15.3346ZM17.3458 7.86036C18.0084 7.86036 18.5456 7.3233 18.5456 6.66093C18.5456 5.99842 18.0084 5.46151 17.3458 5.46151C16.6833 5.46151 16.1461 5.99842 16.1461 6.66093C16.1461 7.3233 16.6833 7.86036 17.3458 7.86036Z"
|
|
6
|
+
/>
|
|
7
|
+
</svg>
|