@consta/uikit 3.25.0 → 3.26.0
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 +16 -7
- 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/FieldGroup/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/ProgressLine/es.js +1 -0
- package/ProgressLine/index.d.ts +1 -0
- package/ProgressLine/index.js +4 -0
- package/ProgressLine/package.json +9 -0
- 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/EventInterceptor/propsHandlers/useTextFieldEventsHandler.d.ts +8 -1
- package/__internal__/cjs-src/components/ProgressLine/ProgressLine.css +67 -0
- package/__internal__/cjs-src/components/ProgressLine/ProgressLine.d.ts +3 -0
- package/__internal__/cjs-src/components/ProgressLine/ProgressLine.js +27 -0
- package/__internal__/cjs-src/components/ProgressLine/types.d.ts +10 -0
- package/__internal__/cjs-src/components/ProgressLine/types.js +5 -0
- package/__internal__/cjs-src/components/ProgressSpin/ProgressSpin.d.ts +1 -0
- package/__internal__/cjs-src/components/ProgressSpin/ProgressSpin.js +2 -1
- package/__internal__/cjs-src/components/SliderCanary/SliderCanary.js +19 -11
- package/__internal__/cjs-src/components/SliderCanary/SliderLine/SliderLine.css +2 -2
- package/__internal__/cjs-src/components/SliderCanary/SliderPoint/SliderPoint.css +2 -4
- package/__internal__/cjs-src/components/SliderCanary/useSlider/helper.d.ts +3 -2
- package/__internal__/cjs-src/components/SliderCanary/useSlider/helper.js +37 -14
- package/__internal__/cjs-src/components/SliderCanary/useSlider/useSlider.d.ts +1 -0
- package/__internal__/cjs-src/components/SliderCanary/useSlider/useSlider.js +32 -4
- package/__internal__/cjs-src/components/SliderCanary/useSliderStationing.d.ts +1 -1
- package/__internal__/cjs-src/components/SliderCanary/useSliderStationing.js +14 -3
- package/__internal__/cjs-src/components/TextField/TextField.js +13 -5
- package/__internal__/cjs-src/components/TextField/types.d.ts +7 -0
- package/__internal__/cjs-src/components/User/User.css +1 -0
- package/__internal__/src/components/EventInterceptor/propsHandlers/useTextFieldEventsHandler.d.ts +8 -1
- package/__internal__/src/components/ProgressLine/ProgressLine.css +67 -0
- package/__internal__/src/components/ProgressLine/ProgressLine.d.ts +3 -0
- package/__internal__/src/components/ProgressLine/ProgressLine.js +24 -0
- package/__internal__/src/components/ProgressLine/types.d.ts +10 -0
- package/__internal__/src/components/ProgressLine/types.js +2 -0
- package/__internal__/src/components/ProgressSpin/ProgressSpin.d.ts +1 -0
- package/__internal__/src/components/ProgressSpin/ProgressSpin.js +2 -1
- package/__internal__/src/components/SliderCanary/SliderCanary.js +19 -11
- package/__internal__/src/components/SliderCanary/SliderLine/SliderLine.css +2 -2
- package/__internal__/src/components/SliderCanary/SliderPoint/SliderPoint.css +2 -4
- package/__internal__/src/components/SliderCanary/useSlider/helper.d.ts +3 -2
- package/__internal__/src/components/SliderCanary/useSlider/helper.js +37 -14
- package/__internal__/src/components/SliderCanary/useSlider/useSlider.d.ts +1 -0
- package/__internal__/src/components/SliderCanary/useSlider/useSlider.js +32 -4
- package/__internal__/src/components/SliderCanary/useSliderStationing.d.ts +1 -1
- package/__internal__/src/components/SliderCanary/useSliderStationing.js +15 -4
- package/__internal__/src/components/TextField/TextField.js +13 -5
- package/__internal__/src/components/TextField/types.d.ts +7 -0
- package/__internal__/src/components/User/User.css +1 -0
- package/createIcon/package.json +1 -1
- package/createResponsesImage/package.json +1 -1
- package/package.json +2 -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
package/Select/package.json
CHANGED
package/Sidebar/package.json
CHANGED
package/Skeleton/package.json
CHANGED
package/SnackBar/package.json
CHANGED
package/Steps/package.json
CHANGED
package/StepsCanary/package.json
CHANGED
package/Switch/package.json
CHANGED
package/SwitchGroup/package.json
CHANGED
package/Table/package.json
CHANGED
package/Tabs/package.json
CHANGED
package/TabsCanary/package.json
CHANGED
package/Tag/package.json
CHANGED
package/TagBase/package.json
CHANGED
package/Text/package.json
CHANGED
package/TextField/package.json
CHANGED
package/Theme/package.json
CHANGED
package/Timer/package.json
CHANGED
package/Tooltip/package.json
CHANGED
package/User/package.json
CHANGED
package/UserSelect/package.json
CHANGED
|
@@ -54,6 +54,7 @@ export declare const useTextFieldEventsHandler: <P extends {
|
|
|
54
54
|
width?: "default" | "full" | undefined;
|
|
55
55
|
onFocus?: ((event: React.FocusEvent<HTMLElement>) => void) | undefined;
|
|
56
56
|
onBlur?: ((event: React.FocusEvent<HTMLElement>) => void) | undefined;
|
|
57
|
+
incrementButtons?: boolean | undefined;
|
|
57
58
|
autoFocus?: boolean | undefined;
|
|
58
59
|
placeholder?: string | undefined;
|
|
59
60
|
leftSide?: string | React.FC<import("../../../utils/types/PropsWithHTMLAttributes").PropsWithHTMLAttributesAndRef<{
|
|
@@ -81,7 +82,13 @@ export declare const useTextFieldEventsHandler: <P extends {
|
|
|
81
82
|
caption?: string | undefined;
|
|
82
83
|
labelPosition?: "left" | "top" | undefined;
|
|
83
84
|
focused?: boolean | undefined;
|
|
84
|
-
|
|
85
|
+
onKeyDownCapture?: ((event: React.KeyboardEvent<Element>) => void) | undefined;
|
|
86
|
+
onKeyPress?: ((event: React.KeyboardEvent<Element>) => void) | undefined;
|
|
87
|
+
onKeyPressCapture?: ((event: React.KeyboardEvent<Element>) => void) | undefined;
|
|
88
|
+
onKeyUp?: ((event: React.KeyboardEvent<Element>) => void) | undefined;
|
|
89
|
+
onKeyUpCapture?: ((event: React.KeyboardEvent<Element>) => void) | undefined;
|
|
90
|
+
onKeyDown?: ((event: React.KeyboardEvent<Element>) => void) | undefined;
|
|
91
|
+
} & 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" | "onError" | "onErrorCapture" | "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"> & {
|
|
85
92
|
rows?: undefined;
|
|
86
93
|
minRows?: undefined;
|
|
87
94
|
maxRows?: undefined;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
.ProgressLine {
|
|
2
|
+
position: relative;
|
|
3
|
+
overflow-x: hidden;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: var(--progress-line-height);
|
|
6
|
+
background: var(--color-bg-system);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ProgressLine::after {
|
|
10
|
+
content: '';
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 0;
|
|
13
|
+
height: 100%;
|
|
14
|
+
background-color: var(--color-bg-brand);
|
|
15
|
+
-webkit-transition: -webkit-transform 0.3s;
|
|
16
|
+
transition: -webkit-transform 0.3s;
|
|
17
|
+
transition: transform 0.3s;
|
|
18
|
+
transition: transform 0.3s, -webkit-transform 0.3s;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ProgressLine_size_s {
|
|
22
|
+
--progress-line-height: var(--space-3xs);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.ProgressLine_size_m {
|
|
26
|
+
--progress-line-height: var(--space-2xs);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.ProgressLine_mode_determinate::after {
|
|
30
|
+
width: 100%;
|
|
31
|
+
-webkit-transform: scaleX(var(--progress-line-value));
|
|
32
|
+
transform: scaleX(var(--progress-line-value));
|
|
33
|
+
-webkit-transform-origin: left;
|
|
34
|
+
transform-origin: left;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.ProgressLine_mode_indeterminate::after {
|
|
38
|
+
width: 80%;
|
|
39
|
+
-webkit-transform-origin: left;
|
|
40
|
+
transform-origin: left;
|
|
41
|
+
-webkit-animation: ProgressLineAnimation 2s linear infinite;
|
|
42
|
+
animation: ProgressLineAnimation 2s linear infinite;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@-webkit-keyframes ProgressLineAnimation {
|
|
46
|
+
0% {
|
|
47
|
+
-webkit-transform: translateX(-100%);
|
|
48
|
+
transform: translateX(-100%);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
100% {
|
|
52
|
+
-webkit-transform: translateX(130%);
|
|
53
|
+
transform: translateX(130%);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@keyframes ProgressLineAnimation {
|
|
58
|
+
0% {
|
|
59
|
+
-webkit-transform: translateX(-100%);
|
|
60
|
+
transform: translateX(-100%);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
100% {
|
|
64
|
+
-webkit-transform: translateX(130%);
|
|
65
|
+
transform: translateX(130%);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.ProgressLine = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
require("./ProgressLine.css");
|
|
6
|
+
var react_1 = tslib_1.__importStar(require("react"));
|
|
7
|
+
var bem_1 = require("../../utils/bem");
|
|
8
|
+
var type_guards_1 = require("../../utils/type-guards");
|
|
9
|
+
var cnProgressLine = bem_1.cn('ProgressLine');
|
|
10
|
+
var getProgress = function (progress) {
|
|
11
|
+
var progressNormal = Math.ceil(progress);
|
|
12
|
+
if (progressNormal >= 100) {
|
|
13
|
+
return 1;
|
|
14
|
+
}
|
|
15
|
+
if (progressNormal <= 0) {
|
|
16
|
+
return 0;
|
|
17
|
+
}
|
|
18
|
+
return progressNormal / 100;
|
|
19
|
+
};
|
|
20
|
+
exports.ProgressLine = react_1.forwardRef(function (props, ref) {
|
|
21
|
+
var _a;
|
|
22
|
+
var _b = props.size, size = _b === void 0 ? 'm' : _b, value = props.value, style = props.style, otherProps = tslib_1.__rest(props, ["size", "value", "style"]);
|
|
23
|
+
return (react_1["default"].createElement("div", tslib_1.__assign({}, otherProps, { ref: ref, style: tslib_1.__assign(tslib_1.__assign({}, style), (_a = {}, _a['--progress-line-value'] = "" + getProgress(value !== null && value !== void 0 ? value : 0), _a)), className: cnProgressLine({
|
|
24
|
+
size: size,
|
|
25
|
+
mode: type_guards_1.isNumber(value) ? 'determinate' : 'indeterminate'
|
|
26
|
+
}) })));
|
|
27
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';
|
|
3
|
+
export declare const progressLinePropSize: readonly ["m", "s"];
|
|
4
|
+
export declare type PropgressLinePropSize = typeof progressLinePropSize[number];
|
|
5
|
+
export declare const defaultProgressLinePropSize: "m";
|
|
6
|
+
export declare type ProgressLineProps = PropsWithHTMLAttributesAndRef<{
|
|
7
|
+
size?: PropgressLinePropSize;
|
|
8
|
+
value?: number;
|
|
9
|
+
}, HTMLDivElement>;
|
|
10
|
+
export declare type ProgressLineComponent = (props: ProgressLineProps) => React.ReactElement | null;
|
|
@@ -32,8 +32,9 @@ function getSvgParamsBySize(size) {
|
|
|
32
32
|
return [sizeOfPixels, strokeWidth, radius, strokeDasharray];
|
|
33
33
|
}
|
|
34
34
|
exports.ProgressSpin = react_1["default"].forwardRef(function (props, ref) {
|
|
35
|
-
var _a = props.size, size = _a === void 0 ? exports.progressSpinPropSizeDefault : _a,
|
|
35
|
+
var _a = props.size, size = _a === void 0 ? exports.progressSpinPropSizeDefault : _a, progressProp = props.progress, value = props.value, animation = props.animation, className = props.className, otherProps = tslib_1.__rest(props, ["size", "progress", "value", "animation", "className"]);
|
|
36
36
|
var _b = tslib_1.__read(react_1.useMemo(function () { return getSvgParamsBySize(size); }, [size]), 4), sizeOfPixels = _b[0], strokeWidth = _b[1], radius = _b[2], strokeDasharray = _b[3];
|
|
37
|
+
var progress = value !== null && value !== void 0 ? value : progressProp;
|
|
37
38
|
var animatedProgress = type_guards_1.isNumber(progress) ? progress : 50;
|
|
38
39
|
var strokeDashoffset = strokeDasharray - (strokeDasharray * animatedProgress) / 100;
|
|
39
40
|
return (react_1["default"].createElement("svg", tslib_1.__assign({}, otherProps, { className: exports.cnProgressSpin({ spin: !type_guards_1.isNumber(progress) }, [className]), width: sizeOfPixels, height: sizeOfPixels, viewBox: "0 0 " + sizeOfPixels + " " + sizeOfPixels, ref: ref }),
|