@steroidsjs/bootstrap 3.0.0-beta.8 → 3.0.0-beta.81

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 (330) 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 +252 -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 +65 -20
  10. package/content/Avatar/AvatarView.js +2 -3
  11. package/content/Avatar/AvatarView.scss +32 -39
  12. package/content/Badge/BadgeView.d.ts +2 -0
  13. package/content/Badge/BadgeView.js +24 -0
  14. package/content/Badge/BadgeView.scss +139 -0
  15. package/content/Calendar/CalendarView.js +1 -1
  16. package/content/Calendar/CalendarView.scss +244 -161
  17. package/content/Calendar/CaptionElement.js +23 -15
  18. package/content/Calendar/CaptionElement.scss +164 -106
  19. package/content/Card/CardView.js +37 -14
  20. package/content/Card/CardView.scss +137 -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 +72 -52
  25. package/content/DropDown/DropDownView.d.ts +0 -1
  26. package/content/DropDown/DropDownView.js +7 -4
  27. package/content/DropDown/DropDownView.scss +206 -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 +63 -0
  34. package/content/Menu/MenuView.d.ts +2 -0
  35. package/content/Menu/MenuView.js +30 -0
  36. package/content/Menu/MenuView.scss +43 -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 +196 -142
  43. package/form/Button/ButtonView.d.ts +1 -2
  44. package/form/Button/ButtonView.js +13 -9
  45. package/form/Button/ButtonView.scss +174 -68
  46. package/form/CheckboxField/CheckboxFieldView.d.ts +1 -2
  47. package/form/CheckboxField/CheckboxFieldView.js +6 -4
  48. package/form/CheckboxField/CheckboxFieldView.scss +195 -36
  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 +12 -71
  54. package/form/DateRangeField/DateRangeFieldView.js +10 -13
  55. package/form/DateRangeField/DateRangeFieldView.scss +32 -77
  56. package/form/DateTimeField/DateTimeFieldView.d.ts +1 -2
  57. package/form/DateTimeField/DateTimeFieldView.js +6 -6
  58. package/form/DateTimeField/DateTimeFieldView.scss +10 -107
  59. package/form/DateTimeRangeField/DateTimeRangeFieldView.js +10 -8
  60. package/form/DateTimeRangeField/DateTimeRangeFieldView.scss +28 -88
  61. package/form/DropDownField/DropDownFieldView.js +35 -47
  62. package/form/DropDownField/DropDownFieldView.scss +381 -182
  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 +218 -0
  68. package/form/FieldLayout/FieldLayoutView.d.ts +1 -2
  69. package/form/FieldLayout/FieldLayoutView.js +13 -9
  70. package/form/FieldLayout/FieldLayoutView.scss +114 -19
  71. package/form/FieldList/FieldListItemView.js +6 -4
  72. package/form/FieldList/FieldListItemView.scss +17 -39
  73. package/form/FieldList/FieldListView.js +9 -8
  74. package/form/FieldList/FieldListView.scss +72 -24
  75. package/form/FieldSet/FieldSetView.js +4 -2
  76. package/form/FieldSet/FieldSetView.scss +39 -0
  77. package/form/FileField/FileFieldItemView.d.ts +1 -2
  78. package/form/FileField/FileFieldItemView.js +31 -6
  79. package/form/FileField/FileFieldItemView.scss +254 -13
  80. package/form/FileField/FileFieldView.d.ts +1 -2
  81. package/form/FileField/FileFieldView.js +6 -8
  82. package/form/FileField/FileFieldView.scss +43 -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 +265 -99
  92. package/form/NumberField/NumberFieldView.d.ts +1 -2
  93. package/form/NumberField/NumberFieldView.js +19 -13
  94. package/form/NumberField/NumberFieldView.scss +195 -89
  95. package/form/PasswordField/PasswordFieldView.d.ts +1 -2
  96. package/form/PasswordField/PasswordFieldView.js +11 -9
  97. package/form/PasswordField/PasswordFieldView.scss +236 -63
  98. package/form/RadioField/RadioFieldView.d.ts +2 -0
  99. package/form/RadioField/RadioFieldView.js +57 -0
  100. package/form/RadioField/RadioFieldView.scss +226 -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 +115 -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 +336 -299
  112. package/form/SwitcherField/SwitcherFieldView.d.ts +1 -2
  113. package/form/SwitcherField/SwitcherFieldView.js +12 -7
  114. package/form/SwitcherField/SwitcherFieldView.scss +188 -1
  115. package/form/TextField/TextFieldView.d.ts +1 -2
  116. package/form/TextField/TextFieldView.js +10 -2
  117. package/form/TextField/TextFieldView.scss +144 -2
  118. package/form/TimeField/TimeFieldView.d.ts +1 -2
  119. package/form/TimeField/TimeFieldView.js +16 -14
  120. package/form/TimeField/TimeFieldView.scss +19 -68
  121. package/form/TimeField/TimePanelView.scss +62 -68
  122. package/form/TimeRangeField/TimeRangeFieldView.d.ts +2 -0
  123. package/form/TimeRangeField/TimeRangeFieldView.js +67 -0
  124. package/form/TimeRangeField/TimeRangeFieldView.scss +77 -0
  125. package/icons/index.d.ts +2 -0
  126. package/icons/index.js +103 -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 +4 -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/calendar_check.svg +5 -0
  140. package/icons/svgs/calendar_range.svg +8 -0
  141. package/icons/svgs/cancel_ellips.svg +4 -0
  142. package/icons/svgs/chart.svg +6 -0
  143. package/icons/svgs/checkmark_12x12.svg +4 -0
  144. package/icons/svgs/checkmark_8x8.svg +4 -0
  145. package/icons/svgs/circle_cross_12x12.svg +4 -0
  146. package/icons/svgs/circle_cross_16x16.svg +4 -0
  147. package/icons/svgs/circle_cross_18x18.svg +4 -0
  148. package/icons/svgs/clip.svg +3 -0
  149. package/icons/svgs/copy.svg +5 -0
  150. package/icons/svgs/cross_12x12.svg +4 -0
  151. package/icons/svgs/cross_4x4.svg +3 -0
  152. package/icons/svgs/cross_8x8.svg +4 -0
  153. package/icons/svgs/cut.svg +3 -0
  154. package/icons/svgs/date_range.svg +8 -0
  155. package/icons/svgs/default_16x16.svg +4 -0
  156. package/icons/svgs/default_24x24.svg +11 -0
  157. package/icons/svgs/double_arrow_down.svg +5 -0
  158. package/icons/svgs/double_arrow_left.svg +5 -0
  159. package/icons/svgs/double_arrow_right.svg +5 -0
  160. package/icons/svgs/double_arrow_up.svg +5 -0
  161. package/icons/svgs/doughnut_chart.svg +5 -0
  162. package/icons/svgs/edit.svg +4 -0
  163. package/icons/svgs/error_16x16.svg +5 -0
  164. package/icons/svgs/error_24x24.svg +12 -0
  165. package/icons/svgs/expand_down.svg +3 -0
  166. package/icons/svgs/expand_left.svg +3 -0
  167. package/icons/svgs/expand_left_double.svg +4 -0
  168. package/icons/svgs/expand_right.svg +3 -0
  169. package/icons/svgs/expand_right_double.svg +4 -0
  170. package/icons/svgs/expand_up.svg +3 -0
  171. package/icons/svgs/file_dock.svg +6 -0
  172. package/icons/svgs/filter.svg +3 -0
  173. package/icons/svgs/fluid.svg +4 -0
  174. package/icons/svgs/folder.svg +3 -0
  175. package/icons/svgs/group.svg +8 -0
  176. package/icons/svgs/home.svg +4 -0
  177. package/icons/svgs/img_box.svg +5 -0
  178. package/icons/svgs/import.svg +4 -0
  179. package/icons/svgs/info_16x16.svg +5 -0
  180. package/icons/svgs/info_24x24.svg +12 -0
  181. package/icons/svgs/left_12x12.svg +3 -0
  182. package/icons/svgs/loading_default.svg +3 -0
  183. package/icons/svgs/loading_icon_thick.svg +3 -0
  184. package/icons/svgs/loading_purple.svg +9 -0
  185. package/icons/svgs/map.svg +7 -0
  186. package/icons/svgs/menu_dots.svg +5 -0
  187. package/icons/svgs/menu_left.svg +5 -0
  188. package/icons/svgs/minis_sq.svg +4 -0
  189. package/icons/svgs/paste.svg +8 -0
  190. package/icons/svgs/pie_chart.svg +5 -0
  191. package/icons/svgs/pin.svg +4 -0
  192. package/icons/svgs/sad.svg +6 -0
  193. package/icons/svgs/search.svg +4 -0
  194. package/icons/svgs/setting_line.svg +3 -0
  195. package/icons/svgs/share.svg +7 -0
  196. package/icons/svgs/star.svg +3 -0
  197. package/icons/svgs/success_16x16.svg +4 -0
  198. package/icons/svgs/success_24x24.svg +11 -0
  199. package/icons/svgs/support.svg +3 -0
  200. package/icons/svgs/trash.svg +6 -0
  201. package/icons/svgs/upload.svg +4 -0
  202. package/icons/svgs/user.svg +4 -0
  203. package/icons/svgs/view.svg +4 -0
  204. package/icons/svgs/view_hide.svg +5 -0
  205. package/icons/svgs/warning_16x16.svg +5 -0
  206. package/icons/svgs/warning_24x24.svg +12 -0
  207. package/index.d.ts +38 -2
  208. package/index.js +40 -4
  209. package/index.scss +24 -3
  210. package/layout/Header/HeaderView.js +1 -1
  211. package/layout/Header/HeaderView.scss +10 -5
  212. package/layout/Loader/LoaderView.d.ts +2 -2
  213. package/layout/Loader/LoaderView.js +6 -2
  214. package/layout/Loader/LoaderView.scss +67 -22
  215. package/layout/Notifications/NotificationsItemView.d.ts +1 -2
  216. package/layout/Notifications/NotificationsItemView.js +9 -8
  217. package/layout/Notifications/NotificationsItemView.scss +1 -39
  218. package/layout/Notifications/NotificationsView.d.ts +1 -2
  219. package/layout/Notifications/NotificationsView.scss +3 -0
  220. package/layout/ProgressBar/CircleProgressBarView.d.ts +1 -2
  221. package/layout/ProgressBar/LineProgressBarView.d.ts +1 -2
  222. package/layout/ProgressBar/LineProgressBarView.scss +1 -1
  223. package/layout/Tooltip/TooltipView.d.ts +1 -2
  224. package/layout/Tooltip/TooltipView.js +6 -6
  225. package/layout/Tooltip/TooltipView.scss +45 -37
  226. package/list/CheckboxColumn/CheckboxColumnView.d.ts +1 -2
  227. package/list/CheckboxColumn/CheckboxColumnView.js +2 -1
  228. package/list/ControlsColumnView/ControlsColumnView.d.ts +1 -2
  229. package/list/ControlsColumnView/ControlsColumnView.scss +7 -1
  230. package/list/Empty/EmptyView.js +1 -1
  231. package/list/Empty/EmptyView.scss +4 -1
  232. package/list/FlexGrid/FlexGridView.d.ts +2 -0
  233. package/list/FlexGrid/FlexGridView.js +71 -0
  234. package/list/FlexGrid/FlexGridView.scss +57 -0
  235. package/list/Grid/GridView.js +10 -4
  236. package/list/Grid/GridView.scss +151 -37
  237. package/list/Grid/views/ContentColumnView/ContentColumnView.d.ts +2 -0
  238. package/list/Grid/views/ContentColumnView/ContentColumnView.js +50 -0
  239. package/list/Grid/views/ContentColumnView/ContentColumnView.scss +86 -0
  240. package/list/Grid/views/ContentColumnView/index.d.ts +2 -0
  241. package/list/Grid/views/ContentColumnView/index.js +7 -0
  242. package/list/Grid/views/DiagramColumnView/DiagramColumnView.d.ts +3 -0
  243. package/list/Grid/views/DiagramColumnView/DiagramColumnView.js +60 -0
  244. package/list/Grid/views/DiagramColumnView/DiagramColumnView.scss +170 -0
  245. package/list/Grid/views/DiagramColumnView/index.d.ts +2 -0
  246. package/list/Grid/views/DiagramColumnView/index.js +7 -0
  247. package/list/List/ListItemView.d.ts +1 -2
  248. package/list/List/ListView.js +5 -7
  249. package/list/List/ListView.scss +26 -1
  250. package/list/Pagination/PaginationButtonView.js +34 -5
  251. package/list/Pagination/PaginationButtonView.scss +263 -1
  252. package/list/Pagination/PaginationMoreView.js +1 -1
  253. package/list/Pagination/PaginationMoreView.scss +4 -1
  254. package/list/PaginationSize/PaginationSizeView.js +5 -5
  255. package/list/PaginationSize/PaginationSizeView.scss +0 -8
  256. package/modal/Modal/ModalView.d.ts +1 -2
  257. package/modal/Modal/ModalView.js +5 -8
  258. package/modal/Modal/ModalView.scss +138 -93
  259. package/modal/TwoFactorModal/TwoFactorModalView.d.ts +1 -3
  260. package/modal/TwoFactorModal/TwoFactorModalView.js +0 -1
  261. package/modal/TwoFactorModal/TwoFactorModalView.scss +0 -2
  262. package/nav/Breadcrubms/BreadcrumbsView.js +9 -1
  263. package/nav/Breadcrubms/BreadcrumbsView.scss +49 -0
  264. package/nav/ButtonGroup/ButtonGroupView.d.ts +2 -0
  265. package/nav/ButtonGroup/ButtonGroupView.js +33 -0
  266. package/nav/ButtonGroup/ButtonGroupView.scss +81 -0
  267. package/nav/Controls/ControlsView.d.ts +1 -2
  268. package/nav/Controls/ControlsView.scss +17 -3
  269. package/nav/Nav/NavBarView.d.ts +1 -2
  270. package/nav/Nav/NavBarView.js +9 -4
  271. package/nav/Nav/NavBarView.scss +32 -1
  272. package/nav/Nav/NavButtonView.d.ts +1 -2
  273. package/nav/Nav/NavButtonView.js +8 -2
  274. package/nav/Nav/NavButtonView.scss +6 -5
  275. package/nav/Nav/NavIconView.d.ts +1 -2
  276. package/nav/Nav/NavIconView.js +7 -2
  277. package/nav/Nav/NavIconView.scss +25 -6
  278. package/nav/Nav/NavLinkView.d.ts +1 -2
  279. package/nav/Nav/NavLinkView.js +8 -2
  280. package/nav/Nav/NavLinkView.scss +14 -5
  281. package/nav/Nav/NavListView.d.ts +1 -2
  282. package/nav/Nav/NavListView.js +11 -7
  283. package/nav/Nav/NavListView.scss +11 -10
  284. package/nav/Nav/NavTabsView.d.ts +1 -2
  285. package/nav/Nav/NavTabsView.js +9 -4
  286. package/nav/Nav/NavTabsView.scss +47 -1
  287. package/nav/Tree/TreeView.d.ts +1 -2
  288. package/nav/Tree/TreeView.scss +58 -51
  289. package/package.json +58 -56
  290. package/scss/animations/index.scss +1 -0
  291. package/scss/animations/loading.scss +13 -0
  292. package/scss/fonts.scss +6 -0
  293. package/scss/mixins/button.scss +80 -24
  294. package/scss/mixins/customMixins.scss +5 -0
  295. package/scss/mixins/date.scss +422 -0
  296. package/scss/mixins/index.scss +5 -1
  297. package/scss/mixins/navs.scss +39 -0
  298. package/scss/mixins/scroll.scss +31 -0
  299. package/scss/mixins/typography.scss +26 -0
  300. package/scss/normalize.scss +25 -0
  301. package/scss/variables/common/colors.scss +189 -82
  302. package/scss/variables/common/media.scss +3 -0
  303. package/scss/variables/common/typography.scss +96 -28
  304. package/scss/variables/common/variables.scss +1 -0
  305. package/scss/variables/components/calendar.scss +0 -1
  306. package/scss/variables/components/input.scss +7 -6
  307. package/scss/variables/index.scss +2 -2
  308. package/typography/Text/TextView.d.ts +3 -0
  309. package/typography/Text/TextView.js +46 -0
  310. package/typography/Text/TextView.scss +16 -0
  311. package/typography/Title/TitleView.d.ts +3 -0
  312. package/typography/Title/TitleView.js +50 -0
  313. package/typography/Title/TitleView.scss +16 -0
  314. package/utils/renderIcon.d.ts +9 -0
  315. package/utils/renderIcon.js +27 -0
  316. package/content/Collapse/CollapseItemView.d.ts +0 -2
  317. package/content/Collapse/CollapseItemView.scss +0 -88
  318. package/content/Collapse/CollapseView.d.ts +0 -2
  319. package/content/Collapse/CollapseView.scss +0 -15
  320. package/icons/close.svg +0 -3
  321. package/icons/default.svg +0 -11
  322. package/icons/error.svg +0 -12
  323. package/icons/fontawesome.d.ts +0 -2
  324. package/icons/fontawesome.js +0 -254
  325. package/icons/info.svg +0 -12
  326. package/icons/success.svg +0 -4
  327. package/icons/warning.svg +0 -12
  328. package/list/List/ListItemView.scss +0 -3
  329. package/scss/mixins/card.scss +0 -26
  330. package/scss/variables/components/card.scss +0 -20
@@ -1,198 +1,281 @@
1
- .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;
1
+ :root {
2
+ --day-background-color-hover: rgba(0, 0, 0, 0.1);
3
+ --calendar-border-color: var(--light-gray);
4
+ }
61
5
 
62
- padding: 0;
63
- border-radius: $calendar-day-border-radius;
6
+ html[data-theme="dark"] {
7
+ --day-background-color-hover: rgba(255, 255, 255, 0.1);
8
+ --calendar-border-color: var(--gray);
9
+ }
64
10
 
65
- vertical-align: middle;
66
- text-align: center;
11
+ $day-background-color-hover: var(--day-background-color-hover);
12
+ $calendar-border-color: var(--calendar-border-color);
13
+
14
+ @mixin calendar-button () {
15
+ padding: 5px 12.5px;
16
+ border-radius: $radius-small;
17
+ border: 1px solid $gray;
18
+ background-color: transparent;
19
+ background-image: none;
20
+ box-shadow: none;
67
21
  cursor: pointer;
22
+ color: $text-color;
23
+ font-size: $font-size-sm;
24
+ line-height: $line-height-lg;
25
+ }
26
+
27
+ .CalendarView {
28
+ $root: &;
29
+
30
+ background-color: $element-background-color;
31
+ border-radius: $radius-large;
32
+ border: 4px solid $calendar-border-color;
33
+ position: relative;
34
+ color: $text-color;
35
+ font-weight: $font-weight-md;
36
+ user-select: none;
37
+ padding: 12px;
68
38
 
69
- transition-property: background-color, box-shadow, color;
70
- transition-duration: .1s;
39
+ .DayPicker-wrapper {
40
+ padding-bottom: 0;
41
+ }
71
42
 
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;
43
+ .DayPicker-Months {
44
+ display: flex;
45
+ flex-wrap: wrap;
46
+ justify-content: center;
47
+ row-gap: 12px;
82
48
  }
83
49
 
84
- &--outside {
85
- color: $calendar-secondary-color;
50
+ .DayPicker-Month {
51
+ margin: 0;
86
52
  }
87
53
 
88
- &--today {
89
- #{$root}__day {
90
- box-shadow: $calendar-today-shadow;
91
- }
54
+ // Body
55
+ .DayPicker-Weekdays {
56
+ margin-top: 0;
92
57
  }
93
58
 
94
- &--disabled {
95
- pointer-events: none;
96
- opacity: .5;
59
+ .DayPicker-WeekdaysRow {
60
+ display: inline-flex;
61
+ column-gap: 16px;
97
62
  }
98
- }
99
63
 
100
- // Footer
64
+ .DayPicker-Weekday {
65
+ display: inline-flex;
66
+ justify-content: center;
67
+ align-items: center;
68
+ width: 34px;
69
+ height: 34px;
70
+ padding: 0;
71
+ color: inherit;
72
+ text-align: center;
73
+ vertical-align: middle;
74
+ font-size: $font-size-base;
75
+ line-height: $line-height-base;
76
+ font-weight: $font-weight-lg;
77
+ text-transform: capitalize;
78
+ }
101
79
 
102
- .DayPicker-Footer {
103
- height: 50px;
80
+ .DayPicker-Weekday abbr[title] {
81
+ border-bottom: none;
82
+ text-decoration: none;
83
+ }
104
84
 
105
- display: flex;
106
- flex-flow: row nowrap;
107
- align-items: center;
108
- justify-content: center;
109
- padding: 0 10px;
85
+ .DayPicker-Body {
86
+ display: flex;
87
+ flex-flow: column nowrap;
88
+ row-gap: 12px;
89
+ }
110
90
 
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 {
141
- position: relative;
142
- z-index: 1;
143
- width: 30px;
144
- height: 30px;
145
- line-height: 30px;
146
- border-radius: $calendar-day-border-radius;
147
- }
91
+ .DayPicker-Week {
92
+ display: flex;
93
+ width: 100%;
94
+ column-gap: 16px;
148
95
 
149
- &_ranged {
96
+ &--disabled {
97
+ pointer-events: none;
98
+ opacity: 0.5;
99
+ }
100
+ }
150
101
 
151
102
  .DayPicker-Day {
152
- &--start {
153
- color: $white;
103
+ position: relative;
104
+ padding: 0;
105
+ border-radius: $radius-large;
154
106
 
155
- #{$root}__day {
156
- background-color: $calendar-primary-color;
157
- box-shadow: $calendar-selected-shadow;
158
- }
107
+ vertical-align: middle;
108
+ text-align: center;
109
+ cursor: pointer;
110
+
111
+ transition-property: background-color, box-shadow, color;
112
+ transition-duration: 0.1s;
159
113
 
160
114
  &::before {
161
- background-color: $calendar-primary-light-color;
162
- width: 10px;
163
- transform: translate(25px, -50%);
115
+ content: "";
116
+ height: 30px;
117
+ left: 0;
118
+ position: absolute;
119
+ right: 0;
120
+ top: 50%;
121
+ transform: translate(-5px, -50%);
122
+ width: 40px;
123
+ z-index: 1;
164
124
  }
165
- }
166
125
 
167
- &--end {
168
- color: #fff;
126
+ &::after {
127
+ position: absolute;
128
+ content: "";
129
+ display: block;
130
+ width: 100%;
131
+ height: 100%;
132
+ top: 0;
133
+ left: 0;
134
+ right: 0;
135
+ bottom: 0;
136
+ border-width: 4px;
137
+ border-style: solid;
138
+ border-radius: 16px;
139
+ border-color: $day-background-color-hover;
140
+ transform: translate(-4px, -4px);
141
+ opacity: 0;
142
+ transition: opacity 150ms ease-in-out;
143
+ z-index: 9;
144
+ }
169
145
 
170
- #{$root}__day {
171
- background-color: $calendar-primary-color;
172
- box-shadow: $calendar-selected-shadow;
146
+ &:focus {
147
+ outline: none;
148
+ }
149
+
150
+ &:focus:not(:active)::after {
151
+ opacity: 1;
173
152
  }
174
153
 
175
- &::before {
176
- background-color: $calendar-primary-light-color;
177
- width: 10px;
154
+ &--outside {
155
+ color: $element-placeholder-color;
156
+
178
157
  }
179
- }
180
158
 
159
+ &--today {
160
+ #{$root}__day {
161
+ border: 1px solid $primary;
162
+ color: $primary;
163
+ }
164
+ }
181
165
 
182
- &--inRange {
183
- &::before {
184
- background-color: $calendar-primary-light-color;
166
+ &--disabled {
167
+ pointer-events: none;
168
+ opacity: 0.5;
185
169
  }
186
- }
170
+ }
187
171
 
188
- &--outRange {
189
- pointer-events: none;
190
- &::before {
191
- background-color: $calendar-primary-light-color;
172
+ // Footer
173
+ .DayPicker-Footer {
174
+ margin-top: 8px;
175
+ display: flex;
176
+ flex-flow: row nowrap;
177
+ align-items: center;
178
+ justify-content: flex-start;
179
+ }
180
+
181
+ .DayPicker-TodayButton {
182
+ @include calendar-button();
183
+ }
184
+
185
+ // Days selection
186
+ // Selected day
187
+ .DayPicker-Day--selected:not(.DayPicker-Day--inRange) {
188
+ color: $white;
189
+ background-color: $primary;
190
+ }
191
+
192
+ .DayPicker-Day--selected.DayPicker-Day--today .CalendarView__day {
193
+ color: $white;
194
+ }
195
+
196
+ // Hover
197
+ .DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):not(
198
+ .DayPicker-Day--today
199
+ ):hover {
200
+ background-color: $day-background-color-hover;
201
+ }
202
+
203
+ .DayPicker-Day--today:hover {
204
+ background-color: transparent;
205
+
206
+ .CalendarView__day {
207
+ transition: background-color 150ms ease-in-out;
192
208
  }
193
- }
209
+ }
194
210
 
211
+ &__day {
212
+ position: relative;
213
+ z-index: 1;
214
+ width: 34px;
215
+ height: 34px;
216
+ line-height: 30px;
217
+ border-radius: $radius-large;
218
+ display: flex;
219
+ justify-content: center;
220
+ align-items: center;
195
221
  }
196
222
 
197
- }
223
+ &_ranged {
224
+ .DayPicker-Day {
225
+ &--start {
226
+ color: $white;
227
+
228
+ #{$root}__day {
229
+ background-color: $primary;
230
+ }
231
+
232
+ &::before {
233
+ width: 50px;
234
+ height: 42px;
235
+ background-color: $primary-light;
236
+ border-radius: 16px 0px 0px 16px;
237
+ }
238
+ }
239
+
240
+ &--end {
241
+ color: #fff;
242
+
243
+ #{$root}__day {
244
+ background-color: $calendar-primary-color;
245
+ }
246
+
247
+ &::before {
248
+ width: 46px;
249
+ height: 42px;
250
+ background-color: $primary-light;
251
+ border-radius: 0px 16px 16px 0px;
252
+ }
253
+ }
254
+
255
+ &--inRange {
256
+ &::before {
257
+ background-color: $primary-light;
258
+ width: 50px;
259
+ height: 42px;
260
+ }
261
+ }
262
+
263
+ //Today in range
264
+ &--inRange.DayPicker-Day--selected.DayPicker-Day--today .CalendarView__day {
265
+ color: $primary;
266
+ }
267
+
268
+ &--inRange:hover .CalendarView__day {
269
+ transition: background-color 150ms ease-in-out;
270
+ background-color: $day-background-color-hover;
271
+ }
272
+
273
+ &--outRange {
274
+ pointer-events: none;
275
+ &::before {
276
+ background-color: $calendar-primary-light-color;
277
+ }
278
+ }
279
+ }
280
+ }
198
281
  }
@@ -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') }, __('Год')),