@steroidsjs/bootstrap 3.0.0-beta.9 → 3.0.0-beta.91

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 (362) hide show
  1. package/README.md +1 -2
  2. package/content/Accordion/AccordionItemView.d.ts +2 -0
  3. package/content/{Collapse/CollapseItemView.js → Accordion/AccordionItemView.js} +47 -22
  4. package/content/Accordion/AccordionItemView.scss +262 -0
  5. package/content/Accordion/AccordionView.d.ts +2 -0
  6. package/content/{Collapse/CollapseView.js → Accordion/AccordionView.js} +3 -3
  7. package/content/Accordion/AccordionView.scss +28 -0
  8. package/content/Alert/AlertView.js +3 -2
  9. package/content/Alert/AlertView.scss +72 -24
  10. package/content/Avatar/AvatarView.js +2 -3
  11. package/content/Avatar/AvatarView.scss +43 -48
  12. package/content/Badge/BadgeView.d.ts +0 -1
  13. package/content/Badge/BadgeView.js +8 -7
  14. package/content/Badge/BadgeView.scss +141 -0
  15. package/content/Calendar/CalendarView.js +1 -1
  16. package/content/Calendar/CalendarView.scss +248 -175
  17. package/content/Calendar/CaptionElement.js +23 -15
  18. package/content/Calendar/CaptionElement.scss +167 -106
  19. package/content/Card/CardView.js +37 -14
  20. package/content/Card/CardView.scss +139 -108
  21. package/content/CopyToClipboard/CopyToClipboardView.d.ts +3 -0
  22. package/content/CopyToClipboard/CopyToClipboardView.js +19 -0
  23. package/content/CopyToClipboard/CopyToClipboardView.scss +41 -0
  24. package/content/Detail/DetailView.scss +79 -57
  25. package/content/DropDown/DropDownView.d.ts +0 -1
  26. package/content/DropDown/DropDownView.js +7 -4
  27. package/content/DropDown/DropDownView.scss +208 -27
  28. package/content/Icon/IconView.d.ts +1 -2
  29. package/content/Icon/IconView.js +2 -2
  30. package/content/Icon/IconView.scss +1 -23
  31. package/content/Menu/MenuItemView.d.ts +2 -0
  32. package/content/Menu/MenuItemView.js +15 -0
  33. package/content/Menu/MenuItemView.scss +67 -0
  34. package/content/Menu/MenuView.d.ts +2 -0
  35. package/content/Menu/MenuView.js +33 -0
  36. package/content/Menu/MenuView.scss +46 -0
  37. package/content/Slider/SliderView.d.ts +2 -0
  38. package/content/Slider/SliderView.js +18 -0
  39. package/content/Slider/SliderView.scss +5 -0
  40. package/form/AutoCompleteField/AutoCompleteFieldView.d.ts +1 -3
  41. package/form/AutoCompleteField/AutoCompleteFieldView.js +62 -9
  42. package/form/AutoCompleteField/AutoCompleteFieldView.scss +199 -142
  43. package/form/Button/ButtonView.d.ts +1 -2
  44. package/form/Button/ButtonView.js +13 -9
  45. package/form/Button/ButtonView.scss +176 -68
  46. package/form/CheckboxField/CheckboxFieldView.d.ts +1 -2
  47. package/form/CheckboxField/CheckboxFieldView.js +6 -4
  48. package/form/CheckboxField/CheckboxFieldView.scss +198 -37
  49. package/form/CheckboxListField/CheckboxListFieldView.d.ts +1 -2
  50. package/form/CheckboxListField/CheckboxListFieldView.js +18 -15
  51. package/form/CheckboxListField/CheckboxListFieldView.scss +7 -41
  52. package/form/DateField/DateFieldView.js +7 -6
  53. package/form/DateField/DateFieldView.scss +15 -70
  54. package/form/DateRangeField/DateRangeFieldView.js +10 -13
  55. package/form/DateRangeField/DateRangeFieldView.scss +42 -73
  56. package/form/DateTimeField/DateTimeFieldView.d.ts +1 -2
  57. package/form/DateTimeField/DateTimeFieldView.js +6 -6
  58. package/form/DateTimeField/DateTimeFieldView.scss +13 -107
  59. package/form/DateTimeRangeField/DateTimeRangeFieldView.js +10 -8
  60. package/form/DateTimeRangeField/DateTimeRangeFieldView.scss +32 -87
  61. package/form/DropDownField/DropDownFieldView.js +35 -47
  62. package/form/DropDownField/DropDownFieldView.scss +382 -181
  63. package/form/DropDownField/utils.d.ts +2 -0
  64. package/form/DropDownField/utils.js +15 -0
  65. package/form/DropDownFieldItem/DropDownFieldItemView.d.ts +2 -0
  66. package/form/DropDownFieldItem/DropDownFieldItemView.js +81 -0
  67. package/form/DropDownFieldItem/DropDownFieldItemView.scss +220 -0
  68. package/form/FieldLayout/FieldLayoutView.d.ts +1 -2
  69. package/form/FieldLayout/FieldLayoutView.js +13 -9
  70. package/form/FieldLayout/FieldLayoutView.scss +116 -19
  71. package/form/FieldList/FieldListItemView.js +6 -4
  72. package/form/FieldList/FieldListItemView.scss +18 -38
  73. package/form/FieldList/FieldListView.js +9 -8
  74. package/form/FieldList/FieldListView.scss +75 -24
  75. package/form/FieldSet/FieldSetView.js +4 -2
  76. package/form/FieldSet/FieldSetView.scss +42 -0
  77. package/form/FileField/FileFieldItemView.d.ts +1 -2
  78. package/form/FileField/FileFieldItemView.js +31 -6
  79. package/form/FileField/FileFieldItemView.scss +259 -14
  80. package/form/FileField/FileFieldView.d.ts +1 -2
  81. package/form/FileField/FileFieldView.js +6 -8
  82. package/form/FileField/FileFieldView.scss +45 -13
  83. package/form/Form/FormView.js +1 -4
  84. package/form/Form/FormView.scss +1 -14
  85. package/form/HtmlField/HtmlFieldView.d.ts +1 -2
  86. package/form/HtmlField/HtmlFieldView.scss +6 -3
  87. package/form/ImageField/ImageFieldView.js +15 -3
  88. package/form/ImageField/ImageFieldView.scss +7 -24
  89. package/form/InputField/InputFieldView.d.ts +1 -2
  90. package/form/InputField/InputFieldView.js +33 -14
  91. package/form/InputField/InputFieldView.scss +267 -99
  92. package/form/NumberField/NumberFieldView.d.ts +1 -2
  93. package/form/NumberField/NumberFieldView.js +19 -13
  94. package/form/NumberField/NumberFieldView.scss +197 -89
  95. package/form/PasswordField/PasswordFieldView.d.ts +1 -2
  96. package/form/PasswordField/PasswordFieldView.js +11 -9
  97. package/form/PasswordField/PasswordFieldView.scss +238 -63
  98. package/form/RadioField/RadioFieldView.d.ts +2 -0
  99. package/form/RadioField/RadioFieldView.js +57 -0
  100. package/form/RadioField/RadioFieldView.scss +228 -0
  101. package/form/RadioListField/RadioListFieldView.d.ts +1 -2
  102. package/form/RadioListField/RadioListFieldView.js +20 -16
  103. package/form/RadioListField/RadioListFieldView.scss +11 -1
  104. package/form/RateField/RateFieldView.js +17 -10
  105. package/form/RateField/RateFieldView.scss +118 -40
  106. package/form/ReCaptchaField/ReCaptchaFieldView.d.ts +1 -2
  107. package/form/ReCaptchaField/ReCaptchaFieldView.js +18 -9
  108. package/form/ReCaptchaField/ReCaptchaFieldView.scss +1 -5
  109. package/form/SliderField/SliderFieldView.d.ts +1 -2
  110. package/form/SliderField/SliderFieldView.js +1 -1
  111. package/form/SliderField/SliderFieldView.scss +338 -299
  112. package/form/SwitcherField/SwitcherFieldView.d.ts +1 -2
  113. package/form/SwitcherField/SwitcherFieldView.js +12 -7
  114. package/form/SwitcherField/SwitcherFieldView.scss +192 -1
  115. package/form/TextField/TextFieldView.d.ts +1 -2
  116. package/form/TextField/TextFieldView.js +10 -2
  117. package/form/TextField/TextFieldView.scss +147 -2
  118. package/form/TimeField/TimeFieldView.d.ts +1 -2
  119. package/form/TimeField/TimeFieldView.js +16 -14
  120. package/form/TimeField/TimeFieldView.scss +22 -68
  121. package/form/TimeField/TimePanelView.scss +65 -68
  122. package/form/TimeRangeField/TimeRangeFieldView.d.ts +2 -0
  123. package/form/TimeRangeField/TimeRangeFieldView.js +67 -0
  124. package/form/TimeRangeField/TimeRangeFieldView.scss +81 -0
  125. package/icons/index.d.ts +2 -0
  126. package/icons/index.js +110 -0
  127. package/icons/svgs/add.svg +4 -0
  128. package/icons/svgs/add_square.svg +5 -0
  129. package/icons/svgs/arrow_down_18x18.svg +4 -0
  130. package/icons/svgs/arrow_down_24x24.svg +4 -0
  131. package/icons/svgs/arrow_drop_down_10x10.svg +3 -0
  132. package/icons/svgs/arrow_left_18x18.svg +4 -0
  133. package/icons/svgs/arrow_left_24x24.svg +4 -0
  134. package/icons/svgs/arrow_right_18x18.svg +4 -0
  135. package/icons/svgs/arrow_right_24x24.svg +5 -0
  136. package/icons/svgs/arrow_up_18x18.svg +4 -0
  137. package/icons/svgs/arrow_up_24x24.svg +4 -0
  138. package/icons/svgs/blank.svg +4 -0
  139. package/icons/svgs/burger.svg +5 -0
  140. package/icons/svgs/calendar_check.svg +5 -0
  141. package/icons/svgs/calendar_range.svg +8 -0
  142. package/icons/svgs/cancel_ellips.svg +4 -0
  143. package/icons/svgs/chart.svg +6 -0
  144. package/icons/svgs/checkmark_12x12.svg +4 -0
  145. package/icons/svgs/checkmark_8x8.svg +4 -0
  146. package/icons/svgs/circle_cross_12x12.svg +4 -0
  147. package/icons/svgs/circle_cross_16x16.svg +4 -0
  148. package/icons/svgs/circle_cross_18x18.svg +4 -0
  149. package/icons/svgs/clip.svg +3 -0
  150. package/icons/svgs/copy.svg +5 -0
  151. package/icons/svgs/cross_12x12.svg +4 -0
  152. package/icons/svgs/cross_4x4.svg +3 -0
  153. package/icons/svgs/cross_8x8.svg +4 -0
  154. package/icons/svgs/cut.svg +3 -0
  155. package/icons/svgs/date_range.svg +8 -0
  156. package/icons/svgs/default_16x16.svg +4 -0
  157. package/icons/svgs/default_24x24.svg +11 -0
  158. package/icons/svgs/double_arrow_down.svg +5 -0
  159. package/icons/svgs/double_arrow_left.svg +5 -0
  160. package/icons/svgs/double_arrow_right.svg +5 -0
  161. package/icons/svgs/double_arrow_up.svg +5 -0
  162. package/icons/svgs/doughnut_chart.svg +5 -0
  163. package/icons/svgs/edit.svg +4 -0
  164. package/icons/svgs/error_16x16.svg +5 -0
  165. package/icons/svgs/error_24x24.svg +12 -0
  166. package/icons/svgs/expand_down.svg +3 -0
  167. package/icons/svgs/expand_left.svg +3 -0
  168. package/icons/svgs/expand_left_double.svg +4 -0
  169. package/icons/svgs/expand_right.svg +3 -0
  170. package/icons/svgs/expand_right_double.svg +4 -0
  171. package/icons/svgs/expand_up.svg +3 -0
  172. package/icons/svgs/facebook.svg +3 -0
  173. package/icons/svgs/file_dock.svg +6 -0
  174. package/icons/svgs/filter.svg +3 -0
  175. package/icons/svgs/fluid.svg +4 -0
  176. package/icons/svgs/folder.svg +3 -0
  177. package/icons/svgs/group.svg +8 -0
  178. package/icons/svgs/home.svg +4 -0
  179. package/icons/svgs/img_box.svg +5 -0
  180. package/icons/svgs/import.svg +4 -0
  181. package/icons/svgs/info_16x16.svg +5 -0
  182. package/icons/svgs/info_24x24.svg +12 -0
  183. package/icons/svgs/instagram.svg +5 -0
  184. package/icons/svgs/left_12x12.svg +3 -0
  185. package/icons/svgs/loading_default.svg +3 -0
  186. package/icons/svgs/loading_icon_thick.svg +3 -0
  187. package/icons/svgs/loading_purple.svg +9 -0
  188. package/icons/svgs/map.svg +7 -0
  189. package/icons/svgs/menu_dots.svg +5 -0
  190. package/icons/svgs/menu_left.svg +5 -0
  191. package/icons/svgs/minis_sq.svg +4 -0
  192. package/icons/svgs/paste.svg +8 -0
  193. package/icons/svgs/pie_chart.svg +5 -0
  194. package/icons/svgs/pin.svg +4 -0
  195. package/icons/svgs/sad.svg +6 -0
  196. package/icons/svgs/search.svg +4 -0
  197. package/icons/svgs/setting_line.svg +3 -0
  198. package/icons/svgs/share.svg +7 -0
  199. package/icons/svgs/sort.svg +7 -0
  200. package/icons/svgs/star.svg +3 -0
  201. package/icons/svgs/success_16x16.svg +4 -0
  202. package/icons/svgs/success_24x24.svg +11 -0
  203. package/icons/svgs/support.svg +3 -0
  204. package/icons/svgs/telegram.svg +3 -0
  205. package/icons/svgs/trash.svg +6 -0
  206. package/icons/svgs/upload.svg +4 -0
  207. package/icons/svgs/user.svg +4 -0
  208. package/icons/svgs/view.svg +4 -0
  209. package/icons/svgs/view_hide.svg +5 -0
  210. package/icons/svgs/vk.svg +3 -0
  211. package/icons/svgs/warning_16x16.svg +5 -0
  212. package/icons/svgs/warning_24x24.svg +12 -0
  213. package/icons/svgs/whatsapp.svg +7 -0
  214. package/index.d.ts +41 -2
  215. package/index.js +43 -4
  216. package/index.scss +91 -68
  217. package/layout/Header/HeaderView.js +43 -6
  218. package/layout/Header/HeaderView.scss +138 -23
  219. package/layout/Loader/LoaderView.d.ts +2 -2
  220. package/layout/Loader/LoaderView.js +6 -2
  221. package/layout/Loader/LoaderView.scss +70 -22
  222. package/layout/Notifications/NotificationsItemView.d.ts +1 -2
  223. package/layout/Notifications/NotificationsItemView.js +9 -8
  224. package/layout/Notifications/NotificationsItemView.scss +1 -39
  225. package/layout/Notifications/NotificationsView.d.ts +1 -2
  226. package/layout/Notifications/NotificationsView.scss +3 -0
  227. package/layout/ProgressBar/CircleProgressBarView.d.ts +1 -2
  228. package/layout/ProgressBar/CircleProgressBarView.scss +9 -7
  229. package/layout/ProgressBar/LineProgressBarView.d.ts +1 -2
  230. package/layout/ProgressBar/LineProgressBarView.scss +10 -8
  231. package/layout/Sidebar/FooterIcons/FooterIcons.d.ts +10 -0
  232. package/layout/Sidebar/FooterIcons/FooterIcons.js +54 -0
  233. package/layout/Sidebar/FooterIcons/FooterIcons.scss +36 -0
  234. package/layout/Sidebar/FooterIcons/index.d.ts +2 -0
  235. package/layout/Sidebar/FooterIcons/index.js +7 -0
  236. package/layout/Sidebar/SidebarLogo/SidebarLogo.d.ts +10 -0
  237. package/layout/Sidebar/SidebarLogo/SidebarLogo.js +44 -0
  238. package/layout/Sidebar/SidebarLogo/SidebarLogo.scss +52 -0
  239. package/layout/Sidebar/SidebarLogo/index.d.ts +2 -0
  240. package/layout/Sidebar/SidebarLogo/index.js +7 -0
  241. package/layout/Sidebar/SidebarUser/SidebarUser.d.ts +11 -0
  242. package/layout/Sidebar/SidebarUser/SidebarUser.js +53 -0
  243. package/layout/Sidebar/SidebarUser/SidebarUser.scss +45 -0
  244. package/layout/Sidebar/SidebarUser/index.d.ts +2 -0
  245. package/layout/Sidebar/SidebarUser/index.js +7 -0
  246. package/layout/Sidebar/SidebarView.d.ts +2 -0
  247. package/layout/Sidebar/SidebarView.js +26 -0
  248. package/layout/Sidebar/SidebarView.scss +304 -0
  249. package/layout/Sidebar/index.d.ts +2 -0
  250. package/layout/Sidebar/index.js +7 -0
  251. package/layout/Skeleton/SkeletonView.scss +7 -5
  252. package/layout/Tooltip/TooltipView.d.ts +1 -2
  253. package/layout/Tooltip/TooltipView.js +6 -6
  254. package/layout/Tooltip/TooltipView.scss +46 -37
  255. package/list/CheckboxColumn/CheckboxColumnView.d.ts +1 -2
  256. package/list/CheckboxColumn/CheckboxColumnView.js +2 -1
  257. package/list/ControlsColumnView/ControlsColumnView.d.ts +1 -2
  258. package/list/ControlsColumnView/ControlsColumnView.scss +7 -1
  259. package/list/Empty/EmptyView.js +1 -1
  260. package/list/Empty/EmptyView.scss +5 -1
  261. package/list/FlexGrid/FlexGridView.d.ts +2 -0
  262. package/list/FlexGrid/FlexGridView.js +71 -0
  263. package/list/FlexGrid/FlexGridView.scss +60 -0
  264. package/list/Grid/GridView.js +10 -4
  265. package/list/Grid/GridView.scss +153 -37
  266. package/list/Grid/views/ContentColumnView/ContentColumnView.d.ts +2 -0
  267. package/list/Grid/views/ContentColumnView/ContentColumnView.js +50 -0
  268. package/list/Grid/views/ContentColumnView/ContentColumnView.scss +88 -0
  269. package/list/Grid/views/ContentColumnView/index.d.ts +2 -0
  270. package/list/Grid/views/ContentColumnView/index.js +7 -0
  271. package/list/Grid/views/DiagramColumnView/DiagramColumnView.d.ts +3 -0
  272. package/list/Grid/views/DiagramColumnView/DiagramColumnView.js +60 -0
  273. package/list/Grid/views/DiagramColumnView/DiagramColumnView.scss +170 -0
  274. package/list/Grid/views/DiagramColumnView/index.d.ts +2 -0
  275. package/list/Grid/views/DiagramColumnView/index.js +7 -0
  276. package/list/List/ListItemView.d.ts +1 -2
  277. package/list/List/ListView.js +5 -7
  278. package/list/List/ListView.scss +28 -1
  279. package/list/Pagination/PaginationButtonView.js +34 -5
  280. package/list/Pagination/PaginationButtonView.scss +265 -1
  281. package/list/Pagination/PaginationMoreView.js +1 -1
  282. package/list/Pagination/PaginationMoreView.scss +4 -1
  283. package/list/PaginationSize/PaginationSizeView.js +5 -5
  284. package/list/PaginationSize/PaginationSizeView.scss +0 -8
  285. package/list/Steps/StepItemView.scss +13 -12
  286. package/list/Steps/StepsView.scss +3 -1
  287. package/modal/Modal/ModalView.d.ts +1 -2
  288. package/modal/Modal/ModalView.js +5 -8
  289. package/modal/Modal/ModalView.scss +140 -93
  290. package/modal/TwoFactorModal/TwoFactorModalView.d.ts +1 -3
  291. package/modal/TwoFactorModal/TwoFactorModalView.js +0 -1
  292. package/modal/TwoFactorModal/TwoFactorModalView.scss +0 -2
  293. package/nav/Breadcrubms/BreadcrumbsView.js +9 -1
  294. package/nav/Breadcrubms/BreadcrumbsView.scss +49 -0
  295. package/nav/ButtonGroup/ButtonGroupView.d.ts +2 -0
  296. package/nav/ButtonGroup/ButtonGroupView.js +33 -0
  297. package/nav/ButtonGroup/ButtonGroupView.scss +84 -0
  298. package/nav/Controls/ControlsView.d.ts +1 -2
  299. package/nav/Controls/ControlsView.scss +17 -3
  300. package/nav/Nav/NavBarView.d.ts +1 -2
  301. package/nav/Nav/NavBarView.js +9 -4
  302. package/nav/Nav/NavBarView.scss +35 -1
  303. package/nav/Nav/NavButtonView.d.ts +1 -2
  304. package/nav/Nav/NavButtonView.js +8 -2
  305. package/nav/Nav/NavButtonView.scss +6 -5
  306. package/nav/Nav/NavIconView.d.ts +1 -2
  307. package/nav/Nav/NavIconView.js +21 -2
  308. package/nav/Nav/NavIconView.scss +33 -6
  309. package/nav/Nav/NavLinkView.d.ts +1 -2
  310. package/nav/Nav/NavLinkView.js +9 -2
  311. package/nav/Nav/NavLinkView.scss +14 -5
  312. package/nav/Nav/NavListView.d.ts +1 -2
  313. package/nav/Nav/NavListView.js +11 -7
  314. package/nav/Nav/NavListView.scss +11 -10
  315. package/nav/Nav/NavTabsView.d.ts +1 -2
  316. package/nav/Nav/NavTabsView.js +9 -4
  317. package/nav/Nav/NavTabsView.scss +50 -1
  318. package/nav/Tree/TreeView.d.ts +1 -2
  319. package/nav/Tree/TreeView.scss +63 -54
  320. package/package.json +8 -6
  321. package/scss/animations/index.scss +1 -0
  322. package/scss/animations/loading.scss +13 -0
  323. package/scss/fonts.scss +6 -0
  324. package/scss/mixins/button.scss +83 -24
  325. package/scss/mixins/customMixins.scss +6 -0
  326. package/scss/mixins/date.scss +436 -0
  327. package/scss/mixins/index.scss +6 -2
  328. package/scss/mixins/navs.scss +39 -0
  329. package/scss/mixins/scroll.scss +31 -0
  330. package/scss/mixins/typography.scss +29 -0
  331. package/scss/normalize.scss +25 -0
  332. package/scss/variables/common/colors.scss +199 -83
  333. package/scss/variables/common/media.scss +3 -0
  334. package/scss/variables/common/typography.scss +99 -28
  335. package/scss/variables/common/variables.scss +1 -0
  336. package/scss/variables/components/calendar.scss +8 -6
  337. package/scss/variables/components/input.scss +10 -7
  338. package/scss/variables/components/ratefield.scss +3 -1
  339. package/scss/variables/index.scss +10 -11
  340. package/typography/Text/TextView.d.ts +3 -0
  341. package/typography/Text/TextView.js +46 -0
  342. package/typography/Text/TextView.scss +19 -0
  343. package/typography/Title/TitleView.d.ts +3 -0
  344. package/typography/Title/TitleView.js +50 -0
  345. package/typography/Title/TitleView.scss +19 -0
  346. package/utils/renderIcon.d.ts +9 -0
  347. package/utils/renderIcon.js +27 -0
  348. package/content/Collapse/CollapseItemView.d.ts +0 -2
  349. package/content/Collapse/CollapseItemView.scss +0 -88
  350. package/content/Collapse/CollapseView.d.ts +0 -2
  351. package/content/Collapse/CollapseView.scss +0 -15
  352. package/icons/close.svg +0 -3
  353. package/icons/default.svg +0 -11
  354. package/icons/error.svg +0 -12
  355. package/icons/fontawesome.d.ts +0 -2
  356. package/icons/fontawesome.js +0 -259
  357. package/icons/info.svg +0 -12
  358. package/icons/success.svg +0 -4
  359. package/icons/warning.svg +0 -12
  360. package/list/List/ListItemView.scss +0 -3
  361. package/scss/mixins/card.scss +0 -26
  362. package/scss/variables/components/card.scss +0 -20
@@ -1,27 +1,75 @@
1
+ @use "../../scss/variables";
2
+ @use '../../scss/mixins';
3
+
4
+ :root {
5
+ --gradient-color-primary-first: #651FFF;
6
+ --gradient-color-primary-second: #BA9BFF;
7
+ }
8
+
9
+ html[data-theme="dark"] {
10
+ --gradient-color-primary-first: #9362FF;
11
+ --gradient-color-primary-second: #B898FF;
12
+ }
13
+
14
+ $gradient-color-primary-first: var(--gradient-color-primary-first);
15
+ $gradient-color-primary-second: var(--gradient-color-primary-second);
16
+
1
17
  .LoaderView {
2
- position: relative;
3
- width: 100%;
4
-
5
- &__loader {
6
- position: absolute;
7
- top: 50%;
8
- left: 50%;
9
- margin: -27px 0 0 -27px;
10
- z-index: 20;
11
- font-size: 10px;
12
- text-indent: -9999em;
13
- border-top: .9em solid rgba(246, 168, 33, 0.2);
14
- border-right: .9em solid rgba(246, 168, 33, 0.2);
15
- border-bottom: .9em solid rgba(246, 168, 33, 0.2);
16
- border-left: .9em solid #db001f;
17
- transform: translateZ(0);
18
+ $root: &;
19
+ height: 100%;
20
+ display: flex;
21
+ align-items: center;
22
+ justify-content: center;
23
+
24
+ &_size {
25
+ &_sm {
26
+ svg {
27
+ height: 33px;
28
+ width: 33px;
29
+ path {
30
+ stroke-width: 4px;
31
+ }
32
+ }
33
+ }
34
+ &_md {
35
+ svg {
36
+ height: 44px;
37
+ width: 44px;
38
+ path {
39
+ stroke-width: 6px;
40
+ }
41
+ }
42
+ }
43
+ &_lg {
44
+ svg {
45
+ height: 55px;
46
+ width: 55px;
47
+ path {
48
+ stroke-width: 7px;
49
+ }
50
+ }
51
+ }
52
+ }
53
+
54
+ &__icon {
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: center;
18
58
  animation: Loader-spin 1.1s infinite linear;
19
- opacity: 1 !important;
59
+ }
20
60
 
21
- &, &::after {
22
- border-radius: 50%;
23
- width: 5em;
24
- height: 5em;
61
+ &_color_gradient {
62
+ svg stop:first-child {
63
+ stop-color: $gradient-color-primary-first;
64
+ }
65
+ svg stop:last-child {
66
+ stop-color: $gradient-color-primary-second;
67
+ }
68
+ }
69
+
70
+ @each $colorName, $colorMap in variables.$color-themes {
71
+ &_color_#{$colorName} {
72
+ @include mixins.loader-color($colorMap, $colorName, $root);
25
73
  }
26
74
  }
27
75
  }
@@ -35,4 +83,4 @@
35
83
  -webkit-transform: rotate(360deg);
36
84
  transform: rotate(360deg);
37
85
  }
38
- }
86
+ }
@@ -1,3 +1,2 @@
1
- import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
2
1
  import { INotificationsItemViewProps } from '@steroidsjs/core/ui/layout/Notifications/Notifications';
3
- export default function NotificationsItemView(props: INotificationsItemViewProps & IBemHocOutput): JSX.Element;
2
+ export default function NotificationsItemView(props: INotificationsItemViewProps): JSX.Element;
@@ -22,11 +22,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  __setModuleDefault(result, mod);
23
23
  return result;
24
24
  };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
25
28
  exports.__esModule = true;
26
29
  var React = __importStar(require("react"));
27
30
  var react_1 = require("react");
28
31
  var react_transition_group_1 = require("react-transition-group");
29
32
  var hooks_1 = require("@steroidsjs/core/hooks");
33
+ var AlertView_1 = __importDefault(require("../../content/Alert/AlertView"));
30
34
  function NotificationsItemView(props) {
31
35
  var _a, _b;
32
36
  var _c = (0, react_1.useState)(false), isShow = _c[0], setIsShow = _c[1];
@@ -34,15 +38,12 @@ function NotificationsItemView(props) {
34
38
  setIsShow(!props.isClosing);
35
39
  }, [props.isClosing]);
36
40
  var bem = (0, hooks_1.useBem)('NotificationsItemView');
37
- return (React.createElement(react_transition_group_1.CSSTransition, { "in": isShow, timeout: 1000, classNames: bem(bem.block((_a = {},
41
+ return (React.createElement(react_transition_group_1.CSSTransition, { "in": isShow, timeout: 1000, classNames: bem.block((_a = {},
38
42
  _a[props.position] = true,
39
- _a))), unmountOnExit: true },
40
- React.createElement("div", { className: bem(bem.block((_b = {},
41
- _b[props.level] = true,
43
+ _a)), unmountOnExit: true },
44
+ React.createElement("div", { className: bem.block((_b = {},
42
45
  _b[props.position] = true,
43
- _b)), 'alert', 'alert-' + props.level) },
44
- React.createElement("div", { className: bem.element('body') },
45
- React.createElement("div", { className: bem.element('message') }, props.message),
46
- React.createElement("button", { className: bem.element('close'), onClick: props.onClose })))));
46
+ _b)) },
47
+ React.createElement(AlertView_1["default"], { onClose: props.onClose, message: props.message, type: props.level, showClose: true, isExist: true, isVisible: true, showIcon: true }))));
47
48
  }
48
49
  exports["default"] = NotificationsItemView;
@@ -1,51 +1,13 @@
1
1
  .NotificationsItemView {
2
+
2
3
  overflow: hidden;
3
4
  max-height: 120px;
4
5
  padding: 0;
5
6
 
6
7
  border-width: 0;
7
- box-shadow: 1px 0px 6px rgba(0, 0, 0, 0.1);
8
8
 
9
9
  transition: opacity .6s, transform .4s,
10
10
  max-height .6s .4s, margin .6s .6s;
11
-
12
- &__body{
13
- width: 100%;
14
- height: 100%;
15
-
16
- padding: 0.75rem 1.8rem 0.75rem 1.25rem;
17
- border: 1px solid transparent;
18
- border-color: inherit;
19
- }
20
-
21
- &__close{
22
- cursor: pointer;
23
- position: absolute;
24
- top: 0;
25
- right: 0;
26
- width: 25px;
27
- height: 25px;
28
-
29
- display: flex;
30
- justify-content: center;
31
- align-items: center;
32
-
33
- .IconView{
34
- svg{
35
- width: 10px;
36
- }
37
- }
38
-
39
- svg{
40
- opacity: 0.4;
41
- transition: opacity .1s ease-in;
42
- }
43
- &:hover svg{
44
- opacity: 1;
45
- }
46
- }
47
-
48
-
49
11
  // Styles for React-Transition-Groups
50
12
  ////////////////////////////////////////
51
13
 
@@ -1,3 +1,2 @@
1
- import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
2
1
  import { INotificationsViewProps } from '@steroidsjs/core/ui/layout/Notifications/Notifications';
3
- export default function NotificationsView(props: INotificationsViewProps & IBemHocOutput): JSX.Element;
2
+ export default function NotificationsView(props: INotificationsViewProps): JSX.Element;
@@ -1,6 +1,9 @@
1
1
  .NotificationsView {
2
2
  z-index: 9999;
3
3
  position: fixed;
4
+ display: flex;
5
+ flex-direction: column;
6
+ row-gap: 10px;
4
7
  width: 400px;
5
8
 
6
9
  margin: 0;
@@ -1,3 +1,2 @@
1
- import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
2
1
  import { IProgressBarViewProps } from '@steroidsjs/core/ui/layout/ProgressBar/ProgressBar';
3
- export default function CircleProgressBarView(props: IProgressBarViewProps & IBemHocOutput): JSX.Element;
2
+ export default function CircleProgressBarView(props: IProgressBarViewProps): JSX.Element;
@@ -1,3 +1,5 @@
1
+ @use "../../scss/variables";
2
+
1
3
  .CircleProgressBarView{
2
4
  $root: &;
3
5
 
@@ -84,31 +86,31 @@
84
86
  &_status{
85
87
  &_success{
86
88
  #{$root}__progressCircle{
87
- stroke: $success;
89
+ stroke: variables.$success;
88
90
  }
89
91
 
90
92
  #{$root}__content{
91
93
  svg{
92
- fill: $success;
94
+ fill: variables.$success;
93
95
  }
94
96
  }
95
97
  }
96
98
 
97
99
  &_exception{
98
100
  #{$root}__progressCircle{
99
- stroke: $danger;
101
+ stroke: variables.$danger;
100
102
  }
101
103
 
102
104
  #{$root}__content{
103
105
  svg{
104
- fill: $danger;
106
+ fill: variables.$danger;
105
107
  }
106
108
  }
107
109
  }
108
110
 
109
111
  &_normal{
110
112
  #{$root}__progressCircle{
111
- stroke: $primary;
113
+ stroke: variables.$primary;
112
114
  }
113
115
  }
114
116
  }
@@ -123,7 +125,7 @@
123
125
 
124
126
 
125
127
  #{$root}__emptyCircle{
126
- stroke: $back-disabled;
128
+ stroke: variables.$back-disabled;
127
129
  stroke-dashoffset: 0;
128
130
  }
129
131
 
@@ -142,7 +144,7 @@
142
144
  display: flex;
143
145
  align-items: center;
144
146
  justify-content: center;
145
- color: $secondary-dark;
147
+ color: variables.$secondary-dark;
146
148
  font-weight: bold;
147
149
  transform: rotate(90deg);
148
150
  }
@@ -1,3 +1,2 @@
1
- import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
2
1
  import { IProgressBarViewProps } from '@steroidsjs/core/ui/layout/ProgressBar/ProgressBar';
3
- export default function LineProgressBarView(props: IProgressBarViewProps & IBemHocOutput): JSX.Element;
2
+ export default function LineProgressBarView(props: IProgressBarViewProps): JSX.Element;
@@ -1,3 +1,5 @@
1
+ @use "../../scss/variables";
2
+
1
3
  .LineProgressBarView{
2
4
  $root: &;
3
5
 
@@ -35,27 +37,27 @@
35
37
  &_status{
36
38
  &_success{
37
39
  #{$root}__progressLine{
38
- background-color: $success;
40
+ background-color: variables.$success;
39
41
  }
40
42
 
41
43
  svg{
42
- fill: $success;
44
+ fill: variables.$success;
43
45
  }
44
46
  }
45
47
 
46
48
  &_exception{
47
49
  #{$root}__progressLine{
48
- background-color: $danger;
50
+ background-color: variables.$danger;
49
51
  }
50
52
 
51
53
  svg{
52
- fill: $danger;
54
+ fill: variables.$danger;
53
55
  }
54
56
  }
55
57
 
56
58
  &_normal{
57
59
  #{$root}__progressLine{
58
- background-color: $primary;
60
+ background-color: variables.$primary;
59
61
  }
60
62
  }
61
63
 
@@ -63,7 +65,7 @@
63
65
 
64
66
  &__emptyLine{
65
67
  position: relative;
66
- background-color: $back-disabled;
68
+ background-color: variables.$back-disabled;
67
69
  border-radius: 20px;
68
70
  }
69
71
 
@@ -85,7 +87,7 @@
85
87
  content: "";
86
88
  position: absolute;
87
89
  transform: translateX(-100%);
88
- background: linear-gradient(90deg, transparent, rgba($white, 0.5), transparent);
90
+ background: linear-gradient(90deg, transparent, rgba(variables.$white, 0.5), transparent);
89
91
  animation: wave-animation 1.6s linear 0.5s infinite;
90
92
  }
91
93
 
@@ -109,7 +111,7 @@
109
111
  }
110
112
 
111
113
  &__text{
112
- color: $dark;
114
+ color: variables.$graphite;
113
115
  margin-left: 8px;
114
116
  }
115
117
  }
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { IIconProps } from '@steroidsjs/core/ui/content/Icon/Icon';
3
+ import './FooterIcons.scss';
4
+ interface IFooterIconsProps {
5
+ footerIcons?: IIconProps[];
6
+ isShink?: boolean;
7
+ }
8
+ declare function FooterIcons(props: IFooterIconsProps): JSX.Element;
9
+ declare const _default: React.MemoExoticComponent<typeof FooterIcons>;
10
+ export default _default;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ exports.__esModule = true;
40
+ var react_1 = __importStar(require("react"));
41
+ var useBem_1 = __importDefault(require("@steroidsjs/core/hooks/useBem"));
42
+ var Icon_1 = __importDefault(require("@steroidsjs/core/ui/content/Icon/Icon"));
43
+ var renderIcon_1 = __importDefault(require("../../../utils/renderIcon"));
44
+ require("./FooterIcons.scss");
45
+ function FooterIcons(props) {
46
+ var _a;
47
+ var bem = (0, useBem_1["default"])('FooterIcons');
48
+ return (react_1["default"].createElement("ul", { className: bem(bem.block({
49
+ isShrink: props.isShink
50
+ })) }, props.isShink
51
+ ? (react_1["default"].createElement(Icon_1["default"], { name: 'share', className: bem.element('item') }))
52
+ : (_a = props.footerIcons) === null || _a === void 0 ? void 0 : _a.map(function (icon, iconIndex) { return (react_1["default"].createElement("li", { key: iconIndex, className: bem.element('item') }, (0, renderIcon_1["default"])(icon === null || icon === void 0 ? void 0 : icon.name, __assign({}, icon)))); })));
53
+ }
54
+ exports["default"] = (0, react_1.memo)(FooterIcons);
@@ -0,0 +1,36 @@
1
+ @use "style/variables";
2
+
3
+ :root {
4
+ --footer-shrink-icon-color: #626262;
5
+ }
6
+
7
+ html[data-theme="dark"] {
8
+ --footer-shrink-icon-color: #adacac;
9
+ }
10
+
11
+ $footer-shrink-icon-color: var(--footer-shrink-icon-color);
12
+
13
+ .FooterIcons {
14
+ padding: 16px 12px;
15
+
16
+ display: flex;
17
+ flex-flow: row nowrap;
18
+ justify-content: space-between;
19
+
20
+ &__item {
21
+ cursor: pointer;
22
+ }
23
+
24
+ &_isShrink {
25
+ justify-content: center;
26
+ align-items: center;
27
+
28
+ .IconView {
29
+ svg path,
30
+ rect,
31
+ circle {
32
+ stroke: $footer-shrink-icon-color;
33
+ }
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,2 @@
1
+ import FooterIcons from './FooterIcons';
2
+ export default FooterIcons;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ exports.__esModule = true;
6
+ var FooterIcons_1 = __importDefault(require("./FooterIcons"));
7
+ exports["default"] = FooterIcons_1["default"];
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './SidebarLogo.scss';
3
+ interface ISidebarLogoProps {
4
+ icon: string | React.ReactElement;
5
+ label: string;
6
+ toggleSidebar: () => void;
7
+ }
8
+ declare function SidebarLogo(props: ISidebarLogoProps): JSX.Element;
9
+ declare const _default: React.MemoExoticComponent<typeof SidebarLogo>;
10
+ export default _default;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ exports.__esModule = true;
29
+ var react_1 = __importStar(require("react"));
30
+ var useBem_1 = __importDefault(require("@steroidsjs/core/hooks/useBem"));
31
+ var content_1 = require("@steroidsjs/core/ui/content");
32
+ var renderIcon_1 = __importDefault(require("../../../utils/renderIcon"));
33
+ require("./SidebarLogo.scss");
34
+ function SidebarLogo(props) {
35
+ var bem = (0, useBem_1["default"])('SidebarLogo');
36
+ return (react_1["default"].createElement("div", { className: bem.block() },
37
+ react_1["default"].createElement("div", { className: bem.element('left') },
38
+ (0, renderIcon_1["default"])(props.icon, {
39
+ className: bem.element('icon')
40
+ }),
41
+ react_1["default"].createElement("h3", { className: bem.element('label') }, props.label)),
42
+ react_1["default"].createElement(content_1.Icon, { name: 'menu_left', className: bem.element('right'), onClick: props.toggleSidebar })));
43
+ }
44
+ exports["default"] = (0, react_1.memo)(SidebarLogo);
@@ -0,0 +1,52 @@
1
+ @use "../../../scss/variables";
2
+
3
+ .SidebarLogo {
4
+ padding: 19px 12px 8px 12px;
5
+ display: flex;
6
+ flex-flow: row nowrap;
7
+ justify-content: space-between;
8
+ border-bottom: 1px solid variables.$element-border-color;
9
+
10
+ &__left {
11
+ display: flex;
12
+ flex-flow: row nowrap;
13
+ align-items: center;
14
+ column-gap: 9px;
15
+ position: relative;
16
+ cursor: pointer;
17
+ transform: translateY(-4px);
18
+ }
19
+
20
+ &__label {
21
+ font-size: variables.$font-size-base;
22
+ font-weight: variables.$font-weight-lg;
23
+ line-height: variables.$line-height-base;
24
+ color: variables.$sidebar-label-color;
25
+ opacity: 0;
26
+ transition: opacity 150ms ease-in-out;
27
+
28
+ }
29
+
30
+ &__icon {
31
+ width: 34px;
32
+ min-width: 34px;
33
+ height: 34px;
34
+
35
+ svg {
36
+ width: 100%;
37
+ height: 100%;
38
+ }
39
+ }
40
+
41
+ &__right {
42
+ cursor: pointer;
43
+ width: 24px;
44
+ height: 24px;
45
+ opacity: 0;
46
+ transition: opacity 150ms ease-in-out;
47
+
48
+ svg path, rect, circle {
49
+ stroke: variables.$icon-color;
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,2 @@
1
+ import SidebarLogo from './SidebarLogo';
2
+ export default SidebarLogo;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ exports.__esModule = true;
6
+ var SidebarLogo_1 = __importDefault(require("./SidebarLogo"));
7
+ exports["default"] = SidebarLogo_1["default"];
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { IMenuProps } from '@steroidsjs/core/ui/content/Menu/Menu';
3
+ import './SidebarUser.scss';
4
+ interface ISidebarUserProps {
5
+ menu: IMenuProps;
6
+ name: string;
7
+ picture: string;
8
+ }
9
+ declare function SidebarUser(props: ISidebarUserProps): JSX.Element;
10
+ declare const _default: React.MemoExoticComponent<typeof SidebarUser>;
11
+ export default _default;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ exports.__esModule = true;
40
+ var react_1 = __importStar(require("react"));
41
+ var useBem_1 = __importDefault(require("@steroidsjs/core/hooks/useBem"));
42
+ var Menu_1 = __importDefault(require("@steroidsjs/core/ui/content/Menu/Menu"));
43
+ var content_1 = require("@steroidsjs/core/ui/content");
44
+ require("./SidebarUser.scss");
45
+ function SidebarUser(props) {
46
+ var bem = (0, useBem_1["default"])('SidebarUser');
47
+ return (react_1["default"].createElement("div", { className: bem.block() },
48
+ react_1["default"].createElement("div", { className: bem.element('left') },
49
+ react_1["default"].createElement(content_1.Avatar, { size: "sm", src: props.picture, className: bem.element('avatar') }),
50
+ react_1["default"].createElement("p", { className: bem.element('name') }, props.name)),
51
+ react_1["default"].createElement(Menu_1["default"], __assign({}, props === null || props === void 0 ? void 0 : props.menu))));
52
+ }
53
+ exports["default"] = (0, react_1.memo)(SidebarUser);