@ssa-ui-kit/core 1.0.0 → 1.0.2

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 (266) hide show
  1. package/.storybook/style.css +9 -0
  2. package/dist/components/AccordionGroup/AccordionContent.d.ts +6 -1
  3. package/dist/components/AccordionGroup/AccordionContext.d.ts +1 -0
  4. package/dist/components/AccordionGroup/stories/helpers.d.ts +1 -1
  5. package/dist/components/AddNewAccountCard/types.d.ts +1 -0
  6. package/dist/components/Avatar/Avatar.d.ts +3 -2
  7. package/dist/components/Badge/BadgeBase.d.ts +3 -2
  8. package/dist/components/Badge/helpers.d.ts +5 -4
  9. package/dist/components/Badge/types.d.ts +1 -0
  10. package/dist/components/Button/Button.d.ts +1 -0
  11. package/dist/components/Button/ButtonBase.d.ts +3 -2
  12. package/dist/components/Button/fixtures.d.ts +33 -32
  13. package/dist/components/Button/helpers.d.ts +5 -4
  14. package/dist/components/Card/CardBase.d.ts +4 -3
  15. package/dist/components/Card/types.d.ts +1 -0
  16. package/dist/components/CardContent/CardContent.d.ts +1 -0
  17. package/dist/components/CardContent/CardContentBase.d.ts +4 -3
  18. package/dist/components/CardHeader/CardHeader.d.ts +1 -0
  19. package/dist/components/CardHeader/CardHeaderBase.d.ts +5 -4
  20. package/dist/components/CardList/types.d.ts +1 -0
  21. package/dist/components/Checkbox/CheckboxBase.d.ts +1 -1
  22. package/dist/components/CollapsibleNavBar/CollapsibleNavBarBase.d.ts +4 -3
  23. package/dist/components/CollapsibleNavBar/CollapsibleNavBarItem.d.ts +4 -3
  24. package/dist/components/CollapsibleNavBar/CollapsibleNavBarLink.d.ts +2 -1
  25. package/dist/components/CollapsibleNavBar/CollapsibleNavBarList.d.ts +4 -3
  26. package/dist/components/CollapsibleNavBar/CollapsibleNavBarWrapper.d.ts +4 -3
  27. package/dist/components/CollapsibleNavBar/CollapsibleNavToggleWrapper.d.ts +4 -3
  28. package/dist/components/CollapsibleNavBar/NavBarAccordionContent.d.ts +9 -4
  29. package/dist/components/CollapsibleNavBar/NavBarItemWithSubMenu.d.ts +1 -1
  30. package/dist/components/CollapsibleNavBar/NavBarItemWithoutSubMenu.d.ts +2 -1
  31. package/dist/components/CollapsibleNavBar/NavBarPopover.d.ts +2 -1
  32. package/dist/components/CollapsibleNavBar/TriggerIcon.d.ts +3 -3
  33. package/dist/components/CollapsibleNavBar/types.d.ts +1 -0
  34. package/dist/components/ColorPicker/styles.d.ts +3 -2
  35. package/dist/components/Dropdown/types.d.ts +1 -0
  36. package/dist/components/DropdownArrow/DropdownArrow.d.ts +3 -2
  37. package/dist/components/DropdownBase/DropdownBase.d.ts +3 -2
  38. package/dist/components/DropdownOption/DropdownOption.d.ts +2 -2
  39. package/dist/components/DropdownOptions/types.d.ts +1 -0
  40. package/dist/components/DropdownToggle/DropdownToggle.d.ts +3 -2
  41. package/dist/components/Filters/FilterBlockWrapper.d.ts +7 -6
  42. package/dist/components/Filters/Filters.d.ts +13 -2
  43. package/dist/components/Filters/FiltersContext.d.ts +13 -3
  44. package/dist/components/Filters/FiltersWrapper.d.ts +4 -3
  45. package/dist/components/Filters/hooks/useVisibility.d.ts +1 -0
  46. package/dist/components/Form/Form.d.ts +3 -2
  47. package/dist/components/FormAction/FormAction.d.ts +3 -2
  48. package/dist/components/FormGroup/FormGroup.d.ts +3 -2
  49. package/dist/components/FormHelperText/FormHelperTextBase.d.ts +4 -3
  50. package/dist/components/FormHelperText/types.d.ts +1 -0
  51. package/dist/components/Icon/Icon.d.ts +1 -1
  52. package/dist/components/Icon/icons/Archive.d.ts +2 -1
  53. package/dist/components/Icon/icons/ArrowDown.d.ts +2 -1
  54. package/dist/components/Icon/icons/ArrowUp.d.ts +2 -1
  55. package/dist/components/Icon/icons/Attention.d.ts +2 -1
  56. package/dist/components/Icon/icons/BanUser.d.ts +2 -1
  57. package/dist/components/Icon/icons/Bin.d.ts +2 -1
  58. package/dist/components/Icon/icons/Calendar.d.ts +2 -1
  59. package/dist/components/Icon/icons/CarrotDown.d.ts +2 -1
  60. package/dist/components/Icon/icons/CarrotLeft.d.ts +2 -1
  61. package/dist/components/Icon/icons/CarrotRight.d.ts +2 -1
  62. package/dist/components/Icon/icons/CarrotUp.d.ts +2 -1
  63. package/dist/components/Icon/icons/Change.d.ts +2 -1
  64. package/dist/components/Icon/icons/Chart.d.ts +2 -1
  65. package/dist/components/Icon/icons/Check.d.ts +2 -1
  66. package/dist/components/Icon/icons/CheckCircle.d.ts +2 -1
  67. package/dist/components/Icon/icons/Circle.d.ts +2 -1
  68. package/dist/components/Icon/icons/Circular.d.ts +2 -1
  69. package/dist/components/Icon/icons/Clock.d.ts +2 -1
  70. package/dist/components/Icon/icons/Cogwheel.d.ts +2 -1
  71. package/dist/components/Icon/icons/ConfirmEmail.d.ts +2 -1
  72. package/dist/components/Icon/icons/Copy.d.ts +2 -1
  73. package/dist/components/Icon/icons/Cross.d.ts +2 -1
  74. package/dist/components/Icon/icons/Diet.d.ts +2 -1
  75. package/dist/components/Icon/icons/Edit.d.ts +2 -1
  76. package/dist/components/Icon/icons/Email.d.ts +2 -1
  77. package/dist/components/Icon/icons/Filter.d.ts +2 -1
  78. package/dist/components/Icon/icons/Home.d.ts +2 -1
  79. package/dist/components/Icon/icons/Import.d.ts +2 -1
  80. package/dist/components/Icon/icons/Information.d.ts +2 -1
  81. package/dist/components/Icon/icons/Invisible.d.ts +2 -1
  82. package/dist/components/Icon/icons/Lock.d.ts +2 -1
  83. package/dist/components/Icon/icons/LogIn.d.ts +2 -1
  84. package/dist/components/Icon/icons/LogOut.d.ts +2 -1
  85. package/dist/components/Icon/icons/Measurements.d.ts +2 -1
  86. package/dist/components/Icon/icons/Minus.d.ts +2 -1
  87. package/dist/components/Icon/icons/More.d.ts +2 -1
  88. package/dist/components/Icon/icons/MoreVertical.d.ts +2 -1
  89. package/dist/components/Icon/icons/Notification.d.ts +2 -1
  90. package/dist/components/Icon/icons/Pages.d.ts +2 -1
  91. package/dist/components/Icon/icons/Plus.d.ts +2 -1
  92. package/dist/components/Icon/icons/RadioOn.d.ts +2 -1
  93. package/dist/components/Icon/icons/Robot.d.ts +2 -1
  94. package/dist/components/Icon/icons/Roles.d.ts +2 -1
  95. package/dist/components/Icon/icons/Search.d.ts +2 -1
  96. package/dist/components/Icon/icons/Settings.d.ts +2 -1
  97. package/dist/components/Icon/icons/Sleep.d.ts +2 -1
  98. package/dist/components/Icon/icons/Stats.d.ts +2 -1
  99. package/dist/components/Icon/icons/Trainings.d.ts +2 -1
  100. package/dist/components/Icon/icons/UnArchive.d.ts +2 -1
  101. package/dist/components/Icon/icons/Union.d.ts +2 -1
  102. package/dist/components/Icon/icons/Unlock.d.ts +2 -1
  103. package/dist/components/Icon/icons/User.d.ts +2 -1
  104. package/dist/components/Icon/icons/Visible.d.ts +2 -1
  105. package/dist/components/Icon/icons/Warning.d.ts +2 -1
  106. package/dist/components/Icon/icons/all.d.ts +54 -0
  107. package/dist/components/Icon/icons/iconsList.d.ts +1 -1
  108. package/dist/components/Icon/types.d.ts +1 -0
  109. package/dist/components/Indicator/IndicatorBase.d.ts +4 -3
  110. package/dist/components/Indicator/types.d.ts +1 -0
  111. package/dist/components/Input/Input.d.ts +1 -0
  112. package/dist/components/Input/InputBase.d.ts +3 -2
  113. package/dist/components/Input/InputGroup.d.ts +4 -3
  114. package/dist/components/Input/InputStatusError.d.ts +3 -2
  115. package/dist/components/Input/InputStatusSuccess.d.ts +3 -2
  116. package/dist/components/Label/LabelBase.d.ts +3 -2
  117. package/dist/components/LargeTab/LargeTabBase.d.ts +3 -2
  118. package/dist/components/Link/Link.types.d.ts +1 -0
  119. package/dist/components/Link/LinkBase.d.ts +3 -2
  120. package/dist/components/LinksTabBar/LinksTabBarBase.d.ts +3 -2
  121. package/dist/components/Modal/Modal.context.d.ts +1 -0
  122. package/dist/components/ModalDialog/types.d.ts +1 -0
  123. package/dist/components/ModalDismissButton/ModalDismissButton.d.ts +1 -0
  124. package/dist/components/ModalOpenButton/ModalOpenButton.d.ts +1 -0
  125. package/dist/components/MultipleDropdown/types.d.ts +1 -0
  126. package/dist/components/MultipleDropdownNotification/MultipleDropdownNotification.d.ts +4 -3
  127. package/dist/components/MultipleDropdownOptions/types.d.ts +1 -0
  128. package/dist/components/NavBar/NavBarBase.d.ts +3 -2
  129. package/dist/components/NavBar/NavBarItem.d.ts +3 -2
  130. package/dist/components/NavBar/NavBarLink.d.ts +2 -1
  131. package/dist/components/NavBar/NavBarList.d.ts +3 -2
  132. package/dist/components/NavBar/NavBarWrapper.d.ts +3 -2
  133. package/dist/components/NavBar/NavToggleWrapper.d.ts +3 -2
  134. package/dist/components/NotificationCard/NotificationCard.d.ts +1 -0
  135. package/dist/components/NotificationCard/types.d.ts +1 -0
  136. package/dist/components/NotificationMenu/types.d.ts +1 -0
  137. package/dist/components/Pagination/PaginationContext.d.ts +1 -0
  138. package/dist/components/Pagination/WithPagination.d.ts +2 -1
  139. package/dist/components/Pagination/types.d.ts +1 -0
  140. package/dist/components/PieChart/PieChartBases.d.ts +5 -4
  141. package/dist/components/PieChart/PieChartLegendList.d.ts +3 -2
  142. package/dist/components/PieChart/PieChartLegendMarker.d.ts +2 -1
  143. package/dist/components/PieChart/types.d.ts +1 -0
  144. package/dist/components/Popover/PopoverContent.d.ts +1 -1
  145. package/dist/components/Popover/stories/StoryComponent.d.ts +1 -1
  146. package/dist/components/Popover/types.d.ts +1 -0
  147. package/dist/components/Progress/types.d.ts +1 -0
  148. package/dist/components/ProgressCircle/ProgressCircleBase.d.ts +3 -2
  149. package/dist/components/ProgressCircle/ProgressCircleInner.d.ts +3 -2
  150. package/dist/components/ProgressCircle/ProgressCircleOuter.d.ts +3 -2
  151. package/dist/components/ProgressCircle/types.d.ts +1 -0
  152. package/dist/components/ProgressInfo/ProgressInfoTotals.d.ts +2 -1
  153. package/dist/components/ProgressLegend/types.d.ts +1 -0
  154. package/dist/components/ProgressLegendItem/types.d.ts +1 -0
  155. package/dist/components/ProgressVertical/types.d.ts +1 -0
  156. package/dist/components/Radio/RadioBase.d.ts +1 -1
  157. package/dist/components/RadioGroup/RadioGroupBase.d.ts +3 -2
  158. package/dist/components/RadioGroup/types.d.ts +1 -0
  159. package/dist/components/SearchBox/SearchBoxInput.d.ts +2 -1
  160. package/dist/components/SearchBox/SearchBoxWrapper.d.ts +3 -2
  161. package/dist/components/SearchBox/stories/StoryComponent.d.ts +1 -1
  162. package/dist/components/Step/Step.d.ts +7 -4
  163. package/dist/components/StepLabel/StepLabel.d.ts +1 -1
  164. package/dist/components/Stepper/types.d.ts +1 -0
  165. package/dist/components/Switch/SwitchBase.d.ts +3 -2
  166. package/dist/components/Switch/SwitchContext.d.ts +2 -1
  167. package/dist/components/Tab/TabBase.d.ts +3 -2
  168. package/dist/components/TabBar/TabBarContext.d.ts +2 -1
  169. package/dist/components/TabBar/stories/helpers.d.ts +9 -4
  170. package/dist/components/TabBar/types.d.ts +1 -0
  171. package/dist/components/Table/Table.d.ts +3 -2
  172. package/dist/components/Table/stories/SortableTable.d.ts +1 -1
  173. package/dist/components/TableBody/TableBody.d.ts +3 -2
  174. package/dist/components/TableCell/TableCell.d.ts +4 -3
  175. package/dist/components/TableFilters/TableFilterTrigger.d.ts +3 -3
  176. package/dist/components/TableFilters/TableFilterTriggerWithNotification.d.ts +2 -2
  177. package/dist/components/TableFilters/TableFiltersAccordionContent.d.ts +6 -1
  178. package/dist/components/TableFilters/TableFiltersButtons.d.ts +2 -2
  179. package/dist/components/TableHead/TableHead.d.ts +3 -2
  180. package/dist/components/TableRow/TableRow.d.ts +3 -2
  181. package/dist/components/Tag/types.d.ts +1 -0
  182. package/dist/components/Textarea/TextareaBase.d.ts +3 -2
  183. package/dist/components/Tooltip/TooltipContentBase.d.ts +3 -2
  184. package/dist/components/Tooltip/types.d.ts +1 -0
  185. package/dist/components/Tooltip/useTooltipContext.d.ts +1 -0
  186. package/dist/components/TooltipContent/TooltipContent.d.ts +1 -0
  187. package/dist/components/TooltipTrigger/TooltipTrigger.d.ts +1 -0
  188. package/dist/components/Typography/Typography.d.ts +1 -0
  189. package/dist/components/Typography/types.d.ts +1 -0
  190. package/dist/components/WithVisibleLG/WithVisibleLG.d.ts +4 -3
  191. package/dist/components/WithVisibleMD/WithVisibleMD.d.ts +2 -1
  192. package/dist/components/WithVisibleSM/WithVisibleSM.d.ts +2 -1
  193. package/dist/components/WithVisibleUpToLG/WithVisibleUpToLG.d.ts +2 -1
  194. package/dist/components/Wrapper/Wrapper.d.ts +6 -5
  195. package/dist/index.js +1 -1
  196. package/dist/index.js.map +1 -1
  197. package/dist/styles/safari-focus-outline.d.ts +1 -0
  198. package/dist/types/emotion.d.ts +1 -0
  199. package/package.json +1 -1
  200. package/src/components/CollapsibleNavBar/stories/CollapsibleNavBar.stories.tsx +47 -25
  201. package/src/components/CollapsibleNavBar/stories/Layout.tsx +1 -1
  202. package/src/components/Filters/Filters.tsx +1 -1
  203. package/src/components/Icon/Icon.tsx +10 -2
  204. package/src/components/Icon/icons/Archive.tsx +9 -2
  205. package/src/components/Icon/icons/ArrowDown.tsx +9 -2
  206. package/src/components/Icon/icons/ArrowUp.tsx +9 -2
  207. package/src/components/Icon/icons/Attention.tsx +9 -2
  208. package/src/components/Icon/icons/BanUser.tsx +9 -2
  209. package/src/components/Icon/icons/Bin.tsx +9 -2
  210. package/src/components/Icon/icons/Calendar.tsx +9 -2
  211. package/src/components/Icon/icons/CarrotDown.tsx +4 -1
  212. package/src/components/Icon/icons/CarrotLeft.tsx +4 -1
  213. package/src/components/Icon/icons/CarrotRight.tsx +4 -1
  214. package/src/components/Icon/icons/CarrotUp.tsx +9 -2
  215. package/src/components/Icon/icons/Change.tsx +9 -2
  216. package/src/components/Icon/icons/Chart.tsx +9 -2
  217. package/src/components/Icon/icons/Check.tsx +9 -2
  218. package/src/components/Icon/icons/CheckCircle.tsx +4 -1
  219. package/src/components/Icon/icons/Circle.tsx +9 -2
  220. package/src/components/Icon/icons/Circular.tsx +9 -2
  221. package/src/components/Icon/icons/Clock.tsx +9 -2
  222. package/src/components/Icon/icons/Cogwheel.tsx +9 -2
  223. package/src/components/Icon/icons/ConfirmEmail.tsx +4 -1
  224. package/src/components/Icon/icons/Copy.tsx +9 -2
  225. package/src/components/Icon/icons/Cross.tsx +9 -2
  226. package/src/components/Icon/icons/Diet.tsx +9 -2
  227. package/src/components/Icon/icons/Edit.tsx +9 -2
  228. package/src/components/Icon/icons/Email.tsx +9 -2
  229. package/src/components/Icon/icons/Filter.tsx +9 -2
  230. package/src/components/Icon/icons/Home.tsx +9 -2
  231. package/src/components/Icon/icons/Import.tsx +9 -2
  232. package/src/components/Icon/icons/Information.tsx +4 -1
  233. package/src/components/Icon/icons/Invisible.tsx +9 -2
  234. package/src/components/Icon/icons/Lock.tsx +9 -2
  235. package/src/components/Icon/icons/LogIn.tsx +9 -2
  236. package/src/components/Icon/icons/LogOut.tsx +9 -2
  237. package/src/components/Icon/icons/Measurements.tsx +4 -1
  238. package/src/components/Icon/icons/Minus.tsx +9 -2
  239. package/src/components/Icon/icons/More.tsx +9 -2
  240. package/src/components/Icon/icons/MoreVertical.tsx +4 -1
  241. package/src/components/Icon/icons/Notification.tsx +4 -1
  242. package/src/components/Icon/icons/Pages.tsx +9 -2
  243. package/src/components/Icon/icons/Plus.tsx +9 -2
  244. package/src/components/Icon/icons/RadioOn.tsx +9 -2
  245. package/src/components/Icon/icons/Robot.tsx +9 -2
  246. package/src/components/Icon/icons/Roles.tsx +9 -2
  247. package/src/components/Icon/icons/Search.tsx +9 -2
  248. package/src/components/Icon/icons/Settings.tsx +9 -2
  249. package/src/components/Icon/icons/Sleep.tsx +9 -2
  250. package/src/components/Icon/icons/Stats.tsx +9 -2
  251. package/src/components/Icon/icons/Trainings.tsx +9 -2
  252. package/src/components/Icon/icons/UnArchive.tsx +9 -2
  253. package/src/components/Icon/icons/Union.tsx +9 -2
  254. package/src/components/Icon/icons/Unlock.tsx +9 -2
  255. package/src/components/Icon/icons/User.tsx +9 -2
  256. package/src/components/Icon/icons/Visible.tsx +9 -2
  257. package/src/components/Icon/icons/Warning.tsx +9 -2
  258. package/src/components/Icon/icons/all.ts +59 -0
  259. package/src/components/Icon/icons/iconsList.tsx +5 -56
  260. package/src/components/Icon/icons/index.tsx +12 -117
  261. package/src/components/Icon/types.ts +1 -0
  262. package/src/components/MultipleDropdownOptions/MultipleDropdownOptions.tsx +1 -1
  263. package/src/components/ResponsiveImage/ResponsiveImage.stories.tsx +6 -4
  264. package/src/components/TableFilters/styles.ts +1 -0
  265. package/src/components/TextField/TextField.stories.tsx +8 -1
  266. package/tsbuildcache +1 -1
@@ -1,6 +1,11 @@
1
1
  import { SVGProps } from '@components/Icon/types';
2
2
 
3
- export const Robot = ({ fill = '#000', size = 50, ...props }: SVGProps) => (
3
+ export const Robot = ({
4
+ fill = '#000',
5
+ size = 50,
6
+ tooltip = 'Robot',
7
+ ...props
8
+ }: SVGProps) => (
4
9
  <svg
5
10
  xmlns="http://www.w3.org/2000/svg"
6
11
  width={`${size}px`}
@@ -8,7 +13,7 @@ export const Robot = ({ fill = '#000', size = 50, ...props }: SVGProps) => (
8
13
  viewBox="0 0 54 50"
9
14
  fill="none"
10
15
  {...props}>
11
- <title>Robot</title>
16
+ <title>{tooltip}</title>
12
17
  <path
13
18
  d="M32.7144 16.6105H32.7143H27.6714V15.0526C27.6714 14.8784 27.5998 14.7121 27.4736 14.59L27.4043 14.6617L27.4736 14.59C27.3474 14.468 27.177 14.4 27 14.4C26.823 14.4 26.6526 14.468 26.5264 14.59C26.4002 14.7121 26.3286 14.8784 26.3286 15.0526V16.6105L21.2857 16.6105L21.2856 16.6105C20.5026 16.6112 19.7513 16.9123 19.1967 17.4487C18.6419 17.9852 18.3293 18.7134 18.3286 19.4736V19.4737L18.3286 29.4211L18.3286 29.4212C18.3293 30.1814 18.6419 30.9096 19.1967 31.4461C19.7513 31.9825 20.5026 32.2836 21.2856 32.2843H21.2857H24.356L26.4422 35.3107L26.5246 35.254L26.4422 35.3107C26.5039 35.4001 26.5872 35.4731 26.6844 35.5234C26.7817 35.5738 26.8901 35.6 27 35.6C27.1099 35.6 27.2183 35.5738 27.3156 35.5234C27.4128 35.4731 27.4961 35.4001 27.5578 35.3107L27.4754 35.254L27.5578 35.3107L29.644 32.2843H32.7143H32.7144C33.4974 32.2836 34.2487 31.9825 34.8033 31.4461C35.3581 30.9096 35.6707 30.1814 35.6714 29.4212V29.4211V19.4737V19.4736C35.6707 18.7134 35.3581 17.9852 34.8033 17.4487C34.2487 16.9123 33.4974 16.6112 32.7144 16.6105ZM28.728 31.2683L27 33.775L25.272 31.2683L25.272 31.2682C25.2102 31.1789 25.127 31.106 25.0298 31.0557C24.9326 31.0054 24.8243 30.9791 24.7144 30.979H24.7143H21.2858C20.8567 30.9785 20.446 30.8135 20.1436 30.521C19.8413 30.2286 19.6719 29.833 19.6714 29.421V27.8632H34.3286V29.421C34.3281 29.833 34.1587 30.2286 33.8564 30.521C33.554 30.8135 33.1433 30.9785 32.7142 30.979H29.2857H29.2856C29.1757 30.9791 29.0674 31.0055 28.9702 31.0558C28.873 31.1061 28.7898 31.1789 28.728 31.2682L28.728 31.2683ZM34.3286 26.5579H19.6714V19.4738C19.6719 19.0618 19.8413 18.6662 20.1436 18.3738C20.446 18.0813 20.8567 17.9163 21.2858 17.9158H32.7142C33.1433 17.9163 33.554 18.0813 33.8564 18.3738C34.1587 18.6662 34.3281 19.0618 34.3286 19.4738V26.5579ZM24.604 23.4604C24.7409 23.2621 24.8143 23.0286 24.8143 22.7895C24.8143 22.4687 24.6825 22.1618 24.4491 21.9361C24.2158 21.7104 23.9 21.5842 23.5714 21.5842C23.3263 21.5842 23.0865 21.6545 22.8822 21.7865C22.6779 21.9185 22.5181 22.1066 22.4236 22.3272C22.3291 22.5478 22.3044 22.7908 22.3526 23.0253C22.4008 23.2597 22.5197 23.4746 22.6938 23.6429C22.8678 23.8112 23.0891 23.9255 23.3296 23.9717C23.57 24.018 23.8193 23.9943 24.046 23.9035C24.2727 23.8126 24.467 23.6586 24.604 23.4604ZM31.4611 23.4604C31.5981 23.2621 31.6714 23.0286 31.6714 22.7895C31.6714 22.4687 31.5396 22.1618 31.3062 21.9361C31.0729 21.7104 30.7571 21.5842 30.4286 21.5842C30.1835 21.5842 29.9436 21.6545 29.7394 21.7865C29.535 21.9185 29.3753 22.1066 29.2808 22.3272C29.1863 22.5478 29.1615 22.7908 29.2097 23.0253C29.2579 23.2597 29.3769 23.4746 29.5509 23.6429C29.725 23.8112 29.9463 23.9255 30.1867 23.9717C30.4272 24.018 30.6764 23.9943 30.9031 23.9035C31.1298 23.8126 31.3241 23.6586 31.4611 23.4604ZM16.2429 25V20.579C16.2429 20.4048 16.1713 20.2384 16.045 20.1163C15.9189 19.9943 15.7484 19.9263 15.5714 19.9263C15.3944 19.9263 15.224 19.9943 15.0978 20.1163C14.9716 20.2384 14.9 20.4048 14.9 20.579V25C14.9 25.1742 14.9716 25.3406 15.0978 25.4627C15.224 25.5847 15.3944 25.6527 15.5714 25.6527C15.7484 25.6527 15.9189 25.5847 16.045 25.4627C16.1713 25.3406 16.2429 25.1742 16.2429 25ZM39.1 25V20.579C39.1 20.4048 39.0284 20.2384 38.9022 20.1163C38.776 19.9943 38.6056 19.9263 38.4286 19.9263C38.2516 19.9263 38.0811 19.9943 37.955 20.1163C37.8287 20.2384 37.7571 20.4048 37.7571 20.579V25C37.7571 25.1742 37.8287 25.3406 37.955 25.4627C38.0811 25.5847 38.2516 25.6527 38.4286 25.6527C38.6056 25.6527 38.776 25.5847 38.9022 25.4627C39.0284 25.3406 39.1 25.1742 39.1 25Z"
14
19
  fill={fill}
@@ -17,3 +22,5 @@ export const Robot = ({ fill = '#000', size = 50, ...props }: SVGProps) => (
17
22
  />
18
23
  </svg>
19
24
  );
25
+
26
+ export const ICON_NAME = 'robot';
@@ -1,6 +1,11 @@
1
1
  import { SVGProps } from '@components/Icon/types';
2
2
 
3
- export const Roles = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
3
+ export const Roles = ({
4
+ fill = '#000',
5
+ size = 24,
6
+ tooltip = 'Roles',
7
+ ...props
8
+ }: SVGProps) => (
4
9
  <svg
5
10
  width={`${size}px`}
6
11
  height={`${size}px`}
@@ -9,7 +14,7 @@ export const Roles = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
9
14
  xmlns="http://www.w3.org/2000/svg"
10
15
  xmlnsXlink="http://www.w3.org/1999/xlink"
11
16
  {...props}>
12
- <title>Roles</title>
17
+ <title>{tooltip}</title>
13
18
  <g id="Contacts">
14
19
  <g id="Vector">
15
20
  <path
@@ -50,3 +55,5 @@ export const Roles = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
50
55
  </g>
51
56
  </svg>
52
57
  );
58
+
59
+ export const ICON_NAME = 'roles';
@@ -1,6 +1,11 @@
1
1
  import { SVGProps } from '@components/Icon/types';
2
2
 
3
- export const Search = ({ fill = '#55575A', size = 24, ...props }: SVGProps) => (
3
+ export const Search = ({
4
+ fill = '#55575A',
5
+ size = 24,
6
+ tooltip = 'Search',
7
+ ...props
8
+ }: SVGProps) => (
4
9
  <svg
5
10
  xmlns="http://www.w3.org/2000/svg"
6
11
  width={`${size}px`}
@@ -8,7 +13,7 @@ export const Search = ({ fill = '#55575A', size = 24, ...props }: SVGProps) => (
8
13
  viewBox="0 0 20 20"
9
14
  fill="none"
10
15
  {...props}>
11
- <title>Search</title>
16
+ <title>{tooltip}</title>
12
17
  <path
13
18
  fillRule="evenodd"
14
19
  clipRule="evenodd"
@@ -17,3 +22,5 @@ export const Search = ({ fill = '#55575A', size = 24, ...props }: SVGProps) => (
17
22
  />
18
23
  </svg>
19
24
  );
25
+
26
+ export const ICON_NAME = 'search';
@@ -1,6 +1,11 @@
1
1
  import { SVGProps } from '@components/Icon/types';
2
2
 
3
- export const Settings = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
3
+ export const Settings = ({
4
+ fill = '#000',
5
+ size = 24,
6
+ tooltip = 'Settings',
7
+ ...props
8
+ }: SVGProps) => (
4
9
  <svg
5
10
  width={`${size}px`}
6
11
  height={`${size}px`}
@@ -8,7 +13,7 @@ export const Settings = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
8
13
  xmlns="http://www.w3.org/2000/svg"
9
14
  xmlnsXlink="http://www.w3.org/1999/xlink"
10
15
  {...props}>
11
- <title>Settings</title>
16
+ <title>{tooltip}</title>
12
17
  <path
13
18
  fillRule="evenodd"
14
19
  clipRule="evenodd"
@@ -23,3 +28,5 @@ export const Settings = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
23
28
  />
24
29
  </svg>
25
30
  );
31
+
32
+ export const ICON_NAME = 'settings';
@@ -1,6 +1,11 @@
1
1
  import { SVGProps } from '@components/Icon/types';
2
2
 
3
- export const Sleep = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
3
+ export const Sleep = ({
4
+ fill = '#000',
5
+ size = 24,
6
+ tooltip = 'Sleep',
7
+ ...props
8
+ }: SVGProps) => (
4
9
  <svg
5
10
  width={`${size}px`}
6
11
  height={`${size}px`}
@@ -8,7 +13,7 @@ export const Sleep = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
8
13
  xmlns="http://www.w3.org/2000/svg"
9
14
  xmlnsXlink="http://www.w3.org/1999/xlink"
10
15
  {...props}>
11
- <title>Sleep</title>
16
+ <title>{tooltip}</title>
12
17
  <path
13
18
  d="M6.00833 2.0001C5.86499 2.002 5.7252 2.04501 5.60557 2.12402C4.00925 3.14394 2.65193 4.502 1.63258 6.0992C1.57541 6.18206 1.53552 6.2756 1.51529 6.37424C1.49506 6.47287 1.4949 6.57457 1.51482 6.67327C1.53474 6.77196 1.57434 6.86563 1.63124 6.94868C1.68814 7.03172 1.76119 7.10245 1.84601 7.15662C1.93084 7.2108 2.0257 7.24732 2.12495 7.264C2.22419 7.28068 2.32577 7.27718 2.42363 7.25371C2.52149 7.23024 2.61363 7.18728 2.69453 7.12739C2.77543 7.06751 2.84343 6.99192 2.89449 6.90516C3.79647 5.49188 4.99859 4.2891 6.41109 3.38663C6.55019 3.30043 6.65725 3.17103 6.71591 3.01821C6.77458 2.86538 6.78161 2.69754 6.73595 2.54034C6.69028 2.38314 6.59443 2.24522 6.46304 2.14766C6.33164 2.05011 6.17194 1.99828 6.00833 2.0001ZM17.9692 2.0001C17.8075 2.00312 17.6512 2.05841 17.5235 2.15772C17.3958 2.25703 17.3037 2.39502 17.2609 2.55107C17.2181 2.70711 17.2269 2.87282 17.286 3.02343C17.3451 3.17404 17.4514 3.30146 17.5889 3.38663C19.0014 4.2891 20.2035 5.49188 21.1055 6.90516C21.1566 6.99192 21.2246 7.06751 21.3055 7.12739C21.3864 7.18727 21.4785 7.23024 21.5764 7.25371C21.6742 7.27718 21.7758 7.28068 21.8751 7.26399C21.9743 7.24731 22.0692 7.2108 22.154 7.15662C22.2388 7.10244 22.3119 7.03172 22.3688 6.94868C22.4257 6.86563 22.4653 6.77196 22.4852 6.67327C22.5051 6.57457 22.5049 6.47287 22.4847 6.37424C22.4645 6.2756 22.4246 6.18206 22.3674 6.0992C21.3481 4.502 19.9907 3.14394 18.3944 2.12402C18.2684 2.04078 18.1202 1.99759 17.9692 2.0001ZM12 3.00512C6.76945 3.00512 2.51319 7.26371 2.51319 12.4971C2.51319 15.3532 3.80753 17.8881 5.80939 19.6298L4.72983 20.71C4.65795 20.779 4.60057 20.8617 4.56104 20.9532C4.5215 21.0448 4.50062 21.1432 4.49961 21.2429C4.49859 21.3426 4.51747 21.4415 4.55514 21.5338C4.5928 21.6261 4.6485 21.71 4.71896 21.7805C4.78942 21.851 4.87323 21.9067 4.96548 21.9444C5.05773 21.9821 5.15658 22.001 5.25622 22C5.35586 21.9989 5.4543 21.9781 5.54576 21.9385C5.63723 21.8989 5.71989 21.8415 5.78891 21.7696L7.01864 20.5392C8.47058 21.4429 10.168 21.9892 12 21.9892C13.832 21.9892 15.5294 21.4429 16.9814 20.5392L18.2111 21.7696C18.2801 21.8415 18.3628 21.8989 18.4542 21.9385C18.5457 21.9781 18.6441 21.9989 18.7438 22C18.8434 22.001 18.9423 21.9821 19.0345 21.9444C19.1268 21.9067 19.2106 21.851 19.281 21.7805C19.3515 21.71 19.4072 21.6261 19.4449 21.5338C19.4825 21.4415 19.5014 21.3426 19.5004 21.2429C19.4994 21.1432 19.4785 21.0448 19.439 20.9532C19.3994 20.8617 19.342 20.779 19.2702 20.71L18.1906 19.6298C20.1925 17.8881 21.4868 15.3532 21.4868 12.4971C21.4868 7.26371 17.2306 3.00512 12 3.00512ZM12 4.50386C16.421 4.50386 19.9889 8.07369 19.9889 12.4971C19.9889 16.9206 16.421 20.4904 12 20.4904C7.57898 20.4904 4.01111 16.9206 4.01111 12.4971C4.01111 8.07369 7.57898 4.50386 12 4.50386ZM10.8 13.3439L10.7992 7.7003C10.7992 7.3137 11.1125 7.00025 11.4991 7.0002C11.8857 7.00014 12.1992 7.31349 12.1992 7.70009L12.1999 12.6035L17.3302 11.3209C17.7053 11.2271 18.0853 11.4552 18.1791 11.8302C18.2729 12.2053 18.0448 12.5853 17.6698 12.6791L11.6698 14.1791C11.2947 14.2729 10.9147 14.0448 10.8209 13.6698C10.8 13.586 10.7951 13.5021 10.8043 13.4211C10.8015 13.3957 10.8001 13.37 10.8 13.3439Z"
14
19
  fill={fill}
@@ -19,3 +24,5 @@ export const Sleep = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
19
24
  />
20
25
  </svg>
21
26
  );
27
+
28
+ export const ICON_NAME = 'sleep';
@@ -1,6 +1,11 @@
1
1
  import { SVGProps } from '@components/Icon/types';
2
2
 
3
- export const Stats = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
3
+ export const Stats = ({
4
+ fill = '#000',
5
+ size = 24,
6
+ tooltip = 'Stats',
7
+ ...props
8
+ }: SVGProps) => (
4
9
  <svg
5
10
  width={`${size}px`}
6
11
  height={`${size}px`}
@@ -8,7 +13,7 @@ export const Stats = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
8
13
  xmlns="http://www.w3.org/2000/svg"
9
14
  xmlnsXlink="http://www.w3.org/1999/xlink"
10
15
  {...props}>
11
- <title>Stats</title>
16
+ <title>{tooltip}</title>
12
17
  <path
13
18
  d="M8.60653 3.62364C7.65543 3.81726 6.74357 4.19357 5.9236 4.73666C4.6787 5.56119 3.7015 6.73312 3.11555 8.10427C2.52961 9.47541 2.36125 10.9842 2.63175 12.4398C2.90226 13.8954 3.59949 15.2324 4.63526 16.2818C5.67104 17.3313 6.99885 18.0459 8.45078 18.3355C9.90272 18.625 11.4136 18.4764 12.7923 17.9085C14.1709 17.3405 15.3556 16.3787 16.1963 15.1447C16.7501 14.332 17.1383 13.4251 17.3444 12.4766L14.2451 12.4766C14.116 12.8294 13.943 13.1672 13.7288 13.4816C13.2234 14.2233 12.5114 14.8014 11.6827 15.1427C10.8541 15.4841 9.94598 15.5734 9.0733 15.3994C8.20061 15.2253 7.40253 14.7958 6.77997 14.165C6.15741 13.5343 5.73834 12.7306 5.57575 11.8557C5.41317 10.9809 5.51436 10.074 5.86654 9.24988C6.21873 8.42575 6.80608 7.72135 7.55433 7.22577C7.87147 7.01572 8.21151 6.84716 8.56596 6.72268L8.60653 3.62364ZM9.12977 2.0268C9.67978 1.96553 10.1232 2.41922 10.116 2.97178L10.0637 6.96592C10.0564 7.51848 9.59085 7.95088 9.06614 8.13122C8.82267 8.2149 8.58921 8.32964 8.37184 8.47361C7.87257 8.80429 7.48066 9.27429 7.24567 9.82419C7.01067 10.3741 6.94315 10.9792 7.05164 11.563C7.16013 12.1467 7.43975 12.683 7.85515 13.1038C8.27055 13.5247 8.80308 13.8113 9.38538 13.9274C9.96768 14.0436 10.5736 13.984 11.1265 13.7562C11.6795 13.5284 12.1546 13.1427 12.4917 12.6478C12.6385 12.4323 12.7563 12.2004 12.8432 11.958C13.0304 11.4357 13.4688 10.9759 14.0214 10.9759L18.0159 10.9759C18.5685 10.9759 19.0164 11.4252 18.9479 11.9743C18.7699 13.402 18.2526 14.776 17.4334 15.9785C16.4245 17.4593 15.0029 18.6135 13.3485 19.295C11.694 19.9765 9.88102 20.1548 8.13871 19.8074C6.39639 19.46 4.80302 18.6024 3.56008 17.343C2.31715 16.0837 1.48047 14.4793 1.15587 12.7326C0.83126 10.9858 1.0333 9.17532 1.73643 7.52995C2.43956 5.88458 3.61221 4.47826 5.10608 3.48882C6.31919 2.68535 7.69987 2.18609 9.12977 2.0268Z"
14
19
  fill={fill}
@@ -19,3 +24,5 @@ export const Stats = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
19
24
  />
20
25
  </svg>
21
26
  );
27
+
28
+ export const ICON_NAME = 'stats';
@@ -1,6 +1,11 @@
1
1
  import { SVGProps } from '@components/Icon/types';
2
2
 
3
- export const Trainings = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
3
+ export const Trainings = ({
4
+ fill = '#000',
5
+ size = 24,
6
+ tooltip = 'Trainings',
7
+ ...props
8
+ }: SVGProps) => (
4
9
  <svg
5
10
  width={`${size}px`}
6
11
  height={`${size}px`}
@@ -8,10 +13,12 @@ export const Trainings = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
8
13
  xmlns="http://www.w3.org/2000/svg"
9
14
  xmlnsXlink="http://www.w3.org/1999/xlink"
10
15
  {...props}>
11
- <title>Trainings</title>
16
+ <title>{tooltip}</title>
12
17
  <path
13
18
  d="M6.75 3.75C5.51634 3.75 4.5 4.76634 4.5 6V6.89062C4.26408 6.80564 4.01367 6.75 3.75 6.75C2.51634 6.75 1.5 7.76634 1.5 9V11.25H0V12.75H1.5V15C1.5 16.2329 2.51544 17.25 3.75 17.25C4.01342 17.25 4.26327 17.1968 4.5 17.1123V18C4.5 19.2329 5.51544 20.25 6.75 20.25C7.3669 20.25 7.93454 19.9971 8.34082 19.5908C8.7471 19.1845 9 18.6169 9 18V12.75H15V18C15 18.6169 15.2529 19.1845 15.6592 19.5908C16.0655 19.9971 16.6331 20.25 17.25 20.25C18.4846 20.25 19.5 19.2329 19.5 18V17.1123C19.7367 17.1968 19.9866 17.25 20.25 17.25C21.4846 17.25 22.5 16.2329 22.5 15V12.75H24V11.25H22.5V9C22.5 7.76634 21.4837 6.75 20.25 6.75C19.9863 6.75 19.7359 6.80564 19.5 6.89062V6C19.5 4.76634 18.4837 3.75 17.25 3.75C16.0154 3.75 15 4.76711 15 6V11.25H9V6C9 4.76711 7.98456 3.75 6.75 3.75ZM6.75 5.25C7.17444 5.25 7.5 5.57689 7.5 6V18C7.5 18.2111 7.41699 18.3936 7.28027 18.5303C7.14355 18.667 6.9611 18.75 6.75 18.75C6.32556 18.75 6 18.4231 6 18V6C6 5.57466 6.32466 5.25 6.75 5.25ZM17.25 5.25C17.6753 5.25 18 5.57466 18 6V9V11.4785V15V18C18 18.4231 17.6744 18.75 17.25 18.75C17.0389 18.75 16.8564 18.667 16.7197 18.5303C16.583 18.3936 16.5 18.2111 16.5 18V6C16.5 5.57689 16.8256 5.25 17.25 5.25ZM3.75 8.25C4.17444 8.25 4.5 8.57689 4.5 9V11.4785V15C4.5 15.2111 4.41699 15.3936 4.28027 15.5303C4.14355 15.667 3.9611 15.75 3.75 15.75C3.32556 15.75 3 15.4231 3 15V9C3 8.57466 3.32466 8.25 3.75 8.25ZM20.25 8.25C20.6753 8.25 21 8.57466 21 9V15C21 15.4231 20.6744 15.75 20.25 15.75C20.0389 15.75 19.8564 15.667 19.7197 15.5303C19.583 15.3936 19.5 15.2111 19.5 15V9C19.5 8.57689 19.8256 8.25 20.25 8.25Z"
14
19
  fill={fill}
15
20
  />
16
21
  </svg>
17
22
  );
23
+
24
+ export const ICON_NAME = 'trainings';
@@ -1,6 +1,11 @@
1
1
  import { SVGProps } from '@components/Icon/types';
2
2
 
3
- export const UnArchive = ({ fill = '#000', size = 20, ...props }: SVGProps) => (
3
+ export const UnArchive = ({
4
+ fill = '#000',
5
+ size = 20,
6
+ tooltip = 'Unarchive',
7
+ ...props
8
+ }: SVGProps) => (
4
9
  <svg
5
10
  xmlns="http://www.w3.org/2000/svg"
6
11
  width={`${size}px`}
@@ -8,7 +13,7 @@ export const UnArchive = ({ fill = '#000', size = 20, ...props }: SVGProps) => (
8
13
  viewBox="0 0 21 20"
9
14
  fill="none"
10
15
  {...props}>
11
- <title>Unarchive</title>
16
+ <title>{tooltip}</title>
12
17
  <g clipPath="url(#clip0_1141_12546)">
13
18
  <path
14
19
  d="M16.8271 18.9582H3.49382C2.88616 18.9577 2.30352 18.7161 1.87385 18.2865C1.44417 17.8568 1.20259 17.2742 1.20215 16.6665V6.6665C1.20215 6.50074 1.268 6.34177 1.38521 6.22456C1.50242 6.10735 1.66139 6.0415 1.82715 6.0415H18.4938C18.6596 6.0415 18.8185 6.10735 18.9358 6.22456C19.053 6.34177 19.1188 6.50074 19.1188 6.6665V16.6665C19.1184 17.2742 18.8768 17.8568 18.4471 18.2865C18.0174 18.7161 17.4348 18.9577 16.8271 18.9582ZM2.45215 7.2915V16.6665C2.45259 16.9426 2.56248 17.2073 2.75773 17.4026C2.95299 17.5978 3.21768 17.7077 3.49382 17.7082H16.8271C17.1033 17.7077 17.368 17.5978 17.5632 17.4026C17.7585 17.2073 17.8684 16.9426 17.8688 16.6665V7.2915H2.45215Z"
@@ -43,3 +48,5 @@ export const UnArchive = ({ fill = '#000', size = 20, ...props }: SVGProps) => (
43
48
  </defs>
44
49
  </svg>
45
50
  );
51
+
52
+ export const ICON_NAME = 'unarchive';
@@ -1,6 +1,11 @@
1
1
  import { SVGProps } from '@components/Icon/types';
2
2
 
3
- export const Union = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
3
+ export const Union = ({
4
+ fill = '#000',
5
+ size = 24,
6
+ tooltip = 'Union',
7
+ ...props
8
+ }: SVGProps) => (
4
9
  <svg
5
10
  width={`${size}px`}
6
11
  height={`${size}px`}
@@ -9,7 +14,7 @@ export const Union = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
9
14
  xmlns="http://www.w3.org/2000/svg"
10
15
  xmlnsXlink="http://www.w3.org/1999/xlink"
11
16
  {...props}>
12
- <title>Union</title>
17
+ <title>{tooltip}</title>
13
18
  <path
14
19
  fillRule="evenodd"
15
20
  clipRule="evenodd"
@@ -18,3 +23,5 @@ export const Union = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
18
23
  />
19
24
  </svg>
20
25
  );
26
+
27
+ export const ICON_NAME = 'union';
@@ -1,6 +1,11 @@
1
1
  import { SVGProps } from '@components/Icon/types';
2
2
 
3
- export const Unlock = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
3
+ export const Unlock = ({
4
+ fill = '#000',
5
+ size = 24,
6
+ tooltip = 'Unlock',
7
+ ...props
8
+ }: SVGProps) => (
4
9
  <svg
5
10
  xmlns="http://www.w3.org/2000/svg"
6
11
  width={`${size}px`}
@@ -8,7 +13,7 @@ export const Unlock = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
8
13
  viewBox="0 0 15 15"
9
14
  fill="none"
10
15
  {...props}>
11
- <title>Unlock</title>
16
+ <title>{tooltip}</title>
12
17
  <path
13
18
  d="M6.65912 9.39867C6.65912 8.92244 7.02368 8.55788 7.49991 8.55788C7.97614 8.55788 8.3407 8.92244 8.3407 9.39867C8.3407 9.65047 8.22903 9.87161 8.06044 10.0117V10.8C8.06044 11.1087 7.80864 11.3605 7.49991 11.3605C7.19118 11.3605 6.93939 11.1087 6.93939 10.8V10.0117C6.77079 9.87161 6.65912 9.65047 6.65912 9.39867Z"
14
19
  fill={fill}
@@ -21,3 +26,5 @@ export const Unlock = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
21
26
  />
22
27
  </svg>
23
28
  );
29
+
30
+ export const ICON_NAME = 'unlock';
@@ -1,6 +1,11 @@
1
1
  import { SVGProps } from '@components/Icon/types';
2
2
 
3
- export const User = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
3
+ export const User = ({
4
+ fill = '#000',
5
+ size = 24,
6
+ tooltip = 'User',
7
+ ...props
8
+ }: SVGProps) => (
4
9
  <svg
5
10
  width={`${size}px`}
6
11
  height={`${size}px`}
@@ -9,7 +14,7 @@ export const User = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
9
14
  xmlns="http://www.w3.org/2000/svg"
10
15
  xmlnsXlink="http://www.w3.org/1999/xlink"
11
16
  {...props}>
12
- <title>User</title>
17
+ <title>{tooltip}</title>
13
18
  <path
14
19
  d="M12.1202 12.78C12.0502 12.77 11.9602 12.77 11.8802 12.78C10.1202 12.72 8.72021 11.28 8.72021 9.50998C8.72021 7.69998 10.1802 6.22998 12.0002 6.22998C13.8102 6.22998 15.2802 7.69998 15.2802 9.50998C15.2702 11.28 13.8802 12.72 12.1202 12.78Z"
15
20
  stroke={fill}
@@ -33,3 +38,5 @@ export const User = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
33
38
  />
34
39
  </svg>
35
40
  );
41
+
42
+ export const ICON_NAME = 'user';
@@ -1,6 +1,11 @@
1
1
  import { SVGProps } from '@components/Icon/types';
2
2
 
3
- export const Visible = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
3
+ export const Visible = ({
4
+ fill = '#000',
5
+ size = 24,
6
+ tooltip = 'Visible',
7
+ ...props
8
+ }: SVGProps) => (
4
9
  <svg
5
10
  width={`${size}px`}
6
11
  height={`${size}px`}
@@ -9,7 +14,7 @@ export const Visible = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
9
14
  xmlns="http://www.w3.org/2000/svg"
10
15
  xmlnsXlink="http://www.w3.org/1999/xlink"
11
16
  {...props}>
12
- <title>Visible</title>
17
+ <title>{tooltip}</title>
13
18
  <path
14
19
  d="M15.5799 11.9999C15.5799 13.9799 13.9799 15.5799 11.9999 15.5799C10.0199 15.5799 8.41992 13.9799 8.41992 11.9999C8.41992 10.0199 10.0199 8.41992 11.9999 8.41992C13.9799 8.41992 15.5799 10.0199 15.5799 11.9999Z"
15
20
  stroke={fill}
@@ -26,3 +31,5 @@ export const Visible = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
26
31
  />
27
32
  </svg>
28
33
  );
34
+
35
+ export const ICON_NAME = 'visible';
@@ -1,6 +1,11 @@
1
1
  import { SVGProps } from '@components/Icon/types';
2
2
 
3
- export const Warning = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
3
+ export const Warning = ({
4
+ fill = '#000',
5
+ size = 24,
6
+ tooltip = 'Warning',
7
+ ...props
8
+ }: SVGProps) => (
4
9
  <svg
5
10
  width={`${size}px`}
6
11
  height={`${size}px`}
@@ -9,7 +14,7 @@ export const Warning = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
9
14
  xmlns="http://www.w3.org/2000/svg"
10
15
  xmlnsXlink="http://www.w3.org/1999/xlink"
11
16
  {...props}>
12
- <title>Warning</title>
17
+ <title>{tooltip}</title>
13
18
  <path
14
19
  d="M9.65357 1.32393C9.80753 1.05726 10.1924 1.05726 10.3464 1.32393L18.5118 15.4668C18.6657 15.7334 18.4733 16.0668 18.1654 16.0668H1.8346C1.52668 16.0668 1.33423 15.7334 1.48819 15.4668L9.65357 1.32393Z"
15
20
  stroke={fill}
@@ -21,3 +26,5 @@ export const Warning = ({ fill = '#000', size = 24, ...props }: SVGProps) => (
21
26
  />
22
27
  </svg>
23
28
  );
29
+
30
+ export const ICON_NAME = 'warning';
@@ -0,0 +1,59 @@
1
+ export * as Calendar from './Calendar';
2
+ export * as Diet from './Diet';
3
+ export * as Home from './Home';
4
+ export * as Measurements from './Measurements';
5
+ export * as Settings from './Settings';
6
+ export * as Sleep from './Sleep';
7
+ export * as Stats from './Stats';
8
+ export * as Trainings from './Trainings';
9
+
10
+ export * as Plus from './Plus';
11
+ export * as Minus from './Minus';
12
+ export * as Cross from './Cross';
13
+ export * as Check from './Check';
14
+ export * as CheckCircle from './CheckCircle';
15
+ export * as More from './More';
16
+ export * as MoreVertical from './MoreVertical';
17
+ export * as Notification from './Notification';
18
+ export * as User from './User';
19
+ export * as Union from './Union';
20
+ export * as Visible from './Visible';
21
+ export * as Invisible from './Invisible';
22
+ export * as LogIn from './LogIn';
23
+ export * as LogOut from './LogOut';
24
+ export * as Email from './Email';
25
+ export * as Lock from './Lock';
26
+ export * as Information from './Information';
27
+ export * as Warning from './Warning';
28
+ export * as Attention from './Attention';
29
+
30
+ export * as CarrotDown from './CarrotDown';
31
+ export * as CarrotUp from './CarrotUp';
32
+ export * as CarrotLeft from './CarrotLeft';
33
+ export * as CarrotRight from './CarrotRight';
34
+
35
+ export * as RadioOn from './RadioOn';
36
+ export * as Circle from './Circle';
37
+
38
+ export * as ArrowUp from './ArrowUp';
39
+ export * as ArrowDown from './ArrowDown';
40
+
41
+ export * as Filter from './Filter';
42
+ export * as Search from './Search';
43
+ export * as Archive from './Archive';
44
+ export * as UnArchive from './UnArchive';
45
+ export * as Bin from './Bin';
46
+ export * as Change from './Change';
47
+ export * as Copy from './Copy';
48
+ export * as Robot from './Robot';
49
+ export * as Chart from './Chart';
50
+ export * as Clock from './Clock';
51
+ export * as Cogwheel from './Cogwheel';
52
+ export * as Circular from './Circular';
53
+ export * as BanUser from './BanUser';
54
+ export * as ConfirmEmail from './ConfirmEmail';
55
+ export * as Unlock from './Unlock';
56
+ export * as Edit from './Edit';
57
+ export * as Import from './Import';
58
+ export * as Pages from './Pages';
59
+ export * as Roles from './Roles';
@@ -7,59 +7,8 @@
7
7
  //
8
8
  // Make sure the order in this array corresponds to the one in the
9
9
  // ./index.tsx
10
- export const iconsList = [
11
- 'diet',
12
- 'calendar',
13
- 'home',
14
- 'stats',
15
- 'sleep',
16
- 'trainings',
17
- 'measurements',
18
- 'settings',
19
- 'plus',
20
- 'minus',
21
- 'more',
22
- 'more-vertical',
23
- 'check',
24
- 'check-circle',
25
- 'cross',
26
- 'user',
27
- 'union',
28
- 'notification',
29
- 'information',
30
- 'warning',
31
- 'attention',
32
- 'visible',
33
- 'invisible',
34
- 'log-out',
35
- 'log-in',
36
- 'email',
37
- 'lock',
38
- 'carrot-down',
39
- 'carrot-up',
40
- 'carrot-left',
41
- 'carrot-right',
42
- 'radio-on',
43
- 'circle',
44
- 'arrow-up',
45
- 'arrow-down',
46
- 'filter',
47
- 'search',
48
- 'archive',
49
- 'bin',
50
- 'change',
51
- 'copy',
52
- 'robot',
53
- 'chart',
54
- 'clock',
55
- 'unarchive',
56
- 'cogwheel',
57
- 'circular',
58
- 'ban-user',
59
- 'confirm-email',
60
- 'unlock',
61
- 'edit',
62
- 'import',
63
- 'pages',
64
- 'roles',
65
- ] as const;
10
+ import * as Icons from './all';
11
+
12
+ export const iconsList = (Object.keys(Icons) as Array<keyof typeof Icons>).map(
13
+ (keyName) => Icons[keyName].ICON_NAME,
14
+ );
@@ -1,122 +1,17 @@
1
- import { IconProps, MapIconsType } from '../types';
2
-
3
- import { Calendar } from './Calendar';
4
- import { Diet } from './Diet';
5
- import { Home } from './Home';
6
- import { Measurements } from './Measurements';
7
- import { Settings } from './Settings';
8
- import { Sleep } from './Sleep';
9
- import { Stats } from './Stats';
10
- import { Trainings } from './Trainings';
11
-
12
- import { Plus } from './Plus';
13
- import { Minus } from './Minus';
14
- import { Cross } from './Cross';
15
- import { Check } from './Check';
16
- import { CheckCircle } from './CheckCircle';
17
- import { More } from './More';
18
- import { MoreVertical } from './MoreVertical';
19
- import { Notification } from './Notification';
20
- import { User } from './User';
21
- import { Union } from './Union';
22
- import { Visible } from './Visible';
23
- import { Invisible } from './Invisible';
24
- import { LogIn } from './LogIn';
25
- import { LogOut } from './LogOut';
26
- import { Email } from './Email';
27
- import { Lock } from './Lock';
28
- import { Information } from './Information';
29
- import { Warning } from './Warning';
30
- import { Attention } from './Attention';
31
-
32
- import { CarrotDown } from './CarrotDown';
33
- import { CarrotUp } from './CarrotUp';
34
- import { CarrotLeft } from './CarrotLeft';
35
- import { CarrotRight } from './CarrotRight';
36
-
37
- import { RadioOn } from './RadioOn';
38
- import { Circle } from './Circle';
39
-
40
- import { ArrowUp } from './ArrowUp';
41
- import { ArrowDown } from './ArrowDown';
42
-
1
+ import { path } from '@ssa-ui-kit/utils';
2
+ import { IconProps, MapIconsType, SVGProps } from '../types';
3
+ import * as Icons from './all';
43
4
  import { iconsList } from './iconsList';
44
- import { Filter } from './Filter';
45
- import { Search } from './Search';
46
- import { Archive } from './Archive';
47
- import { UnArchive } from './UnArchive';
48
- import { Bin } from './Bin';
49
- import { Change } from './Change';
50
- import { Copy } from './Copy';
51
- import { Robot } from './Robot';
52
- import { Chart } from './Chart';
53
- import { Clock } from './Clock';
54
- import { Cogwheel } from './Cogwheel';
55
- import { Circular } from './Circular';
56
- import { BanUser } from './BanUser';
57
- import { ConfirmEmail } from './ConfirmEmail';
58
- import { Unlock } from './Unlock';
59
- import { Edit } from './Edit';
60
- import { Import } from './Import';
61
- import { Pages } from './Pages';
62
- import { Roles } from './Roles';
63
5
 
64
- const componentsList = [
65
- Diet,
66
- Calendar,
67
- Home,
68
- Stats,
69
- Sleep,
70
- Trainings,
71
- Measurements,
72
- Settings,
73
- Plus,
74
- Minus,
75
- More,
76
- MoreVertical,
77
- Check,
78
- CheckCircle,
79
- Cross,
80
- User,
81
- Union,
82
- Notification,
83
- Information,
84
- Warning,
85
- Attention,
86
- Visible,
87
- Invisible,
88
- LogOut,
89
- LogIn,
90
- Email,
91
- Lock,
92
- CarrotDown,
93
- CarrotUp,
94
- CarrotLeft,
95
- CarrotRight,
96
- RadioOn,
97
- Circle,
98
- ArrowUp,
99
- ArrowDown,
100
- Filter,
101
- Search,
102
- Archive,
103
- Bin,
104
- Change,
105
- Copy,
106
- Robot,
107
- Chart,
108
- Clock,
109
- UnArchive,
110
- Cogwheel,
111
- Circular,
112
- BanUser,
113
- ConfirmEmail,
114
- Unlock,
115
- Edit,
116
- Import,
117
- Pages,
118
- Roles,
119
- ];
6
+ type IconResultType = ({
7
+ fill,
8
+ size,
9
+ ...props
10
+ }: SVGProps) => React.ReactElement;
11
+
12
+ const componentsList = (Object.keys(Icons) as Array<keyof typeof Icons>).map(
13
+ (keyName) => path<typeof Icons, IconResultType>([keyName, keyName])(Icons),
14
+ ) as unknown as Array<IconResultType>;
120
15
 
121
16
  const iconsMap: MapIconsType = iconsList.reduce((res, name, index) => {
122
17
  res[name] = componentsList[index];
@@ -3,6 +3,7 @@ import { iconsList } from './icons/iconsList';
3
3
 
4
4
  export interface SVGProps extends React.SVGProps<SVGSVGElement> {
5
5
  size?: number;
6
+ tooltip?: string;
6
7
  }
7
8
 
8
9
  export interface IconProps extends Omit<SVGProps, 'fill'> {
@@ -23,7 +23,7 @@ const DropdownOptionsBase = styled.ul<{ tabindex?: string }>`
23
23
  overflow-x: hidden;
24
24
  overflow-y: auto;
25
25
 
26
- z-index: 2;
26
+ z-index: 1;
27
27
 
28
28
  filter: ${({ theme }) =>
29
29
  `drop-shadow(-4px 4px 14px ${theme.colors.greyDarker14})`};