@steroidsjs/bootstrap 3.0.0-beta.6 → 3.0.0-beta.61

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 (279) 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 +209 -0
  5. package/content/Accordion/AccordionView.d.ts +2 -0
  6. package/content/{Collapse/CollapseView.js → Accordion/AccordionView.js} +3 -3
  7. package/content/{Collapse/CollapseView.scss → Accordion/AccordionView.scss} +3 -4
  8. package/content/Alert/AlertView.js +3 -2
  9. package/content/Alert/AlertView.scss +19 -4
  10. package/content/Avatar/AvatarView.js +2 -3
  11. package/content/Avatar/AvatarView.scss +32 -39
  12. package/content/Badge/BadgeView.d.ts +3 -0
  13. package/content/Badge/BadgeView.js +25 -0
  14. package/content/Badge/BadgeView.scss +135 -0
  15. package/content/Calendar/CalendarView.js +1 -1
  16. package/content/Calendar/CalendarView.scss +240 -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 +139 -107
  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 +75 -52
  25. package/content/DropDown/DropDownView.d.ts +0 -1
  26. package/content/DropDown/DropDownView.js +6 -4
  27. package/content/DropDown/DropDownView.scss +196 -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/form/AutoCompleteField/AutoCompleteFieldView.d.ts +1 -2
  38. package/form/AutoCompleteField/AutoCompleteFieldView.js +62 -8
  39. package/form/AutoCompleteField/AutoCompleteFieldView.scss +199 -142
  40. package/form/Button/ButtonView.d.ts +1 -2
  41. package/form/Button/ButtonView.js +13 -9
  42. package/form/Button/ButtonView.scss +168 -68
  43. package/form/CheckboxField/CheckboxFieldView.d.ts +1 -2
  44. package/form/CheckboxField/CheckboxFieldView.js +6 -4
  45. package/form/CheckboxField/CheckboxFieldView.scss +195 -36
  46. package/form/CheckboxListField/CheckboxListFieldView.d.ts +1 -2
  47. package/form/CheckboxListField/CheckboxListFieldView.js +18 -15
  48. package/form/CheckboxListField/CheckboxListFieldView.scss +7 -41
  49. package/form/DateField/DateFieldView.js +7 -6
  50. package/form/DateField/DateFieldView.scss +7 -74
  51. package/form/DateRangeField/DateRangeFieldView.js +10 -13
  52. package/form/DateRangeField/DateRangeFieldView.scss +29 -78
  53. package/form/DateTimeField/DateTimeFieldView.d.ts +1 -2
  54. package/form/DateTimeField/DateTimeFieldView.js +5 -5
  55. package/form/DateTimeField/DateTimeFieldView.scss +7 -109
  56. package/form/DateTimeRangeField/DateTimeRangeFieldView.js +9 -7
  57. package/form/DateTimeRangeField/DateTimeRangeFieldView.scss +25 -90
  58. package/form/DropDownField/DropDownFieldView.js +35 -47
  59. package/form/DropDownField/DropDownFieldView.scss +388 -182
  60. package/form/DropDownField/utils.d.ts +2 -0
  61. package/form/DropDownField/utils.js +15 -0
  62. package/form/DropDownFieldItem/DropDownFieldItemView.d.ts +2 -0
  63. package/form/DropDownFieldItem/DropDownFieldItemView.js +81 -0
  64. package/form/DropDownFieldItem/DropDownFieldItemView.scss +218 -0
  65. package/form/FieldLayout/FieldLayoutView.d.ts +1 -2
  66. package/form/FieldLayout/FieldLayoutView.js +13 -9
  67. package/form/FieldLayout/FieldLayoutView.scss +114 -19
  68. package/form/FieldList/FieldListItemView.js +6 -4
  69. package/form/FieldList/FieldListItemView.scss +17 -39
  70. package/form/FieldList/FieldListView.js +9 -8
  71. package/form/FieldList/FieldListView.scss +58 -18
  72. package/form/FieldSet/FieldSetView.js +4 -2
  73. package/form/FieldSet/FieldSetView.scss +39 -0
  74. package/form/FileField/FileFieldItemView.d.ts +1 -2
  75. package/form/FileField/FileFieldItemView.js +31 -6
  76. package/form/FileField/FileFieldItemView.scss +254 -13
  77. package/form/FileField/FileFieldView.d.ts +1 -2
  78. package/form/FileField/FileFieldView.js +6 -8
  79. package/form/FileField/FileFieldView.scss +34 -4
  80. package/form/Form/FormView.js +1 -4
  81. package/form/Form/FormView.scss +1 -14
  82. package/form/HtmlField/HtmlFieldView.d.ts +1 -2
  83. package/form/HtmlField/HtmlFieldView.scss +6 -3
  84. package/form/ImageField/ImageFieldView.js +1 -1
  85. package/form/InputField/InputFieldView.d.ts +1 -2
  86. package/form/InputField/InputFieldView.js +30 -13
  87. package/form/InputField/InputFieldView.scss +265 -99
  88. package/form/NumberField/NumberFieldView.d.ts +1 -2
  89. package/form/NumberField/NumberFieldView.js +19 -13
  90. package/form/NumberField/NumberFieldView.scss +195 -89
  91. package/form/PasswordField/PasswordFieldView.d.ts +1 -2
  92. package/form/PasswordField/PasswordFieldView.js +11 -9
  93. package/form/PasswordField/PasswordFieldView.scss +231 -63
  94. package/form/RadioField/RadioFieldView.d.ts +2 -0
  95. package/form/RadioField/RadioFieldView.js +57 -0
  96. package/form/RadioField/RadioFieldView.scss +226 -0
  97. package/form/RadioListField/RadioListFieldView.d.ts +1 -2
  98. package/form/RadioListField/RadioListFieldView.js +20 -16
  99. package/form/RadioListField/RadioListFieldView.scss +11 -1
  100. package/form/ReCaptchaField/ReCaptchaFieldView.d.ts +1 -2
  101. package/form/ReCaptchaField/ReCaptchaFieldView.js +2 -2
  102. package/form/SliderField/SliderFieldView.d.ts +1 -2
  103. package/form/SliderField/SliderFieldView.js +1 -1
  104. package/form/SliderField/SliderFieldView.scss +336 -299
  105. package/form/SwitcherField/SwitcherFieldView.d.ts +1 -2
  106. package/form/SwitcherField/SwitcherFieldView.js +12 -7
  107. package/form/SwitcherField/SwitcherFieldView.scss +188 -1
  108. package/form/TextField/TextFieldView.d.ts +1 -2
  109. package/form/TextField/TextFieldView.js +10 -2
  110. package/form/TextField/TextFieldView.scss +144 -2
  111. package/form/TimeField/TimeFieldView.d.ts +1 -2
  112. package/icons/index.d.ts +2 -0
  113. package/icons/index.js +103 -0
  114. package/icons/svgs/add.svg +4 -0
  115. package/icons/svgs/add_square.svg +5 -0
  116. package/icons/svgs/arrow_down_18x18.svg +4 -0
  117. package/icons/svgs/arrow_down_24x24.svg +4 -0
  118. package/icons/svgs/arrow_drop_down_10x10.svg +3 -0
  119. package/icons/svgs/arrow_left_18x18.svg +4 -0
  120. package/icons/svgs/arrow_left_24x24.svg +4 -0
  121. package/icons/svgs/arrow_right_18x18.svg +4 -0
  122. package/icons/svgs/arrow_right_24x24.svg +4 -0
  123. package/icons/svgs/arrow_up_18x18.svg +4 -0
  124. package/icons/svgs/arrow_up_24x24.svg +4 -0
  125. package/icons/svgs/blank.svg +4 -0
  126. package/icons/svgs/calendar_check.svg +5 -0
  127. package/icons/svgs/calendar_range.svg +8 -0
  128. package/icons/svgs/cancel_ellips.svg +4 -0
  129. package/icons/svgs/chart.svg +6 -0
  130. package/icons/svgs/checkmark_12x12.svg +4 -0
  131. package/icons/svgs/checkmark_8x8.svg +4 -0
  132. package/icons/svgs/circle_cross_12x12.svg +4 -0
  133. package/icons/svgs/circle_cross_16x16.svg +4 -0
  134. package/icons/svgs/circle_cross_18x18.svg +4 -0
  135. package/icons/svgs/clip.svg +3 -0
  136. package/icons/svgs/copy.svg +5 -0
  137. package/icons/svgs/cross_12x12.svg +4 -0
  138. package/icons/svgs/cross_4x4.svg +3 -0
  139. package/icons/svgs/cross_8x8.svg +4 -0
  140. package/icons/svgs/cut.svg +3 -0
  141. package/icons/svgs/date_range.svg +8 -0
  142. package/icons/svgs/default_16x16.svg +4 -0
  143. package/icons/svgs/default_24x24.svg +11 -0
  144. package/icons/svgs/double_arrow_down.svg +5 -0
  145. package/icons/svgs/double_arrow_left.svg +5 -0
  146. package/icons/svgs/double_arrow_right.svg +5 -0
  147. package/icons/svgs/double_arrow_up.svg +5 -0
  148. package/icons/svgs/doughnut_chart.svg +5 -0
  149. package/icons/svgs/edit.svg +4 -0
  150. package/icons/svgs/error_16x16.svg +5 -0
  151. package/icons/svgs/error_24x24.svg +12 -0
  152. package/icons/svgs/expand_down.svg +3 -0
  153. package/icons/svgs/expand_left.svg +3 -0
  154. package/icons/svgs/expand_left_double.svg +4 -0
  155. package/icons/svgs/expand_right.svg +3 -0
  156. package/icons/svgs/expand_right_double.svg +4 -0
  157. package/icons/svgs/expand_up.svg +3 -0
  158. package/icons/svgs/file_dock.svg +6 -0
  159. package/icons/svgs/filter.svg +3 -0
  160. package/icons/svgs/fluid.svg +4 -0
  161. package/icons/svgs/folder.svg +3 -0
  162. package/icons/svgs/group.svg +8 -0
  163. package/icons/svgs/home.svg +4 -0
  164. package/icons/svgs/img_box.svg +5 -0
  165. package/icons/svgs/import.svg +4 -0
  166. package/icons/svgs/info_16x16.svg +5 -0
  167. package/icons/svgs/info_24x24.svg +12 -0
  168. package/icons/svgs/left_12x12.svg +3 -0
  169. package/icons/svgs/loading_default.svg +3 -0
  170. package/icons/svgs/loading_icon_thick.svg +3 -0
  171. package/icons/svgs/loading_purple.svg +9 -0
  172. package/icons/svgs/map.svg +7 -0
  173. package/icons/svgs/menu_dots.svg +5 -0
  174. package/icons/svgs/menu_left.svg +5 -0
  175. package/icons/svgs/minis_sq.svg +4 -0
  176. package/icons/svgs/paste.svg +8 -0
  177. package/icons/svgs/pie_chart.svg +5 -0
  178. package/icons/svgs/pin.svg +4 -0
  179. package/icons/svgs/sad.svg +6 -0
  180. package/icons/svgs/search.svg +4 -0
  181. package/icons/svgs/setting_line.svg +3 -0
  182. package/icons/svgs/share.svg +7 -0
  183. package/icons/svgs/star.svg +3 -0
  184. package/icons/svgs/success_16x16.svg +4 -0
  185. package/icons/svgs/success_24x24.svg +11 -0
  186. package/icons/svgs/support.svg +3 -0
  187. package/icons/svgs/trash.svg +6 -0
  188. package/icons/svgs/upload.svg +4 -0
  189. package/icons/svgs/user.svg +4 -0
  190. package/icons/svgs/view.svg +4 -0
  191. package/icons/svgs/view_hide.svg +5 -0
  192. package/icons/svgs/warning_16x16.svg +5 -0
  193. package/icons/svgs/warning_24x24.svg +12 -0
  194. package/index.d.ts +26 -2
  195. package/index.js +28 -4
  196. package/index.scss +16 -3
  197. package/layout/Header/HeaderView.scss +3 -3
  198. package/layout/Loader/LoaderView.d.ts +2 -2
  199. package/layout/Loader/LoaderView.js +6 -2
  200. package/layout/Loader/LoaderView.scss +67 -22
  201. package/layout/Notifications/NotificationsItemView.d.ts +1 -2
  202. package/layout/Notifications/NotificationsView.d.ts +1 -2
  203. package/layout/ProgressBar/CircleProgressBarView.d.ts +1 -2
  204. package/layout/ProgressBar/LineProgressBarView.d.ts +1 -2
  205. package/layout/Tooltip/TooltipView.d.ts +1 -2
  206. package/layout/Tooltip/TooltipView.js +6 -6
  207. package/layout/Tooltip/TooltipView.scss +45 -37
  208. package/list/CheckboxColumn/CheckboxColumnView.d.ts +1 -2
  209. package/list/CheckboxColumn/CheckboxColumnView.js +2 -1
  210. package/list/ControlsColumnView/ControlsColumnView.d.ts +1 -2
  211. package/list/Grid/GridView.js +8 -4
  212. package/list/Grid/GridView.scss +148 -37
  213. package/list/Grid/views/ContentColumnView/ContentColumnView.d.ts +3 -0
  214. package/list/Grid/views/ContentColumnView/ContentColumnView.js +51 -0
  215. package/list/Grid/views/ContentColumnView/ContentColumnView.scss +88 -0
  216. package/list/Grid/views/ContentColumnView/index.d.ts +2 -0
  217. package/list/Grid/views/ContentColumnView/index.js +7 -0
  218. package/list/List/ListItemView.d.ts +1 -2
  219. package/list/List/ListView.js +5 -7
  220. package/list/List/ListView.scss +32 -1
  221. package/list/Pagination/PaginationButtonView.js +34 -5
  222. package/list/Pagination/PaginationButtonView.scss +265 -1
  223. package/list/Pagination/PaginationMoreView.js +1 -1
  224. package/list/Pagination/PaginationMoreView.scss +4 -1
  225. package/modal/Modal/ModalView.d.ts +1 -2
  226. package/modal/Modal/ModalView.js +4 -7
  227. package/modal/Modal/ModalView.scss +128 -93
  228. package/modal/TwoFactorModal/TwoFactorModalView.d.ts +1 -2
  229. package/nav/Breadcrubms/BreadcrumbsView.js +9 -1
  230. package/nav/Breadcrubms/BreadcrumbsView.scss +49 -0
  231. package/nav/ButtonGroup/ButtonGroupView.d.ts +2 -0
  232. package/nav/ButtonGroup/ButtonGroupView.js +32 -0
  233. package/nav/ButtonGroup/ButtonGroupView.scss +83 -0
  234. package/nav/Controls/ControlsView.d.ts +1 -2
  235. package/nav/Controls/ControlsView.scss +9 -3
  236. package/nav/Nav/NavBarView.d.ts +1 -2
  237. package/nav/Nav/NavButtonView.d.ts +1 -2
  238. package/nav/Nav/NavIconView.d.ts +1 -2
  239. package/nav/Nav/NavIconView.js +1 -1
  240. package/nav/Nav/NavLinkView.d.ts +1 -2
  241. package/nav/Nav/NavListView.d.ts +1 -2
  242. package/nav/Nav/NavListView.js +1 -1
  243. package/nav/Nav/NavTabsView.d.ts +1 -2
  244. package/nav/Nav/NavTabsView.js +1 -1
  245. package/nav/Tree/TreeView.d.ts +1 -2
  246. package/nav/Tree/TreeView.scss +14 -11
  247. package/package.json +56 -56
  248. package/scss/animations/index.scss +1 -0
  249. package/scss/animations/loading.scss +13 -0
  250. package/scss/fonts.scss +6 -0
  251. package/scss/mixins/button.scss +80 -24
  252. package/scss/mixins/customMixins.scss +5 -0
  253. package/scss/mixins/date.scss +397 -0
  254. package/scss/mixins/index.scss +4 -1
  255. package/scss/mixins/scroll.scss +31 -0
  256. package/scss/mixins/typography.scss +26 -0
  257. package/scss/variables/common/colors.scss +119 -69
  258. package/scss/variables/common/media.scss +2 -0
  259. package/scss/variables/common/typography.scss +96 -28
  260. package/scss/variables/common/variables.scss +1 -0
  261. package/scss/variables/components/input.scss +7 -6
  262. package/scss/variables/index.scss +3 -2
  263. package/scss/variables/normalize.scss +25 -0
  264. package/typography/Text/TextView.d.ts +3 -0
  265. package/typography/Text/TextView.js +46 -0
  266. package/typography/Text/TextView.scss +16 -0
  267. package/typography/Title/TitleView.d.ts +3 -0
  268. package/typography/Title/TitleView.js +50 -0
  269. package/typography/Title/TitleView.scss +16 -0
  270. package/utils/renderIcon.d.ts +9 -0
  271. package/utils/renderIcon.js +27 -0
  272. package/content/Collapse/CollapseItemView.d.ts +0 -2
  273. package/content/Collapse/CollapseItemView.scss +0 -88
  274. package/content/Collapse/CollapseView.d.ts +0 -2
  275. package/icons/fontawesome.d.ts +0 -2
  276. package/icons/fontawesome.js +0 -254
  277. package/list/List/ListItemView.scss +0 -3
  278. package/scss/mixins/card.scss +0 -26
  279. package/scss/variables/components/card.scss +0 -20
@@ -0,0 +1,397 @@
1
+ :root {
2
+ --date-icon-default-color: #cbd5db;
3
+ --date-icon-close-default-color: #323232;
4
+ --date-icon-disabled-color: rgba(0, 0, 0, 0.1);
5
+ --date-range-separator-color: rgba(0, 0, 0, 0.1);
6
+ }
7
+
8
+ html[data-theme="dark"] {
9
+ --date-icon-default-color: #5b5c6b;
10
+ --date-icon-close-default-color: #ffffff;
11
+ --date-icon-disabled-color: rgba(255, 255, 255, 0.1);
12
+ --date-range-separator-color: rgba(255, 255, 255, 0.1);
13
+ }
14
+
15
+ $date-icon-default-color: var(--date-icon-default-color);
16
+ $date-icon-close-default-color: var(--date-icon-close-default-color);
17
+ $date-icon-disabled-color: var(--date-icon-disabled-color);
18
+ $date-range-separator-color: var(--date-range-separator-color);
19
+
20
+ $date-sizes: () !default;
21
+ $date-sizes: map-merge(
22
+ (
23
+ "lg": (
24
+ "padding": 16px 8px,
25
+ "radius": $radius-large,
26
+ "font-size": $font-size-lg,
27
+ "height": 56px,
28
+ "first-input-width": 96px,
29
+ ),
30
+ "md": (
31
+ "padding": 11px 8px,
32
+ "radius": $radius-large,
33
+ "font-size": $font-size-base,
34
+ "height": 46px,
35
+ "first-input-width": 86px,
36
+ ),
37
+ "sm": (
38
+ "padding": 5px 8px,
39
+ "radius": $radius-small,
40
+ "font-size": $font-size-sm,
41
+ "height": 34px,
42
+ "first-input-width": 76px,
43
+ ),
44
+ ),
45
+ $date-sizes
46
+ );
47
+
48
+ @mixin icon-container($root) {
49
+ #{$root}__icon-container {
50
+ position: absolute;
51
+ top: 50%;
52
+ right: 8px;
53
+ transform: translateY(-50%);
54
+ width: 24px;
55
+ height: 24px;
56
+
57
+ > * {
58
+ display: inline-flex;
59
+ flex-flow: row nowrap;
60
+ width: 100%;
61
+ height: 100%;
62
+ justify-content: center;
63
+ align-items: center;
64
+ }
65
+
66
+ #{$root}__date-icon {
67
+ path,
68
+ circle {
69
+ stroke: $date-icon-default-color;
70
+ }
71
+ }
72
+
73
+ #{$root}__close-icon {
74
+ cursor: pointer;
75
+ path,
76
+ circle {
77
+ stroke: $date-icon-close-default-color;
78
+ }
79
+ }
80
+ }
81
+ }
82
+
83
+ @mixin date-default-sizes($root) {
84
+ &_size {
85
+ @each $size, $size-map in $date-sizes {
86
+ &_#{$size} {
87
+ #{$root}__input {
88
+ border-radius: map-get($size-map, radius);
89
+ padding: map-get($size-map, padding);
90
+ padding-right: 40px;
91
+ height: map-get($size-map, height);
92
+ }
93
+
94
+ #{$root}__body::before {
95
+ border-radius: calc(map-get($size-map, radius) + 4px);
96
+ }
97
+
98
+ font-size: map-get($size-map, font-size);
99
+ }
100
+ }
101
+ }
102
+ }
103
+
104
+ @mixin date-default-input() {
105
+ &__input {
106
+ width: 100%;
107
+ font-size: inherit;
108
+ line-height: $line-height-lg;
109
+ background-color: $element-background-color;
110
+ border: 1px solid $border-color;
111
+ color: $text-color;
112
+ transition: border-color 150ms ease-in-out;
113
+
114
+ &:active {
115
+ border-color: $primary;
116
+ }
117
+
118
+ &::placeholder {
119
+ color: $placeholder-color;
120
+ }
121
+
122
+ &:disabled {
123
+ border: none;
124
+ background-color: $background-disabled-color;
125
+ }
126
+ }
127
+ }
128
+
129
+ @mixin date-default-body() {
130
+ &__body {
131
+ position: relative;
132
+
133
+ &::before {
134
+ display: block;
135
+ position: absolute;
136
+ top: 0;
137
+ left: 0;
138
+ right: 0;
139
+ bottom: 0;
140
+ width: 100%;
141
+ height: 100%;
142
+ content: "";
143
+ border: 4px solid $primary-light;
144
+ transform: translate(-4px, -4px);
145
+ pointer-events: none;
146
+ opacity: 0;
147
+ transition: opacity 150ms ease-in-out;
148
+ }
149
+ }
150
+ }
151
+
152
+ @mixin date-default-effects($root) {
153
+ &:focus-within:not(:active) {
154
+ #{$root}__body {
155
+ &::before {
156
+ opacity: 1;
157
+ }
158
+ }
159
+
160
+ #{$root}__input {
161
+ border-color: transparent;
162
+ }
163
+ }
164
+
165
+ &_disabled {
166
+ #{$root}__date-icon {
167
+ path,
168
+ circle {
169
+ stroke: $date-icon-disabled-color;
170
+ }
171
+ }
172
+ }
173
+
174
+ &_is-invalid {
175
+ #{$root}__input {
176
+ border-color: $danger;
177
+ }
178
+ }
179
+ }
180
+
181
+ @mixin date-range-body($root) {
182
+ &__body {
183
+ position: relative;
184
+ display: flex;
185
+ flex-flow: row nowrap;
186
+ align-items: center;
187
+ background-color: $element-background-color;
188
+ color: $text-color;
189
+ column-gap: 8px;
190
+
191
+ > * {
192
+ &:nth-child(1) {
193
+ width: 91px;
194
+ }
195
+
196
+ &:nth-child(2) {
197
+ width: 100%;
198
+ margin-right: 40px;
199
+ }
200
+ }
201
+ }
202
+ }
203
+
204
+ @mixin date-range-effects($root) {
205
+ &__effect {
206
+ position: absolute;
207
+ display: block;
208
+ width: 100%;
209
+ height: 100%;
210
+ top: 0;
211
+ left: 0;
212
+ right: 0;
213
+ bottom: 0;
214
+ border-radius: inherit;
215
+ pointer-events: none;
216
+
217
+ &::before,
218
+ &::after {
219
+ display: block;
220
+ content: "";
221
+ position: absolute;
222
+ top: 0;
223
+ left: 0;
224
+ right: 0;
225
+ bottom: 0;
226
+ transition: border-color 150ms ease-in-out, opacity 150ms ease-in-out;
227
+ opacity: 1;
228
+ border-radius: inherit;
229
+ border-width: 1px;
230
+ border-style: solid;
231
+ pointer-events: none;
232
+ }
233
+
234
+ &::before {
235
+ border-color: $border-color;
236
+ }
237
+
238
+ &::after {
239
+ width: 100%;
240
+ height: 100%;
241
+ transform: translate(-4px, -4px);
242
+ border: 4px solid $primary-light;
243
+ opacity: 0;
244
+ }
245
+ }
246
+
247
+ //Effects
248
+ //Active
249
+ &__input:active ~ &__effect::before {
250
+ border-color: $primary;
251
+ }
252
+
253
+ //Focus
254
+ &__body:focus-within:not(:active) &__effect {
255
+ &::before {
256
+ border-color: transparent;
257
+ }
258
+
259
+ &::after {
260
+ opacity: 1;
261
+ }
262
+ }
263
+
264
+ &_disabled {
265
+ #{$root}__body {
266
+ background-color: $background-disabled-color;
267
+ }
268
+
269
+ #{$root}__effect {
270
+ opacity: 0;
271
+ }
272
+ }
273
+
274
+ &_disabled {
275
+ #{$root}__date-icon {
276
+ path,
277
+ circle {
278
+ stroke: $date-icon-disabled-color;
279
+ }
280
+ }
281
+ }
282
+
283
+ &_is-invalid {
284
+ #{$root}__effect::before {
285
+ border-color: $danger;
286
+ }
287
+
288
+ #{$root}__input:active ~ #{$root}__effect::before {
289
+ border-color: $danger;
290
+ }
291
+ }
292
+ }
293
+
294
+ @mixin date-range-sizes($root) {
295
+ &_size {
296
+ @each $size, $size-map in $date-sizes {
297
+ &_#{$size} {
298
+ #{$root}__body {
299
+ padding: map-get($size-map, padding);
300
+ border-radius: map-get($size-map, radius);
301
+ height: map-get($size-map, height);
302
+
303
+ > * {
304
+ &:nth-child(1) {
305
+ width: map-get($size-map, first-input-width);
306
+ }
307
+ }
308
+ }
309
+
310
+ #{$root}__effect::after {
311
+ border-radius: calc(map-get($size-map, radius) + 4px);
312
+ }
313
+
314
+ font-size: map-get($size-map, font-size);
315
+ }
316
+ }
317
+ }
318
+ }
319
+
320
+ @mixin date-range-input() {
321
+ &__input {
322
+ border: none;
323
+ font-size: inherit;
324
+ background-color: inherit;
325
+ color: inherit;
326
+
327
+ &::placeholder {
328
+ color: $placeholder-color;
329
+ }
330
+ }
331
+ }
332
+
333
+
334
+ @mixin date-time-panel($root) {
335
+ &__panel-container {
336
+ position: relative;
337
+ display: flex;
338
+ flex-flow: row nowrap;
339
+ color: $text-color;
340
+
341
+ #{$root}__separator {
342
+ position: relative;
343
+ margin-left: 4px;
344
+ margin-right: 16px;
345
+ width: 1px;
346
+ height: 338px;
347
+ background-color: $date-range-separator-color;
348
+ transform: translateY(12px);
349
+ }
350
+
351
+ .TimePanelView__body {
352
+ column-gap: 2px;
353
+ width: 68px;
354
+ }
355
+
356
+ .TimePanelView__header {
357
+ border: none;
358
+ margin-top: 2px;
359
+ }
360
+
361
+ .TimePanelView__column {
362
+ height: 298px;
363
+ row-gap: 2px;
364
+ border: none;
365
+
366
+ &:not(:last-child) {
367
+ border-right: none;
368
+ }
369
+
370
+ overflow: scroll;
371
+ scrollbar-width: none;
372
+ -ms-overflow-style: none;
373
+
374
+ &::-webkit-scrollbar {
375
+ width: 0px;
376
+ height: 0px;
377
+ }
378
+
379
+ .TimePanelView__cell {
380
+ padding: 0;
381
+ border-radius: $radius-large;
382
+
383
+ &-value {
384
+ padding: 6px 7px;
385
+ }
386
+ }
387
+ }
388
+
389
+ .TimePanelView__button_ok {
390
+ @include calendar-button();
391
+ }
392
+
393
+ .TimePanelView__footer {
394
+ margin-top: 3px;
395
+ }
396
+ }
397
+ }
@@ -1,2 +1,5 @@
1
1
  @import "button";
2
- @import "card";
2
+ @import "typography";
3
+ @import "scroll";
4
+ @import "customMixins";
5
+ @import "date";
@@ -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,26 @@
1
+ @mixin typography-type($typeMap) {
2
+ font-family: map-get($typeMap, font-family);
3
+ font-size: map-get($typeMap, font-size);
4
+ font-weight: map-get($typeMap, font-weight);
5
+ line-height: map-get($typeMap, line-height);
6
+ color: map-get($typeMap, color);
7
+ text-transform: map-get($typeMap, text-transform);
8
+ text-decoration: map-get($typeMap, text-decoration);
9
+ text-align: map-get($typeMap, text-align);
10
+
11
+ @media (max-width: $tablet-width) {
12
+ font-size: map-get($typeMap, tablet-font-size);
13
+ font-weight: map-get($typeMap, tablet-font-weight);
14
+ line-height: map-get($typeMap, tablet-line-height);
15
+ text-transform: map-get($typeMap, tablet-text-transform);
16
+ text-align: map-get($typeMap, tablet-text-align);
17
+ }
18
+
19
+ @media (max-width: $mobile-width) {
20
+ font-size: map-get($typeMap, mobile-font-size);
21
+ font-weight: map-get($typeMap, mobile-font-weight);
22
+ line-height: map-get($typeMap, mobile-line-height);
23
+ text-transform: map-get($typeMap, mobile-text-transform);
24
+ text-align: map-get($typeMap, mobile-text-align);
25
+ }
26
+ }
@@ -18,67 +18,116 @@
18
18
  --warning-dark: #ebd251;
19
19
  --warning-light: #fff6c6;
20
20
  --graphite: #323232;
21
- --gray-dark: #e1e1e1;
22
- --gray: #ededed;
23
- --light-gray: #f8f8f8;
21
+ --gray-dark: #cbd5db;
22
+ --gray: #dbe2e6;
23
+ --light-gray: #f1f5f7;
24
24
  --dark: #6f6b76;
25
25
  --light: #9088a1;
26
+ --text-color: #312c3a;
27
+ --background-color: #fff;
28
+ --is-dark: "false";
29
+ --border-color: #dbe2e6;
30
+ --border-color-hover: #e5e9eb;
31
+ --placeholder-color: rgba(0, 0, 0, 0.3);
32
+ --placeholder-disabled-color: rgba(0, 0, 0, 0.3);
33
+ --background-disabled-color: #f1f5f7;
34
+ --element-background-color: #FFFFFF;
35
+ --additional-gray-dark: #6F6B76;
36
+ --additional-gray: #E6E6E6;
37
+ --additional-light-gray: #F8F8F8;
38
+ --additional-light: #9088A1;
39
+ --additional-light-blue: #F9FCFF;
40
+ --scroll-thumb-color: #e5e9eb;
41
+ --scroll-track-color: #f5f8fa;
42
+ }
26
43
 
27
- html[data-theme="dark"] {
28
- --primary: #8b57ff;
29
- --primary-dark: #6648a7;
30
- --primary-light: #ba9bff;
31
- --secondary: #9ea8db;
32
- --secondary-dark: #616a95;
33
- --secondary-light: #bcc3e9;
34
- --success: #3cf25a;
35
- --success-dark: #34cc4d;
36
- --success-light: #74ff8b;
37
- --danger: #fc6666;
38
- --danger-dark: #dc5858;
39
- --danger-light: #ffa1a1;
40
- --info: #9ae1f1;
41
- --info-dark: #77c4d6;
42
- --info-light: #ccf6ff;
43
- --warning: #ffe457;
44
- --warning-dark: #ebd251;
45
- --warning-light: #fff6c8;
46
- --graphite: #414141;
47
- --gray-dark: #4e4f57;
48
- --gray: #5b5c6b;
49
- --light-gray: #928b9d;
50
- --dark: #6b6477;
51
- --light: #b7afc7;
52
- }
44
+ html[data-theme="dark"] {
45
+ --primary: #8b57ff;
46
+ --primary-dark: #6648a7;
47
+ --primary-light: #ba9bff;
48
+ --secondary: #9ea8db;
49
+ --secondary-dark: #616a95;
50
+ --secondary-light: #bcc3e9;
51
+ --success: #3cf25a;
52
+ --success-dark: #34cc4d;
53
+ --success-light: #74ff8b;
54
+ --danger: #fc6666;
55
+ --danger-dark: #dc5858;
56
+ --danger-light: #ffa1a1;
57
+ --info: #9ae1f1;
58
+ --info-dark: #77c4d6;
59
+ --info-light: #ccf6ff;
60
+ --warning: #ffe457;
61
+ --warning-dark: #ebd251;
62
+ --warning-light: #fff6c8;
63
+ --graphite: #414141;
64
+ --gray-dark: #4e4f57;
65
+ --gray: #5b5c6b;
66
+ --light-gray: #928b9d;
67
+ --dark: #6b6477;
68
+ --light: #b7afc7;
69
+ --text-color: #ffffff;
70
+ --background-color: #323030;
71
+ --is-dark: "true";
72
+ --border-color: #5B5C6B;
73
+ --border-color-hover: #4e4f57;
74
+ --placeholder-color: rgba(255, 255, 255, 0.3);
75
+ --placeholder-disabled-color: rgba(255, 255, 255, 0.1);
76
+ --background-disabled-color: #5b5c6b;
77
+ --element-background-color: #414141;
78
+ --additional-gray-dark: #6B6477;
79
+ --additional-gray: #595959;
80
+ --additional-light-gray: #4A4B53;
81
+ --additional-light: #B7AFC7;
82
+ --additional-light-blue: #DAEAF6;
83
+ --scroll-thumb-color: #5b5c6b;
84
+ --scroll-track-color: #444147;
53
85
  }
54
86
 
55
87
  /*
56
88
  * SCSS variables implementation
57
89
  */
58
- $primary: var(--primary) !default;
59
- $primary-dark: var(--primary-dark) !default;
60
- $primary-light: var(--primary-light) !default;
61
- $secondary: var(--secondary) !default;
62
- $secondary-dark: var(--secondary-dark) !default;
63
- $secondary-light: var(--secondary-light) !default;
64
- $success: var(--success) !default;
65
- $success-dark: var(--success-dark) !default;
66
- $success-light: var(--success-light) !default;
67
- $danger: var(--danger) !default;
68
- $danger-dark: var(--danger-dark) !default;
69
- $danger-light: var(--danger-light) !default;
70
- $info: var(--info) !default;
71
- $info-dark: var(--info-dark) !default;
72
- $info-light: var(--info-light) !default;
73
- $warning: var(--warning) !default;
74
- $warning-dark: var(--warning-dark) !default;
75
- $warning-light: var(--warning-light) !default;
76
- $graphite: var(--graphite) !default;
77
- $gray-dark: var(--gray-dark) !default;
78
- $gray: var(--gray) !default;
79
- $light-gray: var(--light-gray) !default;
80
- $dark: var(--dark) !default;
81
- $light: var(--light) !default;
90
+ $primary: var(--primary);
91
+ $primary-dark: var(--primary-dark);
92
+ $primary-light: var(--primary-light);
93
+ $secondary: var(--secondary);
94
+ $secondary-dark: var(--secondary-dark);
95
+ $secondary-light: var(--secondary-light);
96
+ $success: var(--success);
97
+ $success-dark: var(--success-dark);
98
+ $success-light: var(--success-light);
99
+ $danger: var(--danger);
100
+ $danger-dark: var(--danger-dark);
101
+ $danger-light: var(--danger-light);
102
+ $info: var(--info);
103
+ $info-dark: var(--info-dark);
104
+ $info-light: var(--info-light);
105
+ $warning: var(--warning);
106
+ $warning-dark: var(--warning-dark);
107
+ $warning-light: var(--warning-light);
108
+ $graphite: var(--graphite);
109
+ $gray-dark: var(--gray-dark);
110
+ $gray: var(--gray);
111
+ $light-gray: var(--light-gray);
112
+ $dark: var(--dark);
113
+ $light: var(--light);
114
+ $text-color: var(--text-color);
115
+ $text-color-revert: var(--text-color-revert);
116
+ $background-color: var(--background-color);
117
+ $is-dark: var(--is-dark);
118
+ $border-color: var(--border-color);
119
+ $border-color-hover: var(--border-color-hover);
120
+ $placeholder-color: var(--placeholder-color);
121
+ $placeholder-disabled-color: var(--placeholder-disabled-color);
122
+ $background-disabled-color: var(--background-disabled-color);
123
+ $element-background-color: var(--element-background-color);
124
+ $additional-gray-dark: var(--additional-gray-dark);
125
+ $additional-gray: var(--additional-gray);
126
+ $additional-light-gray: var(--additional-light-gray);
127
+ $additional-light: var(--additional-light);
128
+ $additional-light-blue: var(--additional-light-blue);
129
+ $scroll-thumb-color: var(--scroll-thumb-color);
130
+ $scroll-track-color: var(--scroll-track-color);
82
131
 
83
132
  /*
84
133
  * Common colors
@@ -90,16 +139,25 @@ $black-30: rgba(#000, 0.3) !default;
90
139
  $black-10: rgba(#000, 0.1) !default;
91
140
  $black-4: rgba(#000, 0.04) !default;
92
141
  $white: #fff !default;
142
+ $white-60: rgba(#ffffff, 0.6) !default;
143
+ $white-30: rgba(#ffffff, 0.3) !default;
144
+ $white-10: rgba(#ffffff, 0.1) !default;
145
+ $white-4: rgba(#ffffff, 0.04) !default;
93
146
 
94
- $text-color: #312c3a !default;
95
147
  $link-color: #2ba3fb !default;
148
+ $link-color-hover: #00c2ff !default;
96
149
 
97
- $gradient-purple: linear-gradient(180deg, #7433FF, #FFA3FD);
98
- $gradient-red: linear-gradient(180deg, #EB0155, #FFFA80);
150
+ $gradient-blue: linear-gradient(180deg, #651fff, #ba9bff) !default;
99
151
 
100
152
  $color-themes: () !default;
101
153
  $color-themes: map-merge(
102
154
  (
155
+ "basic": (
156
+ "color": $gray,
157
+ "color-dark": $gray-dark,
158
+ "color-light": $light-gray,
159
+ "text-color": $text-color,
160
+ ),
103
161
  "primary": (
104
162
  "color": $primary,
105
163
  "color-dark": $primary-dark,
@@ -128,25 +186,17 @@ $color-themes: map-merge(
128
186
  "color": $warning,
129
187
  "color-dark": $warning-dark,
130
188
  "color-light": $warning-light,
131
- "text-color": $dark,
189
+ "text-color": $text-color,
132
190
  ),
133
191
  "info": (
134
192
  "color": $info,
135
193
  "color-dark": $info-dark,
136
194
  "color-light": $info-light,
137
- "text-color": $white,
138
- ),
139
- "light": (
140
- "color": $light,
141
- "color-dark": $dark,
142
- "color-light": $light,
143
- "text-color": $dark,
195
+ "text-color": $text-color,
144
196
  ),
145
- "dark": (
146
- "color": $dark,
147
- "color-dark": $dark,
148
- "color-light": $light,
149
- "text-color": $white,
197
+ "link": (
198
+ "color-dark": $link-color,
199
+ "color-light": $link-color-hover,
150
200
  ),
151
201
  ),
152
202
  $color-themes
@@ -0,0 +1,2 @@
1
+ $mobile-width: 540px !default;
2
+ $tablet-width: 960px !default;