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

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,33 +1,92 @@
1
- @mixin button-theme($color) {
2
- background-color: map-get($color, color);
3
- color: map-get($color, text-color);
1
+ @use "sass:map";
2
+ @use "../variables/common/colors";
3
+
4
+ @mixin svg-color($color) {
5
+ svg {
6
+ path {
7
+ stroke: $color;
8
+ }
9
+ }
10
+ }
11
+
12
+ @mixin button-theme($colorMap, $colorName, $root) {
13
+ background-color: map.get($colorMap, color);
14
+ color: map.get($colorMap, text-color);
4
15
 
5
16
  &:hover {
6
- background-color: map-get($color, color-dark);
17
+ background-color: map.get($colorMap, color-dark);
7
18
  }
8
- &:focus, &:focus-visible {
9
- border: 3px solid map-get($color, color-light);
19
+ &:focus,
20
+ &:focus-visible {
21
+ box-shadow: 0 0 0 4px map.get($colorMap, color-light), 0 0 0 4px map.get($colorMap, color-light);
10
22
  }
11
23
  &:active {
12
- background-color: map-get($color, color-light);
24
+ background-color: map.get($colorMap, color-light);
25
+ }
26
+
27
+ &:disabled {
28
+ background-color: map.get($colorMap, color);
29
+ color: map.get($colorMap, text-color);
30
+ }
31
+
32
+ #{$root}__loader {
33
+ svg {
34
+ path {
35
+ stroke: map.get($colorMap, color-light);
36
+
37
+ @if ($colorName == 'basic' ) {
38
+ stroke: map.get($colorMap, color-dark);
39
+ }
40
+ }
41
+ }
42
+ }
43
+
44
+ #{$root}__link {
45
+ color: map.get($colorMap, color-dark);
46
+
47
+ &:hover {
48
+ color: map.get($colorMap, color-light);
49
+ }
13
50
  }
14
51
  }
15
52
 
16
- @mixin button-outline-theme($color) {
17
- background-color: #fff;
18
- color: map-get($color, color);
19
- border: 1px solid map-get($color, color);
20
-
21
- &:hover{
22
- color: map-get($color, color-dark);
23
- border-color: map-get($color, color-dark);
24
- }
25
- &:focus {
26
- box-shadow: 0 0 0 3px map-get($color, color-light), 0 0 0 3px map-get($color, color-light);
27
- }
28
- &:active {
29
- color: map-get($color, color-light);
30
- border-color: map-get($color, color-light);
31
- box-shadow: none;
32
- }
53
+ @mixin button-outline-theme($colorMap, $colorName, $root) {
54
+ background-color: transparent;
55
+ color: map.get($colorMap, color);
56
+ stroke: map.get($colorMap, color);
57
+ border: 1px solid map.get($colorMap, color);
58
+
59
+ @include svg-color(map.get($colorMap, text-color));
60
+
61
+ &:hover {
62
+ @include svg-color(map.get($colorMap, color-dark));
63
+ color: map.get($colorMap, color-dark);
64
+ border-color: map.get($colorMap, color-dark);
65
+ }
66
+ &:focus {
67
+ box-shadow: 0 0 0 4px map.get($colorMap, color-light), 0 0 0 4px map.get($colorMap, color-light);
68
+ border: 1px solid transparent;
69
+ }
70
+ &:active {
71
+ @include svg-color(map.get($colorMap, color-light));
72
+ color: map.get($colorMap, color-light);
73
+ border-color: map.get($colorMap, color-light);
74
+ stroke: map.get($colorMap, color-light);
75
+ box-shadow: none;
76
+ }
77
+
78
+ &:disabled {
79
+ background-color: transparent;
80
+ @include svg-color(map.get($colorMap, color));
81
+ color: map.get($colorMap, color);
82
+ border: 1px solid map.get($colorMap, color);
83
+ }
84
+
85
+ @if ($colorName == "basic") {
86
+ color: colors.$text-color;
87
+ }
88
+
89
+ #{$root}__loader {
90
+ @include svg-color(map.get($colorMap, color));
91
+ }
33
92
  }
@@ -0,0 +1,6 @@
1
+ @use "sass:map";
2
+ @mixin loader-color($colorMap, $colorName, $root) {
3
+ svg stop {
4
+ stop-color: map.get($colorMap, color);
5
+ }
6
+ }
@@ -0,0 +1,436 @@
1
+ @use "sass:map";
2
+ @use "../variables/index" as variables;
3
+
4
+ :root {
5
+ --date-icon-default-color: #cbd5db;
6
+ --date-icon-close-default-color: #323232;
7
+ --date-icon-disabled-color: rgba(0, 0, 0, 0.1);
8
+ --date-range-separator-color: rgba(0, 0, 0, 0.1);
9
+ }
10
+
11
+ html[data-theme="dark"] {
12
+ --date-icon-default-color: #333646;
13
+ --date-icon-close-default-color: #ffffff;
14
+ --date-icon-disabled-color: rgba(255, 255, 255, 0.1);
15
+ --date-range-separator-color: rgba(255, 255, 255, 0.1);
16
+ }
17
+
18
+ $date-icon-default-color: var(--date-icon-default-color);
19
+ $date-icon-close-default-color: var(--date-icon-close-default-color);
20
+ $date-icon-disabled-color: var(--date-icon-disabled-color);
21
+ $date-range-separator-color: var(--date-range-separator-color);
22
+
23
+ $date-sizes: () !default;
24
+ $date-sizes: map.merge(
25
+ (
26
+ "lg": (
27
+ "padding": 16px 8px,
28
+ "radius": variables.$radius-large,
29
+ "font-size": variables.$font-size-lg,
30
+ "height": 56px,
31
+ "first-input-width": 96px,
32
+ ),
33
+ "md": (
34
+ "padding": 11px 8px,
35
+ "radius": variables.$radius-large,
36
+ "font-size": variables.$font-size-base,
37
+ "height": 46px,
38
+ "first-input-width": 86px,
39
+ ),
40
+ "sm": (
41
+ "padding": 5px 8px,
42
+ "radius": variables.$radius-small,
43
+ "font-size": variables.$font-size-sm,
44
+ "height": 34px,
45
+ "first-input-width": 76px,
46
+ ),
47
+ ),
48
+ $date-sizes
49
+ );
50
+
51
+ @mixin calendar-button () {
52
+ padding: 5px 12.5px;
53
+ border-radius: variables.$radius-small;
54
+ border: 1px solid variables.$gray;
55
+ background-color: transparent;
56
+ background-image: none;
57
+ box-shadow: none;
58
+ cursor: pointer;
59
+ color: variables.$text-color;
60
+ font-size: variables.$font-size-sm;
61
+ line-height: variables.$line-height-lg;
62
+ }
63
+
64
+ @mixin icon-container($root) {
65
+ #{$root}__icon-container {
66
+ position: absolute;
67
+ top: 50%;
68
+ right: 8px;
69
+ transform: translateY(-50%);
70
+ width: 24px;
71
+ height: 24px;
72
+
73
+ > * {
74
+ display: inline-flex;
75
+ flex-flow: row nowrap;
76
+ width: 100%;
77
+ height: 100%;
78
+ justify-content: center;
79
+ align-items: center;
80
+ }
81
+
82
+ #{$root}__date-icon {
83
+ path,
84
+ circle {
85
+ stroke: $date-icon-default-color;
86
+ }
87
+ }
88
+
89
+ #{$root}__close-icon {
90
+ cursor: pointer;
91
+ path,
92
+ circle {
93
+ stroke: $date-icon-close-default-color;
94
+ }
95
+ }
96
+ }
97
+ }
98
+
99
+ @mixin date-default-sizes($root) {
100
+ &_size {
101
+ @each $size, $size-map in $date-sizes {
102
+ &_#{$size} {
103
+ #{$root}__input {
104
+ border-radius: map.get($size-map, radius);
105
+ padding: map.get($size-map, padding);
106
+ padding-right: 40px;
107
+ height: map.get($size-map, height);
108
+ }
109
+
110
+ #{$root}__body::before {
111
+ border-radius: calc(map.get($size-map, radius) + 4px);
112
+ }
113
+
114
+ font-size: map.get($size-map, font-size);
115
+ }
116
+ }
117
+ }
118
+ }
119
+
120
+ @mixin date-default-input() {
121
+ &__input {
122
+ width: 100%;
123
+ font-size: inherit;
124
+ line-height: variables.$line-height-lg;
125
+ background-color: variables.$element-field-background-color;
126
+ border: 1px solid variables.$element-border-color;
127
+ color: variables.$text-color;
128
+ transition: border-color 150ms ease-in-out;
129
+
130
+ &:active {
131
+ border-color: variables.$primary;
132
+ }
133
+
134
+ &::placeholder {
135
+ color: variables.$element-placeholder-color;
136
+ }
137
+
138
+ &:disabled {
139
+ border: none;
140
+ background-color: variables.$element-background-color-disabled;
141
+
142
+ &::placeholder {
143
+ color: variables.$element-placeholder-color-disabled;
144
+ }
145
+ }
146
+ }
147
+ }
148
+
149
+ @mixin date-default-body() {
150
+ &__body {
151
+ position: relative;
152
+
153
+ &::before {
154
+ display: block;
155
+ position: absolute;
156
+ top: 0;
157
+ left: 0;
158
+ right: 0;
159
+ bottom: 0;
160
+ width: 100%;
161
+ height: 100%;
162
+ content: "";
163
+ border: 4px solid variables.$primary-light;
164
+ transform: translate(-4px, -4px);
165
+ pointer-events: none;
166
+ opacity: 0;
167
+ transition: opacity 150ms ease-in-out;
168
+ }
169
+ }
170
+ }
171
+
172
+ @mixin date-default-effects($root) {
173
+ &:focus-within:not(:active) {
174
+ #{$root}__body {
175
+ &::before {
176
+ opacity: 1;
177
+ }
178
+ }
179
+
180
+ #{$root}__input {
181
+ border-color: transparent;
182
+ }
183
+ }
184
+
185
+ &_disabled {
186
+ #{$root}__icon-container {
187
+ #{$root}__date-icon {
188
+ path,
189
+ circle {
190
+ stroke: $date-icon-disabled-color;
191
+ }
192
+ }
193
+ }
194
+ }
195
+
196
+ &_is-invalid {
197
+ #{$root}__input {
198
+ border-color: variables.$danger;
199
+ }
200
+ }
201
+ }
202
+
203
+ @mixin date-range-body($root) {
204
+ &__body {
205
+ position: relative;
206
+ display: flex;
207
+ flex-flow: row nowrap;
208
+ align-items: center;
209
+ background-color: variables.$element-field-background-color;
210
+ color: variables.$text-color;
211
+ column-gap: 8px;
212
+
213
+ > * {
214
+ &:nth-child(1) {
215
+ width: 91px;
216
+ }
217
+
218
+ &:nth-child(2) {
219
+ width: 100%;
220
+ margin-right: 40px;
221
+ }
222
+ }
223
+ }
224
+ }
225
+
226
+ @mixin date-range-effects($root) {
227
+ &__effect {
228
+ position: absolute;
229
+ display: block;
230
+ width: 100%;
231
+ height: 100%;
232
+ top: 0;
233
+ left: 0;
234
+ right: 0;
235
+ bottom: 0;
236
+ border-radius: inherit;
237
+ pointer-events: none;
238
+
239
+ &::before,
240
+ &::after {
241
+ display: block;
242
+ content: "";
243
+ position: absolute;
244
+ top: 0;
245
+ left: 0;
246
+ right: 0;
247
+ bottom: 0;
248
+ transition: border-color 150ms ease-in-out, opacity 150ms ease-in-out;
249
+ opacity: 1;
250
+ border-radius: inherit;
251
+ border-width: 1px;
252
+ border-style: solid;
253
+ pointer-events: none;
254
+ }
255
+
256
+ &::before {
257
+ border-color: variables.$element-border-color;
258
+ }
259
+
260
+ &::after {
261
+ width: 100%;
262
+ height: 100%;
263
+ transform: translate(-4px, -4px);
264
+ border: 4px solid variables.$primary-light;
265
+ opacity: 0;
266
+ }
267
+ }
268
+
269
+ //Effects
270
+ //Active
271
+ &__input:active ~ &__effect::before {
272
+ border-color: variables.$primary;
273
+ }
274
+
275
+ //Focus
276
+ &__body:focus-within:not(:active) &__effect {
277
+ &::before {
278
+ border-color: transparent;
279
+ }
280
+
281
+ &::after {
282
+ opacity: 1;
283
+ }
284
+ }
285
+
286
+ &_disabled {
287
+ #{$root}__body {
288
+ background-color: variables.$element-background-color-disabled;
289
+ }
290
+
291
+ #{$root}__input {
292
+ &::placeholder {
293
+ color: variables.$element-placeholder-color-disabled;
294
+ }
295
+ }
296
+
297
+ #{$root}__effect {
298
+ opacity: 0;
299
+ }
300
+ }
301
+
302
+ &_disabled {
303
+ #{$root}__icon-container {
304
+ #{$root}__date-icon {
305
+ path,
306
+ circle {
307
+ stroke: $date-icon-disabled-color;
308
+ }
309
+ }
310
+ }
311
+ }
312
+
313
+ &_is-invalid {
314
+ #{$root}__effect::before {
315
+ border-color: variables.$danger;
316
+ }
317
+
318
+ #{$root}__input:active ~ #{$root}__effect::before {
319
+ border-color: variables.$danger;
320
+ }
321
+ }
322
+ }
323
+
324
+ @mixin date-range-sizes($root) {
325
+ &_size {
326
+ @each $size, $size-map in $date-sizes {
327
+ &_#{$size} {
328
+ #{$root}__body {
329
+ padding: map.get($size-map, padding);
330
+ border-radius: map.get($size-map, radius);
331
+ height: map.get($size-map, height);
332
+
333
+ > * {
334
+ &:nth-child(1) {
335
+ width: map.get($size-map, first-input-width);
336
+ }
337
+ }
338
+ }
339
+
340
+ #{$root}__effect::after {
341
+ border-radius: calc(map.get($size-map, radius) + 4px);
342
+ }
343
+
344
+ font-size: map.get($size-map, font-size);
345
+ }
346
+ }
347
+ }
348
+ }
349
+
350
+ @mixin date-range-input() {
351
+ &__input {
352
+ border: none;
353
+ font-size: inherit;
354
+ background-color: inherit;
355
+ color: inherit;
356
+
357
+ &::placeholder {
358
+ color: variables.$element-placeholder-color;
359
+ }
360
+ }
361
+ }
362
+
363
+ @mixin date-time-panel($root) {
364
+ &__panel-container {
365
+ position: relative;
366
+ display: flex;
367
+ flex-flow: row nowrap;
368
+ color: variables.$text-color;
369
+
370
+ #{$root}__separator {
371
+ position: relative;
372
+ margin-left: 4px;
373
+ margin-right: 16px;
374
+ width: 1px;
375
+ height: 338px;
376
+ background-color: $date-range-separator-color;
377
+ transform: translateY(12px);
378
+ }
379
+
380
+ .TimePanelView__body {
381
+ column-gap: 2px;
382
+ width: 68px;
383
+ }
384
+
385
+ .TimePanelView__header {
386
+ border: none;
387
+ margin-top: 2px;
388
+ }
389
+
390
+ .TimePanelView__column {
391
+ height: 298px;
392
+ row-gap: 2px;
393
+ border: none;
394
+
395
+ &:not(:last-child) {
396
+ border-right: none;
397
+ }
398
+
399
+ overflow: scroll;
400
+ scrollbar-width: none;
401
+ -ms-overflow-style: none;
402
+
403
+ &::-webkit-scrollbar {
404
+ width: 0px;
405
+ height: 0px;
406
+ }
407
+
408
+ .TimePanelView__cell {
409
+ padding: 0;
410
+ border-radius: variables.$radius-large;
411
+
412
+ &-value {
413
+ padding: 6px 7px;
414
+ }
415
+ }
416
+ }
417
+
418
+ .TimePanelView__button_now {
419
+ @include calendar-button();
420
+ }
421
+
422
+ .TimePanelView__button_ok {
423
+ @include calendar-button();
424
+ }
425
+
426
+ .TimePanelView__footer {
427
+ margin-top: 3px;
428
+ }
429
+ }
430
+ }
431
+
432
+ @mixin calendar-border () {
433
+ .CalendarView {
434
+ border: none;
435
+ }
436
+ }
@@ -1,2 +1,6 @@
1
- @import "button";
2
- @import "card";
1
+ @forward "button";
2
+ @forward "typography";
3
+ @forward "scroll";
4
+ @forward "customMixins";
5
+ @forward "date";
6
+ @forward "navs";
@@ -0,0 +1,39 @@
1
+ @mixin navs-sizes($root) {
2
+ &_size {
3
+ &_lg {
4
+ .ButtonView__link {
5
+ padding: 16px;
6
+ }
7
+
8
+ #{$root}__list-item_active {
9
+ .ButtonView {
10
+ padding: 16px;
11
+ }
12
+ }
13
+ }
14
+
15
+ &_md {
16
+ .ButtonView__link {
17
+ padding: 12px;
18
+ }
19
+
20
+ #{$root}__list-item_active {
21
+ .ButtonView {
22
+ padding: 12px;
23
+ }
24
+ }
25
+ }
26
+
27
+ &_sm {
28
+ .ButtonView__link {
29
+ padding: 8px;
30
+ }
31
+
32
+ #{$root}__list-item_active {
33
+ .ButtonView {
34
+ padding: 8px;
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,31 @@
1
+ @mixin custom-scroll($thumbColor, $backgroundColor) {
2
+ scrollbar-color: $thumbColor $backgroundColor;
3
+ scrollbar-width: thin;
4
+
5
+ &::-webkit-scrollbar {
6
+ width: 4px;
7
+ height: 4px;
8
+ border-radius: 3px;
9
+
10
+ &:hover {
11
+ cursor: pointer;
12
+ }
13
+ }
14
+
15
+ &::-webkit-scrollbar-track {
16
+ border-radius: 3px;
17
+ background-color: $backgroundColor;
18
+ }
19
+
20
+ &::-webkit-scrollbar-thumb {
21
+ border-radius: 3px;
22
+ background-color: $thumbColor;
23
+ }
24
+ }
25
+
26
+ @mixin scrollWrapper($maxHeight, $paddingRight: 0, $thumbColor, $backgroundColor) {
27
+ @include custom-scroll($thumbColor, $backgroundColor);
28
+ padding-right: $paddingRight;
29
+ max-height: $maxHeight;
30
+ overflow: auto;
31
+ }
@@ -0,0 +1,29 @@
1
+ @use "sass:map";
2
+ @use "../variables/common/media";
3
+
4
+ @mixin typography-type($typeMap) {
5
+ font-family: map.get($typeMap, font-family);
6
+ font-size: map.get($typeMap, font-size);
7
+ font-weight: map.get($typeMap, font-weight);
8
+ line-height: map.get($typeMap, line-height);
9
+ color: map.get($typeMap, color);
10
+ text-transform: map.get($typeMap, text-transform);
11
+ text-decoration: map.get($typeMap, text-decoration);
12
+ text-align: map.get($typeMap, text-align);
13
+
14
+ @media (max-width: media.$tablet-width) {
15
+ font-size: map.get($typeMap, tablet-font-size);
16
+ font-weight: map.get($typeMap, tablet-font-weight);
17
+ line-height: map.get($typeMap, tablet-line-height);
18
+ text-transform: map.get($typeMap, tablet-text-transform);
19
+ text-align: map.get($typeMap, tablet-text-align);
20
+ }
21
+
22
+ @media (max-width: media.$mobile-width) {
23
+ font-size: map.get($typeMap, mobile-font-size);
24
+ font-weight: map.get($typeMap, mobile-font-weight);
25
+ line-height: map.get($typeMap, mobile-line-height);
26
+ text-transform: map.get($typeMap, mobile-text-transform);
27
+ text-align: map.get($typeMap, mobile-text-align);
28
+ }
29
+ }
@@ -0,0 +1,25 @@
1
+ @import-normalize;
2
+
3
+ * {
4
+ margin: 0;
5
+ padding: 0;
6
+ box-sizing: border-box;
7
+ }
8
+
9
+ ul, li {
10
+ list-style-type: none;
11
+ }
12
+
13
+ a {
14
+ text-decoration: none;
15
+ color: inherit;
16
+ font-family: inherit;
17
+ }
18
+
19
+ button {
20
+ font-family: inherit;
21
+ }
22
+
23
+ input {
24
+ outline: none;
25
+ }