@consta/uikit 3.24.2 → 3.24.5
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 +32 -69
- 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/CheckboxGroupCanary/package.json +1 -1
- package/ChoiceGroup/package.json +1 -1
- package/ChoiceGroupCanary/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/FileIconPpt/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/package.json +1 -1
- 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/package.json +1 -1
- 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/package.json +1 -1
- 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/package.json +1 -1
- package/IconYoutube/package.json +1 -1
- 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/StepsCanary/package.json +1 -1
- package/Switch/package.json +1 -1
- package/SwitchGroup/package.json +1 -1
- package/SwitchGroupCanary/package.json +1 -1
- package/Table/package.json +1 -1
- package/Tabs/package.json +1 -1
- package/TabsCanary/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/Combobox/helpers.d.ts +1 -1
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDate/DatePickerFieldTypeDate.d.ts +1 -0
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDate/DatePickerFieldTypeDate.js +29 -29
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDate/helpers.d.ts +5 -1
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDate/helpers.js +33 -19
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDateRange/DatePickerFieldTypeDateRange.d.ts +2 -1
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDateRange/DatePickerFieldTypeDateRange.js +7 -63
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDateTime/DatePickerFieldTypeDateTime.d.ts +1 -0
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDateTime/DatePickerFieldTypeDateTime.js +21 -18
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDateTime/helpers.d.ts +5 -1
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDateTime/helpers.js +21 -5
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDateTimeRange/DatePickerFieldTypeDateTimeRange.d.ts +2 -1
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDateTimeRange/DatePickerFieldTypeDateTimeRange.js +7 -63
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeMonth/DatePickerFieldTypeMonth.d.ts +1 -0
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeMonth/DatePickerFieldTypeMonth.js +27 -27
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeMonth/helpers.d.ts +5 -1
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeMonth/helpers.js +24 -9
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeMonthRange/DatePickerFieldTypeMonthRange.d.ts +2 -1
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeMonthRange/DatePickerFieldTypeMonthRange.js +7 -63
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeMonthRange/helpers.d.ts +2 -2
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeTime/DatePickerFieldTypeTime.d.ts +1 -0
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeTime/DatePickerFieldTypeTime.js +21 -18
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeTime/helpers.d.ts +5 -1
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeTime/helpers.js +19 -3
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeYear/DatePickerFieldTypeYear.d.ts +1 -0
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeYear/DatePickerFieldTypeYear.js +25 -25
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeYear/helpers.d.ts +1 -0
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeYearRange/DatePickerFieldTypeYearRange.d.ts +2 -1
- package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeYearRange/DatePickerFieldTypeYearRange.js +7 -63
- package/__internal__/cjs-src/components/DatePickerCanary/getChangeFnRange.d.ts +14 -0
- package/__internal__/cjs-src/components/DatePickerCanary/getChangeFnRange.js +40 -0
- package/__internal__/cjs-src/components/DatePickerCanary/types.d.ts +1 -0
- package/__internal__/cjs-src/components/DragNDropField/DragNDropField.css +10 -1
- package/__internal__/cjs-src/components/DragNDropField/DragNDropField.d.ts +11 -2
- package/__internal__/cjs-src/components/DragNDropField/DragNDropField.js +15 -12
- package/__internal__/cjs-src/components/DragNDropField/DragNDropFieldContent/DragNDropFieldContent.css +3 -0
- package/__internal__/cjs-src/components/DragNDropField/DragNDropFieldContent/DragNDropFieldContent.js +4 -4
- package/__internal__/cjs-src/components/DragNDropField/DragNDropFieldContent/formatFileRequirements.d.ts +1 -1
- package/__internal__/cjs-src/components/DragNDropField/DragNDropFieldContent/formatFileRequirements.js +15 -14
- package/__internal__/cjs-src/components/DragNDropField/getErrorsList.js +1 -1
- package/__internal__/cjs-src/components/DragNDropField/locale.d.ts +1 -1
- package/__internal__/cjs-src/components/DragNDropField/locale.js +10 -4
- package/__internal__/cjs-src/components/DragNDropField/types.d.ts +6 -3
- package/__internal__/cjs-src/components/Popover/Popover.css +2 -36
- package/__internal__/cjs-src/components/Popover/Popover.js +41 -12
- package/__internal__/cjs-src/components/Popover/helpers.d.ts +4 -4
- package/__internal__/cjs-src/components/Popover/helpers.js +9 -11
- package/__internal__/cjs-src/components/Popover/usePopoverReposition.d.ts +2 -1
- package/__internal__/cjs-src/components/Popover/usePopoverReposition.js +12 -12
- package/__internal__/cjs-src/components/SelectComponents/SelectDropdown/SelectDropdown.js +2 -3
- package/__internal__/cjs-src/components/SliderCanary/SliderInput/SliderInput.d.ts +1 -1
- package/__internal__/cjs-src/components/Table/Table.d.ts +4 -0
- package/__internal__/cjs-src/components/Table/filtering.d.ts +1 -5
- package/__internal__/cjs-src/components/TextField/TextField.css +24 -2
- package/__internal__/cjs-src/components/TextField/TextField.d.ts +2 -2
- package/__internal__/cjs-src/components/TextField/TextField.js +51 -45
- package/__internal__/cjs-src/components/TextField/helpers.d.ts +6 -100
- package/__internal__/cjs-src/components/TextField/helpers.js +18 -30
- package/__internal__/cjs-src/components/TextField/types.d.ts +87 -0
- package/__internal__/cjs-src/components/TextField/types.js +27 -0
- package/__internal__/cjs-src/mixs/MixPopoverAnimate/MixPopoverAnimate.css +40 -4
- package/__internal__/src/components/Combobox/helpers.d.ts +1 -1
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDate/DatePickerFieldTypeDate.d.ts +1 -0
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDate/DatePickerFieldTypeDate.js +29 -29
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDate/helpers.d.ts +5 -1
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDate/helpers.js +34 -20
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDateRange/DatePickerFieldTypeDateRange.d.ts +2 -1
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDateRange/DatePickerFieldTypeDateRange.js +8 -64
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDateTime/DatePickerFieldTypeDateTime.d.ts +1 -0
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDateTime/DatePickerFieldTypeDateTime.js +21 -18
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDateTime/helpers.d.ts +5 -1
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDateTime/helpers.js +22 -6
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDateTimeRange/DatePickerFieldTypeDateTimeRange.d.ts +2 -1
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDateTimeRange/DatePickerFieldTypeDateTimeRange.js +8 -64
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeMonth/DatePickerFieldTypeMonth.d.ts +1 -0
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeMonth/DatePickerFieldTypeMonth.js +27 -27
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeMonth/helpers.d.ts +5 -1
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeMonth/helpers.js +25 -10
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeMonthRange/DatePickerFieldTypeMonthRange.d.ts +2 -1
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeMonthRange/DatePickerFieldTypeMonthRange.js +8 -64
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeMonthRange/helpers.d.ts +2 -2
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeTime/DatePickerFieldTypeTime.d.ts +1 -0
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeTime/DatePickerFieldTypeTime.js +21 -18
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeTime/helpers.d.ts +5 -1
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeTime/helpers.js +20 -4
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeYear/DatePickerFieldTypeYear.d.ts +1 -0
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeYear/DatePickerFieldTypeYear.js +25 -25
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeYear/helpers.d.ts +1 -0
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeYearRange/DatePickerFieldTypeYearRange.d.ts +2 -1
- package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeYearRange/DatePickerFieldTypeYearRange.js +8 -64
- package/__internal__/src/components/DatePickerCanary/getChangeFnRange.d.ts +14 -0
- package/__internal__/src/components/DatePickerCanary/getChangeFnRange.js +36 -0
- package/__internal__/src/components/DatePickerCanary/types.d.ts +1 -0
- package/__internal__/src/components/DragNDropField/DragNDropField.css +10 -1
- package/__internal__/src/components/DragNDropField/DragNDropField.d.ts +11 -2
- package/__internal__/src/components/DragNDropField/DragNDropField.js +17 -14
- package/__internal__/src/components/DragNDropField/DragNDropFieldContent/DragNDropFieldContent.css +3 -0
- package/__internal__/src/components/DragNDropField/DragNDropFieldContent/DragNDropFieldContent.js +4 -4
- package/__internal__/src/components/DragNDropField/DragNDropFieldContent/formatFileRequirements.d.ts +1 -1
- package/__internal__/src/components/DragNDropField/DragNDropFieldContent/formatFileRequirements.js +15 -14
- package/__internal__/src/components/DragNDropField/getErrorsList.js +1 -1
- package/__internal__/src/components/DragNDropField/locale.d.ts +1 -1
- package/__internal__/src/components/DragNDropField/locale.js +10 -4
- package/__internal__/src/components/DragNDropField/types.d.ts +6 -3
- package/__internal__/src/components/Popover/Popover.css +2 -36
- package/__internal__/src/components/Popover/Popover.js +42 -13
- package/__internal__/src/components/Popover/helpers.d.ts +4 -4
- package/__internal__/src/components/Popover/helpers.js +8 -10
- package/__internal__/src/components/Popover/usePopoverReposition.d.ts +2 -1
- package/__internal__/src/components/Popover/usePopoverReposition.js +12 -12
- package/__internal__/src/components/SelectComponents/SelectDropdown/SelectDropdown.js +4 -5
- package/__internal__/src/components/SliderCanary/SliderInput/SliderInput.d.ts +1 -1
- package/__internal__/src/components/Table/Table.d.ts +4 -0
- package/__internal__/src/components/Table/filtering.d.ts +1 -5
- package/__internal__/src/components/TextField/TextField.css +24 -2
- package/__internal__/src/components/TextField/TextField.d.ts +2 -2
- package/__internal__/src/components/TextField/TextField.js +52 -46
- package/__internal__/src/components/TextField/helpers.d.ts +6 -100
- package/__internal__/src/components/TextField/helpers.js +17 -29
- package/__internal__/src/components/TextField/types.d.ts +87 -0
- package/__internal__/src/components/TextField/types.js +24 -0
- package/__internal__/src/mixs/MixPopoverAnimate/MixPopoverAnimate.css +40 -4
- package/createIcon/package.json +1 -1
- package/createResponsesImage/package.json +1 -1
- package/fonts/index.d.ts +1 -0
- package/fonts/index.js +1 -0
- package/package.json +4 -3
- 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
|
@@ -1,103 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { PropsWithHTMLAttributes } from '../../utils/types/PropsWithHTMLAttributes';
|
|
5
|
-
export declare type TextFieldPropValue = string | null;
|
|
6
|
-
export declare type TextFieldPropName = string;
|
|
7
|
-
export declare type TextFieldPropId = string | number;
|
|
8
|
-
export declare const textFieldPropSize: readonly ["m", "xs", "s", "l"];
|
|
9
|
-
export declare type TextFieldPropSize = typeof textFieldPropSize[number];
|
|
10
|
-
export declare const textFieldPropSizeDefault: TextFieldPropSize;
|
|
11
|
-
export declare type TextFieldPropOnChange = (args: TextFieldOnChangeArguments) => void;
|
|
12
|
-
export declare type TextFieldOnChangeArguments = {
|
|
13
|
-
e: React.ChangeEvent | React.MouseEvent | React.KeyboardEvent;
|
|
14
|
-
id?: TextFieldPropId;
|
|
15
|
-
name?: TextFieldPropName;
|
|
16
|
-
value: TextFieldPropValue;
|
|
17
|
-
};
|
|
18
|
-
export declare const textFieldPropView: readonly ["default", "clear"];
|
|
19
|
-
export declare type TextFieldPropView = typeof textFieldPropView[number];
|
|
20
|
-
export declare const textFieldPropViewDefault: TextFieldPropView;
|
|
21
|
-
export declare const textFieldPropForm: readonly ["default", "defaultClear", "defaultBrick", "brick", "brickDefault", "brickClear", "brickRound", "round", "roundClear", "roundBrick", "clearRound", "clearDefault", "clearBrick", "clearClear"];
|
|
22
|
-
export declare type TextFieldPropForm = typeof textFieldPropForm[number];
|
|
23
|
-
export declare const textFieldPropFormDefault: TextFieldPropForm;
|
|
24
|
-
export declare const textFieldPropStatus: readonly ["alert", "success", "warning"];
|
|
25
|
-
export declare type TextFieldPropStatus = typeof textFieldPropStatus[number];
|
|
26
|
-
export declare const textFieldPropWidth: readonly ["default", "full"];
|
|
27
|
-
export declare type TextFieldPropWidth = typeof textFieldPropWidth[number];
|
|
28
|
-
export declare const textFieldPropWidthDefault: TextFieldPropWidth;
|
|
29
|
-
export declare type TextFieldPropsTextareaType<TYPE> = TYPE extends 'textarea' ? {
|
|
30
|
-
minRows?: never;
|
|
31
|
-
maxRows?: never;
|
|
32
|
-
rows?: number;
|
|
33
|
-
} | {
|
|
34
|
-
rows?: never;
|
|
35
|
-
minRows?: number;
|
|
36
|
-
maxRows?: number;
|
|
37
|
-
} : {
|
|
38
|
-
rows?: never;
|
|
39
|
-
minRows?: never;
|
|
40
|
-
maxRows?: never;
|
|
41
|
-
};
|
|
42
|
-
export declare type TextFieldPropRightSide<TYPE> = TYPE extends 'number' ? {
|
|
43
|
-
rightSide?: never;
|
|
44
|
-
} : {
|
|
45
|
-
rightSide?: string | IconComponent;
|
|
46
|
-
};
|
|
47
|
-
export declare type TextFieldProps<TYPE extends string> = PropsWithHTMLAttributes<{
|
|
48
|
-
className?: string;
|
|
49
|
-
value?: TextFieldPropValue;
|
|
50
|
-
cols?: number;
|
|
51
|
-
onChange?: TextFieldPropOnChange;
|
|
52
|
-
id?: TextFieldPropId;
|
|
53
|
-
name?: TextFieldPropName;
|
|
54
|
-
type?: TYPE;
|
|
55
|
-
disabled?: boolean;
|
|
56
|
-
maxLength?: number;
|
|
57
|
-
size?: TextFieldPropSize;
|
|
58
|
-
view?: TextFieldPropView;
|
|
59
|
-
form?: TextFieldPropForm;
|
|
60
|
-
state?: TextFieldPropStatus;
|
|
61
|
-
status?: TextFieldPropStatus;
|
|
62
|
-
width?: TextFieldPropWidth;
|
|
63
|
-
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
64
|
-
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
65
|
-
autoFocus?: boolean;
|
|
66
|
-
placeholder?: string;
|
|
67
|
-
leftSide?: string | IconComponent;
|
|
68
|
-
rightSide?: string | IconComponent;
|
|
69
|
-
withClearButton?: boolean;
|
|
70
|
-
autoComplete?: AutoCompete;
|
|
71
|
-
max?: number | string;
|
|
72
|
-
min?: number | string;
|
|
73
|
-
readOnly?: boolean;
|
|
74
|
-
required?: boolean;
|
|
75
|
-
step?: number | string | number[];
|
|
76
|
-
tabIndex?: number;
|
|
77
|
-
inputContainerRef?: React.Ref<HTMLDivElement>;
|
|
78
|
-
inputRef?: React.Ref<HTMLTextAreaElement | HTMLInputElement>;
|
|
79
|
-
ariaLabel?: string;
|
|
80
|
-
iconSize?: IconPropSize;
|
|
81
|
-
children?: never;
|
|
82
|
-
label?: string;
|
|
83
|
-
caption?: string;
|
|
84
|
-
labelPosition?: 'top' | 'left';
|
|
85
|
-
focused?: boolean;
|
|
86
|
-
}, HTMLDivElement> & TextFieldPropsTextareaType<TYPE> & TextFieldPropRightSide<TYPE>;
|
|
87
|
-
export declare type TextFieldComponent = <TYPE extends string>(props: TextFieldProps<TYPE> & React.RefAttributes<HTMLElement>) => React.ReactElement | null;
|
|
2
|
+
import { IconPropSize } from '../../icons/Icon/Icon';
|
|
3
|
+
import { TextFieldPropSize } from './types';
|
|
88
4
|
export declare const sizeMap: Record<TextFieldPropSize, IconPropSize>;
|
|
89
|
-
export declare const getValueByStepArray: (
|
|
90
|
-
|
|
91
|
-
steps: number[];
|
|
92
|
-
min?: string | number | undefined;
|
|
93
|
-
max?: string | number | undefined;
|
|
94
|
-
isIncrement?: boolean | undefined;
|
|
95
|
-
}) => number | null;
|
|
96
|
-
export declare const getValueByStepNumber: (params: {
|
|
97
|
-
value?: string | null | undefined;
|
|
98
|
-
step: number | string;
|
|
99
|
-
isIncrement?: boolean | undefined;
|
|
100
|
-
min?: string | number | undefined;
|
|
101
|
-
max?: string | number | undefined;
|
|
102
|
-
}) => number;
|
|
5
|
+
export declare const getValueByStepArray: (steps: number[], value: string | null | undefined, min: number | string | undefined, max: number | string | undefined, isIncrement: boolean) => number;
|
|
6
|
+
export declare const getValueByStepNumber: (step: number | string, value: string | null | undefined, min: number | string | undefined, max: number | string | undefined, isIncrement: boolean) => number;
|
|
103
7
|
export declare const getIncrementFlag: (event: React.KeyboardEvent) => boolean | null;
|
|
8
|
+
export declare const getTypeForRender: (type: string, passwordVible: boolean) => string;
|
|
9
|
+
export declare const getValueByStep: (steps: number | number[], value: string | null | undefined, isIncrement: boolean, min?: string | number | undefined, max?: string | number | undefined) => string;
|
|
@@ -1,38 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
exports.__esModule = true;
|
|
3
|
-
exports.
|
|
4
|
-
exports.textFieldPropSize = ['m', 'xs', 's', 'l'];
|
|
5
|
-
exports.textFieldPropSizeDefault = exports.textFieldPropSize[0];
|
|
6
|
-
exports.textFieldPropView = ['default', 'clear'];
|
|
7
|
-
exports.textFieldPropViewDefault = exports.textFieldPropView[0];
|
|
8
|
-
exports.textFieldPropForm = [
|
|
9
|
-
'default',
|
|
10
|
-
'defaultClear',
|
|
11
|
-
'defaultBrick',
|
|
12
|
-
'brick',
|
|
13
|
-
'brickDefault',
|
|
14
|
-
'brickClear',
|
|
15
|
-
'brickRound',
|
|
16
|
-
'round',
|
|
17
|
-
'roundClear',
|
|
18
|
-
'roundBrick',
|
|
19
|
-
'clearRound',
|
|
20
|
-
'clearDefault',
|
|
21
|
-
'clearBrick',
|
|
22
|
-
'clearClear',
|
|
23
|
-
];
|
|
24
|
-
exports.textFieldPropFormDefault = exports.textFieldPropForm[0];
|
|
25
|
-
exports.textFieldPropStatus = ['alert', 'success', 'warning'];
|
|
26
|
-
exports.textFieldPropWidth = ['default', 'full'];
|
|
27
|
-
exports.textFieldPropWidthDefault = exports.textFieldPropWidth[0];
|
|
3
|
+
exports.getValueByStep = exports.getTypeForRender = exports.getIncrementFlag = exports.getValueByStepNumber = exports.getValueByStepArray = exports.sizeMap = void 0;
|
|
28
4
|
exports.sizeMap = {
|
|
29
5
|
xs: 'xs',
|
|
30
6
|
s: 's',
|
|
31
7
|
m: 's',
|
|
32
8
|
l: 'm'
|
|
33
9
|
};
|
|
34
|
-
exports.getValueByStepArray = function (
|
|
35
|
-
var value = params.value, steps = params.steps, min = params.min, _a = params.isIncrement, isIncrement = _a === void 0 ? false : _a;
|
|
10
|
+
exports.getValueByStepArray = function (steps, value, min, max, isIncrement) {
|
|
36
11
|
var currentValue = Number(value !== null && value !== void 0 ? value : min);
|
|
37
12
|
var minValue = Number(min);
|
|
38
13
|
if (typeof value !== 'string') {
|
|
@@ -53,11 +28,10 @@ exports.getValueByStepArray = function (params) {
|
|
|
53
28
|
return steps[i + (isIncrement ? 1 : -1)];
|
|
54
29
|
}
|
|
55
30
|
}
|
|
56
|
-
return
|
|
31
|
+
return 0;
|
|
57
32
|
};
|
|
58
|
-
exports.getValueByStepNumber = function (
|
|
33
|
+
exports.getValueByStepNumber = function (step, value, min, max, isIncrement) {
|
|
59
34
|
var _a;
|
|
60
|
-
var value = params.value, step = params.step, isIncrement = params.isIncrement, max = params.max, min = params.min;
|
|
61
35
|
var minValue = Number(min);
|
|
62
36
|
var maxValue = Number(max);
|
|
63
37
|
var currentValue = (typeof value === 'string' ? Number(value) : 0) + Number(step) * (isIncrement ? 1 : -1);
|
|
@@ -82,3 +56,17 @@ exports.getIncrementFlag = function (event) {
|
|
|
82
56
|
}
|
|
83
57
|
return (event === null || event === void 0 ? void 0 : event.key) === 'ArrowUp';
|
|
84
58
|
};
|
|
59
|
+
exports.getTypeForRender = function (type, passwordVible) {
|
|
60
|
+
if (type !== 'password') {
|
|
61
|
+
return type;
|
|
62
|
+
}
|
|
63
|
+
if (passwordVible) {
|
|
64
|
+
return 'text';
|
|
65
|
+
}
|
|
66
|
+
return 'password';
|
|
67
|
+
};
|
|
68
|
+
exports.getValueByStep = function (steps, value, isIncrement, min, max) {
|
|
69
|
+
return (Array.isArray(steps)
|
|
70
|
+
? exports.getValueByStepArray(steps, value, min, max, isIncrement)
|
|
71
|
+
: exports.getValueByStepNumber(steps, value, min, max, isIncrement)).toString();
|
|
72
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconComponent, IconPropSize } from '../../icons/Icon/Icon';
|
|
3
|
+
import { AutoCompete } from '../../utils/types/AutoComplete';
|
|
4
|
+
import { PropsWithHTMLAttributes } from '../../utils/types/PropsWithHTMLAttributes';
|
|
5
|
+
export declare type TextFieldPropValue = string | null;
|
|
6
|
+
export declare type TextFieldPropName = string;
|
|
7
|
+
export declare type TextFieldPropId = string | number;
|
|
8
|
+
export declare const textFieldPropSize: readonly ["m", "xs", "s", "l"];
|
|
9
|
+
export declare type TextFieldPropSize = typeof textFieldPropSize[number];
|
|
10
|
+
export declare const textFieldPropSizeDefault: TextFieldPropSize;
|
|
11
|
+
export declare type TextFieldPropOnChange = (args: TextFieldOnChangeArguments) => void;
|
|
12
|
+
export declare type TextFieldOnChangeArguments = {
|
|
13
|
+
e: React.ChangeEvent | React.MouseEvent | React.KeyboardEvent;
|
|
14
|
+
id?: TextFieldPropId;
|
|
15
|
+
name?: TextFieldPropName;
|
|
16
|
+
value: TextFieldPropValue;
|
|
17
|
+
};
|
|
18
|
+
export declare const textFieldPropView: readonly ["default", "clear"];
|
|
19
|
+
export declare type TextFieldPropView = typeof textFieldPropView[number];
|
|
20
|
+
export declare const textFieldPropViewDefault: TextFieldPropView;
|
|
21
|
+
export declare const textFieldPropForm: readonly ["default", "defaultClear", "defaultBrick", "brick", "brickDefault", "brickClear", "brickRound", "round", "roundClear", "roundBrick", "clearRound", "clearDefault", "clearBrick", "clearClear"];
|
|
22
|
+
export declare type TextFieldPropForm = typeof textFieldPropForm[number];
|
|
23
|
+
export declare const textFieldPropFormDefault: TextFieldPropForm;
|
|
24
|
+
export declare const textFieldPropStatus: readonly ["alert", "success", "warning"];
|
|
25
|
+
export declare type TextFieldPropStatus = typeof textFieldPropStatus[number];
|
|
26
|
+
export declare const textFieldPropWidth: readonly ["default", "full"];
|
|
27
|
+
export declare type TextFieldPropWidth = typeof textFieldPropWidth[number];
|
|
28
|
+
export declare const textFieldPropWidthDefault: TextFieldPropWidth;
|
|
29
|
+
export declare type TextFieldPropsTextareaType<TYPE> = TYPE extends 'textarea' ? {
|
|
30
|
+
minRows?: never;
|
|
31
|
+
maxRows?: never;
|
|
32
|
+
rows?: number;
|
|
33
|
+
} | {
|
|
34
|
+
rows?: never;
|
|
35
|
+
minRows?: number;
|
|
36
|
+
maxRows?: number;
|
|
37
|
+
} : {
|
|
38
|
+
rows?: never;
|
|
39
|
+
minRows?: never;
|
|
40
|
+
maxRows?: never;
|
|
41
|
+
};
|
|
42
|
+
export declare type TextFieldPropRightSide<TYPE extends string> = TYPE extends 'number' | 'password' ? {
|
|
43
|
+
rightSide?: never;
|
|
44
|
+
} : {
|
|
45
|
+
rightSide?: string | IconComponent;
|
|
46
|
+
};
|
|
47
|
+
export declare type TextFieldProps<TYPE extends string> = PropsWithHTMLAttributes<{
|
|
48
|
+
className?: string;
|
|
49
|
+
value?: TextFieldPropValue;
|
|
50
|
+
cols?: number;
|
|
51
|
+
onChange?: TextFieldPropOnChange;
|
|
52
|
+
id?: TextFieldPropId;
|
|
53
|
+
name?: TextFieldPropName;
|
|
54
|
+
type?: TYPE;
|
|
55
|
+
disabled?: boolean;
|
|
56
|
+
maxLength?: number;
|
|
57
|
+
size?: TextFieldPropSize;
|
|
58
|
+
view?: TextFieldPropView;
|
|
59
|
+
form?: TextFieldPropForm;
|
|
60
|
+
state?: TextFieldPropStatus;
|
|
61
|
+
status?: TextFieldPropStatus;
|
|
62
|
+
width?: TextFieldPropWidth;
|
|
63
|
+
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
64
|
+
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
65
|
+
autoFocus?: boolean;
|
|
66
|
+
placeholder?: string;
|
|
67
|
+
leftSide?: string | IconComponent;
|
|
68
|
+
rightSide?: string | IconComponent;
|
|
69
|
+
withClearButton?: boolean;
|
|
70
|
+
autoComplete?: AutoCompete;
|
|
71
|
+
max?: number | string;
|
|
72
|
+
min?: number | string;
|
|
73
|
+
readOnly?: boolean;
|
|
74
|
+
required?: boolean;
|
|
75
|
+
step?: number | string | number[];
|
|
76
|
+
tabIndex?: number;
|
|
77
|
+
inputContainerRef?: React.Ref<HTMLDivElement>;
|
|
78
|
+
inputRef?: React.Ref<HTMLTextAreaElement | HTMLInputElement>;
|
|
79
|
+
ariaLabel?: string;
|
|
80
|
+
iconSize?: IconPropSize;
|
|
81
|
+
children?: never;
|
|
82
|
+
label?: string;
|
|
83
|
+
caption?: string;
|
|
84
|
+
labelPosition?: 'top' | 'left';
|
|
85
|
+
focused?: boolean;
|
|
86
|
+
}, HTMLDivElement> & TextFieldPropsTextareaType<TYPE> & TextFieldPropRightSide<TYPE>;
|
|
87
|
+
export declare type TextFieldComponent = <TYPE extends string>(props: TextFieldProps<TYPE> & React.RefAttributes<HTMLElement>) => React.ReactElement | null;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.textFieldPropWidthDefault = exports.textFieldPropWidth = exports.textFieldPropStatus = exports.textFieldPropFormDefault = exports.textFieldPropForm = exports.textFieldPropViewDefault = exports.textFieldPropView = exports.textFieldPropSizeDefault = exports.textFieldPropSize = void 0;
|
|
4
|
+
exports.textFieldPropSize = ['m', 'xs', 's', 'l'];
|
|
5
|
+
exports.textFieldPropSizeDefault = exports.textFieldPropSize[0];
|
|
6
|
+
exports.textFieldPropView = ['default', 'clear'];
|
|
7
|
+
exports.textFieldPropViewDefault = exports.textFieldPropView[0];
|
|
8
|
+
exports.textFieldPropForm = [
|
|
9
|
+
'default',
|
|
10
|
+
'defaultClear',
|
|
11
|
+
'defaultBrick',
|
|
12
|
+
'brick',
|
|
13
|
+
'brickDefault',
|
|
14
|
+
'brickClear',
|
|
15
|
+
'brickRound',
|
|
16
|
+
'round',
|
|
17
|
+
'roundClear',
|
|
18
|
+
'roundBrick',
|
|
19
|
+
'clearRound',
|
|
20
|
+
'clearDefault',
|
|
21
|
+
'clearBrick',
|
|
22
|
+
'clearClear',
|
|
23
|
+
];
|
|
24
|
+
exports.textFieldPropFormDefault = exports.textFieldPropForm[0];
|
|
25
|
+
exports.textFieldPropStatus = ['alert', 'success', 'warning'];
|
|
26
|
+
exports.textFieldPropWidth = ['default', 'full'];
|
|
27
|
+
exports.textFieldPropWidthDefault = exports.textFieldPropWidth[0];
|
|
@@ -43,7 +43,12 @@
|
|
|
43
43
|
transition: opacity 0.2s, transform 0.2s, -webkit-transform 0.2s;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.
|
|
46
|
+
.MixPopoverAnimate.Popover_direction_downCenter,
|
|
47
|
+
.MixPopoverAnimate.Popover_direction_downRight,
|
|
48
|
+
.MixPopoverAnimate.Popover_direction_downLeft,
|
|
49
|
+
.MixPopoverAnimate.Popover_direction_downStartLeft,
|
|
50
|
+
.MixPopoverAnimate.Popover_direction_downStartRight,
|
|
51
|
+
.MixPopoverAnimate_direction_downCenter,
|
|
47
52
|
.MixPopoverAnimate_direction_downRight,
|
|
48
53
|
.MixPopoverAnimate_direction_downLeft,
|
|
49
54
|
.MixPopoverAnimate_direction_downStartLeft,
|
|
@@ -51,7 +56,12 @@
|
|
|
51
56
|
--mix-dropdown-animate-transform: translate(0, var(--mix-dropdown-animate-space));
|
|
52
57
|
}
|
|
53
58
|
|
|
54
|
-
.
|
|
59
|
+
.MixPopoverAnimate.Popover_direction_upCenter,
|
|
60
|
+
.MixPopoverAnimate.Popover_direction_upRight,
|
|
61
|
+
.MixPopoverAnimate.Popover_direction_upLeft,
|
|
62
|
+
.MixPopoverAnimate.Popover_direction_upStartLeft,
|
|
63
|
+
.MixPopoverAnimate.Popover_direction_upStartRight,
|
|
64
|
+
.MixPopoverAnimate_direction_upCenter,
|
|
55
65
|
.MixPopoverAnimate_direction_upRight,
|
|
56
66
|
.MixPopoverAnimate_direction_upLeft,
|
|
57
67
|
.MixPopoverAnimate_direction_upStartLeft,
|
|
@@ -59,7 +69,12 @@
|
|
|
59
69
|
--mix-dropdown-animate-transform: translate(0, calc(-1 * var(--mix-dropdown-animate-space)));
|
|
60
70
|
}
|
|
61
71
|
|
|
62
|
-
.
|
|
72
|
+
.MixPopoverAnimate.Popover_direction_leftUp,
|
|
73
|
+
.MixPopoverAnimate.Popover_direction_leftCenter,
|
|
74
|
+
.MixPopoverAnimate.Popover_direction_leftDown,
|
|
75
|
+
.MixPopoverAnimate.Popover_direction_leftStartUp,
|
|
76
|
+
.MixPopoverAnimate.Popover_direction_leftStartDown,
|
|
77
|
+
.MixPopoverAnimate_direction_leftUp,
|
|
63
78
|
.MixPopoverAnimate_direction_leftCenter,
|
|
64
79
|
.MixPopoverAnimate_direction_leftDown,
|
|
65
80
|
.MixPopoverAnimate_direction_leftStartUp,
|
|
@@ -67,10 +82,31 @@
|
|
|
67
82
|
--mix-dropdown-animate-transform: translate(calc(-1 * var(--mix-dropdown-animate-space)), 0);
|
|
68
83
|
}
|
|
69
84
|
|
|
70
|
-
.
|
|
85
|
+
.MixPopoverAnimate.Popover_direction_rightUp,
|
|
86
|
+
.MixPopoverAnimate.Popover_direction_rightCenter,
|
|
87
|
+
.MixPopoverAnimate.Popover_direction_rightDown,
|
|
88
|
+
.MixPopoverAnimate.Popover_direction_rightStartUp,
|
|
89
|
+
.MixPopoverAnimate.Popover_direction_rightStartDown,
|
|
90
|
+
.MixPopoverAnimate_direction_rightUp,
|
|
71
91
|
.MixPopoverAnimate_direction_rightCenter,
|
|
72
92
|
.MixPopoverAnimate_direction_rightDown,
|
|
73
93
|
.MixPopoverAnimate_direction_rightStartUp,
|
|
74
94
|
.MixPopoverAnimate_direction_rightStartDown {
|
|
75
95
|
--mix-dropdown-animate-transform: translate(var(--mix-dropdown-animate-space), 0);
|
|
76
96
|
}
|
|
97
|
+
|
|
98
|
+
.MixPopoverAnimate_direction_downCenter.Popover, .MixPopoverAnimate_direction_downRight.Popover, .MixPopoverAnimate_direction_downLeft.Popover, .MixPopoverAnimate_direction_downStartLeft.Popover, .MixPopoverAnimate_direction_downStartRight.Popover {
|
|
99
|
+
--mix-dropdown-animate-transform: translate(0, var(--mix-dropdown-animate-space));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.MixPopoverAnimate_direction_upCenter.Popover, .MixPopoverAnimate_direction_upRight.Popover, .MixPopoverAnimate_direction_upLeft.Popover, .MixPopoverAnimate_direction_upStartLeft.Popover, .MixPopoverAnimate_direction_upStartRight.Popover {
|
|
103
|
+
--mix-dropdown-animate-transform: translate(0, var(--mix-dropdown-animate-space));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.MixPopoverAnimate_direction_leftUp.Popover, .MixPopoverAnimate_direction_leftCenter.Popover, .MixPopoverAnimate_direction_leftDown.Popover, .MixPopoverAnimate_direction_leftStartUp.Popover, .MixPopoverAnimate_direction_leftStartDown.Popover {
|
|
107
|
+
--mix-dropdown-animate-transform: translate(0, var(--mix-dropdown-animate-space));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.MixPopoverAnimate_direction_rightUp.Popover, .MixPopoverAnimate_direction_rightCenter.Popover, .MixPopoverAnimate_direction_rightDown.Popover, .MixPopoverAnimate_direction_rightStartUp.Popover, .MixPopoverAnimate_direction_rightStartDown.Popover {
|
|
111
|
+
--mix-dropdown-animate-transform: translate(0, var(--mix-dropdown-animate-space));
|
|
112
|
+
}
|
|
@@ -1,7 +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/
|
|
4
|
+
import { TextFieldPropOnChange } from '../TextField/TextField';
|
|
5
5
|
export declare type DefaultItem = {
|
|
6
6
|
label: string;
|
|
7
7
|
id: string | number;
|
|
@@ -42,4 +42,5 @@ export declare const DatePickerFieldTypeDate: React.ForwardRefExoticComponent<{
|
|
|
42
42
|
label?: string | undefined;
|
|
43
43
|
caption?: string | undefined;
|
|
44
44
|
labelPosition?: "left" | "top" | undefined;
|
|
45
|
+
withClearButton?: boolean | undefined;
|
|
45
46
|
} & Pick<React.HTMLAttributes<HTMLDivElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "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" | "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<HTMLDivElement>>;
|
|
@@ -13,42 +13,54 @@ export var DatePickerFieldTypeDate = React.forwardRef(function (props, ref) {
|
|
|
13
13
|
var inputRef = useRef(null);
|
|
14
14
|
var onChangeRef = useMutableRef(onChange);
|
|
15
15
|
var _f = __read(useState(value && isValid(value) ? format(value, formatProp) : null), 2), stringValue = _f[0], setStringValue = _f[1];
|
|
16
|
-
var
|
|
16
|
+
var stringValueRef = useMutableRef(stringValue);
|
|
17
|
+
var valueRef = useMutableRef(value);
|
|
18
|
+
var onErrorRef = useMutableRef(onError);
|
|
19
|
+
var handleChange = useCallback(function (_a) {
|
|
20
|
+
var _b;
|
|
21
|
+
var e = _a.e, stringValue = _a.value;
|
|
22
|
+
if (stringValueRef.current === stringValue) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
17
25
|
setStringValue(stringValue);
|
|
18
26
|
var onChange = onChangeRef.current;
|
|
27
|
+
var value = valueRef.current;
|
|
19
28
|
if (onChange) {
|
|
20
29
|
if (!stringValue) {
|
|
21
|
-
|
|
30
|
+
if (value) {
|
|
31
|
+
onChange({ e: e, value: null });
|
|
32
|
+
}
|
|
22
33
|
return;
|
|
23
34
|
}
|
|
24
|
-
var
|
|
35
|
+
var _c = __read(getPartsDate(stringValue, formatProp, separator, false, [
|
|
25
36
|
'dd',
|
|
26
37
|
'MM',
|
|
27
38
|
'yyyy',
|
|
28
|
-
]), 3), dd =
|
|
39
|
+
]), 3), dd = _c[0], MM = _c[1], yyyy = _c[2];
|
|
29
40
|
if (dd && MM && yyyy) {
|
|
30
41
|
var date = parse("" + dd + datePickerPropSeparatorDefault + MM + datePickerPropSeparatorDefault + yyyy, datePickerPropFormatTypeDate, new Date());
|
|
31
42
|
if (!isWithinInterval(date, { start: minDate, end: maxDate })) {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
(_b = onErrorRef.current) === null || _b === void 0 ? void 0 : _b.call(onErrorRef, {
|
|
44
|
+
type: datePickerErrorTypes[0],
|
|
45
|
+
stringValue: stringValue,
|
|
46
|
+
dd: dd,
|
|
47
|
+
MM: MM,
|
|
48
|
+
yyyy: yyyy,
|
|
49
|
+
date: date
|
|
50
|
+
});
|
|
51
|
+
if (value) {
|
|
52
|
+
onChange({ e: e, value: null });
|
|
53
|
+
}
|
|
42
54
|
return;
|
|
43
55
|
}
|
|
44
56
|
onChange({ e: e, value: date });
|
|
45
57
|
}
|
|
46
|
-
else {
|
|
58
|
+
else if (value) {
|
|
47
59
|
onChange({ e: e, value: null });
|
|
48
60
|
}
|
|
49
61
|
}
|
|
50
62
|
}, [minDate === null || minDate === void 0 ? void 0 : minDate.getTime(), maxDate === null || maxDate === void 0 ? void 0 : maxDate.getTime(), formatProp, separator]);
|
|
51
|
-
useImask(formatProp, separator, inputRef, stringValue, onError);
|
|
63
|
+
useImask(formatProp, separator, inputRef, stringValue, onError, handleChange);
|
|
52
64
|
// при изменении value, нужно обновить stringValue
|
|
53
65
|
useEffect(function () {
|
|
54
66
|
if (value && isValid(value)) {
|
|
@@ -62,17 +74,5 @@ export var DatePickerFieldTypeDate = React.forwardRef(function (props, ref) {
|
|
|
62
74
|
setStringValue('');
|
|
63
75
|
}
|
|
64
76
|
}, [value === null || value === void 0 ? void 0 : value.getTime()]);
|
|
65
|
-
|
|
66
|
-
// обнавляем при смене формата
|
|
67
|
-
// задаем нативный oninput, так как с маской по другому не будет работать
|
|
68
|
-
// обнавляем oninput при смене handleChange
|
|
69
|
-
useEffect(function () {
|
|
70
|
-
if (inputRef.current) {
|
|
71
|
-
inputRef.current.oninput = function (e) {
|
|
72
|
-
var _a;
|
|
73
|
-
handleChange(e, ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.value) || '');
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
}, [handleChange]);
|
|
77
|
-
return (React.createElement(TextField, __assign({}, otherProps, { type: "text", inputContainerRef: ref, inputRef: useForkRef([inputRef, inputRefProp]), value: stringValue, placeholder: placeholder })));
|
|
77
|
+
return (React.createElement(TextField, __assign({}, otherProps, { onChange: handleChange, type: "text", inputContainerRef: ref, inputRef: useForkRef([inputRef, inputRefProp]), value: stringValue, placeholder: placeholder })));
|
|
78
78
|
});
|
|
@@ -41,6 +41,10 @@ export declare type DatePickerFieldTypeDateProps = PropsWithHTMLAttributes<{
|
|
|
41
41
|
label?: string;
|
|
42
42
|
caption?: string;
|
|
43
43
|
labelPosition?: 'top' | 'left';
|
|
44
|
+
withClearButton?: boolean;
|
|
44
45
|
}, HTMLDivElement>;
|
|
45
|
-
export declare const useImask: (formatProp: string, separator: string, inputRef: React.RefObject<HTMLInputElement>, stringValue: string | null, onError: DatePickerPropOnError | undefined
|
|
46
|
+
export declare const useImask: (formatProp: string, separator: string, inputRef: React.RefObject<HTMLInputElement>, stringValue: string | null, onError: DatePickerPropOnError | undefined, handleChanhe: ({ e, value: stringValue }: {
|
|
47
|
+
e: Event;
|
|
48
|
+
value: string | null;
|
|
49
|
+
}) => void) => void;
|
|
46
50
|
export {};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { __read } from "tslib";
|
|
2
|
-
import { useEffect, useRef } from 'react';
|
|
2
|
+
import { useCallback, useEffect, useRef } from 'react';
|
|
3
3
|
import { format, isValid, parse } from 'date-fns';
|
|
4
4
|
import IMask from 'imask';
|
|
5
|
+
import { useMutableRef } from '../../../hooks/useMutableRef/useMutableRef';
|
|
5
6
|
import { leapYear } from '../../../utils/date';
|
|
6
7
|
import { datePickerPropFormatTypeDate, datePickerPropSeparatorDefault, getPartsDate, } from '../helpers';
|
|
7
8
|
import { datePickerErrorTypes } from '../types';
|
|
8
|
-
export var useImask = function (formatProp, separator, inputRef, stringValue, onError) {
|
|
9
|
+
export var useImask = function (formatProp, separator, inputRef, stringValue, onError, handleChanhe) {
|
|
9
10
|
var imaskRef = useRef(null);
|
|
11
|
+
var onErrorRef = useMutableRef(onError);
|
|
12
|
+
var handleChanheRef = useMutableRef(handleChanhe);
|
|
10
13
|
// задаем маску и сохраняем обьект маски в ref
|
|
11
14
|
// обнавляем при смене формата
|
|
12
15
|
useEffect(function () {
|
|
@@ -36,36 +39,35 @@ export var useImask = function (formatProp, separator, inputRef, stringValue, on
|
|
|
36
39
|
format: function (date) { return format(date, formatProp); },
|
|
37
40
|
parse: function (string) { return parse(string, formatProp, new Date()); },
|
|
38
41
|
validate: function (string) {
|
|
39
|
-
var _a
|
|
42
|
+
var _a, _b;
|
|
43
|
+
var _c = __read(getPartsDate(string, formatProp, separator, false, [
|
|
40
44
|
'dd',
|
|
41
45
|
'MM',
|
|
42
46
|
'yyyy',
|
|
43
|
-
]), 3), dd =
|
|
47
|
+
]), 3), dd = _c[0], MM = _c[1], yyyy = _c[2];
|
|
44
48
|
if (dd &&
|
|
45
49
|
MM &&
|
|
46
50
|
!isValid(parse("" + dd + datePickerPropSeparatorDefault + MM + datePickerPropSeparatorDefault + leapYear, datePickerPropFormatTypeDate, new Date()))) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
});
|
|
51
|
+
(_a = onErrorRef.current) === null || _a === void 0 ? void 0 : _a.call(onErrorRef, {
|
|
52
|
+
type: datePickerErrorTypes[1],
|
|
53
|
+
stringValue: string,
|
|
54
|
+
dd: dd,
|
|
55
|
+
MM: MM,
|
|
56
|
+
yyyy: yyyy
|
|
57
|
+
});
|
|
55
58
|
return false;
|
|
56
59
|
}
|
|
57
60
|
if (dd &&
|
|
58
61
|
MM &&
|
|
59
62
|
yyyy &&
|
|
60
63
|
!isValid(parse("" + dd + datePickerPropSeparatorDefault + MM + datePickerPropSeparatorDefault + yyyy, datePickerPropFormatTypeDate, new Date()))) {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
});
|
|
64
|
+
(_b = onErrorRef.current) === null || _b === void 0 ? void 0 : _b.call(onErrorRef, {
|
|
65
|
+
type: datePickerErrorTypes[1],
|
|
66
|
+
stringValue: string,
|
|
67
|
+
dd: dd,
|
|
68
|
+
MM: MM,
|
|
69
|
+
yyyy: yyyy
|
|
70
|
+
});
|
|
69
71
|
return false;
|
|
70
72
|
}
|
|
71
73
|
return true;
|
|
@@ -76,6 +78,18 @@ export var useImask = function (formatProp, separator, inputRef, stringValue, on
|
|
|
76
78
|
// Нужно для синхранизации value c Imask,
|
|
77
79
|
// так как value мы можем задать через пропс без самого ввода,
|
|
78
80
|
// и Imask требует ручной синхронихации в этом случае
|
|
81
|
+
var onAcept = useCallback(function (e) {
|
|
82
|
+
var _a;
|
|
83
|
+
handleChanheRef.current({ e: e, value: ((_a = imaskRef.current) === null || _a === void 0 ? void 0 : _a.value) || null });
|
|
84
|
+
}, []);
|
|
85
|
+
useEffect(function () {
|
|
86
|
+
var _a;
|
|
87
|
+
(_a = imaskRef.current) === null || _a === void 0 ? void 0 : _a.on('accept', onAcept);
|
|
88
|
+
return function () {
|
|
89
|
+
var _a;
|
|
90
|
+
(_a = imaskRef.current) === null || _a === void 0 ? void 0 : _a.off('accept', onAcept);
|
|
91
|
+
};
|
|
92
|
+
}, []);
|
|
79
93
|
useEffect(function () {
|
|
80
94
|
var _a;
|
|
81
95
|
(_a = imaskRef.current) === null || _a === void 0 ? void 0 : _a.updateValue();
|
|
@@ -42,7 +42,8 @@ export declare const DatePickerFieldTypeDateRange: React.ForwardRefExoticCompone
|
|
|
42
42
|
label?: string | undefined;
|
|
43
43
|
caption?: string | undefined;
|
|
44
44
|
labelPosition?: "left" | "top" | undefined;
|
|
45
|
-
|
|
45
|
+
withClearButton?: boolean | undefined;
|
|
46
|
+
}, HTMLDivElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "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" | "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" | "disabled" | "view" | "size" | "caption" | "form" | "label" | "width" | "format" | "autoFocus" | "readOnly" | "required" | "status" | "focused" | "ariaLabel" | "labelPosition" | "withClearButton" | "iconSize" | "separator" | "minDate" | "maxDate"> & {
|
|
46
47
|
onChange?: ((props: {
|
|
47
48
|
e: Event;
|
|
48
49
|
value: import("../../../utils/types/Date").DateRange | null;
|