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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (404) hide show
  1. package/README.md +1 -2
  2. package/content/Accordion/AccordionItemView.d.ts +2 -0
  3. package/content/Accordion/AccordionItemView.js +90 -0
  4. package/content/Accordion/AccordionItemView.scss +262 -0
  5. package/content/Accordion/AccordionView.d.ts +2 -0
  6. package/content/{Collapse/CollapseView.js → Accordion/AccordionView.js} +3 -3
  7. package/content/Accordion/AccordionView.scss +28 -0
  8. package/content/Alert/AlertView.d.ts +0 -1
  9. package/content/Alert/AlertView.js +13 -16
  10. package/content/Alert/AlertView.scss +95 -83
  11. package/content/Avatar/AvatarGroupView.d.ts +0 -1
  12. package/content/Avatar/AvatarView.d.ts +5 -2
  13. package/content/Avatar/AvatarView.js +6 -3
  14. package/content/Avatar/AvatarView.scss +148 -85
  15. package/content/Badge/BadgeView.d.ts +2 -0
  16. package/content/Badge/BadgeView.js +24 -0
  17. package/content/Badge/BadgeView.scss +141 -0
  18. package/content/Calendar/CalendarView.d.ts +0 -1
  19. package/content/Calendar/CalendarView.js +6 -3
  20. package/content/Calendar/CalendarView.scss +270 -175
  21. package/content/Calendar/CaptionElement.d.ts +0 -1
  22. package/content/Calendar/CaptionElement.js +24 -16
  23. package/content/Calendar/CaptionElement.scss +168 -106
  24. package/content/Card/CardView.d.ts +0 -1
  25. package/content/Card/CardView.js +37 -13
  26. package/content/Card/CardView.scss +139 -108
  27. package/content/Chart/ChartView.d.ts +2 -0
  28. package/content/Chart/ChartView.js +47 -0
  29. package/content/Chart/ChartView.scss +8 -0
  30. package/content/CopyToClipboard/CopyToClipboardView.d.ts +3 -0
  31. package/content/CopyToClipboard/CopyToClipboardView.js +19 -0
  32. package/content/CopyToClipboard/CopyToClipboardView.scss +41 -0
  33. package/content/Detail/DetailView.d.ts +0 -1
  34. package/content/Detail/DetailView.scss +79 -57
  35. package/content/DropDown/DropDownView.d.ts +0 -2
  36. package/content/DropDown/DropDownView.js +7 -4
  37. package/content/DropDown/DropDownView.scss +208 -27
  38. package/content/Icon/IconView.d.ts +2 -0
  39. package/{icon → content}/Icon/IconView.js +2 -2
  40. package/content/Icon/IconView.scss +3 -0
  41. package/content/Menu/MenuItemView.d.ts +2 -0
  42. package/content/Menu/MenuItemView.js +15 -0
  43. package/content/Menu/MenuItemView.scss +67 -0
  44. package/content/Menu/MenuView.d.ts +2 -0
  45. package/content/Menu/MenuView.js +33 -0
  46. package/content/Menu/MenuView.scss +46 -0
  47. package/content/Slider/SliderView.d.ts +3 -0
  48. package/content/Slider/SliderView.js +21 -0
  49. package/content/Slider/SliderView.scss +5 -0
  50. package/crud/Crud/CrudView.d.ts +0 -1
  51. package/form/AutoCompleteField/AutoCompleteFieldView.d.ts +1 -4
  52. package/form/AutoCompleteField/AutoCompleteFieldView.js +62 -9
  53. package/form/AutoCompleteField/AutoCompleteFieldView.scss +201 -142
  54. package/form/Button/ButtonView.d.ts +1 -3
  55. package/form/Button/ButtonView.js +14 -10
  56. package/form/Button/ButtonView.scss +176 -68
  57. package/form/CheckboxField/CheckboxFieldView.d.ts +1 -3
  58. package/form/CheckboxField/CheckboxFieldView.js +6 -4
  59. package/form/CheckboxField/CheckboxFieldView.scss +198 -37
  60. package/form/CheckboxListField/CheckboxListFieldView.d.ts +1 -3
  61. package/form/CheckboxListField/CheckboxListFieldView.js +18 -15
  62. package/form/CheckboxListField/CheckboxListFieldView.scss +7 -41
  63. package/form/DateField/DateFieldView.d.ts +0 -1
  64. package/form/DateField/DateFieldView.js +8 -7
  65. package/form/DateField/DateFieldView.scss +15 -70
  66. package/form/DateRangeField/DateRangeFieldView.d.ts +0 -1
  67. package/form/DateRangeField/DateRangeFieldView.js +11 -14
  68. package/form/DateRangeField/DateRangeFieldView.scss +41 -73
  69. package/form/DateTimeField/DateTimeFieldView.d.ts +1 -3
  70. package/form/DateTimeField/DateTimeFieldView.js +7 -7
  71. package/form/DateTimeField/DateTimeFieldView.scss +13 -107
  72. package/form/DateTimeRangeField/DateTimeRangeFieldView.d.ts +0 -1
  73. package/form/DateTimeRangeField/DateTimeRangeFieldView.js +11 -9
  74. package/form/DateTimeRangeField/DateTimeRangeFieldView.scss +32 -87
  75. package/form/DropDownField/DropDownFieldView.d.ts +0 -1
  76. package/form/DropDownField/DropDownFieldView.js +36 -47
  77. package/form/DropDownField/DropDownFieldView.scss +382 -181
  78. package/form/DropDownField/utils.d.ts +2 -0
  79. package/form/DropDownField/utils.js +15 -0
  80. package/form/DropDownFieldItem/DropDownFieldItemView.d.ts +2 -0
  81. package/form/DropDownFieldItem/DropDownFieldItemView.js +81 -0
  82. package/form/DropDownFieldItem/DropDownFieldItemView.scss +220 -0
  83. package/form/FieldLayout/FieldLayoutView.d.ts +1 -3
  84. package/form/FieldLayout/FieldLayoutView.js +13 -9
  85. package/form/FieldLayout/FieldLayoutView.scss +116 -19
  86. package/form/FieldList/FieldListItemView.js +6 -4
  87. package/form/FieldList/FieldListItemView.scss +18 -38
  88. package/form/FieldList/FieldListView.d.ts +0 -1
  89. package/form/FieldList/FieldListView.js +9 -8
  90. package/form/FieldList/FieldListView.scss +77 -24
  91. package/form/FieldSet/FieldSetView.d.ts +0 -1
  92. package/form/FieldSet/FieldSetView.js +4 -2
  93. package/form/FieldSet/FieldSetView.scss +42 -0
  94. package/form/FileField/FileFieldItemView.d.ts +1 -3
  95. package/form/FileField/FileFieldItemView.js +32 -7
  96. package/form/FileField/FileFieldItemView.scss +259 -14
  97. package/form/FileField/FileFieldView.d.ts +1 -3
  98. package/form/FileField/FileFieldView.js +6 -8
  99. package/form/FileField/FileFieldView.scss +46 -13
  100. package/form/Form/FormView.js +1 -4
  101. package/form/Form/FormView.scss +1 -14
  102. package/form/HtmlField/HtmlFieldView.d.ts +1 -3
  103. package/form/HtmlField/HtmlFieldView.scss +7 -1
  104. package/form/ImageField/ImageFieldModalView.d.ts +0 -1
  105. package/form/ImageField/ImageFieldModalView.js +3 -1
  106. package/form/ImageField/ImageFieldView.d.ts +1 -2
  107. package/form/ImageField/ImageFieldView.js +22 -10
  108. package/form/ImageField/ImageFieldView.scss +7 -24
  109. package/form/InputField/InputFieldView.d.ts +1 -3
  110. package/form/InputField/InputFieldView.js +33 -14
  111. package/form/InputField/InputFieldView.scss +277 -99
  112. package/form/NumberField/NumberFieldView.d.ts +1 -3
  113. package/form/NumberField/NumberFieldView.js +19 -24
  114. package/form/NumberField/NumberFieldView.scss +197 -89
  115. package/form/PasswordField/PasswordFieldView.d.ts +1 -3
  116. package/form/PasswordField/PasswordFieldView.js +15 -10
  117. package/form/PasswordField/PasswordFieldView.scss +253 -63
  118. package/form/RadioField/RadioFieldView.d.ts +2 -0
  119. package/form/RadioField/RadioFieldView.js +57 -0
  120. package/form/RadioField/RadioFieldView.scss +228 -0
  121. package/form/RadioListField/RadioListFieldView.d.ts +1 -3
  122. package/form/RadioListField/RadioListFieldView.js +18 -16
  123. package/form/RadioListField/RadioListFieldView.scss +11 -1
  124. package/form/RateField/RateFieldView.d.ts +0 -1
  125. package/form/RateField/RateFieldView.js +18 -11
  126. package/form/RateField/RateFieldView.scss +118 -40
  127. package/form/ReCaptchaField/ReCaptchaFieldView.d.ts +1 -3
  128. package/form/ReCaptchaField/ReCaptchaFieldView.js +18 -9
  129. package/form/ReCaptchaField/ReCaptchaFieldView.scss +1 -5
  130. package/form/SliderField/SliderFieldView.d.ts +1 -3
  131. package/form/SliderField/SliderFieldView.js +4 -2
  132. package/form/SliderField/SliderFieldView.scss +338 -299
  133. package/form/SwitcherField/SwitcherFieldView.d.ts +1 -3
  134. package/form/SwitcherField/SwitcherFieldView.js +12 -7
  135. package/form/SwitcherField/SwitcherFieldView.scss +192 -1
  136. package/form/TextField/TextFieldView.d.ts +1 -3
  137. package/form/TextField/TextFieldView.js +10 -2
  138. package/form/TextField/TextFieldView.scss +147 -2
  139. package/form/TimeField/TimeFieldView.d.ts +1 -3
  140. package/form/TimeField/TimeFieldView.js +17 -15
  141. package/form/TimeField/TimeFieldView.scss +22 -68
  142. package/form/TimeField/TimePanelView.d.ts +0 -1
  143. package/form/TimeField/TimePanelView.scss +65 -68
  144. package/form/TimeRangeField/TimeRangeFieldView.d.ts +2 -0
  145. package/form/TimeRangeField/TimeRangeFieldView.js +67 -0
  146. package/form/TimeRangeField/TimeRangeFieldView.scss +81 -0
  147. package/format/DefaultFormatter/DefaultFormatterView.d.ts +2 -1
  148. package/icons/index.d.ts +2 -0
  149. package/icons/index.js +110 -0
  150. package/icons/svgs/add.svg +4 -0
  151. package/icons/svgs/add_square.svg +5 -0
  152. package/icons/svgs/arrow_down_18x18.svg +4 -0
  153. package/icons/svgs/arrow_down_24x24.svg +4 -0
  154. package/icons/svgs/arrow_drop_down_10x10.svg +3 -0
  155. package/icons/svgs/arrow_left_18x18.svg +4 -0
  156. package/icons/svgs/arrow_left_24x24.svg +4 -0
  157. package/icons/svgs/arrow_right_18x18.svg +4 -0
  158. package/icons/svgs/arrow_right_24x24.svg +5 -0
  159. package/icons/svgs/arrow_up_18x18.svg +4 -0
  160. package/icons/svgs/arrow_up_24x24.svg +4 -0
  161. package/icons/svgs/blank.svg +4 -0
  162. package/icons/svgs/burger.svg +5 -0
  163. package/icons/svgs/calendar_check.svg +5 -0
  164. package/icons/svgs/calendar_range.svg +8 -0
  165. package/icons/svgs/cancel_ellips.svg +4 -0
  166. package/icons/svgs/chart.svg +6 -0
  167. package/icons/svgs/checkmark_12x12.svg +4 -0
  168. package/icons/svgs/checkmark_8x8.svg +4 -0
  169. package/icons/svgs/circle_cross_12x12.svg +4 -0
  170. package/icons/svgs/circle_cross_16x16.svg +4 -0
  171. package/icons/svgs/circle_cross_18x18.svg +4 -0
  172. package/icons/svgs/clip.svg +3 -0
  173. package/icons/svgs/copy.svg +5 -0
  174. package/icons/svgs/cross_12x12.svg +4 -0
  175. package/icons/svgs/cross_4x4.svg +3 -0
  176. package/icons/svgs/cross_8x8.svg +4 -0
  177. package/icons/svgs/cut.svg +3 -0
  178. package/icons/svgs/date_range.svg +8 -0
  179. package/icons/svgs/default_16x16.svg +4 -0
  180. package/icons/svgs/default_24x24.svg +11 -0
  181. package/icons/svgs/double_arrow_down.svg +5 -0
  182. package/icons/svgs/double_arrow_left.svg +5 -0
  183. package/icons/svgs/double_arrow_right.svg +5 -0
  184. package/icons/svgs/double_arrow_up.svg +5 -0
  185. package/icons/svgs/doughnut_chart.svg +5 -0
  186. package/icons/svgs/edit.svg +4 -0
  187. package/icons/svgs/error_16x16.svg +5 -0
  188. package/icons/svgs/error_24x24.svg +12 -0
  189. package/icons/svgs/expand_down.svg +3 -0
  190. package/icons/svgs/expand_left.svg +3 -0
  191. package/icons/svgs/expand_left_double.svg +4 -0
  192. package/icons/svgs/expand_right.svg +3 -0
  193. package/icons/svgs/expand_right_double.svg +4 -0
  194. package/icons/svgs/expand_up.svg +3 -0
  195. package/icons/svgs/facebook.svg +3 -0
  196. package/icons/svgs/file_dock.svg +6 -0
  197. package/icons/svgs/filter.svg +3 -0
  198. package/icons/svgs/fluid.svg +4 -0
  199. package/icons/svgs/folder.svg +3 -0
  200. package/icons/svgs/group.svg +8 -0
  201. package/icons/svgs/home.svg +4 -0
  202. package/icons/svgs/img_box.svg +5 -0
  203. package/icons/svgs/import.svg +4 -0
  204. package/icons/svgs/info_16x16.svg +5 -0
  205. package/icons/svgs/info_24x24.svg +12 -0
  206. package/icons/svgs/instagram.svg +5 -0
  207. package/icons/svgs/left_12x12.svg +3 -0
  208. package/icons/svgs/loading_default.svg +3 -0
  209. package/icons/svgs/loading_icon_thick.svg +3 -0
  210. package/icons/svgs/loading_purple.svg +9 -0
  211. package/icons/svgs/map.svg +7 -0
  212. package/icons/svgs/menu_dots.svg +5 -0
  213. package/icons/svgs/menu_left.svg +5 -0
  214. package/icons/svgs/minis_sq.svg +4 -0
  215. package/icons/svgs/paste.svg +8 -0
  216. package/icons/svgs/pie_chart.svg +5 -0
  217. package/icons/svgs/pin.svg +4 -0
  218. package/icons/svgs/sad.svg +6 -0
  219. package/icons/svgs/search.svg +4 -0
  220. package/icons/svgs/setting_line.svg +3 -0
  221. package/icons/svgs/share.svg +7 -0
  222. package/icons/svgs/sort.svg +7 -0
  223. package/icons/svgs/star.svg +3 -0
  224. package/icons/svgs/success_16x16.svg +4 -0
  225. package/icons/svgs/success_24x24.svg +11 -0
  226. package/icons/svgs/support.svg +3 -0
  227. package/icons/svgs/telegram.svg +3 -0
  228. package/icons/svgs/trash.svg +6 -0
  229. package/icons/svgs/upload.svg +4 -0
  230. package/icons/svgs/user.svg +4 -0
  231. package/icons/svgs/view.svg +4 -0
  232. package/icons/svgs/view_hide.svg +5 -0
  233. package/icons/svgs/vk.svg +3 -0
  234. package/icons/svgs/warning_16x16.svg +5 -0
  235. package/icons/svgs/warning_24x24.svg +12 -0
  236. package/icons/svgs/whatsapp.svg +7 -0
  237. package/index.d.ts +47 -5
  238. package/index.js +49 -7
  239. package/index.scss +90 -68
  240. package/layout/Header/HeaderView.d.ts +0 -1
  241. package/layout/Header/HeaderView.js +43 -6
  242. package/layout/Header/HeaderView.scss +137 -23
  243. package/layout/Loader/LoaderView.d.ts +2 -3
  244. package/layout/Loader/LoaderView.js +6 -2
  245. package/layout/Loader/LoaderView.scss +70 -22
  246. package/layout/Notifications/NotificationsItemView.d.ts +1 -3
  247. package/layout/Notifications/NotificationsItemView.js +9 -8
  248. package/layout/Notifications/NotificationsItemView.scss +56 -84
  249. package/layout/Notifications/NotificationsView.d.ts +1 -3
  250. package/layout/Notifications/NotificationsView.scss +4 -1
  251. package/layout/ProgressBar/CircleProgressBarView.d.ts +1 -3
  252. package/layout/ProgressBar/CircleProgressBarView.js +5 -2
  253. package/layout/ProgressBar/CircleProgressBarView.scss +9 -7
  254. package/layout/ProgressBar/LineProgressBarView.d.ts +1 -3
  255. package/layout/ProgressBar/LineProgressBarView.scss +10 -8
  256. package/layout/Sidebar/FooterIcons/FooterIcons.d.ts +10 -0
  257. package/layout/Sidebar/FooterIcons/FooterIcons.js +54 -0
  258. package/layout/Sidebar/FooterIcons/FooterIcons.scss +36 -0
  259. package/layout/Sidebar/FooterIcons/index.d.ts +2 -0
  260. package/layout/Sidebar/FooterIcons/index.js +7 -0
  261. package/layout/Sidebar/SidebarLogo/SidebarLogo.d.ts +10 -0
  262. package/layout/Sidebar/SidebarLogo/SidebarLogo.js +44 -0
  263. package/layout/Sidebar/SidebarLogo/SidebarLogo.scss +52 -0
  264. package/layout/Sidebar/SidebarLogo/index.d.ts +2 -0
  265. package/layout/Sidebar/SidebarLogo/index.js +7 -0
  266. package/layout/Sidebar/SidebarUser/SidebarUser.d.ts +11 -0
  267. package/layout/Sidebar/SidebarUser/SidebarUser.js +53 -0
  268. package/layout/Sidebar/SidebarUser/SidebarUser.scss +45 -0
  269. package/layout/Sidebar/SidebarUser/index.d.ts +2 -0
  270. package/layout/Sidebar/SidebarUser/index.js +7 -0
  271. package/layout/Sidebar/SidebarView.d.ts +2 -0
  272. package/layout/Sidebar/SidebarView.js +26 -0
  273. package/layout/Sidebar/SidebarView.scss +304 -0
  274. package/layout/Sidebar/index.d.ts +2 -0
  275. package/layout/Sidebar/index.js +7 -0
  276. package/layout/Skeleton/SkeletonView.d.ts +0 -1
  277. package/layout/Skeleton/SkeletonView.scss +7 -5
  278. package/layout/Tooltip/TooltipView.d.ts +1 -3
  279. package/layout/Tooltip/TooltipView.js +6 -6
  280. package/layout/Tooltip/TooltipView.scss +46 -37
  281. package/list/CheckboxColumn/CheckboxColumnView.d.ts +1 -3
  282. package/list/CheckboxColumn/CheckboxColumnView.js +2 -1
  283. package/list/ControlsColumnView/ControlsColumnView.d.ts +1 -3
  284. package/list/ControlsColumnView/ControlsColumnView.scss +7 -1
  285. package/list/Empty/EmptyView.d.ts +0 -1
  286. package/list/Empty/EmptyView.js +1 -1
  287. package/list/Empty/EmptyView.scss +5 -1
  288. package/list/FlexGrid/FlexGridView.d.ts +2 -0
  289. package/list/FlexGrid/FlexGridView.js +71 -0
  290. package/list/FlexGrid/FlexGridView.scss +60 -0
  291. package/list/Grid/GridView.js +13 -7
  292. package/list/Grid/GridView.scss +154 -37
  293. package/list/Grid/views/ContentColumnView/ContentColumnView.d.ts +2 -0
  294. package/list/Grid/views/ContentColumnView/ContentColumnView.js +50 -0
  295. package/list/Grid/views/ContentColumnView/ContentColumnView.scss +88 -0
  296. package/list/Grid/views/ContentColumnView/index.d.ts +2 -0
  297. package/list/Grid/views/ContentColumnView/index.js +7 -0
  298. package/list/Grid/views/DiagramColumnView/DiagramColumnView.d.ts +3 -0
  299. package/list/Grid/views/DiagramColumnView/DiagramColumnView.js +60 -0
  300. package/list/Grid/views/DiagramColumnView/DiagramColumnView.scss +170 -0
  301. package/list/Grid/views/DiagramColumnView/index.d.ts +2 -0
  302. package/list/Grid/views/DiagramColumnView/index.js +7 -0
  303. package/list/List/ListItemView.d.ts +1 -3
  304. package/list/List/ListView.js +5 -7
  305. package/list/List/ListView.scss +28 -1
  306. package/list/Pagination/PaginationButtonView.d.ts +0 -1
  307. package/list/Pagination/PaginationButtonView.js +34 -5
  308. package/list/Pagination/PaginationButtonView.scss +277 -1
  309. package/list/Pagination/PaginationMoreView.d.ts +0 -1
  310. package/list/Pagination/PaginationMoreView.js +1 -1
  311. package/list/Pagination/PaginationMoreView.scss +4 -1
  312. package/list/PaginationSize/PaginationSizeView.d.ts +0 -1
  313. package/list/PaginationSize/PaginationSizeView.js +5 -5
  314. package/list/PaginationSize/PaginationSizeView.scss +0 -8
  315. package/list/Steps/StepItemView.d.ts +1 -2
  316. package/list/Steps/StepItemView.js +3 -3
  317. package/list/Steps/StepItemView.scss +13 -12
  318. package/list/Steps/StepsView.d.ts +0 -1
  319. package/list/Steps/StepsView.js +1 -1
  320. package/list/Steps/StepsView.scss +3 -1
  321. package/modal/Modal/ModalView.d.ts +1 -3
  322. package/modal/Modal/ModalView.js +5 -8
  323. package/modal/Modal/ModalView.scss +140 -93
  324. package/modal/TwoFactorModal/TwoFactorModalView.d.ts +1 -4
  325. package/modal/TwoFactorModal/TwoFactorModalView.js +0 -1
  326. package/modal/TwoFactorModal/TwoFactorModalView.scss +0 -2
  327. package/nav/Breadcrubms/BreadcrumbsView.d.ts +0 -1
  328. package/nav/Breadcrubms/BreadcrumbsView.js +9 -1
  329. package/nav/Breadcrubms/BreadcrumbsView.scss +49 -0
  330. package/nav/ButtonGroup/ButtonGroupView.d.ts +2 -0
  331. package/nav/ButtonGroup/ButtonGroupView.js +33 -0
  332. package/nav/ButtonGroup/ButtonGroupView.scss +84 -0
  333. package/nav/Controls/ControlsView.d.ts +1 -3
  334. package/nav/Controls/ControlsView.js +1 -1
  335. package/nav/Controls/ControlsView.scss +18 -3
  336. package/nav/Nav/NavBarView.d.ts +1 -3
  337. package/nav/Nav/NavBarView.js +9 -4
  338. package/nav/Nav/NavBarView.scss +35 -1
  339. package/nav/Nav/NavButtonView.d.ts +1 -3
  340. package/nav/Nav/NavButtonView.js +8 -2
  341. package/nav/Nav/NavButtonView.scss +6 -5
  342. package/nav/Nav/NavIconView.d.ts +1 -3
  343. package/nav/Nav/NavIconView.js +21 -2
  344. package/nav/Nav/NavIconView.scss +33 -6
  345. package/nav/Nav/NavLinkView.d.ts +1 -3
  346. package/nav/Nav/NavLinkView.js +9 -2
  347. package/nav/Nav/NavLinkView.scss +14 -5
  348. package/nav/Nav/NavListView.d.ts +1 -3
  349. package/nav/Nav/NavListView.js +11 -7
  350. package/nav/Nav/NavListView.scss +11 -10
  351. package/nav/Nav/NavTabsView.d.ts +1 -3
  352. package/nav/Nav/NavTabsView.js +9 -4
  353. package/nav/Nav/NavTabsView.scss +50 -1
  354. package/nav/Tree/TreeView.d.ts +1 -3
  355. package/nav/Tree/TreeView.scss +63 -54
  356. package/package.json +58 -52
  357. package/scss/animations/index.scss +1 -0
  358. package/scss/animations/loading.scss +13 -0
  359. package/scss/fonts.scss +6 -0
  360. package/scss/mixins/button.scss +84 -25
  361. package/scss/mixins/customMixins.scss +6 -0
  362. package/scss/mixins/date.scss +436 -0
  363. package/scss/mixins/index.scss +6 -2
  364. package/scss/mixins/navs.scss +39 -0
  365. package/scss/mixins/scroll.scss +31 -0
  366. package/scss/mixins/typography.scss +29 -0
  367. package/scss/normalize.scss +25 -0
  368. package/scss/variables/common/colors.scss +269 -0
  369. package/scss/variables/common/media.scss +3 -0
  370. package/scss/variables/common/old-variables.scss +24 -0
  371. package/scss/variables/common/radiuses.scss +5 -0
  372. package/scss/variables/common/spacing.scss +12 -0
  373. package/scss/variables/common/typography.scss +110 -0
  374. package/scss/variables/common/variables.scss +1 -0
  375. package/scss/variables/components/calendar.scss +9 -7
  376. package/scss/variables/components/icon.scss +1 -1
  377. package/scss/variables/components/input.scss +62 -4
  378. package/scss/variables/components/ratefield.scss +3 -1
  379. package/scss/variables/index.scss +11 -9
  380. package/typography/Text/TextView.d.ts +3 -0
  381. package/typography/Text/TextView.js +46 -0
  382. package/typography/Text/TextView.scss +19 -0
  383. package/typography/Title/TitleView.d.ts +3 -0
  384. package/typography/Title/TitleView.js +50 -0
  385. package/typography/Title/TitleView.scss +19 -0
  386. package/utils/renderIcon.d.ts +9 -0
  387. package/utils/renderIcon.js +27 -0
  388. package/content/Collapse/CollapseItemView.d.ts +0 -3
  389. package/content/Collapse/CollapseItemView.js +0 -64
  390. package/content/Collapse/CollapseItemView.scss +0 -88
  391. package/content/Collapse/CollapseView.d.ts +0 -3
  392. package/content/Collapse/CollapseView.scss +0 -15
  393. package/icon/Icon/IconView.d.ts +0 -4
  394. package/icon/Icon/IconView.scss +0 -25
  395. package/icon/Icon/index.d.ts +0 -1
  396. package/icon/Icon/index.js +0 -16
  397. package/icon/fontawesome.d.ts +0 -2
  398. package/icon/fontawesome.js +0 -251
  399. package/list/List/ListItemView.scss +0 -3
  400. package/scss/mixins/card.scss +0 -26
  401. package/scss/variables/colors.scss +0 -74
  402. package/scss/variables/components/alert.scss +0 -9
  403. package/scss/variables/components/avatar.scss +0 -17
  404. package/scss/variables/components/card.scss +0 -20
@@ -33,38 +33,33 @@ var __importStar = (this && this.__importStar) || function (mod) {
33
33
  __setModuleDefault(result, mod);
34
34
  return result;
35
35
  };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
36
39
  exports.__esModule = true;
37
40
  var React = __importStar(require("react"));
38
- var react_1 = require("react");
41
+ var isNumber_1 = __importDefault(require("lodash-es/isNumber"));
39
42
  var hooks_1 = require("@steroidsjs/core/hooks");
43
+ var Icon_1 = __importDefault(require("@steroidsjs/core/ui/content/Icon"));
40
44
  function NumberFieldView(props) {
41
- // Input ref
42
- var inputRef = (0, react_1.useRef)(null);
43
- var onStepUp = (0, react_1.useCallback)(function () {
44
- inputRef.current.stepUp();
45
- props.inputProps.onChange(inputRef.current.value);
46
- }, [inputRef.current]);
47
- var onStepDown = (0, react_1.useCallback)(function () {
48
- inputRef.current.stepDown();
49
- props.inputProps.onChange(inputRef.current.value);
50
- }, [inputRef.current]);
45
+ var _a, _b;
51
46
  var bem = (0, hooks_1.useBem)('NumberFieldView');
52
47
  return (React.createElement("div", { className: bem(bem.block({
53
- disabled: props.inputProps.disabled
54
- }), 'form-control', 'form-control-' + props.size, !!props.errors && 'is-invalid', props.className) },
55
- React.createElement("input", __assign({ ref: inputRef, className: bem(bem.element('input', {
56
- size: props.size
57
- }), !!props.errors && 'is-invalid') }, props.inputProps, { onChange: function (e) { return props.input.onChange(e.target.value); } })),
48
+ disabled: props.inputProps.disabled,
49
+ size: props.size,
50
+ hasErrors: !!props.errors,
51
+ filled: !!((_b = (_a = props.inputRef) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.value)
52
+ }), props.className) },
53
+ React.createElement("input", __assign({ ref: props.inputRef, className: bem(bem.element('input')) }, props.inputProps, { onWheel: function (event) { return event.currentTarget.blur(); }, id: props.id })),
58
54
  !props.disabled && !props.errors && (React.createElement("div", { className: bem.element('arrows-container') },
59
55
  React.createElement("button", { className: bem.element('arrow', {
60
- disabled: props.inputProps.max && props.inputProps.value >= props.inputProps.max
61
- }), type: 'button', onClick: onStepUp },
62
- React.createElement("svg", { viewBox: '64 64 896 896', width: '1em', height: '1em' },
63
- React.createElement("path", { d: 'M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140\n 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1\n 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z' }))),
56
+ disabled: (0, isNumber_1["default"])(props.inputProps.max) && props.inputProps.value >= props.inputProps.max
57
+ }), type: 'button', onClick: props.onStepUp },
58
+ React.createElement(Icon_1["default"], { name: 'expand_up', tabIndex: -1 })),
64
59
  React.createElement("button", { className: bem.element('arrow', {
65
- disabled: props.inputProps.min && props.inputProps.value <= props.inputProps.min
66
- }), type: 'button', onClick: onStepDown },
67
- React.createElement("svg", { viewBox: '64 64 896 896', width: '1em', height: '1em' },
68
- React.createElement("path", { d: 'M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5\n 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39\n 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z' })))))));
60
+ disabled: (0, isNumber_1["default"])(props.inputProps.min) && props.inputProps.value <= props.inputProps.min
61
+ }), type: 'button', onClick: props.onStepDown },
62
+ React.createElement(Icon_1["default"], { name: 'expand_up', tabIndex: -1 })))),
63
+ React.createElement("span", { className: bem.element('input-effects') })));
69
64
  }
70
65
  exports["default"] = NumberFieldView;
@@ -1,102 +1,210 @@
1
+ @use "../../scss/variables";
2
+
3
+ :root {
4
+ --number-field-arrow-color: #414141;
5
+ }
6
+
7
+ html[data-theme="dark"] {
8
+ --number-field-arrow-color: #ffffff;
9
+ }
10
+
11
+ $number-field-arrow-color: var(--number-field-arrow-color);
12
+
1
13
  .NumberFieldView {
2
- display: flex;
3
- overflow: hidden;
4
- flex-flow: row nowrap;
5
- align-items: stretch;
6
- padding: 0;
7
- border: $input-border;
8
-
9
- &:hover {
10
- border-color: $border-hover;
11
- }
12
- &:active {
13
- border-color: $border-action;
14
- box-shadow: 0 0 0 4px $border-typing;
15
- }
16
-
17
- &_disabled {
18
- color: rgba(0, 0, 0, .25);
19
- background-color: $back-disabled;
20
- border: unset;
21
- cursor: not-allowed;
22
-
23
- &:active, &:hover {
24
- border: unset;
25
- box-shadow: unset;
14
+ $root: &;
15
+ display: flex;
16
+ position: relative;
17
+ padding: 0;
18
+
19
+ font-family: variables.$font-family-nunito;
20
+
21
+ // Hide default arrows
22
+ /* Chrome, Safari, Edge, Opera */
23
+ input::-webkit-outer-spin-button,
24
+ input::-webkit-inner-spin-button {
25
+ -webkit-appearance: none;
26
+ margin: 0;
26
27
  }
27
28
 
28
- input {
29
- cursor: inherit;
29
+ /* Firefox */
30
+ input[type="number"] {
31
+ -moz-appearance: textfield;
30
32
  }
31
- }
32
-
33
- // Hide default arrows
34
- /* Chrome, Safari, Edge, Opera */
35
- input::-webkit-outer-spin-button,
36
- input::-webkit-inner-spin-button {
37
- -webkit-appearance: none;
38
- margin: 0;
39
- }
40
-
41
- /* Firefox */
42
- input[type=number] {
43
- -moz-appearance: textfield;
44
- }
45
-
46
- &__input {
47
- flex-grow: 1;
48
- border: none;
49
- outline: none;
50
- background-color: transparent;
51
- color: $heading;
52
-
53
- width: inherit;
54
- padding: $input-padding-y $input-padding-x;
55
- }
56
-
57
- &__arrows-container{
58
- display: flex;
59
- flex-flow: column;
60
- grid-gap: 2px;
61
- font-size: .6em;
62
-
63
- opacity: 0;
64
- pointer-events: none;
65
- transition: opacity .15s;
66
- }
67
- &:hover &__arrows-container{
68
- opacity: 1;
69
- pointer-events: all;
70
- }
71
-
72
- &__arrow{
73
- padding: $input-padding-y $input-padding-x;
74
- cursor: pointer;
75
- height: 50%;
76
33
 
77
- display: flex;
78
- align-items: center;
79
- justify-content: center;
80
-
81
- &:nth-child(1), &:nth-child(2) {
82
- background-color: $grey-lighter;
83
- &:active, &:hover {
84
- background-color: $border-default;
85
- fill: $white;
86
- svg {
87
- fill: $white;
34
+ &__arrows-container {
35
+ position: absolute;
36
+ z-index: 2;
37
+ right: 0;
38
+ top: 0;
39
+ height: 100%;
40
+
41
+ display: flex;
42
+ flex-direction: column;
43
+ justify-content: space-between;
44
+ align-items: center;
45
+
46
+ transition: opacity 150ms ease-in-out;
47
+ opacity: 0;
48
+ pointer-events: none;
49
+ }
50
+
51
+ &__arrow {
52
+ width: 30px;
53
+ height: 16px;
54
+
55
+ display: flex;
56
+ justify-content: center;
57
+ align-items: center;
58
+ outline: none;
59
+ border: none;
60
+ background: transparent;
61
+
62
+ span > svg > path {
63
+ stroke: $number-field-arrow-color;
64
+ }
65
+
66
+ &_disabled {
67
+ span {
68
+ cursor: not-allowed;
69
+ }
70
+ span > svg > path {
71
+ stroke: variables.$element-background-color-disabled;
72
+ }
73
+ }
74
+
75
+ &:last-child {
76
+ transform: rotate(180deg);
88
77
  }
89
- }
90
78
  }
91
79
 
92
- &_disabled{
93
- cursor: not-allowed;
80
+ &_size {
81
+ &_lg {
82
+ #{$root} {
83
+ &__input {
84
+ height: 56px;
85
+ border-radius: variables.$radius-large;
86
+ font-size: variables.$font-size-lg;
87
+
88
+ &-effects {
89
+ border-radius: variables.$radius-large;
90
+ }
91
+ }
92
+
93
+ &__arrow {
94
+ transform: translateX(-3px) translateY(6px);
95
+
96
+ &:last-child {
97
+ transform: translateX(-3px) translateY(-8px) rotate(180deg);
98
+ }
99
+ }
100
+ }
101
+ }
102
+
103
+ &_md {
104
+ #{$root} {
105
+ &__input {
106
+ height: 46px;
107
+ border-radius: variables.$radius-large;
108
+ font-size: variables.$font-size-base;
109
+
110
+ &-effects {
111
+ border-radius: variables.$radius-large;
112
+ }
113
+ }
114
+
115
+ &__arrow {
116
+ transform: translateX(-3px) translateY(4px) scale(0.8);
117
+
118
+ &:last-child {
119
+ transform: translateX(-3px) translateY(-4px) rotate(180deg) scale(0.8);
120
+ }
121
+ }
122
+ }
123
+ }
124
+
125
+ &_sm {
126
+ #{$root} {
127
+ &__input {
128
+ height: 34px;
129
+ font-size: variables.$font-size-sm;
130
+
131
+ &-effects {
132
+ border-radius: variables.$radius-small;
133
+ }
134
+ }
135
+
136
+ &__arrow {
137
+ transform: translateX(1px) translateY(2px) scale(0.8);
138
+
139
+ &:last-child {
140
+ transform: translateX(1px) translateY(-3px) rotate(180deg) scale(0.8);
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }
146
+
147
+ &__input {
148
+ width: 100%;
149
+ outline: none;
150
+ border: 1px solid variables.$element-border-color;
151
+ border-radius: variables.$radius-small;
152
+ padding: 5px 22px 5px 8px;
153
+ line-height: 24px;
154
+ z-index: 1;
155
+ font-weight: variables.$font-weight-sm;
156
+ color: variables.$text-color;
157
+
158
+ background-color: variables.$element-field-background-color;
159
+
160
+ &::placeholder {
161
+ color: variables.$element-placeholder-color;
162
+ }
163
+
164
+ &:disabled {
165
+ background-color: variables.$element-background-color-disabled;
166
+ color: variables.$element-placeholder-color-disabled;
167
+ }
168
+
169
+ &:hover:not(:disabled):not(:focus) {
170
+ border-color: variables.$element-border-color-hover;
171
+ }
172
+
173
+ &:active:not(:disabled) {
174
+ border: 1px solid variables.$primary;
175
+ }
94
176
  }
95
177
 
96
- svg{
97
- transition: fill .1s;
178
+ &:focus-within #{$root}__arrows-container {
179
+ opacity: 1;
180
+ pointer-events: all;
98
181
  }
99
182
 
100
- }
101
- }
183
+ &__input-effects {
184
+ position: absolute;
185
+ display: block;
186
+ z-index: 5;
187
+ top: 0;
188
+ left: 0;
189
+
190
+ width: 100%;
191
+ height: 100%;
192
+ background-color: transparent;
193
+ border: 4px solid variables.$primary-light;
194
+ opacity: 0;
195
+ pointer-events: none;
196
+ }
197
+
198
+ &__input:focus ~ &__input-effects {
199
+ opacity: 1;
200
+ }
201
+
202
+ &__input:active ~ &__input-effects {
203
+ opacity: 0;
204
+ }
102
205
 
206
+ &_filled #{$root}__arrows-container {
207
+ opacity: 1;
208
+ pointer-events: all;
209
+ }
210
+ }
@@ -1,4 +1,2 @@
1
- /// <reference types="react" />
2
- import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
3
1
  import { IPasswordFieldViewProps } from '@steroidsjs/core/ui/form/PasswordField/PasswordField';
4
- export default function PasswordFieldView(props: IPasswordFieldViewProps & IBemHocOutput): JSX.Element;
2
+ export default function PasswordFieldView(props: IPasswordFieldViewProps): JSX.Element;
@@ -38,19 +38,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
38
38
  };
39
39
  exports.__esModule = true;
40
40
  var React = __importStar(require("react"));
41
- var Icon_1 = __importDefault(require("@steroidsjs/core/ui/icon/Icon"));
41
+ var PasswordField_1 = require("@steroidsjs/core/ui/form/PasswordField/PasswordField");
42
+ var Icon_1 = __importDefault(require("@steroidsjs/core/ui/content/Icon"));
42
43
  var hooks_1 = require("@steroidsjs/core/hooks");
43
44
  function PasswordFieldView(props) {
44
45
  var bem = (0, hooks_1.useBem)('PasswordFieldView');
45
- return (React.createElement("div", { className: bem(bem.block(), props.className) },
46
- React.createElement("div", { className: bem(bem.element('container', {
46
+ return (React.createElement("div", { className: bem(bem.block({
47
+ size: props.size,
48
+ filled: !!props.input.value,
49
+ disabled: props.inputProps.disabled
50
+ }), props.className) },
51
+ React.createElement("div", { className: bem.element('container', {
47
52
  disabled: props.inputProps.disabled
48
- }), 'form-control', 'form-control-' + props.size, !!props.errors && 'is-invalid') },
49
- React.createElement("input", __assign({ className: bem(bem.element('input', {
50
- size: props.size
51
- }), !!props.errors && 'is-invalid', props.className) }, props.inputProps)),
52
- props.security && (React.createElement("button", { className: bem(bem.element('icon-eye')), onMouseDown: props.onShowPassword, onMouseUp: props.onHidePassword },
53
- React.createElement(Icon_1["default"], { name: props.inputProps.type === 'password' ? 'securityEye' : 'securityEyeSlash' })))),
54
- props.security && (React.createElement("div", { className: bem.element('security-bar', props.securityLevel) }))));
53
+ }) },
54
+ React.createElement("input", __assign({ className: bem.element('input') }, props.inputProps, { id: props.id })),
55
+ props.showSecurityIcon && (React.createElement("span", { className: bem(bem.element('icon-eye', {
56
+ viewHide: props.inputProps.type === PasswordField_1.InputType.PASSWORD
57
+ })), onClick: props.onShowButtonClick },
58
+ React.createElement(Icon_1["default"], { name: props.inputProps.type === 'password' ? 'view_hide' : 'view' })))),
59
+ props.showSecurityBar && (React.createElement("div", { className: bem.element('security-bar', props.securityLevel) }))));
55
60
  }
56
61
  exports["default"] = PasswordFieldView;