@consta/uikit 3.7.0 → 3.8.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.
Files changed (329) hide show
  1. package/Attach/package.json +1 -1
  2. package/Attachment/package.json +1 -1
  3. package/Avatar/package.json +1 -1
  4. package/Badge/package.json +1 -1
  5. package/BasicSelectDeprecated/package.json +1 -1
  6. package/Breadcrumbs/package.json +1 -1
  7. package/Button/package.json +1 -1
  8. package/CHANGELOG.md +16 -11
  9. package/Calendar/package.json +1 -1
  10. package/Card/package.json +1 -1
  11. package/Checkbox/package.json +1 -1
  12. package/CheckboxGroup/package.json +1 -1
  13. package/ChoiceGroup/package.json +1 -1
  14. package/Collapse/package.json +1 -1
  15. package/CollapseGroup/package.json +1 -1
  16. package/Combobox/package.json +1 -1
  17. package/ComboboxDeprecated/package.json +1 -1
  18. package/ContextMenu/package.json +1 -1
  19. package/DatePickerCanary/package.json +1 -1
  20. package/DateTimeCanary/package.json +1 -1
  21. package/DragNDropField/package.json +1 -1
  22. package/EventInterceptor/package.json +1 -1
  23. package/FieldCaption/package.json +1 -1
  24. package/FieldLabel/package.json +1 -1
  25. package/File/package.json +1 -1
  26. package/FileField/package.json +1 -1
  27. package/FileIcon/package.json +1 -1
  28. package/FileIconAvi/package.json +1 -1
  29. package/FileIconBmp/package.json +1 -1
  30. package/FileIconCsv/package.json +1 -1
  31. package/FileIconDoc/package.json +1 -1
  32. package/FileIconExe/package.json +1 -1
  33. package/FileIconGif/package.json +1 -1
  34. package/FileIconJpg/package.json +1 -1
  35. package/FileIconJson/package.json +1 -1
  36. package/FileIconLoading/package.json +1 -1
  37. package/FileIconMov/package.json +1 -1
  38. package/FileIconMp3/package.json +1 -1
  39. package/FileIconMp4/package.json +1 -1
  40. package/FileIconPdf/package.json +1 -1
  41. package/FileIconPng/package.json +1 -1
  42. package/FileIconPtt/package.json +1 -1
  43. package/FileIconRar/package.json +1 -1
  44. package/FileIconRtf/package.json +1 -1
  45. package/FileIconTiff/package.json +1 -1
  46. package/FileIconTxt/package.json +1 -1
  47. package/FileIconUndefined/package.json +1 -1
  48. package/FileIconWav/package.json +1 -1
  49. package/FileIconXls/package.json +1 -1
  50. package/FileIconZip/package.json +1 -1
  51. package/Grid/package.json +1 -1
  52. package/Header/package.json +1 -1
  53. package/Icon/package.json +1 -1
  54. package/IconAdd/package.json +1 -1
  55. package/IconAddToComparison/package.json +1 -1
  56. package/IconAlert/package.json +1 -1
  57. package/IconAlignBlocksLeft/package.json +1 -1
  58. package/IconAlignBlocksRight/package.json +1 -1
  59. package/IconAlignCenter/package.json +1 -1
  60. package/IconAlignJustify/package.json +1 -1
  61. package/IconAlignLeft/package.json +1 -1
  62. package/IconAlignRight/package.json +1 -1
  63. package/IconAllDone/package.json +1 -1
  64. package/IconArrowDown/package.json +1 -1
  65. package/IconArrowLeft/package.json +1 -1
  66. package/IconArrowRight/package.json +1 -1
  67. package/IconArrowUp/package.json +1 -1
  68. package/IconArtBrush/package.json +1 -1
  69. package/IconAttach/package.json +1 -1
  70. package/IconBackward/package.json +1 -1
  71. package/IconBag/package.json +1 -1
  72. package/IconBarrier/package.json +1 -1
  73. package/IconBento/package.json +1 -1
  74. package/IconBold/package.json +1 -1
  75. package/IconBook/package.json +1 -1
  76. package/IconBookmarkFilled/package.json +1 -1
  77. package/IconBookmarkStroked/package.json +1 -1
  78. package/IconCalculator/package.json +1 -1
  79. package/IconCalendar/package.json +1 -1
  80. package/IconCamera/package.json +1 -1
  81. package/IconCancel/package.json +1 -1
  82. package/IconCards/package.json +1 -1
  83. package/IconChat/package.json +1 -1
  84. package/IconCheck/package.json +1 -1
  85. package/IconClose/package.json +1 -1
  86. package/IconCollapse/package.json +1 -1
  87. package/IconColorFill/package.json +1 -1
  88. package/IconColorText/package.json +1 -1
  89. package/IconColumns/package.json +1 -1
  90. package/IconComment/package.json +1 -1
  91. package/IconConnection/package.json +1 -1
  92. package/IconCopy/package.json +1 -1
  93. package/IconCrown/package.json +1 -1
  94. package/IconCursorMouse/package.json +1 -1
  95. package/IconDataNull/package.json +1 -1
  96. package/IconDiamond/package.json +1 -1
  97. package/IconDinosaur/package.json +1 -1
  98. package/IconDisconnection/package.json +1 -1
  99. package/IconDocAdd/package.json +1 -1
  100. package/IconDocBlank/package.json +1 -1
  101. package/IconDocDelete/package.json +1 -1
  102. package/IconDocExport/package.json +1 -1
  103. package/IconDocFilled/package.json +1 -1
  104. package/IconDown/package.json +1 -1
  105. package/IconDownload/package.json +1 -1
  106. package/IconDrag/package.json +1 -1
  107. package/IconDraggable/package.json +1 -1
  108. package/IconDrillingRig/package.json +1 -1
  109. package/IconDrop/package.json +1 -1
  110. package/IconEdit/package.json +1 -1
  111. package/IconExit/package.json +1 -1
  112. package/IconExpand/package.json +1 -1
  113. package/IconEye/package.json +1 -1
  114. package/IconEyeClose/package.json +1 -1
  115. package/IconFavorite/package.json +1 -1
  116. package/IconFilter/package.json +1 -1
  117. package/IconFitToDefault/package.json +1 -1
  118. package/IconFlagFilled/package.json +1 -1
  119. package/IconFlagStroked/package.json +1 -1
  120. package/IconFolders/package.json +1 -1
  121. package/IconForward/package.json +1 -1
  122. package/IconFunnel/package.json +1 -1
  123. package/IconGas/package.json +1 -1
  124. package/IconGeo/package.json +1 -1
  125. package/IconGrouping/package.json +1 -1
  126. package/IconHamburger/package.json +1 -1
  127. package/IconHand/package.json +1 -1
  128. package/IconHealth/package.json +1 -1
  129. package/IconInComparison/package.json +1 -1
  130. package/IconInfo/package.json +1 -1
  131. package/IconIntroduction/package.json +1 -1
  132. package/IconIpad/package.json +1 -1
  133. package/IconItalic/package.json +1 -1
  134. package/IconKebab/package.json +1 -1
  135. package/IconLaptop/package.json +1 -1
  136. package/IconLayers/package.json +1 -1
  137. package/IconLeaf/package.json +1 -1
  138. package/IconLightningBolt/package.json +1 -1
  139. package/IconLineAndBarChart/package.json +1 -1
  140. package/IconLink/package.json +1 -1
  141. package/IconList/package.json +1 -1
  142. package/IconListNumbered/package.json +1 -1
  143. package/IconLock/package.json +1 -1
  144. package/IconLogicalElement/package.json +1 -1
  145. package/IconMBU/package.json +1 -1
  146. package/IconMGRP/package.json +1 -1
  147. package/IconMLSP/package.json +1 -1
  148. package/IconMMP/package.json +1 -1
  149. package/IconMail/package.json +1 -1
  150. package/IconMap/package.json +1 -1
  151. package/IconMaxHeight/package.json +1 -1
  152. package/IconMaxWidth/package.json +1 -1
  153. package/IconMeatball/package.json +1 -1
  154. package/IconMic/package.json +1 -1
  155. package/IconMolecules/package.json +1 -1
  156. package/IconMoon/package.json +1 -1
  157. package/IconNodeEnd/package.json +1 -1
  158. package/IconNodeStart/package.json +1 -1
  159. package/IconNodeStep/package.json +1 -1
  160. package/IconNodes/package.json +1 -1
  161. package/IconOpenInNew/package.json +1 -1
  162. package/IconPanelBottom/package.json +1 -1
  163. package/IconPanelLeft/package.json +1 -1
  164. package/IconPanelRight/package.json +1 -1
  165. package/IconPanelTop/package.json +1 -1
  166. package/IconPaste/package.json +1 -1
  167. package/IconPause/package.json +1 -1
  168. package/IconPhone/package.json +1 -1
  169. package/IconPhoto/package.json +1 -1
  170. package/IconPlay/package.json +1 -1
  171. package/IconPressure/package.json +1 -1
  172. package/IconProcessing/package.json +1 -1
  173. package/IconQuestion/package.json +1 -1
  174. package/IconQuote/package.json +1 -1
  175. package/IconRUO/package.json +1 -1
  176. package/IconRUS/package.json +1 -1
  177. package/IconRecord/package.json +1 -1
  178. package/IconRemove/package.json +1 -1
  179. package/IconRemoveFromComparison/package.json +1 -1
  180. package/IconReply/package.json +1 -1
  181. package/IconResize/package.json +1 -1
  182. package/IconRestart/package.json +1 -1
  183. package/IconRevert/package.json +1 -1
  184. package/IconRing/package.json +1 -1
  185. package/IconRouble/package.json +1 -1
  186. package/IconRuler/package.json +1 -1
  187. package/IconScreen/package.json +1 -1
  188. package/IconSearch/package.json +1 -1
  189. package/IconSelect/package.json +1 -1
  190. package/IconSelectOpen/package.json +1 -1
  191. package/IconSettings/package.json +1 -1
  192. package/IconShape/package.json +1 -1
  193. package/IconShuffle/package.json +1 -1
  194. package/IconSmile/package.json +1 -1
  195. package/IconSortDown/package.json +1 -1
  196. package/IconSortDownCenter/package.json +1 -1
  197. package/IconSortUp/package.json +1 -1
  198. package/IconSortUpCenter/package.json +1 -1
  199. package/IconStop/package.json +1 -1
  200. package/IconStorage/package.json +1 -1
  201. package/IconStrikethrough/package.json +1 -1
  202. package/IconSun/package.json +1 -1
  203. package/IconTable/package.json +1 -1
  204. package/IconTarget/package.json +1 -1
  205. package/IconTeam/package.json +1 -1
  206. package/IconTest/package.json +1 -1
  207. package/IconThumbUp/package.json +1 -1
  208. package/IconTie/package.json +1 -1
  209. package/IconTop/package.json +1 -1
  210. package/IconTrash/package.json +1 -1
  211. package/IconType/package.json +1 -1
  212. package/IconUnderline/package.json +1 -1
  213. package/IconUnlock/package.json +1 -1
  214. package/IconUnsort/package.json +1 -1
  215. package/IconUnsortCenter/package.json +1 -1
  216. package/IconUpload/package.json +1 -1
  217. package/IconUser/package.json +1 -1
  218. package/IconVZD/package.json +1 -1
  219. package/IconVideo/package.json +1 -1
  220. package/IconWarning/package.json +1 -1
  221. package/IconWatch/package.json +1 -1
  222. package/IconWideScreen/package.json +1 -1
  223. package/IconWorld/package.json +1 -1
  224. package/Informer/package.json +1 -1
  225. package/LayoutCanary/package.json +1 -1
  226. package/Loader/package.json +1 -1
  227. package/MixCard/package.json +1 -1
  228. package/MixFocus/package.json +1 -1
  229. package/MixVisuallyHidden/package.json +1 -1
  230. package/Modal/package.json +1 -1
  231. package/MultiComboboxDeprecated/package.json +1 -1
  232. package/Pagination/package.json +1 -1
  233. package/Popover/package.json +1 -1
  234. package/PortalWithTheme/package.json +1 -1
  235. package/ProgressSpin/package.json +1 -1
  236. package/ProgressStepBarCanary/es.js +1 -0
  237. package/ProgressStepBarCanary/index.d.ts +1 -0
  238. package/ProgressStepBarCanary/index.js +4 -0
  239. package/ProgressStepBarCanary/package.json +9 -0
  240. package/Radio/package.json +1 -1
  241. package/RadioGroup/package.json +1 -1
  242. package/Responses/package.json +1 -1
  243. package/Responses403/package.json +1 -1
  244. package/Responses404/package.json +1 -1
  245. package/Responses500/package.json +1 -1
  246. package/Responses503/package.json +1 -1
  247. package/ResponsesConnectionError/package.json +1 -1
  248. package/ResponsesDeleted/package.json +1 -1
  249. package/ResponsesEmptyBox/package.json +1 -1
  250. package/ResponsesEmptyPockets/package.json +1 -1
  251. package/ResponsesImage/package.json +1 -1
  252. package/ResponsesImage403/package.json +1 -1
  253. package/ResponsesImage404/package.json +1 -1
  254. package/ResponsesImage500/package.json +1 -1
  255. package/ResponsesImage503/package.json +1 -1
  256. package/ResponsesImageConnectionError/package.json +1 -1
  257. package/ResponsesImageDeleted/package.json +1 -1
  258. package/ResponsesImageEmptyBox/package.json +1 -1
  259. package/ResponsesImageEmptyPockets/package.json +1 -1
  260. package/ResponsesImageNothingFound/package.json +1 -1
  261. package/ResponsesImageSuccess/package.json +1 -1
  262. package/ResponsesNothingFound/package.json +1 -1
  263. package/ResponsesSuccess/package.json +1 -1
  264. package/Select/package.json +1 -1
  265. package/Sidebar/package.json +1 -1
  266. package/Skeleton/package.json +1 -1
  267. package/SnackBar/package.json +1 -1
  268. package/Steps/package.json +1 -1
  269. package/Switch/package.json +1 -1
  270. package/SwitchGroup/package.json +1 -1
  271. package/Table/package.json +1 -1
  272. package/Tabs/package.json +1 -1
  273. package/Tag/package.json +1 -1
  274. package/TagBase/package.json +1 -1
  275. package/Text/package.json +1 -1
  276. package/TextField/package.json +1 -1
  277. package/Theme/package.json +1 -1
  278. package/ThemeToggler/package.json +1 -1
  279. package/Timer/package.json +1 -1
  280. package/Tooltip/package.json +1 -1
  281. package/User/package.json +1 -1
  282. package/UserSelect/package.json +1 -1
  283. package/UserSelectDeprecated/package.json +1 -1
  284. package/__internal__/cjs-src/components/Modal/Modal.css +5 -0
  285. package/__internal__/cjs-src/components/Modal/Modal.js +1 -1
  286. package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBar.css +25 -0
  287. package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBarCanary.d.ts +3 -0
  288. package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBarCanary.js +72 -0
  289. package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBarItem/ProgressStepBarItem.css +170 -0
  290. package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBarItem/ProgressStepBarItem.d.ts +3 -0
  291. package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBarItem/ProgressStepBarItem.js +67 -0
  292. package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBarLine/ProgressStepBarLine.css +50 -0
  293. package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBarLine/ProgressStepBarLine.d.ts +11 -0
  294. package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBarLine/ProgressStepBarLine.js +45 -0
  295. package/__internal__/cjs-src/components/ProgressStepBarCanary/helpers.d.ts +106 -0
  296. package/__internal__/cjs-src/components/ProgressStepBarCanary/helpers.js +30 -0
  297. package/__internal__/src/components/Modal/Modal.css +5 -0
  298. package/__internal__/src/components/Modal/Modal.js +1 -1
  299. package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBar.css +25 -0
  300. package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarCanary.d.ts +3 -0
  301. package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarCanary.js +69 -0
  302. package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarItem/ProgressStepBarItem.css +170 -0
  303. package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarItem/ProgressStepBarItem.d.ts +3 -0
  304. package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarItem/ProgressStepBarItem.js +64 -0
  305. package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarLine/ProgressStepBarLine.css +50 -0
  306. package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarLine/ProgressStepBarLine.d.ts +11 -0
  307. package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarLine/ProgressStepBarLine.js +42 -0
  308. package/__internal__/src/components/ProgressStepBarCanary/helpers.d.ts +106 -0
  309. package/__internal__/src/components/ProgressStepBarCanary/helpers.js +26 -0
  310. package/createIcon/package.json +1 -1
  311. package/createResponsesImage/package.json +1 -1
  312. package/package.json +2 -1
  313. package/useChoiceGroup/package.json +1 -1
  314. package/useChoiceGroupIndexed/package.json +1 -1
  315. package/useClickOutside/package.json +1 -1
  316. package/useComponentSize/package.json +1 -1
  317. package/useDebounce/package.json +1 -1
  318. package/useFlag/package.json +1 -1
  319. package/useForkRef/package.json +1 -1
  320. package/useGlobalKeys/package.json +1 -1
  321. package/useKeys/package.json +1 -1
  322. package/useMutableRef/package.json +1 -1
  323. package/usePrevious/package.json +1 -1
  324. package/useResizeObserved/package.json +1 -1
  325. package/useScrollPosition/package.json +1 -1
  326. package/useSelect/package.json +1 -1
  327. package/useThemeVars/package.json +1 -1
  328. package/useTimer/package.json +1 -1
  329. package/withTooltip/package.json +1 -1
@@ -0,0 +1,106 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../../icons/Icon/Icon';
3
+ import { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';
4
+ export declare const propSize: readonly ["s", "xs", "m"];
5
+ export declare type PropSize = typeof propSize[number];
6
+ export declare const propSizeDefault: "s";
7
+ export declare const propDirection: readonly ["horizontal", "vertical"];
8
+ export declare type PropDirection = typeof propDirection[number];
9
+ export declare const propDirectionDefault: "horizontal";
10
+ export declare const propStatus: readonly ["normal", "success", "warning", "alert"];
11
+ export declare type PropStatus = typeof propStatus[number];
12
+ export declare const propStatusDefault: "normal";
13
+ export declare const pointNumbersMap: readonly [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
14
+ export declare type PointNumbersMap = typeof pointNumbersMap[number];
15
+ export declare const propPosition: readonly ["center", "start", "end"];
16
+ export declare type PropPosition = typeof propPosition[number];
17
+ export declare const propPositionDefault: PropPosition;
18
+ export declare type PropGetItemLabel<ITEM> = (item: ITEM) => string;
19
+ export declare type PropGetItemKey<ITEM> = (item: ITEM) => string | number;
20
+ export declare type PropGetItemTooltipContent<ITEM> = (item: ITEM) => string | undefined;
21
+ export declare type PropGetItemLineStatus<ITEM> = (item: ITEM) => PropStatus | undefined;
22
+ export declare type PropGetItemPoint<ITEM> = (item: ITEM) => PointNumbersMap | React.FC<IconProps> | undefined;
23
+ export declare type PropGetItemProgress<ITEM> = (item: ITEM) => boolean | undefined;
24
+ export declare type PropGetItemContent<ITEM> = (item: ITEM) => React.ReactNode | undefined;
25
+ export declare type PropGetItemStatus<ITEM> = (item: ITEM) => PropStatus | 'system' | undefined;
26
+ export declare type PropGetItemOnCLick<ITEM> = (item: ITEM) => React.EventHandler<React.MouseEvent> | undefined;
27
+ export declare type DefaultItem = {
28
+ label: string;
29
+ tooltipContent?: string;
30
+ lineStatus?: PropStatus;
31
+ point?: PointNumbersMap | React.FC<IconProps>;
32
+ status?: PropStatus | 'system';
33
+ progress?: boolean;
34
+ content?: React.ReactNode;
35
+ };
36
+ export declare type Line = {
37
+ status: PropStatus;
38
+ size: number;
39
+ };
40
+ export declare type ProgressStepBarProps<ITEM = DefaultItem> = PropsWithHTMLAttributesAndRef<{
41
+ steps: ITEM[];
42
+ direction?: PropDirection;
43
+ size?: PropSize;
44
+ activeStepIndex?: number;
45
+ onClick?: (e: React.MouseEvent, item: ITEM, index: number) => void;
46
+ getItemLabel?: PropGetItemLabel<ITEM>;
47
+ getItemLineStatus?: PropGetItemLineStatus<ITEM>;
48
+ getItemTooltipContent?: PropGetItemTooltipContent<ITEM>;
49
+ getItemPoint?: PropGetItemPoint<ITEM>;
50
+ getItemProgress?: PropGetItemProgress<ITEM>;
51
+ getItemContent?: PropGetItemContent<ITEM>;
52
+ getItemStatus?: PropGetItemStatus<ITEM>;
53
+ }, HTMLDivElement> & (ITEM extends {
54
+ label: DefaultItem['label'];
55
+ } ? {} : {
56
+ getItemLabel: PropGetItemLabel<ITEM>;
57
+ });
58
+ export declare type ProgressStepBarItemProps = {
59
+ content?: React.ReactNode;
60
+ label: string;
61
+ point?: PointNumbersMap | React.FC<IconProps>;
62
+ progress?: boolean;
63
+ status?: PropStatus | 'system';
64
+ tooltipContent?: string;
65
+ position?: PropPosition;
66
+ direction: PropDirection;
67
+ size: PropSize;
68
+ onClick?: (e: React.MouseEvent) => void;
69
+ pointRef?: React.RefObject<HTMLButtonElement> | React.RefObject<HTMLDivElement>;
70
+ };
71
+ export declare const cnProgressStepBar: import("@bem-react/classname").ClassNameFormatter;
72
+ export declare const defaultGetItemLabel: PropGetItemLabel<DefaultItem>;
73
+ export declare const defaultGetItemTooltipContent: PropGetItemTooltipContent<DefaultItem>;
74
+ export declare const defaultGetItemPoint: PropGetItemPoint<DefaultItem>;
75
+ export declare const defaultGetItemLineStatus: PropGetItemLineStatus<DefaultItem>;
76
+ export declare const defaultGetItemProgress: PropGetItemProgress<DefaultItem>;
77
+ export declare const defaultGetItemContent: PropGetItemContent<DefaultItem>;
78
+ export declare const defaultGetItemStatus: PropGetItemStatus<DefaultItem>;
79
+ export declare type ProgressStepBarComponent = <ITEM = DefaultItem>(props: ProgressStepBarProps<ITEM>) => React.ReactElement | null;
80
+ export declare type ProgressStepBarItemComponent = (props: ProgressStepBarItemProps) => React.ReactElement | null;
81
+ export declare function withDefaultGetters<ITEM>(props: ProgressStepBarProps<ITEM>): {
82
+ steps: ITEM[];
83
+ direction?: "horizontal" | "vertical" | undefined;
84
+ size?: "xs" | "s" | "m" | undefined;
85
+ activeStepIndex?: number | undefined;
86
+ onClick?: ((e: React.MouseEvent<Element, MouseEvent>, item: ITEM, index: number) => void) | undefined;
87
+ getItemLabel?: PropGetItemLabel<ITEM> | undefined;
88
+ getItemLineStatus?: PropGetItemLineStatus<ITEM> | undefined;
89
+ getItemTooltipContent?: PropGetItemTooltipContent<ITEM> | undefined;
90
+ getItemPoint?: PropGetItemPoint<ITEM> | undefined;
91
+ getItemProgress?: PropGetItemProgress<ITEM> | undefined;
92
+ getItemContent?: PropGetItemContent<ITEM> | undefined;
93
+ getItemStatus?: PropGetItemStatus<ITEM> | undefined;
94
+ } & Pick<React.HTMLAttributes<HTMLDivElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "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> & (ITEM extends {
95
+ label: string;
96
+ } ? {} : {
97
+ getItemLabel: PropGetItemLabel<ITEM>;
98
+ }) & {
99
+ getItemLabel: PropGetItemLabel<DefaultItem> | PropGetItemLabel<ITEM>;
100
+ getItemTooltipContent: PropGetItemTooltipContent<DefaultItem> | PropGetItemTooltipContent<ITEM>;
101
+ getItemPoint: PropGetItemPoint<DefaultItem> | PropGetItemPoint<ITEM>;
102
+ getItemProgress: PropGetItemProgress<DefaultItem> | PropGetItemProgress<ITEM>;
103
+ getItemContent: PropGetItemContent<DefaultItem> | PropGetItemContent<ITEM>;
104
+ getItemStatus: PropGetItemStatus<DefaultItem> | PropGetItemStatus<ITEM>;
105
+ getItemLineStatus: PropGetItemLineStatus<DefaultItem> | PropGetItemLineStatus<ITEM>;
106
+ };
@@ -0,0 +1,26 @@
1
+ import { __assign } from "tslib";
2
+ import { cn } from '../../utils/bem';
3
+ export var propSize = ['s', 'xs', 'm'];
4
+ export var propSizeDefault = propSize[0];
5
+ export var propDirection = ['horizontal', 'vertical'];
6
+ export var propDirectionDefault = propDirection[0];
7
+ export var propStatus = ['normal', 'success', 'warning', 'alert'];
8
+ export var propStatusDefault = propStatus[0];
9
+ export var pointNumbersMap = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
10
+ export var propPosition = ['center', 'start', 'end'];
11
+ export var propPositionDefault = propPosition[0];
12
+ export var cnProgressStepBar = cn('ProgressStepBar');
13
+ export var defaultGetItemLabel = function (item) { return item.label; };
14
+ export var defaultGetItemTooltipContent = function (item) {
15
+ return item.tooltipContent;
16
+ };
17
+ export var defaultGetItemPoint = function (item) { return item.point; };
18
+ export var defaultGetItemLineStatus = function (item) {
19
+ return item.lineStatus;
20
+ };
21
+ export var defaultGetItemProgress = function (item) { return item.progress; };
22
+ export var defaultGetItemContent = function (item) { return item.content; };
23
+ export var defaultGetItemStatus = function (item) { return item.status; };
24
+ export function withDefaultGetters(props) {
25
+ return __assign(__assign({}, props), { getItemLabel: props.getItemLabel || defaultGetItemLabel, getItemTooltipContent: props.getItemTooltipContent || defaultGetItemTooltipContent, getItemPoint: props.getItemPoint || defaultGetItemPoint, getItemProgress: props.getItemProgress || defaultGetItemProgress, getItemContent: props.getItemContent || defaultGetItemContent, getItemStatus: props.getItemStatus || defaultGetItemStatus, getItemLineStatus: props.getItemLineStatus || defaultGetItemLineStatus });
26
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/createIcon",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/createResponsesImage",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "keywords": [
5
5
  "ui-kit",
6
6
  "design-system",
@@ -258,6 +258,7 @@
258
258
  "Popover",
259
259
  "PortalWithTheme",
260
260
  "ProgressSpin",
261
+ "ProgressStepBarCanary",
261
262
  "Radio",
262
263
  "RadioGroup",
263
264
  "Responses",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useChoiceGroup",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useChoiceGroupIndexed",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useClickOutside",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useComponentSize",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useDebounce",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useFlag",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useForkRef",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useGlobalKeys",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useKeys",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useMutableRef",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/usePrevious",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useResizeObserved",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useScrollPosition",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useSelect",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useThemeVars",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useTimer",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/withTooltip",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [