@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
@@ -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,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>;
@@ -0,0 +1,50 @@
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
+ h1: 'h1',
30
+ h2: 'h2',
31
+ h3: 'h3',
32
+ h4: 'h4',
33
+ h5: 'h5',
34
+ h6: 'h6',
35
+ subtitle: 'h6'
36
+ };
37
+ function TitleView(props) {
38
+ var bem = (0, hooks_1.useBem)('TitleView');
39
+ var tag = props.tag || TYPE_MAPPING[props.type || ''] || 'h2';
40
+ return (React.createElement(tag, {
41
+ className: bem(bem.block({
42
+ type: props.type,
43
+ color: props.color
44
+ }), props.className),
45
+ style: props.style
46
+ }, React.createElement(React.Fragment, null,
47
+ props.content,
48
+ props.children)));
49
+ }
50
+ exports["default"] = TitleView;
@@ -0,0 +1,16 @@
1
+ .TitleView {
2
+ margin-bottom: 1em;
3
+ font-family: $font-family-nunito;
4
+
5
+ @each $typeName, $typeMap in $title-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,9 @@
1
+ import React from 'react';
2
+ import { IIconProps } from '@steroidsjs/core/ui/content/Icon/Icon';
3
+ /**
4
+ * Функция которая проверяет соответствует ли typeof icon === 'string', если да - то вернет компонент Icon
5
+ * с переданным в него iconProps, если нет то вернется span с классом iconProps.className со вложенным {icon}
6
+ * @example renderIcon(props.leadIcon, {className: 'leadIcon', tabIndex: -1})
7
+ */
8
+ declare const renderIcon: (icon: string | React.ReactElement, iconProps: IIconProps) => JSX.Element;
9
+ export default renderIcon;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ exports.__esModule = true;
17
+ /* eslint-disable valid-typeof */
18
+ var react_1 = __importDefault(require("react"));
19
+ var Icon_1 = __importDefault(require("@steroidsjs/core/ui/content/Icon/Icon"));
20
+ /**
21
+ * Функция которая проверяет соответствует ли typeof icon === 'string', если да - то вернет компонент Icon
22
+ * с переданным в него iconProps, если нет то вернется span с классом iconProps.className со вложенным {icon}
23
+ * @example renderIcon(props.leadIcon, {className: 'leadIcon', tabIndex: -1})
24
+ */
25
+ var renderIcon = function (icon, iconProps) { return typeof icon === 'string'
26
+ ? (react_1["default"].createElement(Icon_1["default"], __assign({ name: icon }, iconProps))) : (react_1["default"].createElement("span", { className: iconProps.className }, icon)); };
27
+ exports["default"] = renderIcon;
@@ -1,2 +0,0 @@
1
- import { ICollapseItemViewProps } from '@steroidsjs/core/ui/content/Collapse/CollapseItem';
2
- export default function CollapseItemView(props: ICollapseItemViewProps): JSX.Element;
@@ -1,88 +0,0 @@
1
- .CollapseItemView {
2
- display: grid;
3
- align-items: center;
4
-
5
- background-color: #fff;
6
- border-bottom: 1px solid rgba(#000, .1);
7
- box-shadow: 0 0 3px 0 rgba(34, 60, 80, 0.2);
8
- min-height: 48px;
9
- width: 100%;
10
- height: fit-content;
11
-
12
- &_disable {
13
- opacity: .4;
14
- background-color: #d7d7d7;
15
- color: rgba(#212529, .7);
16
-
17
- .IconView {
18
- svg {
19
- fill-opacity: .6;
20
- }
21
- }
22
- }
23
-
24
- &_borderless {
25
- border-bottom: unset;
26
- box-shadow: unset;
27
- }
28
-
29
- &_active {
30
- margin-bottom: 16px;
31
- }
32
-
33
- p {
34
- margin: 0;
35
- };
36
-
37
- &__icon {
38
- transform: rotate(0deg);
39
- transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
40
-
41
- &_active {
42
- transform: rotate(180deg);
43
- }
44
-
45
- &_disable_cursor {
46
- cursor: auto;
47
- }
48
- }
49
-
50
- &__header-container {
51
- display: flex;
52
- &_revert {
53
- flex-direction: row-reverse;
54
- }
55
- }
56
-
57
- &__title-container {
58
- width: 100%;
59
- padding: 0 16px;
60
- align-self: center;
61
- }
62
-
63
- &__icon-wrapper {
64
- width: 48px;
65
- height: 48px;
66
-
67
- display: flex;
68
- align-items: center;
69
- justify-content: center;
70
-
71
- &_not_visible {
72
- width: 0;
73
- opacity: 0;
74
- }
75
- }
76
-
77
- &__content {
78
- transition: all 200ms ease;
79
- overflow: hidden;
80
- max-height: 0;
81
- padding: 0 16px;
82
-
83
- &_visible {
84
- max-height: 1024px;
85
- padding: 0 16px 8px 16px
86
- }
87
- }
88
- }
@@ -1,2 +0,0 @@
1
- import { ICollapseViewProps } from '@steroidsjs/core/ui/content/Collapse/Collapse';
2
- export default function CollapseView(props: ICollapseViewProps): JSX.Element;
@@ -1,2 +0,0 @@
1
- declare const _default: () => {};
2
- export default _default;