@steroidsjs/bootstrap 3.0.0-beta.10 → 3.0.0-beta.100

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 (361) 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 +4 -3
  9. package/content/Alert/AlertView.scss +75 -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 +6 -3
  16. package/content/Calendar/CalendarView.scss +270 -175
  17. package/content/Calendar/CaptionElement.js +23 -15
  18. package/content/Calendar/CaptionElement.scss +168 -106
  19. package/content/Card/CardView.js +37 -14
  20. package/content/Card/CardView.scss +139 -108
  21. package/content/Chart/ChartView.d.ts +2 -0
  22. package/content/Chart/ChartView.js +47 -0
  23. package/content/Chart/ChartView.scss +8 -0
  24. package/content/CopyToClipboard/CopyToClipboardView.d.ts +3 -0
  25. package/content/CopyToClipboard/CopyToClipboardView.js +19 -0
  26. package/content/CopyToClipboard/CopyToClipboardView.scss +41 -0
  27. package/content/Detail/DetailView.scss +79 -57
  28. package/content/DropDown/DropDownView.d.ts +0 -1
  29. package/content/DropDown/DropDownView.js +7 -4
  30. package/content/DropDown/DropDownView.scss +208 -27
  31. package/content/Icon/IconView.d.ts +1 -2
  32. package/content/Icon/IconView.js +2 -2
  33. package/content/Icon/IconView.scss +1 -23
  34. package/content/Menu/MenuItemView.d.ts +2 -0
  35. package/content/Menu/MenuItemView.js +15 -0
  36. package/content/Menu/MenuItemView.scss +67 -0
  37. package/content/Menu/MenuView.d.ts +2 -0
  38. package/content/Menu/MenuView.js +33 -0
  39. package/content/Menu/MenuView.scss +46 -0
  40. package/content/Slider/SliderView.d.ts +3 -0
  41. package/content/Slider/SliderView.js +21 -0
  42. package/content/Slider/SliderView.scss +5 -0
  43. package/form/AutoCompleteField/AutoCompleteFieldView.d.ts +1 -3
  44. package/form/AutoCompleteField/AutoCompleteFieldView.js +62 -9
  45. package/form/AutoCompleteField/AutoCompleteFieldView.scss +201 -142
  46. package/form/Button/ButtonView.d.ts +1 -2
  47. package/form/Button/ButtonView.js +13 -9
  48. package/form/Button/ButtonView.scss +176 -68
  49. package/form/CheckboxField/CheckboxFieldView.d.ts +1 -2
  50. package/form/CheckboxField/CheckboxFieldView.js +6 -4
  51. package/form/CheckboxField/CheckboxFieldView.scss +198 -37
  52. package/form/CheckboxListField/CheckboxListFieldView.d.ts +1 -2
  53. package/form/CheckboxListField/CheckboxListFieldView.js +18 -15
  54. package/form/CheckboxListField/CheckboxListFieldView.scss +7 -41
  55. package/form/DateField/DateFieldView.js +7 -6
  56. package/form/DateField/DateFieldView.scss +15 -70
  57. package/form/DateRangeField/DateRangeFieldView.js +10 -13
  58. package/form/DateRangeField/DateRangeFieldView.scss +41 -73
  59. package/form/DateTimeField/DateTimeFieldView.d.ts +1 -2
  60. package/form/DateTimeField/DateTimeFieldView.js +6 -6
  61. package/form/DateTimeField/DateTimeFieldView.scss +13 -107
  62. package/form/DateTimeRangeField/DateTimeRangeFieldView.js +10 -8
  63. package/form/DateTimeRangeField/DateTimeRangeFieldView.scss +32 -87
  64. package/form/DropDownField/DropDownFieldView.js +35 -47
  65. package/form/DropDownField/DropDownFieldView.scss +382 -181
  66. package/form/DropDownField/utils.d.ts +2 -0
  67. package/form/DropDownField/utils.js +15 -0
  68. package/form/DropDownFieldItem/DropDownFieldItemView.d.ts +2 -0
  69. package/form/DropDownFieldItem/DropDownFieldItemView.js +81 -0
  70. package/form/DropDownFieldItem/DropDownFieldItemView.scss +220 -0
  71. package/form/FieldLayout/FieldLayoutView.d.ts +1 -2
  72. package/form/FieldLayout/FieldLayoutView.js +13 -9
  73. package/form/FieldLayout/FieldLayoutView.scss +116 -19
  74. package/form/FieldList/FieldListItemView.js +6 -4
  75. package/form/FieldList/FieldListItemView.scss +18 -38
  76. package/form/FieldList/FieldListView.js +9 -8
  77. package/form/FieldList/FieldListView.scss +77 -24
  78. package/form/FieldSet/FieldSetView.js +4 -2
  79. package/form/FieldSet/FieldSetView.scss +42 -0
  80. package/form/FileField/FileFieldItemView.d.ts +1 -2
  81. package/form/FileField/FileFieldItemView.js +31 -6
  82. package/form/FileField/FileFieldItemView.scss +259 -14
  83. package/form/FileField/FileFieldView.d.ts +1 -2
  84. package/form/FileField/FileFieldView.js +6 -8
  85. package/form/FileField/FileFieldView.scss +46 -13
  86. package/form/Form/FormView.js +1 -4
  87. package/form/Form/FormView.scss +1 -14
  88. package/form/HtmlField/HtmlFieldView.d.ts +1 -2
  89. package/form/HtmlField/HtmlFieldView.scss +7 -1
  90. package/form/ImageField/ImageFieldModalView.js +3 -1
  91. package/form/ImageField/ImageFieldView.js +15 -3
  92. package/form/ImageField/ImageFieldView.scss +7 -24
  93. package/form/InputField/InputFieldView.d.ts +1 -2
  94. package/form/InputField/InputFieldView.js +33 -14
  95. package/form/InputField/InputFieldView.scss +277 -99
  96. package/form/NumberField/NumberFieldView.d.ts +1 -2
  97. package/form/NumberField/NumberFieldView.js +19 -24
  98. package/form/NumberField/NumberFieldView.scss +197 -89
  99. package/form/PasswordField/PasswordFieldView.d.ts +1 -2
  100. package/form/PasswordField/PasswordFieldView.js +14 -9
  101. package/form/PasswordField/PasswordFieldView.scss +253 -63
  102. package/form/RadioField/RadioFieldView.d.ts +2 -0
  103. package/form/RadioField/RadioFieldView.js +57 -0
  104. package/form/RadioField/RadioFieldView.scss +228 -0
  105. package/form/RadioListField/RadioListFieldView.d.ts +1 -2
  106. package/form/RadioListField/RadioListFieldView.js +18 -16
  107. package/form/RadioListField/RadioListFieldView.scss +11 -1
  108. package/form/RateField/RateFieldView.js +17 -10
  109. package/form/RateField/RateFieldView.scss +118 -40
  110. package/form/ReCaptchaField/ReCaptchaFieldView.d.ts +1 -2
  111. package/form/ReCaptchaField/ReCaptchaFieldView.js +18 -9
  112. package/form/ReCaptchaField/ReCaptchaFieldView.scss +1 -5
  113. package/form/SliderField/SliderFieldView.d.ts +1 -2
  114. package/form/SliderField/SliderFieldView.js +4 -2
  115. package/form/SliderField/SliderFieldView.scss +338 -299
  116. package/form/SwitcherField/SwitcherFieldView.d.ts +1 -2
  117. package/form/SwitcherField/SwitcherFieldView.js +12 -7
  118. package/form/SwitcherField/SwitcherFieldView.scss +192 -1
  119. package/form/TextField/TextFieldView.d.ts +1 -2
  120. package/form/TextField/TextFieldView.js +10 -2
  121. package/form/TextField/TextFieldView.scss +147 -2
  122. package/form/TimeField/TimeFieldView.d.ts +1 -2
  123. package/form/TimeField/TimeFieldView.js +16 -14
  124. package/form/TimeField/TimeFieldView.scss +22 -68
  125. package/form/TimeField/TimePanelView.scss +65 -68
  126. package/form/TimeRangeField/TimeRangeFieldView.d.ts +2 -0
  127. package/form/TimeRangeField/TimeRangeFieldView.js +67 -0
  128. package/form/TimeRangeField/TimeRangeFieldView.scss +81 -0
  129. package/icons/index.d.ts +2 -0
  130. package/icons/index.js +110 -0
  131. package/icons/svgs/add.svg +4 -0
  132. package/icons/svgs/add_square.svg +5 -0
  133. package/icons/svgs/arrow_down_18x18.svg +4 -0
  134. package/icons/svgs/arrow_down_24x24.svg +4 -0
  135. package/icons/svgs/arrow_drop_down_10x10.svg +3 -0
  136. package/icons/svgs/arrow_left_18x18.svg +4 -0
  137. package/icons/svgs/arrow_left_24x24.svg +4 -0
  138. package/icons/svgs/arrow_right_18x18.svg +4 -0
  139. package/icons/svgs/arrow_right_24x24.svg +5 -0
  140. package/icons/svgs/arrow_up_18x18.svg +4 -0
  141. package/icons/svgs/arrow_up_24x24.svg +4 -0
  142. package/icons/svgs/blank.svg +4 -0
  143. package/icons/svgs/burger.svg +5 -0
  144. package/icons/svgs/calendar_check.svg +5 -0
  145. package/icons/svgs/calendar_range.svg +8 -0
  146. package/icons/svgs/cancel_ellips.svg +4 -0
  147. package/icons/svgs/chart.svg +6 -0
  148. package/icons/svgs/checkmark_12x12.svg +4 -0
  149. package/icons/svgs/checkmark_8x8.svg +4 -0
  150. package/icons/svgs/circle_cross_12x12.svg +4 -0
  151. package/icons/svgs/circle_cross_16x16.svg +4 -0
  152. package/icons/svgs/circle_cross_18x18.svg +4 -0
  153. package/icons/svgs/clip.svg +3 -0
  154. package/icons/svgs/copy.svg +5 -0
  155. package/icons/svgs/cross_12x12.svg +4 -0
  156. package/icons/svgs/cross_4x4.svg +3 -0
  157. package/icons/svgs/cross_8x8.svg +4 -0
  158. package/icons/svgs/cut.svg +3 -0
  159. package/icons/svgs/date_range.svg +8 -0
  160. package/icons/svgs/default_16x16.svg +4 -0
  161. package/icons/svgs/default_24x24.svg +11 -0
  162. package/icons/svgs/double_arrow_down.svg +5 -0
  163. package/icons/svgs/double_arrow_left.svg +5 -0
  164. package/icons/svgs/double_arrow_right.svg +5 -0
  165. package/icons/svgs/double_arrow_up.svg +5 -0
  166. package/icons/svgs/doughnut_chart.svg +5 -0
  167. package/icons/svgs/edit.svg +4 -0
  168. package/icons/svgs/error_16x16.svg +5 -0
  169. package/icons/svgs/error_24x24.svg +12 -0
  170. package/icons/svgs/expand_down.svg +3 -0
  171. package/icons/svgs/expand_left.svg +3 -0
  172. package/icons/svgs/expand_left_double.svg +4 -0
  173. package/icons/svgs/expand_right.svg +3 -0
  174. package/icons/svgs/expand_right_double.svg +4 -0
  175. package/icons/svgs/expand_up.svg +3 -0
  176. package/icons/svgs/facebook.svg +3 -0
  177. package/icons/svgs/file_dock.svg +6 -0
  178. package/icons/svgs/filter.svg +3 -0
  179. package/icons/svgs/fluid.svg +4 -0
  180. package/icons/svgs/folder.svg +3 -0
  181. package/icons/svgs/group.svg +8 -0
  182. package/icons/svgs/home.svg +4 -0
  183. package/icons/svgs/img_box.svg +5 -0
  184. package/icons/svgs/import.svg +4 -0
  185. package/icons/svgs/info_16x16.svg +5 -0
  186. package/icons/svgs/info_24x24.svg +12 -0
  187. package/icons/svgs/instagram.svg +5 -0
  188. package/icons/svgs/left_12x12.svg +3 -0
  189. package/icons/svgs/loading_default.svg +3 -0
  190. package/icons/svgs/loading_icon_thick.svg +3 -0
  191. package/icons/svgs/loading_purple.svg +9 -0
  192. package/icons/svgs/map.svg +7 -0
  193. package/icons/svgs/menu_dots.svg +5 -0
  194. package/icons/svgs/menu_left.svg +5 -0
  195. package/icons/svgs/minis_sq.svg +4 -0
  196. package/icons/svgs/paste.svg +8 -0
  197. package/icons/svgs/pie_chart.svg +5 -0
  198. package/icons/svgs/pin.svg +4 -0
  199. package/icons/svgs/sad.svg +6 -0
  200. package/icons/svgs/search.svg +4 -0
  201. package/icons/svgs/setting_line.svg +3 -0
  202. package/icons/svgs/share.svg +7 -0
  203. package/icons/svgs/sort.svg +7 -0
  204. package/icons/svgs/star.svg +3 -0
  205. package/icons/svgs/success_16x16.svg +4 -0
  206. package/icons/svgs/success_24x24.svg +11 -0
  207. package/icons/svgs/support.svg +3 -0
  208. package/icons/svgs/telegram.svg +3 -0
  209. package/icons/svgs/trash.svg +6 -0
  210. package/icons/svgs/upload.svg +4 -0
  211. package/icons/svgs/user.svg +4 -0
  212. package/icons/svgs/view.svg +4 -0
  213. package/icons/svgs/view_hide.svg +5 -0
  214. package/icons/svgs/vk.svg +3 -0
  215. package/icons/svgs/warning_16x16.svg +5 -0
  216. package/icons/svgs/warning_24x24.svg +12 -0
  217. package/icons/svgs/whatsapp.svg +7 -0
  218. package/index.d.ts +44 -2
  219. package/index.js +46 -4
  220. package/index.scss +90 -68
  221. package/layout/Header/HeaderView.js +43 -6
  222. package/layout/Header/HeaderView.scss +137 -23
  223. package/layout/Loader/LoaderView.d.ts +2 -2
  224. package/layout/Loader/LoaderView.js +6 -2
  225. package/layout/Loader/LoaderView.scss +70 -22
  226. package/layout/Notifications/NotificationsItemView.d.ts +1 -2
  227. package/layout/Notifications/NotificationsItemView.js +9 -8
  228. package/layout/Notifications/NotificationsItemView.scss +56 -84
  229. package/layout/Notifications/NotificationsView.d.ts +1 -2
  230. package/layout/Notifications/NotificationsView.scss +4 -1
  231. package/layout/ProgressBar/CircleProgressBarView.d.ts +1 -2
  232. package/layout/ProgressBar/CircleProgressBarView.scss +9 -7
  233. package/layout/ProgressBar/LineProgressBarView.d.ts +1 -2
  234. package/layout/ProgressBar/LineProgressBarView.scss +10 -8
  235. package/layout/Sidebar/FooterIcons/FooterIcons.d.ts +10 -0
  236. package/layout/Sidebar/FooterIcons/FooterIcons.js +54 -0
  237. package/layout/Sidebar/FooterIcons/FooterIcons.scss +36 -0
  238. package/layout/Sidebar/FooterIcons/index.d.ts +2 -0
  239. package/layout/Sidebar/FooterIcons/index.js +7 -0
  240. package/layout/Sidebar/SidebarLogo/SidebarLogo.d.ts +10 -0
  241. package/layout/Sidebar/SidebarLogo/SidebarLogo.js +44 -0
  242. package/layout/Sidebar/SidebarLogo/SidebarLogo.scss +52 -0
  243. package/layout/Sidebar/SidebarLogo/index.d.ts +2 -0
  244. package/layout/Sidebar/SidebarLogo/index.js +7 -0
  245. package/layout/Sidebar/SidebarUser/SidebarUser.d.ts +11 -0
  246. package/layout/Sidebar/SidebarUser/SidebarUser.js +53 -0
  247. package/layout/Sidebar/SidebarUser/SidebarUser.scss +45 -0
  248. package/layout/Sidebar/SidebarUser/index.d.ts +2 -0
  249. package/layout/Sidebar/SidebarUser/index.js +7 -0
  250. package/layout/Sidebar/SidebarView.d.ts +2 -0
  251. package/layout/Sidebar/SidebarView.js +26 -0
  252. package/layout/Sidebar/SidebarView.scss +304 -0
  253. package/layout/Sidebar/index.d.ts +2 -0
  254. package/layout/Sidebar/index.js +7 -0
  255. package/layout/Skeleton/SkeletonView.scss +7 -5
  256. package/layout/Tooltip/TooltipView.d.ts +1 -2
  257. package/layout/Tooltip/TooltipView.js +6 -6
  258. package/layout/Tooltip/TooltipView.scss +46 -37
  259. package/list/CheckboxColumn/CheckboxColumnView.d.ts +1 -2
  260. package/list/CheckboxColumn/CheckboxColumnView.js +2 -1
  261. package/list/ControlsColumnView/ControlsColumnView.d.ts +1 -2
  262. package/list/ControlsColumnView/ControlsColumnView.scss +7 -1
  263. package/list/Empty/EmptyView.js +1 -1
  264. package/list/Empty/EmptyView.scss +5 -1
  265. package/list/FlexGrid/FlexGridView.d.ts +2 -0
  266. package/list/FlexGrid/FlexGridView.js +71 -0
  267. package/list/FlexGrid/FlexGridView.scss +60 -0
  268. package/list/Grid/GridView.js +10 -4
  269. package/list/Grid/GridView.scss +154 -37
  270. package/list/Grid/views/ContentColumnView/ContentColumnView.d.ts +2 -0
  271. package/list/Grid/views/ContentColumnView/ContentColumnView.js +50 -0
  272. package/list/Grid/views/ContentColumnView/ContentColumnView.scss +88 -0
  273. package/list/Grid/views/ContentColumnView/index.d.ts +2 -0
  274. package/list/Grid/views/ContentColumnView/index.js +7 -0
  275. package/list/Grid/views/DiagramColumnView/DiagramColumnView.d.ts +3 -0
  276. package/list/Grid/views/DiagramColumnView/DiagramColumnView.js +60 -0
  277. package/list/Grid/views/DiagramColumnView/DiagramColumnView.scss +170 -0
  278. package/list/Grid/views/DiagramColumnView/index.d.ts +2 -0
  279. package/list/Grid/views/DiagramColumnView/index.js +7 -0
  280. package/list/List/ListItemView.d.ts +1 -2
  281. package/list/List/ListView.js +5 -7
  282. package/list/List/ListView.scss +28 -1
  283. package/list/Pagination/PaginationButtonView.js +34 -5
  284. package/list/Pagination/PaginationButtonView.scss +277 -1
  285. package/list/Pagination/PaginationMoreView.js +1 -1
  286. package/list/Pagination/PaginationMoreView.scss +4 -1
  287. package/list/PaginationSize/PaginationSizeView.js +5 -5
  288. package/list/PaginationSize/PaginationSizeView.scss +0 -8
  289. package/list/Steps/StepItemView.scss +13 -12
  290. package/list/Steps/StepsView.scss +3 -1
  291. package/modal/Modal/ModalView.d.ts +1 -2
  292. package/modal/Modal/ModalView.js +5 -8
  293. package/modal/Modal/ModalView.scss +140 -93
  294. package/modal/TwoFactorModal/TwoFactorModalView.d.ts +1 -3
  295. package/modal/TwoFactorModal/TwoFactorModalView.js +0 -1
  296. package/modal/TwoFactorModal/TwoFactorModalView.scss +0 -2
  297. package/nav/Breadcrubms/BreadcrumbsView.js +9 -1
  298. package/nav/Breadcrubms/BreadcrumbsView.scss +49 -0
  299. package/nav/ButtonGroup/ButtonGroupView.d.ts +2 -0
  300. package/nav/ButtonGroup/ButtonGroupView.js +33 -0
  301. package/nav/ButtonGroup/ButtonGroupView.scss +84 -0
  302. package/nav/Controls/ControlsView.d.ts +1 -2
  303. package/nav/Controls/ControlsView.js +1 -1
  304. package/nav/Controls/ControlsView.scss +18 -3
  305. package/nav/Nav/NavBarView.d.ts +1 -2
  306. package/nav/Nav/NavBarView.js +9 -4
  307. package/nav/Nav/NavBarView.scss +35 -1
  308. package/nav/Nav/NavButtonView.d.ts +1 -2
  309. package/nav/Nav/NavButtonView.js +8 -2
  310. package/nav/Nav/NavButtonView.scss +6 -5
  311. package/nav/Nav/NavIconView.d.ts +1 -2
  312. package/nav/Nav/NavIconView.js +21 -2
  313. package/nav/Nav/NavIconView.scss +33 -6
  314. package/nav/Nav/NavLinkView.d.ts +1 -2
  315. package/nav/Nav/NavLinkView.js +9 -2
  316. package/nav/Nav/NavLinkView.scss +14 -5
  317. package/nav/Nav/NavListView.d.ts +1 -2
  318. package/nav/Nav/NavListView.js +11 -7
  319. package/nav/Nav/NavListView.scss +11 -10
  320. package/nav/Nav/NavTabsView.d.ts +1 -2
  321. package/nav/Nav/NavTabsView.js +9 -4
  322. package/nav/Nav/NavTabsView.scss +50 -1
  323. package/nav/Tree/TreeView.d.ts +1 -2
  324. package/nav/Tree/TreeView.scss +63 -54
  325. package/package.json +8 -6
  326. package/scss/animations/index.scss +1 -0
  327. package/scss/animations/loading.scss +13 -0
  328. package/scss/fonts.scss +6 -0
  329. package/scss/mixins/button.scss +83 -24
  330. package/scss/mixins/customMixins.scss +6 -0
  331. package/scss/mixins/date.scss +436 -0
  332. package/scss/mixins/index.scss +6 -2
  333. package/scss/mixins/navs.scss +39 -0
  334. package/scss/mixins/scroll.scss +31 -0
  335. package/scss/mixins/typography.scss +29 -0
  336. package/scss/normalize.scss +25 -0
  337. package/scss/variables/common/colors.scss +199 -83
  338. package/scss/variables/common/media.scss +3 -0
  339. package/scss/variables/common/typography.scss +99 -28
  340. package/scss/variables/common/variables.scss +1 -0
  341. package/scss/variables/components/calendar.scss +8 -6
  342. package/scss/variables/components/input.scss +10 -7
  343. package/scss/variables/components/ratefield.scss +3 -1
  344. package/scss/variables/index.scss +10 -11
  345. package/typography/Text/TextView.d.ts +3 -0
  346. package/typography/Text/TextView.js +46 -0
  347. package/typography/Text/TextView.scss +19 -0
  348. package/typography/Title/TitleView.d.ts +3 -0
  349. package/typography/Title/TitleView.js +50 -0
  350. package/typography/Title/TitleView.scss +19 -0
  351. package/utils/renderIcon.d.ts +9 -0
  352. package/utils/renderIcon.js +27 -0
  353. package/content/Collapse/CollapseItemView.d.ts +0 -2
  354. package/content/Collapse/CollapseItemView.scss +0 -88
  355. package/content/Collapse/CollapseView.d.ts +0 -2
  356. package/content/Collapse/CollapseView.scss +0 -15
  357. package/icons/fontawesome.d.ts +0 -2
  358. package/icons/fontawesome.js +0 -259
  359. package/list/List/ListItemView.scss +0 -3
  360. package/scss/mixins/card.scss +0 -26
  361. package/scss/variables/components/card.scss +0 -20
@@ -1,198 +1,293 @@
1
+ @use "../../scss/variables";
2
+ @use '../../scss/mixins';
3
+
4
+ :root {
5
+ --day-background-color-hover: rgba(0, 0, 0, 0.1);
6
+ --calendar-border-color: var(--light-gray);
7
+ }
8
+
9
+ html[data-theme="dark"] {
10
+ --day-background-color-hover: rgba(255, 255, 255, 0.1);
11
+ --calendar-border-color: var(--gray);
12
+ }
13
+
14
+ $day-background-color-hover: var(--day-background-color-hover);
15
+ $calendar-border-color: var(--calendar-border-color);
16
+
1
17
  .CalendarView {
2
- $root: &;
3
-
4
- position: relative;
5
- color: $calendar-text-color;
6
- font-weight: $calendar-font-weight;
7
- user-select: none;
8
-
9
- .DayPicker-wrapper {
10
- padding-bottom: 0;
11
- }
12
- .DayPicker-Months {
13
- display: flex;
14
- flex-wrap: wrap;
15
- justify-content: center;
16
- }
17
- .DayPicker-Month {
18
- display: table;
19
- border-collapse: separate;
20
- border-spacing: 10px;
21
- margin: 0;
22
- }
23
-
24
- // Body
25
-
26
- .DayPicker-Weekdays {
27
- display: table-header-group;
28
- margin-top: 1em;
29
- }
30
- .DayPicker-WeekdaysRow {
31
- display: table-row;
32
- }
33
- .DayPicker-Weekday {
34
- display: table-cell;
35
- width: 30px;
36
- height: 30px;
37
- padding: 0;
38
- color: inherit;
39
- text-align: center;
40
- font-size: 0.875em;
41
- }
42
- .DayPicker-Weekday abbr[title] {
43
- border-bottom: none;
44
- text-decoration: none;
45
- }
46
-
47
- .DayPicker-Body {
48
- display: table-row-group;
49
- }
50
- .DayPicker-Week {
51
- display: table-row;
52
-
53
- &--disabled {
54
- pointer-events: none;
55
- opacity: .5;
56
- }
57
- }
58
- .DayPicker-Day {
59
- position: relative;
60
- display: table-cell;
61
-
62
- padding: 0;
63
- border-radius: $calendar-day-border-radius;
64
-
65
- vertical-align: middle;
66
- text-align: center;
67
- cursor: pointer;
68
-
69
- transition-property: background-color, box-shadow, color;
70
- transition-duration: .1s;
71
-
72
- &::before {
73
- content: '';
74
- height: 30px;
75
- left: 0;
76
- position: absolute;
77
- right: 0;
78
- top: 50%;
79
- transform: translate(-5px, -50%);
80
- width: 40px;
81
- z-index: 1;
82
- }
83
-
84
- &--outside {
85
- color: $calendar-secondary-color;
86
- }
87
-
88
- &--today {
89
- #{$root}__day {
90
- box-shadow: $calendar-today-shadow;
91
- }
92
- }
93
-
94
- &--disabled {
95
- pointer-events: none;
96
- opacity: .5;
97
- }
98
- }
99
-
100
- // Footer
101
-
102
- .DayPicker-Footer {
103
- height: 50px;
104
-
105
- display: flex;
106
- flex-flow: row nowrap;
107
- align-items: center;
108
- justify-content: center;
109
- padding: 0 10px;
110
-
111
- border-top: 1px solid $calendar-secondary-color;
112
- }
113
- .DayPicker-TodayButton {
114
- border: none;
115
- background-color: transparent;
116
- background-image: none;
117
- box-shadow: none;
118
- font-size: 0.875em;
119
- cursor: pointer;
120
- color: $calendar-primary-color;
121
- font-weight: $calendar-font-weight;
122
- }
123
-
124
- // Days selection
125
-
126
- // Selected day
127
- .DayPicker-Day--selected:not(.DayPicker-Day--inRange) {
128
- color: $calendar-selected-text-color;
129
- border-radius: $calendar-day-border-radius;
130
- background-color: $calendar-primary-color;
131
- box-shadow: $calendar-selected-shadow;
132
- }
133
-
134
- // Hover
135
- .DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):hover {
136
- background-color: $calendar-secondary-light-color !important;
137
- box-shadow: $calendar-hover-shadow;
138
- }
139
-
140
- &__day {
18
+ $root: &;
19
+
20
+ background-color: variables.$element-background-color;
21
+ border-radius: variables.$radius-large;
22
+ border: 4px solid $calendar-border-color;
141
23
  position: relative;
142
- z-index: 1;
143
- width: 30px;
144
- height: 30px;
145
- line-height: 30px;
146
- border-radius: $calendar-day-border-radius;
147
- }
24
+ color: variables.$text-color;
25
+ font-weight: variables.$font-weight-md;
26
+ user-select: none;
27
+ padding: 12px;
148
28
 
149
- &_ranged {
29
+ .DayPicker-wrapper {
30
+ padding-bottom: 0;
31
+ }
150
32
 
151
- .DayPicker-Day {
152
- &--start {
153
- color: $white;
33
+ .DayPicker-Months {
34
+ display: flex;
35
+ flex-wrap: wrap;
36
+ justify-content: center;
37
+ row-gap: 12px;
38
+ }
39
+
40
+ .DayPicker-Month {
41
+ margin: 0;
42
+ }
43
+
44
+ // Body
45
+ .DayPicker-Weekdays {
46
+ margin-top: 0;
47
+ }
154
48
 
155
- #{$root}__day {
156
- background-color: $calendar-primary-color;
157
- box-shadow: $calendar-selected-shadow;
49
+ .DayPicker-WeekdaysRow {
50
+ width: 100%;
51
+ display: inline-flex;
52
+ column-gap: 16px;
53
+
54
+ @media (max-width: 392px) {
55
+ column-gap: 10px;
56
+ }
57
+ @media (max-width: 370px) {
58
+ column-gap: 6px;
59
+ }
60
+ @media (max-width: 334px) {
61
+ column-gap: 4px;
62
+ }
63
+ }
64
+
65
+ .DayPicker-Weekday {
66
+ display: inline-flex;
67
+ justify-content: center;
68
+ align-items: center;
69
+ width: 34px;
70
+ height: 34px;
71
+ padding: 0;
72
+ color: inherit;
73
+ text-align: center;
74
+ vertical-align: middle;
75
+ font-size: variables.$font-size-base;
76
+ line-height: variables.$line-height-base;
77
+ font-weight: variables.$font-weight-lg;
78
+ text-transform: capitalize;
79
+ }
80
+
81
+ .DayPicker-Weekday abbr[title] {
82
+ border-bottom: none;
83
+ text-decoration: none;
84
+ }
85
+
86
+ .DayPicker-Body {
87
+ display: flex;
88
+ flex-flow: column nowrap;
89
+ row-gap: 12px;
90
+ }
91
+
92
+ .DayPicker-Week {
93
+ display: flex;
94
+ width: 100%;
95
+ column-gap: 16px;
96
+
97
+ @media (max-width: 392px) {
98
+ column-gap: 10px;
99
+ }
100
+ @media (max-width: 370px) {
101
+ column-gap: 6px;
102
+ }
103
+ @media (max-width: 334px) {
104
+ column-gap: 4px;
158
105
  }
159
106
 
107
+ &--disabled {
108
+ pointer-events: none;
109
+ opacity: 0.5;
110
+ }
111
+ }
112
+
113
+ .DayPicker-Day {
114
+ position: relative;
115
+ flex-shrink: 0;
116
+ padding: 0;
117
+ border-radius: variables.$radius-large;
118
+
119
+ vertical-align: middle;
120
+ text-align: center;
121
+ cursor: pointer;
122
+
123
+ transition-property: background-color, box-shadow, color;
124
+ transition-duration: 0.1s;
125
+
160
126
  &::before {
161
- background-color: $calendar-primary-light-color;
162
- width: 10px;
163
- transform: translate(25px, -50%);
127
+ content: "";
128
+ height: 30px;
129
+ left: 0;
130
+ position: absolute;
131
+ right: 0;
132
+ top: 50%;
133
+ transform: translate(-5px, -50%);
134
+ width: 40px;
135
+ z-index: 1;
164
136
  }
165
- }
166
137
 
167
- &--end {
168
- color: #fff;
138
+ &::after {
139
+ position: absolute;
140
+ content: "";
141
+ display: block;
142
+ width: 100%;
143
+ height: 100%;
144
+ top: 0;
145
+ left: 0;
146
+ right: 0;
147
+ bottom: 0;
148
+ border-width: 4px;
149
+ border-style: solid;
150
+ border-radius: 16px;
151
+ border-color: $day-background-color-hover;
152
+ transform: translate(-4px, -4px);
153
+ opacity: 0;
154
+ transition: opacity 150ms ease-in-out;
155
+ z-index: 9;
156
+ }
169
157
 
170
- #{$root}__day {
171
- background-color: $calendar-primary-color;
172
- box-shadow: $calendar-selected-shadow;
158
+ &:focus {
159
+ outline: none;
160
+ }
161
+
162
+ &:focus:not(:active)::after {
163
+ opacity: 1;
173
164
  }
174
165
 
175
- &::before {
176
- background-color: $calendar-primary-light-color;
177
- width: 10px;
166
+ &--outside {
167
+ color: variables.$element-placeholder-color;
168
+
178
169
  }
179
- }
180
170
 
171
+ &--today {
172
+ #{$root}__day {
173
+ border: 1px solid variables.$primary;
174
+ color: variables.$primary;
175
+ }
176
+ }
181
177
 
182
- &--inRange {
183
- &::before {
184
- background-color: $calendar-primary-light-color;
178
+ &--disabled {
179
+ pointer-events: none;
180
+ opacity: 0.5;
185
181
  }
186
- }
182
+ }
187
183
 
188
- &--outRange {
189
- pointer-events: none;
190
- &::before {
191
- background-color: $calendar-primary-light-color;
184
+ // Footer
185
+ .DayPicker-Footer {
186
+ margin-top: 8px;
187
+ display: flex;
188
+ flex-flow: row nowrap;
189
+ align-items: center;
190
+ justify-content: flex-start;
191
+ }
192
+
193
+ .DayPicker-TodayButton {
194
+ @include mixins.calendar-button();
195
+ }
196
+
197
+ // Days selection
198
+ // Selected day
199
+ .DayPicker-Day--selected:not(.DayPicker-Day--inRange) {
200
+ color: variables.$white;
201
+ background-color: variables.$primary;
202
+ }
203
+
204
+ .DayPicker-Day--selected.DayPicker-Day--today .CalendarView__day {
205
+ color: variables.$white;
206
+ }
207
+
208
+ // Hover
209
+ .DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):not(
210
+ .DayPicker-Day--today
211
+ ):hover {
212
+ background-color: $day-background-color-hover;
213
+ }
214
+
215
+ .DayPicker-Day--today:hover {
216
+ background-color: transparent;
217
+
218
+ .CalendarView__day {
219
+ transition: background-color 150ms ease-in-out;
192
220
  }
193
- }
221
+ }
194
222
 
223
+ &__day {
224
+ position: relative;
225
+ z-index: 1;
226
+ width: 34px;
227
+ height: 34px;
228
+ line-height: 30px;
229
+ border-radius: variables.$radius-large;
230
+ display: flex;
231
+ justify-content: center;
232
+ align-items: center;
195
233
  }
196
234
 
197
- }
235
+ &_ranged {
236
+ .DayPicker-Day {
237
+ &--start {
238
+ color: variables.$white;
239
+
240
+ #{$root}__day {
241
+ background-color: variables.$primary;
242
+ }
243
+
244
+ &::before {
245
+ width: 50px;
246
+ height: 42px;
247
+ background-color: variables.$primary-light;
248
+ border-radius: 16px 0px 0px 16px;
249
+ }
250
+ }
251
+
252
+ &--end {
253
+ color: #fff;
254
+
255
+ #{$root}__day {
256
+ background-color: variables.$calendar-primary-color;
257
+ }
258
+
259
+ &::before {
260
+ width: 46px;
261
+ height: 42px;
262
+ background-color: variables.$primary-light;
263
+ border-radius: 0px 16px 16px 0px;
264
+ }
265
+ }
266
+
267
+ &--inRange {
268
+ &::before {
269
+ background-color: variables.$primary-light;
270
+ width: 50px;
271
+ height: 42px;
272
+ }
273
+ }
274
+
275
+ //Today in range
276
+ &--inRange.DayPicker-Day--selected.DayPicker-Day--today .CalendarView__day {
277
+ color: variables.$primary;
278
+ }
279
+
280
+ &--inRange:hover .CalendarView__day {
281
+ transition: background-color 150ms ease-in-out;
282
+ background-color: $day-background-color-hover;
283
+ }
284
+
285
+ &--outRange {
286
+ pointer-events: none;
287
+ &::before {
288
+ background-color: variables.$calendar-primary-light-color;
289
+ }
290
+ }
291
+ }
292
+ }
198
293
  }
@@ -57,16 +57,28 @@ function CaptionElement(props) {
57
57
  }
58
58
  return result;
59
59
  }, [fromYear, toYear]);
60
+ var icons = (0, react_1.useMemo)(function () { return [
61
+ {
62
+ name: 'double_arrow_left',
63
+ onClick: function () { return handleYearChange(currentYear - 1); }
64
+ },
65
+ {
66
+ name: 'arrow_left_24x24',
67
+ externalClass: 'one-arrow',
68
+ onClick: function () { return handleMonthChange(currentMonth - 1); }
69
+ },
70
+ {
71
+ name: 'arrow_right_24x24',
72
+ externalClass: 'one-arrow',
73
+ onClick: function () { return handleMonthChange(currentMonth + 1); }
74
+ },
75
+ {
76
+ name: 'double_arrow_right',
77
+ onClick: function () { return handleYearChange(currentYear + 1); }
78
+ },
79
+ ]; }, [currentYear, handleYearChange, currentMonth, handleMonthChange]);
60
80
  return (React.createElement("div", { className: bem(bem.block()) },
61
81
  React.createElement("div", { className: bem.element('container') },
62
- React.createElement(Icon_1["default"], { className: bem.element('button'), onClick: function (e) {
63
- e.preventDefault();
64
- handleYearChange(currentYear - 1);
65
- }, name: 'angle-double-left' }),
66
- React.createElement(Icon_1["default"], { className: bem.element('button', 'one-arrow'), onClick: function (e) {
67
- e.preventDefault();
68
- handleMonthChange(currentMonth - 1);
69
- }, name: 'angle-left' }),
70
82
  React.createElement("div", { className: bem.element('content-container'), onKeyPress: function (e) {
71
83
  e.preventDefault();
72
84
  toggleCaptionPanel();
@@ -76,14 +88,10 @@ function CaptionElement(props) {
76
88
  }, role: 'button', tabIndex: 0 },
77
89
  React.createElement("span", { className: bem.element('selected-month') }, months.find(function (month) { return month.id === currentMonth; }).label),
78
90
  React.createElement("span", { className: bem.element('selected-year') }, years.find(function (year) { return year === currentYear; }))),
79
- React.createElement(Icon_1["default"], { className: bem.element('button', 'one-arrow'), onClick: function (e) {
80
- e.preventDefault();
81
- handleMonthChange(currentMonth + 1);
82
- }, name: 'angle-right' }),
83
- React.createElement(Icon_1["default"], { className: bem.element('button'), onClick: function (e) {
91
+ React.createElement("div", { className: bem.element('container-icons') }, icons.map(function (icon, iconIndex) { return (React.createElement(Icon_1["default"], { key: iconIndex, name: icon.name, onClick: function (e) {
84
92
  e.preventDefault();
85
- handleYearChange(currentYear + 1);
86
- }, name: 'angle-double-right' })),
93
+ icon.onClick();
94
+ }, className: bem.element('button', icon.externalClass) })); }))),
87
95
  isCaptionPanelVisible && (React.createElement("div", { className: bem.element('panel', { 'full-height': !props.showCalendarFooter }) },
88
96
  React.createElement("div", { className: bem.element('panel-header', 'months') }, __('Месяц')),
89
97
  React.createElement("div", { className: bem.element('panel-header', 'years') }, __('Год')),