@steroidsjs/bootstrap 3.0.0-beta.7 → 3.0.0-beta.70

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 (312) 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 +3 -0
  13. package/content/Badge/BadgeView.js +25 -0
  14. package/content/Badge/BadgeView.scss +141 -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 +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 +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 +208 -27
  28. package/content/Icon/IconView.d.ts +1 -2
  29. package/content/Icon/IconView.js +2 -2
  30. package/content/Icon/IconView.scss +1 -23
  31. package/content/Menu/MenuItemView.d.ts +2 -0
  32. package/content/Menu/MenuItemView.js +15 -0
  33. package/content/Menu/MenuItemView.scss +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 +174 -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 +12 -71
  51. package/form/DateRangeField/DateRangeFieldView.js +10 -13
  52. package/form/DateRangeField/DateRangeFieldView.scss +32 -77
  53. package/form/DateTimeField/DateTimeFieldView.d.ts +1 -2
  54. package/form/DateTimeField/DateTimeFieldView.js +6 -6
  55. package/form/DateTimeField/DateTimeFieldView.scss +10 -107
  56. package/form/DateTimeRangeField/DateTimeRangeFieldView.js +10 -8
  57. package/form/DateTimeRangeField/DateTimeRangeFieldView.scss +28 -88
  58. package/form/DropDownField/DropDownFieldView.js +35 -47
  59. package/form/DropDownField/DropDownFieldView.scss +381 -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 +72 -24
  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 +43 -13
  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 +15 -3
  85. package/form/ImageField/ImageFieldView.scss +7 -24
  86. package/form/InputField/InputFieldView.d.ts +1 -2
  87. package/form/InputField/InputFieldView.js +33 -14
  88. package/form/InputField/InputFieldView.scss +265 -99
  89. package/form/NumberField/NumberFieldView.d.ts +1 -2
  90. package/form/NumberField/NumberFieldView.js +19 -13
  91. package/form/NumberField/NumberFieldView.scss +195 -89
  92. package/form/PasswordField/PasswordFieldView.d.ts +1 -2
  93. package/form/PasswordField/PasswordFieldView.js +11 -9
  94. package/form/PasswordField/PasswordFieldView.scss +236 -63
  95. package/form/RadioField/RadioFieldView.d.ts +2 -0
  96. package/form/RadioField/RadioFieldView.js +57 -0
  97. package/form/RadioField/RadioFieldView.scss +226 -0
  98. package/form/RadioListField/RadioListFieldView.d.ts +1 -2
  99. package/form/RadioListField/RadioListFieldView.js +20 -16
  100. package/form/RadioListField/RadioListFieldView.scss +11 -1
  101. package/form/RateField/RateFieldView.scss +3 -1
  102. package/form/ReCaptchaField/ReCaptchaFieldView.d.ts +1 -2
  103. package/form/ReCaptchaField/ReCaptchaFieldView.js +2 -2
  104. package/form/SliderField/SliderFieldView.d.ts +1 -2
  105. package/form/SliderField/SliderFieldView.js +1 -1
  106. package/form/SliderField/SliderFieldView.scss +336 -299
  107. package/form/SwitcherField/SwitcherFieldView.d.ts +1 -2
  108. package/form/SwitcherField/SwitcherFieldView.js +12 -7
  109. package/form/SwitcherField/SwitcherFieldView.scss +188 -1
  110. package/form/TextField/TextFieldView.d.ts +1 -2
  111. package/form/TextField/TextFieldView.js +10 -2
  112. package/form/TextField/TextFieldView.scss +144 -2
  113. package/form/TimeField/TimeFieldView.d.ts +1 -2
  114. package/form/TimeField/TimeFieldView.js +16 -14
  115. package/form/TimeField/TimeFieldView.scss +19 -68
  116. package/form/TimeField/TimePanelView.scss +62 -68
  117. package/form/TimeRangeField/TimeRangeFieldView.d.ts +2 -0
  118. package/form/TimeRangeField/TimeRangeFieldView.js +67 -0
  119. package/form/TimeRangeField/TimeRangeFieldView.scss +77 -0
  120. package/icons/index.d.ts +2 -0
  121. package/icons/index.js +103 -0
  122. package/icons/svgs/add.svg +4 -0
  123. package/icons/svgs/add_square.svg +5 -0
  124. package/icons/svgs/arrow_down_18x18.svg +4 -0
  125. package/icons/svgs/arrow_down_24x24.svg +4 -0
  126. package/icons/svgs/arrow_drop_down_10x10.svg +3 -0
  127. package/icons/svgs/arrow_left_18x18.svg +4 -0
  128. package/icons/svgs/arrow_left_24x24.svg +4 -0
  129. package/icons/svgs/arrow_right_18x18.svg +4 -0
  130. package/icons/svgs/arrow_right_24x24.svg +4 -0
  131. package/icons/svgs/arrow_up_18x18.svg +4 -0
  132. package/icons/svgs/arrow_up_24x24.svg +4 -0
  133. package/icons/svgs/blank.svg +4 -0
  134. package/icons/svgs/calendar_check.svg +5 -0
  135. package/icons/svgs/calendar_range.svg +8 -0
  136. package/icons/svgs/cancel_ellips.svg +4 -0
  137. package/icons/svgs/chart.svg +6 -0
  138. package/icons/svgs/checkmark_12x12.svg +4 -0
  139. package/icons/svgs/checkmark_8x8.svg +4 -0
  140. package/icons/svgs/circle_cross_12x12.svg +4 -0
  141. package/icons/svgs/circle_cross_16x16.svg +4 -0
  142. package/icons/svgs/circle_cross_18x18.svg +4 -0
  143. package/icons/svgs/clip.svg +3 -0
  144. package/icons/svgs/copy.svg +5 -0
  145. package/icons/svgs/cross_12x12.svg +4 -0
  146. package/icons/svgs/cross_4x4.svg +3 -0
  147. package/icons/svgs/cross_8x8.svg +4 -0
  148. package/icons/svgs/cut.svg +3 -0
  149. package/icons/svgs/date_range.svg +8 -0
  150. package/icons/svgs/default_16x16.svg +4 -0
  151. package/icons/svgs/default_24x24.svg +11 -0
  152. package/icons/svgs/double_arrow_down.svg +5 -0
  153. package/icons/svgs/double_arrow_left.svg +5 -0
  154. package/icons/svgs/double_arrow_right.svg +5 -0
  155. package/icons/svgs/double_arrow_up.svg +5 -0
  156. package/icons/svgs/doughnut_chart.svg +5 -0
  157. package/icons/svgs/edit.svg +4 -0
  158. package/icons/svgs/error_16x16.svg +5 -0
  159. package/icons/svgs/error_24x24.svg +12 -0
  160. package/icons/svgs/expand_down.svg +3 -0
  161. package/icons/svgs/expand_left.svg +3 -0
  162. package/icons/svgs/expand_left_double.svg +4 -0
  163. package/icons/svgs/expand_right.svg +3 -0
  164. package/icons/svgs/expand_right_double.svg +4 -0
  165. package/icons/svgs/expand_up.svg +3 -0
  166. package/icons/svgs/file_dock.svg +6 -0
  167. package/icons/svgs/filter.svg +3 -0
  168. package/icons/svgs/fluid.svg +4 -0
  169. package/icons/svgs/folder.svg +3 -0
  170. package/icons/svgs/group.svg +8 -0
  171. package/icons/svgs/home.svg +4 -0
  172. package/icons/svgs/img_box.svg +5 -0
  173. package/icons/svgs/import.svg +4 -0
  174. package/icons/svgs/info_16x16.svg +5 -0
  175. package/icons/svgs/info_24x24.svg +12 -0
  176. package/icons/svgs/left_12x12.svg +3 -0
  177. package/icons/svgs/loading_default.svg +3 -0
  178. package/icons/svgs/loading_icon_thick.svg +3 -0
  179. package/icons/svgs/loading_purple.svg +9 -0
  180. package/icons/svgs/map.svg +7 -0
  181. package/icons/svgs/menu_dots.svg +5 -0
  182. package/icons/svgs/menu_left.svg +5 -0
  183. package/icons/svgs/minis_sq.svg +4 -0
  184. package/icons/svgs/paste.svg +8 -0
  185. package/icons/svgs/pie_chart.svg +5 -0
  186. package/icons/svgs/pin.svg +4 -0
  187. package/icons/svgs/sad.svg +6 -0
  188. package/icons/svgs/search.svg +4 -0
  189. package/icons/svgs/setting_line.svg +3 -0
  190. package/icons/svgs/share.svg +7 -0
  191. package/icons/svgs/star.svg +3 -0
  192. package/icons/svgs/success_16x16.svg +4 -0
  193. package/icons/svgs/success_24x24.svg +11 -0
  194. package/icons/svgs/support.svg +3 -0
  195. package/icons/svgs/trash.svg +6 -0
  196. package/icons/svgs/upload.svg +4 -0
  197. package/icons/svgs/user.svg +4 -0
  198. package/icons/svgs/view.svg +4 -0
  199. package/icons/svgs/view_hide.svg +5 -0
  200. package/icons/svgs/warning_16x16.svg +5 -0
  201. package/icons/svgs/warning_24x24.svg +12 -0
  202. package/index.d.ts +32 -2
  203. package/index.js +34 -4
  204. package/index.scss +19 -3
  205. package/layout/Header/HeaderView.js +1 -1
  206. package/layout/Header/HeaderView.scss +12 -5
  207. package/layout/Loader/LoaderView.d.ts +2 -2
  208. package/layout/Loader/LoaderView.js +6 -2
  209. package/layout/Loader/LoaderView.scss +67 -22
  210. package/layout/Notifications/NotificationsItemView.d.ts +1 -2
  211. package/layout/Notifications/NotificationsItemView.js +9 -8
  212. package/layout/Notifications/NotificationsItemView.scss +1 -39
  213. package/layout/Notifications/NotificationsView.d.ts +1 -2
  214. package/layout/Notifications/NotificationsView.scss +3 -0
  215. package/layout/ProgressBar/CircleProgressBarView.d.ts +1 -2
  216. package/layout/ProgressBar/LineProgressBarView.d.ts +1 -2
  217. package/layout/ProgressBar/LineProgressBarView.scss +1 -1
  218. package/layout/Tooltip/TooltipView.d.ts +1 -2
  219. package/layout/Tooltip/TooltipView.js +6 -6
  220. package/layout/Tooltip/TooltipView.scss +45 -37
  221. package/list/CheckboxColumn/CheckboxColumnView.d.ts +1 -2
  222. package/list/CheckboxColumn/CheckboxColumnView.js +2 -1
  223. package/list/ControlsColumnView/ControlsColumnView.d.ts +1 -2
  224. package/list/ControlsColumnView/ControlsColumnView.scss +7 -1
  225. package/list/Empty/EmptyView.js +1 -1
  226. package/list/Empty/EmptyView.scss +5 -1
  227. package/list/FlexGrid/FlexGridView.d.ts +2 -0
  228. package/list/FlexGrid/FlexGridView.js +71 -0
  229. package/list/FlexGrid/FlexGridView.scss +57 -0
  230. package/list/Grid/GridView.js +8 -4
  231. package/list/Grid/GridView.scss +151 -37
  232. package/list/Grid/views/ContentColumnView/ContentColumnView.d.ts +3 -0
  233. package/list/Grid/views/ContentColumnView/ContentColumnView.js +51 -0
  234. package/list/Grid/views/ContentColumnView/ContentColumnView.scss +88 -0
  235. package/list/Grid/views/ContentColumnView/index.d.ts +2 -0
  236. package/list/Grid/views/ContentColumnView/index.js +7 -0
  237. package/list/List/ListItemView.d.ts +1 -2
  238. package/list/List/ListView.js +5 -7
  239. package/list/List/ListView.scss +28 -1
  240. package/list/Pagination/PaginationButtonView.js +34 -5
  241. package/list/Pagination/PaginationButtonView.scss +263 -1
  242. package/list/Pagination/PaginationMoreView.js +1 -1
  243. package/list/Pagination/PaginationMoreView.scss +4 -1
  244. package/list/PaginationSize/PaginationSizeView.js +5 -5
  245. package/list/PaginationSize/PaginationSizeView.scss +0 -8
  246. package/modal/Modal/ModalView.d.ts +1 -2
  247. package/modal/Modal/ModalView.js +5 -8
  248. package/modal/Modal/ModalView.scss +138 -93
  249. package/modal/TwoFactorModal/TwoFactorModalView.d.ts +1 -2
  250. package/nav/Breadcrubms/BreadcrumbsView.js +9 -1
  251. package/nav/Breadcrubms/BreadcrumbsView.scss +49 -0
  252. package/nav/ButtonGroup/ButtonGroupView.d.ts +2 -0
  253. package/nav/ButtonGroup/ButtonGroupView.js +33 -0
  254. package/nav/ButtonGroup/ButtonGroupView.scss +83 -0
  255. package/nav/Controls/ControlsView.d.ts +1 -2
  256. package/nav/Controls/ControlsView.scss +17 -3
  257. package/nav/Nav/NavBarView.d.ts +1 -2
  258. package/nav/Nav/NavBarView.js +9 -4
  259. package/nav/Nav/NavBarView.scss +32 -1
  260. package/nav/Nav/NavButtonView.d.ts +1 -2
  261. package/nav/Nav/NavButtonView.js +8 -2
  262. package/nav/Nav/NavButtonView.scss +6 -5
  263. package/nav/Nav/NavIconView.d.ts +1 -2
  264. package/nav/Nav/NavIconView.js +7 -2
  265. package/nav/Nav/NavIconView.scss +6 -7
  266. package/nav/Nav/NavLinkView.d.ts +1 -2
  267. package/nav/Nav/NavLinkView.js +8 -2
  268. package/nav/Nav/NavLinkView.scss +14 -5
  269. package/nav/Nav/NavListView.d.ts +1 -2
  270. package/nav/Nav/NavListView.js +11 -7
  271. package/nav/Nav/NavListView.scss +11 -10
  272. package/nav/Nav/NavTabsView.d.ts +1 -2
  273. package/nav/Nav/NavTabsView.js +9 -4
  274. package/nav/Nav/NavTabsView.scss +47 -1
  275. package/nav/Tree/TreeView.d.ts +1 -2
  276. package/nav/Tree/TreeView.scss +58 -51
  277. package/package.json +56 -56
  278. package/scss/animations/index.scss +1 -0
  279. package/scss/animations/loading.scss +13 -0
  280. package/scss/fonts.scss +6 -0
  281. package/scss/mixins/button.scss +80 -24
  282. package/scss/mixins/customMixins.scss +5 -0
  283. package/scss/mixins/date.scss +422 -0
  284. package/scss/mixins/index.scss +5 -1
  285. package/scss/mixins/navs.scss +39 -0
  286. package/scss/mixins/scroll.scss +31 -0
  287. package/scss/mixins/typography.scss +26 -0
  288. package/scss/variables/common/colors.scss +150 -82
  289. package/scss/variables/common/media.scss +3 -0
  290. package/scss/variables/common/typography.scss +96 -28
  291. package/scss/variables/common/variables.scss +1 -0
  292. package/scss/variables/components/calendar.scss +0 -1
  293. package/scss/variables/components/input.scss +7 -6
  294. package/scss/variables/index.scss +3 -2
  295. package/scss/variables/normalize.scss +25 -0
  296. package/typography/Text/TextView.d.ts +3 -0
  297. package/typography/Text/TextView.js +46 -0
  298. package/typography/Text/TextView.scss +16 -0
  299. package/typography/Title/TitleView.d.ts +3 -0
  300. package/typography/Title/TitleView.js +50 -0
  301. package/typography/Title/TitleView.scss +16 -0
  302. package/utils/renderIcon.d.ts +9 -0
  303. package/utils/renderIcon.js +27 -0
  304. package/content/Collapse/CollapseItemView.d.ts +0 -2
  305. package/content/Collapse/CollapseItemView.scss +0 -88
  306. package/content/Collapse/CollapseView.d.ts +0 -2
  307. package/content/Collapse/CollapseView.scss +0 -15
  308. package/icons/fontawesome.d.ts +0 -2
  309. package/icons/fontawesome.js +0 -254
  310. package/list/List/ListItemView.scss +0 -3
  311. package/scss/mixins/card.scss +0 -26
  312. package/scss/variables/components/card.scss +0 -20
@@ -0,0 +1,39 @@
1
+ @mixin navs-sizes($root) {
2
+ &_size {
3
+ &_lg {
4
+ .ButtonView__link {
5
+ padding: 16px;
6
+ }
7
+
8
+ #{$root}__list-item_active {
9
+ .ButtonView {
10
+ padding: 16px;
11
+ }
12
+ }
13
+ }
14
+
15
+ &_md {
16
+ .ButtonView__link {
17
+ padding: 12px;
18
+ }
19
+
20
+ #{$root}__list-item_active {
21
+ .ButtonView {
22
+ padding: 12px;
23
+ }
24
+ }
25
+ }
26
+
27
+ &_sm {
28
+ .ButtonView__link {
29
+ padding: 8px;
30
+ }
31
+
32
+ #{$root}__list-item_active {
33
+ .ButtonView {
34
+ padding: 8px;
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,31 @@
1
+ @mixin custom-scroll($thumbColor, $backgroundColor) {
2
+ scrollbar-color: $thumbColor $backgroundColor;
3
+ scrollbar-width: thin;
4
+
5
+ &::-webkit-scrollbar {
6
+ width: 4px;
7
+ height: 4px;
8
+ border-radius: 3px;
9
+
10
+ &:hover {
11
+ cursor: pointer;
12
+ }
13
+ }
14
+
15
+ &::-webkit-scrollbar-track {
16
+ border-radius: 3px;
17
+ background-color: $backgroundColor;
18
+ }
19
+
20
+ &::-webkit-scrollbar-thumb {
21
+ border-radius: 3px;
22
+ background-color: $thumbColor;
23
+ }
24
+ }
25
+
26
+ @mixin scrollWrapper($maxHeight, $paddingRight: 0, $thumbColor, $backgroundColor) {
27
+ @include custom-scroll($thumbColor, $backgroundColor);
28
+ padding-right: $paddingRight;
29
+ max-height: $maxHeight;
30
+ overflow: auto;
31
+ }
@@ -0,0 +1,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
+ }
@@ -1,3 +1,4 @@
1
+ //** Themed colors **//
1
2
  :root {
2
3
  --primary: #651fff;
3
4
  --primary-dark: #5218d0;
@@ -17,89 +18,158 @@
17
18
  --warning: #ffe457;
18
19
  --warning-dark: #ebd251;
19
20
  --warning-light: #fff6c6;
21
+
22
+ --graphite-dark: #2b2828;
20
23
  --graphite: #323232;
21
- --gray-dark: #e1e1e1;
22
- --gray: #ededed;
23
- --light-gray: #f8f8f8;
24
- --dark: #6f6b76;
25
- --light: #9088a1;
26
-
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
- }
24
+ --mouse: #626262;
25
+ --gray-dark: #cbd5db;
26
+ --gray: #dbe2e6;
27
+ --light-gray: #f1f5f7;
28
+
29
+ --additional-gray-dark: #26272f;
30
+ --additional-light-gray: #f8f8f8;
31
+ --additional-light-blue: #f9fcff;
32
+
33
+ --text-color: #312c3a;
34
+ --link-color: #2BA3FB;
35
+ --link-color-hover: #00c2ff;
36
+
37
+ --background-color: #EDF0F1;
38
+
39
+ --element-placeholder-color: rgba(0, 0, 0, 0.3);
40
+ --element-placeholder-color-disabled: rgba(0, 0, 0, 0.1);
41
+ --element-border-color: #dbe2e6;
42
+ --element-border-color-hover: #cbd5db;
43
+ --element-background-color: #FFFFFF;
44
+ --element-background-color-disabled: #f1f5f7;
45
+ --element-field-background-color: #FFFFFF;
46
+
47
+ --scroll-thumb-color: #cbd5db;
48
+ --scroll-track-color: #f1f5f7;
53
49
  }
54
50
 
55
- /*
56
- * SCSS variables implementation
57
- */
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;
82
-
83
- /*
84
- * Common colors
85
- */
51
+ html[data-theme="dark"] {
52
+ --primary: #9362ff;
53
+ --primary-dark: #8256e4;
54
+ --primary-light: #b898ff;
55
+ --secondary: #9ea8db;
56
+ --secondary-dark: #727eb7;
57
+ --secondary-light: #bcc3e9;
58
+ --success: #5ecc71;
59
+ --success-dark: #5b9966;
60
+ --success-light: #89e699;
61
+ --danger: #f76e6e;
62
+ --danger-dark: #e95b5b;
63
+ --danger-light: #ffa1a1;
64
+ --info: #9ae1f1;
65
+ --info-dark: #77c4d6;
66
+ --info-light: #ccf6ff;
67
+ --warning: #ffe457;
68
+ --warning-dark: #ebd251;
69
+ --warning-light: #fff6c8;
70
+
71
+ --graphite-dark: #16171b;
72
+ --graphite: #191b1f;
73
+ --mouse: #adacac;
74
+ --gray-dark: #272a37;
75
+ --gray: #333646;
76
+ --light-gray: #4b4e5e;
77
+
78
+ --additional-gray-dark: #26272f;
79
+ --additional-light-gray: #f8f8f8;
80
+ --additional-light-blue: #f9fcff;
81
+
82
+ --text-color: #ffffff;
83
+ --link-color: #2BA3FB;
84
+ --link-color-hover: #00c2ff;
85
+
86
+ --background-color: #101216;
87
+
88
+ --element-placeholder-color: rgba(255, 255, 255, 0.3);
89
+ --element-placeholder-color-disabled: rgba(255, 255, 255, 0.1);
90
+ --element-border-color: #333646;
91
+ --element-border-color-hover: #272a37;
92
+ --element-background-color: #191B1F;
93
+ --element-background-color-disabled: #333646;
94
+ --element-field-background-color: #101216;
95
+
96
+ --scroll-thumb-color: #333646;
97
+ --scroll-track-color: #26272f;
98
+ }
99
+
100
+ $primary: var(--primary);
101
+ $primary-dark: var(--primary-dark);
102
+ $primary-light: var(--primary-light);
103
+ $secondary: var(--secondary);
104
+ $secondary-dark: var(--secondary-dark);
105
+ $secondary-light: var(--secondary-light);
106
+ $success: var(--success);
107
+ $success-dark: var(--success-dark);
108
+ $success-light: var(--success-light);
109
+ $danger: var(--danger);
110
+ $danger-dark: var(--danger-dark);
111
+ $danger-light: var(--danger-light);
112
+ $info: var(--info);
113
+ $info-dark: var(--info-dark);
114
+ $info-light: var(--info-light);
115
+ $warning: var(--warning);
116
+ $warning-dark: var(--warning-dark);
117
+ $warning-light: var(--warning-light);
118
+
119
+ $graphite-dark: var(--graphite-dark);
120
+ $graphite: var(--graphite);
121
+ $mouse: var(--mouse);
122
+ $gray-dark: var(--gray-dark);
123
+ $gray: var(--gray);
124
+ $light-gray: var(--light-gray);
86
125
 
126
+ $additional-gray-dark: var(--additional-gray-dark);
127
+ $additional-light-gray: var(--additional-gray);
128
+ $additional-light-blue: var(--additional-light-blue);
129
+
130
+ $text-color: var(--text-color);
131
+ $link-color: var(--link-color);
132
+ $link-color-hover: var(--link-color-hover);
133
+
134
+ $background-color: var(--background-color);
135
+
136
+ $element-placeholder-color: var(--element-placeholder-color);
137
+ $element-placeholder-color-disabled: var(--element-placeholder-color-disabled);
138
+ $element-border-color: var(--element-border-color);
139
+ $element-border-color-hover: var(--element-border-color-hover);
140
+ $element-background-color: var(--element-background-color);
141
+ $element-background-color-disabled: var(--element-background-color-disabled);
142
+ $element-field-background-color: var(--element-field-background-color);
143
+
144
+
145
+ $scroll-thumb-color: var(--scroll-thumb-color);
146
+ $scroll-track-color: var(--scroll-track-color);
147
+ //** Themed colors **//
148
+
149
+ //! Base colors !//
87
150
  $black: rgba(#000, 1) !default;
88
151
  $black-60: rgba(#000, 0.6) !default;
89
152
  $black-30: rgba(#000, 0.3) !default;
90
153
  $black-10: rgba(#000, 0.1) !default;
91
154
  $black-4: rgba(#000, 0.04) !default;
92
155
  $white: #fff !default;
93
-
94
- $text-color: #312c3a !default;
95
- $link-color: #2ba3fb !default;
96
-
97
- $gradient-purple: linear-gradient(180deg, #7433FF, #FFA3FD);
98
- $gradient-red: linear-gradient(180deg, #EB0155, #FFFA80);
156
+ $white-60: rgba(#ffffff, 0.6) !default;
157
+ $white-30: rgba(#ffffff, 0.3) !default;
158
+ $white-10: rgba(#ffffff, 0.1) !default;
159
+ $white-4: rgba(#ffffff, 0.04) !default;
160
+ $gradient-blue: linear-gradient(180deg, #651fff, #ba9bff);
161
+ $static-text-color: #312C3A !default;
162
+ //! Base colors !//
99
163
 
100
164
  $color-themes: () !default;
101
165
  $color-themes: map-merge(
102
166
  (
167
+ "basic": (
168
+ "color": $gray,
169
+ "color-dark": $gray-dark,
170
+ "color-light": $light-gray,
171
+ "text-color": $text-color,
172
+ ),
103
173
  "primary": (
104
174
  "color": $primary,
105
175
  "color-dark": $primary-dark,
@@ -124,29 +194,27 @@ $color-themes: map-merge(
124
194
  "color-light": $danger-light,
125
195
  "text-color": $white,
126
196
  ),
197
+ "error": (
198
+ "color": $danger,
199
+ "color-dark": $danger-dark,
200
+ "color-light": $danger-light,
201
+ "text-color": $white,
202
+ ),
127
203
  "warning": (
128
204
  "color": $warning,
129
205
  "color-dark": $warning-dark,
130
206
  "color-light": $warning-light,
131
- "text-color": $dark,
207
+ "text-color": $text-color,
132
208
  ),
133
209
  "info": (
134
210
  "color": $info,
135
211
  "color-dark": $info-dark,
136
212
  "color-light": $info-light,
137
- "text-color": $white,
213
+ "text-color": $text-color,
138
214
  ),
139
- "light": (
140
- "color": $light,
141
- "color-dark": $dark,
142
- "color-light": $light,
143
- "text-color": $dark,
144
- ),
145
- "dark": (
146
- "color": $dark,
147
- "color-dark": $dark,
148
- "color-light": $light,
149
- "text-color": $white,
215
+ "link": (
216
+ "color-dark": $link-color,
217
+ "color-light": $link-color-hover,
150
218
  ),
151
219
  ),
152
220
  $color-themes
@@ -0,0 +1,3 @@
1
+ $mobile-width: 540px !default;
2
+ $tablet-width: 960px !default;
3
+ $desktop-width: 1920px !default;
@@ -4,36 +4,104 @@
4
4
 
5
5
  $font-family-nunito: "Nunito", sans-serif;
6
6
 
7
- $font-size-xs: 12px;
8
- $font-size-sm: 14px;
9
- $font-size-base: 16px;
10
- $font-size-lg: 18px;
11
- $font-size-xl: 24px;
12
- $font-size-2xl: 32px;
7
+ $font-size-xs: 12px !default;
8
+ $font-size-sm: 14px !default;
9
+ $font-size-base: 16px !default;
10
+ $font-size-lg: 18px !default;
11
+ $font-size-xl: 24px !default;
12
+ $font-size-2xl: 32px !default;
13
13
 
14
- $line-height-xs: 17px;
15
- $line-height-sm: 20px;
16
- $line-height-base: 22px;
17
- $line-height-lg: 25px;
18
- $line-height-xl: 34px;
19
- $line-height-2xl: 45px;
14
+ $line-height-xs: 16px !default;
15
+ $line-height-sm: 18px !default;
16
+ $line-height-base: 22px !default;
17
+ $line-height-lg: 24px !default;
18
+ $line-height-xl: 32px !default;
19
+ $line-height-2xl: 44px !default;
20
20
 
21
- $font-weight-sm: 400;
22
- $font-weight-md: 500;
23
- $font-weight-lg: 700;
21
+ $font-weight-sm: 400 !default;
22
+ $font-weight-md: 500 !default;
23
+ $font-weight-lg: 700 !default;
24
24
 
25
+ $title-types: () !default;
26
+ $title-types: map-merge(
27
+ (
28
+ "h1": (
29
+ "font-size": $font-size-2xl,
30
+ "font-weight": $font-weight-lg,
31
+ "line-height": $line-height-2xl,
32
+ "color": $text-color,
33
+ ),
34
+ "h2": (
35
+ "font-size": $font-size-xl,
36
+ "font-weight": $font-weight-lg,
37
+ "line-height": $line-height-xl,
38
+ "color": $text-color,
39
+ ),
40
+ "h3": (
41
+ "font-size": $font-size-lg,
42
+ "font-weight": $font-weight-lg,
43
+ "line-height": $line-height-lg,
44
+ "color": $text-color,
45
+ ),
46
+ "h4": (
47
+ "font-size": $font-size-base,
48
+ "font-weight": $font-weight-lg,
49
+ "line-height": $line-height-base,
50
+ "color": $text-color,
51
+ ),
52
+ "h5": (
53
+ "font-size": $font-size-sm,
54
+ "font-weight": $font-weight-md,
55
+ "line-height": $line-height-sm,
56
+ "color": $text-color,
57
+ ),
58
+ "h6": (
59
+ "font-size": $font-size-xs,
60
+ "font-weight": $font-weight-md,
61
+ "line-height": $line-height-xs,
62
+ "color": $text-color,
63
+ ),
64
+ "subtitle": (
65
+ "font-size": $font-size-2xl,
66
+ "font-weight": $font-weight-md,
67
+ "line-height": $line-height-2xl,
68
+ "color": $text-color,
69
+ ),
70
+ ),
71
+ $title-types
72
+ );
25
73
 
26
- /*
27
- * Button font variables
28
- */
29
-
30
- $btn-font-weight-sm: 400;
31
- $btn-font-weight-lg: 800;
32
-
33
- $btn-font-xs: 12px;
34
- $btn-font-sm: 14px;
35
- $btn-font-base: 16px;
36
-
37
- $btn-line-height: 24px;
74
+ $text-types: () !default;
75
+ $text-types: map-merge(
76
+ (
77
+ "body": (
78
+ "font-size": $font-size-base,
79
+ "font-weight": $font-weight-sm,
80
+ "line-height": $line-height-base,
81
+ "color": $text-color,
82
+ ),
83
+ "span": (
84
+ "font-size": $font-size-base,
85
+ "font-weight": $font-weight-sm,
86
+ "line-height": $line-height-base,
87
+ "color": $text-color,
88
+ ),
89
+ "boldSpan": (
90
+ "font-size": $font-size-base,
91
+ "font-weight": $font-weight-lg,
92
+ "line-height": $line-height-base,
93
+ "color": $text-color,
94
+ ),
95
+ ),
96
+ $text-types
97
+ );
38
98
 
39
- $btn-letter-spacing: 0.1em;
99
+ $typography-colors: (
100
+ "text-color": $text-color,
101
+ "primary": $primary,
102
+ "secondary": $secondary,
103
+ "success": $success,
104
+ "danger": $danger,
105
+ "warning": $warning,
106
+ "info": $info,
107
+ ) !default;
@@ -0,0 +1 @@
1
+ $transition-duration: .15s;
@@ -1,7 +1,6 @@
1
1
  $calendar-primary-color: $primary !default;
2
2
  $calendar-primary-light-color: $primary-light !default;
3
3
  $calendar-secondary-color: $border-default !default;
4
- $calendar-secondary-light-color: $light !default;
5
4
  $calendar-text-color: $heading !default;
6
5
  $calendar-selected-text-color: $white !default;
7
6
 
@@ -1,3 +1,9 @@
1
+ $input-height-sm: 34px;
2
+ $input-height-md: 46px;
3
+ $input-height-lg: 56px;
4
+
5
+
6
+ //remove after ready all inputs
1
7
  //Small
2
8
  $input-label-margin-bottom-sm: 4px;
3
9
 
@@ -52,15 +58,10 @@ $input-message-margin-top-lg: $input-message-margin-top-sm;
52
58
  $input-message-icon-size-lg: $input-message-icon-size-sm;
53
59
  $input-message-icon-margin-right-lg: $input-message-icon-margin-right-sm;
54
60
 
55
-
56
- $input-height-sm: 28px !default;
57
- $input-height-md: 36px !default;
58
- $input-height-lg: 46px !default;
59
-
60
61
  $input-border: 1px solid $border-default !default;
61
62
  $input-border-radius: 4px !default;
62
63
 
63
64
  $input-padding-y: 0 !default;
64
65
  $input-padding-x: 8px !default;
65
66
  $input-addon-padding: 0.6rem !default;
66
- $input-text-padding: 0.4rem !default;
67
+ $input-text-padding: 0.4rem !default;
@@ -1,12 +1,13 @@
1
+ @import 'normalize.scss';
1
2
  @import 'common/colors';
3
+ @import 'common/media';
2
4
  @import 'common/typography';
3
- @import 'common/spacing';
4
5
  @import 'common/radiuses';
5
6
  @import 'common/old-variables';
7
+ @import 'common/variables';
6
8
 
7
9
  @import 'components/button';
8
10
  @import 'components/calendar';
9
- @import 'components/card';
10
11
  @import 'components/icon';
11
12
  @import 'components/input';
12
13
  @import 'components/ratefield';
@@ -0,0 +1,25 @@
1
+ @import-normalize;
2
+
3
+ * {
4
+ margin: 0;
5
+ padding: 0;
6
+ box-sizing: border-box;
7
+ }
8
+
9
+ ul, li {
10
+ list-style-type: none;
11
+ }
12
+
13
+ a {
14
+ text-decoration: none;
15
+ color: inherit;
16
+ font-family: inherit;
17
+ }
18
+
19
+ button {
20
+ font-family: inherit;
21
+ }
22
+
23
+ input {
24
+ outline: none;
25
+ }
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { ITextViewProps } from '@steroidsjs/core/ui/typography/Text/Text';
3
+ export default function TextView(props: ITextViewProps): React.DetailedReactHTMLElement<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ exports.__esModule = true;
26
+ var React = __importStar(require("react"));
27
+ var hooks_1 = require("@steroidsjs/core/hooks");
28
+ var TYPE_MAPPING = {
29
+ body: 'p',
30
+ span: 'span',
31
+ boldSpan: 'span'
32
+ };
33
+ function TextView(props) {
34
+ var bem = (0, hooks_1.useBem)('TextView');
35
+ var tag = props.tag || TYPE_MAPPING[props.type || ''] || 'p';
36
+ return (React.createElement(tag, {
37
+ className: bem(bem.block({
38
+ type: props.type,
39
+ color: props.color
40
+ }), props.className),
41
+ style: props.style
42
+ }, React.createElement(React.Fragment, null,
43
+ props.content,
44
+ props.children)));
45
+ }
46
+ exports["default"] = TextView;
@@ -0,0 +1,16 @@
1
+ .TextView {
2
+ margin-bottom: 1em;
3
+ font-family: $font-family-nunito;
4
+
5
+ @each $typeName, $typeMap in $text-types {
6
+ &_type_#{$typeName} {
7
+ @include typography-type($typeMap);
8
+ }
9
+ }
10
+
11
+ @each $colorName, $color in $typography-colors {
12
+ &_color_#{$colorName} {
13
+ color: $color;
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { ITitleViewProps } from '@steroidsjs/core/ui/typography/Title/Title';
3
+ export default function TitleView(props: ITitleViewProps): React.DetailedReactHTMLElement<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;