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

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 (277) 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 +31 -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 +78 -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/SwitcherField/SwitcherFieldView.d.ts +1 -2
  104. package/form/SwitcherField/SwitcherFieldView.js +12 -7
  105. package/form/SwitcherField/SwitcherFieldView.scss +188 -1
  106. package/form/TextField/TextFieldView.d.ts +1 -2
  107. package/form/TextField/TextFieldView.js +10 -2
  108. package/form/TextField/TextFieldView.scss +144 -2
  109. package/form/TimeField/TimeFieldView.d.ts +1 -2
  110. package/icons/index.d.ts +2 -0
  111. package/icons/index.js +103 -0
  112. package/icons/svgs/add.svg +4 -0
  113. package/icons/svgs/add_square.svg +5 -0
  114. package/icons/svgs/arrow_down_18x18.svg +4 -0
  115. package/icons/svgs/arrow_down_24x24.svg +4 -0
  116. package/icons/svgs/arrow_drop_down_10x10.svg +3 -0
  117. package/icons/svgs/arrow_left_18x18.svg +4 -0
  118. package/icons/svgs/arrow_left_24x24.svg +4 -0
  119. package/icons/svgs/arrow_right_18x18.svg +4 -0
  120. package/icons/svgs/arrow_right_24x24.svg +4 -0
  121. package/icons/svgs/arrow_up_18x18.svg +4 -0
  122. package/icons/svgs/arrow_up_24x24.svg +4 -0
  123. package/icons/svgs/blank.svg +4 -0
  124. package/icons/svgs/calendar_check.svg +5 -0
  125. package/icons/svgs/calendar_range.svg +8 -0
  126. package/icons/svgs/cancel_ellips.svg +4 -0
  127. package/icons/svgs/chart.svg +6 -0
  128. package/icons/svgs/checkmark_12x12.svg +4 -0
  129. package/icons/svgs/checkmark_8x8.svg +4 -0
  130. package/icons/svgs/circle_cross_12x12.svg +4 -0
  131. package/icons/svgs/circle_cross_16x16.svg +4 -0
  132. package/icons/svgs/circle_cross_18x18.svg +4 -0
  133. package/icons/svgs/clip.svg +3 -0
  134. package/icons/svgs/copy.svg +5 -0
  135. package/icons/svgs/cross_12x12.svg +4 -0
  136. package/icons/svgs/cross_4x4.svg +3 -0
  137. package/icons/svgs/cross_8x8.svg +4 -0
  138. package/icons/svgs/cut.svg +3 -0
  139. package/icons/svgs/date_range.svg +8 -0
  140. package/icons/svgs/default_16x16.svg +4 -0
  141. package/icons/svgs/default_24x24.svg +11 -0
  142. package/icons/svgs/double_arrow_down.svg +5 -0
  143. package/icons/svgs/double_arrow_left.svg +5 -0
  144. package/icons/svgs/double_arrow_right.svg +5 -0
  145. package/icons/svgs/double_arrow_up.svg +5 -0
  146. package/icons/svgs/doughnut_chart.svg +5 -0
  147. package/icons/svgs/edit.svg +4 -0
  148. package/icons/svgs/error_16x16.svg +5 -0
  149. package/icons/svgs/error_24x24.svg +12 -0
  150. package/icons/svgs/expand_down.svg +3 -0
  151. package/icons/svgs/expand_left.svg +3 -0
  152. package/icons/svgs/expand_left_double.svg +4 -0
  153. package/icons/svgs/expand_right.svg +3 -0
  154. package/icons/svgs/expand_right_double.svg +4 -0
  155. package/icons/svgs/expand_up.svg +3 -0
  156. package/icons/svgs/file_dock.svg +6 -0
  157. package/icons/svgs/filter.svg +3 -0
  158. package/icons/svgs/fluid.svg +4 -0
  159. package/icons/svgs/folder.svg +3 -0
  160. package/icons/svgs/group.svg +8 -0
  161. package/icons/svgs/home.svg +4 -0
  162. package/icons/svgs/img_box.svg +5 -0
  163. package/icons/svgs/import.svg +4 -0
  164. package/icons/svgs/info_16x16.svg +5 -0
  165. package/icons/svgs/info_24x24.svg +12 -0
  166. package/icons/svgs/left_12x12.svg +3 -0
  167. package/icons/svgs/loading_default.svg +3 -0
  168. package/icons/svgs/loading_icon_thick.svg +3 -0
  169. package/icons/svgs/loading_purple.svg +9 -0
  170. package/icons/svgs/map.svg +7 -0
  171. package/icons/svgs/menu_dots.svg +5 -0
  172. package/icons/svgs/menu_left.svg +5 -0
  173. package/icons/svgs/minis_sq.svg +4 -0
  174. package/icons/svgs/paste.svg +8 -0
  175. package/icons/svgs/pie_chart.svg +5 -0
  176. package/icons/svgs/pin.svg +4 -0
  177. package/icons/svgs/sad.svg +6 -0
  178. package/icons/svgs/search.svg +4 -0
  179. package/icons/svgs/setting_line.svg +3 -0
  180. package/icons/svgs/share.svg +7 -0
  181. package/icons/svgs/star.svg +3 -0
  182. package/icons/svgs/success_16x16.svg +4 -0
  183. package/icons/svgs/success_24x24.svg +11 -0
  184. package/icons/svgs/support.svg +3 -0
  185. package/icons/svgs/trash.svg +6 -0
  186. package/icons/svgs/upload.svg +4 -0
  187. package/icons/svgs/user.svg +4 -0
  188. package/icons/svgs/view.svg +4 -0
  189. package/icons/svgs/view_hide.svg +5 -0
  190. package/icons/svgs/warning_16x16.svg +5 -0
  191. package/icons/svgs/warning_24x24.svg +12 -0
  192. package/index.d.ts +26 -2
  193. package/index.js +28 -4
  194. package/index.scss +16 -3
  195. package/layout/Header/HeaderView.scss +3 -3
  196. package/layout/Loader/LoaderView.d.ts +2 -2
  197. package/layout/Loader/LoaderView.js +6 -2
  198. package/layout/Loader/LoaderView.scss +67 -22
  199. package/layout/Notifications/NotificationsItemView.d.ts +1 -2
  200. package/layout/Notifications/NotificationsView.d.ts +1 -2
  201. package/layout/ProgressBar/CircleProgressBarView.d.ts +1 -2
  202. package/layout/ProgressBar/LineProgressBarView.d.ts +1 -2
  203. package/layout/Tooltip/TooltipView.d.ts +1 -2
  204. package/layout/Tooltip/TooltipView.js +6 -6
  205. package/layout/Tooltip/TooltipView.scss +45 -37
  206. package/list/CheckboxColumn/CheckboxColumnView.d.ts +1 -2
  207. package/list/CheckboxColumn/CheckboxColumnView.js +2 -1
  208. package/list/ControlsColumnView/ControlsColumnView.d.ts +1 -2
  209. package/list/Grid/GridView.js +8 -4
  210. package/list/Grid/GridView.scss +148 -37
  211. package/list/Grid/views/ContentColumnView/ContentColumnView.d.ts +3 -0
  212. package/list/Grid/views/ContentColumnView/ContentColumnView.js +51 -0
  213. package/list/Grid/views/ContentColumnView/ContentColumnView.scss +88 -0
  214. package/list/Grid/views/ContentColumnView/index.d.ts +2 -0
  215. package/list/Grid/views/ContentColumnView/index.js +7 -0
  216. package/list/List/ListItemView.d.ts +1 -2
  217. package/list/List/ListView.js +5 -7
  218. package/list/List/ListView.scss +32 -1
  219. package/list/Pagination/PaginationButtonView.js +34 -5
  220. package/list/Pagination/PaginationButtonView.scss +265 -1
  221. package/list/Pagination/PaginationMoreView.js +1 -1
  222. package/list/Pagination/PaginationMoreView.scss +4 -1
  223. package/modal/Modal/ModalView.d.ts +1 -2
  224. package/modal/Modal/ModalView.js +4 -7
  225. package/modal/Modal/ModalView.scss +129 -93
  226. package/modal/TwoFactorModal/TwoFactorModalView.d.ts +1 -2
  227. package/nav/Breadcrubms/BreadcrumbsView.js +9 -1
  228. package/nav/Breadcrubms/BreadcrumbsView.scss +49 -0
  229. package/nav/ButtonGroup/ButtonGroupView.d.ts +2 -0
  230. package/nav/ButtonGroup/ButtonGroupView.js +32 -0
  231. package/nav/ButtonGroup/ButtonGroupView.scss +83 -0
  232. package/nav/Controls/ControlsView.d.ts +1 -2
  233. package/nav/Controls/ControlsView.scss +9 -3
  234. package/nav/Nav/NavBarView.d.ts +1 -2
  235. package/nav/Nav/NavButtonView.d.ts +1 -2
  236. package/nav/Nav/NavIconView.d.ts +1 -2
  237. package/nav/Nav/NavIconView.js +1 -1
  238. package/nav/Nav/NavLinkView.d.ts +1 -2
  239. package/nav/Nav/NavListView.d.ts +1 -2
  240. package/nav/Nav/NavListView.js +1 -1
  241. package/nav/Nav/NavTabsView.d.ts +1 -2
  242. package/nav/Nav/NavTabsView.js +1 -1
  243. package/nav/Tree/TreeView.d.ts +1 -2
  244. package/nav/Tree/TreeView.scss +14 -11
  245. package/package.json +56 -56
  246. package/scss/animations/index.scss +1 -0
  247. package/scss/animations/loading.scss +13 -0
  248. package/scss/fonts.scss +6 -0
  249. package/scss/mixins/button.scss +80 -24
  250. package/scss/mixins/customMixins.scss +5 -0
  251. package/scss/mixins/date.scss +397 -0
  252. package/scss/mixins/index.scss +4 -1
  253. package/scss/mixins/scroll.scss +31 -0
  254. package/scss/mixins/typography.scss +26 -0
  255. package/scss/variables/common/colors.scss +119 -69
  256. package/scss/variables/common/media.scss +2 -0
  257. package/scss/variables/common/typography.scss +96 -28
  258. package/scss/variables/common/variables.scss +1 -0
  259. package/scss/variables/components/input.scss +7 -6
  260. package/scss/variables/index.scss +3 -2
  261. package/scss/variables/normalize.scss +25 -0
  262. package/typography/Text/TextView.d.ts +3 -0
  263. package/typography/Text/TextView.js +46 -0
  264. package/typography/Text/TextView.scss +16 -0
  265. package/typography/Title/TitleView.d.ts +3 -0
  266. package/typography/Title/TitleView.js +50 -0
  267. package/typography/Title/TitleView.scss +16 -0
  268. package/utils/renderIcon.d.ts +9 -0
  269. package/utils/renderIcon.js +27 -0
  270. package/content/Collapse/CollapseItemView.d.ts +0 -2
  271. package/content/Collapse/CollapseItemView.scss +0 -88
  272. package/content/Collapse/CollapseView.d.ts +0 -2
  273. package/icons/fontawesome.d.ts +0 -2
  274. package/icons/fontawesome.js +0 -254
  275. package/list/List/ListItemView.scss +0 -3
  276. package/scss/mixins/card.scss +0 -26
  277. package/scss/variables/components/card.scss +0 -20
package/package.json CHANGED
@@ -1,58 +1,58 @@
1
1
  {
2
- "name": "@steroidsjs/bootstrap",
3
- "version": "3.0.0-beta.6",
4
- "description": "",
5
- "main": "index.js",
6
- "author": "Vladimir Kozhin <hello@kozhindev.com>",
7
- "repository": {
8
- "type": "git",
9
- "url": "https://github.com/steroids/react-bootstrap"
10
- },
11
- "scripts": {
12
- "lint": "eslint -c ./.eslintrc --ext .js,.jsx,.ts,.tsx ./src --quiet",
13
- "build": "tsc && cp ./{package.json,LICENSE,README.md} dist && copyfiles -u 1 \"src/**/*.scss\" \"src/icons/*.svg\" dist"
14
- },
15
- "license": "MIT",
16
- "homepage": "https://github.com/steroids/react-bootstrap",
17
- "bugs": {
18
- "url": "https://github.com/steroids/react-bootstrap/issues"
19
- },
20
- "dependencies": {
21
- "@ckeditor/ckeditor5-react": "^3.0.2",
22
- "@steroidsjs/ckeditor5": "^27.0.2-rc.2",
23
- "bootstrap": "^4.5.2",
24
- "date-fns": "^2.29.3",
25
- "lodash": "^4.17.20",
26
- "lodash-es": "^4.17.20",
27
- "rc-slider": "^9.7.4",
28
- "react": "^18.2.0",
29
- "react-collapse": "^5.0.1",
30
- "react-day-picker": "^7.4.10",
31
- "react-dom": "^18.2.0",
32
- "react-image-crop": "^9.0.2",
33
- "react-modal": "^3.11.2",
34
- "react-transition-group": "^2.9.0",
35
- "react-use": "^17.4.0"
36
- },
37
- "devDependencies": {
38
- "@steroidsjs/core": "^3.0 || >=3.0.0-beta.6",
39
- "@steroidsjs/eslint-config": "^2.1.3",
40
- "@types/enzyme": "^3.10.8",
41
- "@types/googlemaps": "^3.43.3",
42
- "@types/jest": "^26.0.22",
43
- "@types/markdown-to-jsx": "^6.11.3",
44
- "@types/node": "^14.14.37",
45
- "@types/overlayscrollbars": "^1.12.0",
46
- "@types/reach__router": "^1.3.7",
47
- "@types/react": "^18.0.27",
48
- "@types/react-color": "^3.0.4",
49
- "@types/react-syntax-highlighter": "^13.5.0",
50
- "@types/webpack-env": "^1.16.0",
51
- "copyfiles": "^2.4.1",
52
- "eslint": "^8.34.0",
53
- "typescript": "^4.9.5"
54
- },
55
- "peerDependencies": {
56
- "@steroidsjs/core": "^3.0 || >=3.0.0-beta.6"
57
- }
2
+ "name": "@steroidsjs/bootstrap",
3
+ "version": "3.0.0-beta.60",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "author": "Vladimir Kozhin <hello@kozhindev.com>",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/steroids/react-bootstrap"
10
+ },
11
+ "scripts": {
12
+ "lint": "eslint -c ./.eslintrc --ext .js,.jsx,.ts,.tsx ./src --quiet",
13
+ "build": "tsc && cp ./{package.json,LICENSE,README.md} dist && copyfiles -u 1 \"src/**/*.scss\" \"src/icons/svgs/*.svg\" dist"
14
+ },
15
+ "license": "MIT",
16
+ "homepage": "https://github.com/steroids/react-bootstrap",
17
+ "bugs": {
18
+ "url": "https://github.com/steroids/react-bootstrap/issues"
19
+ },
20
+ "dependencies": {
21
+ "@ckeditor/ckeditor5-react": "^3.0.2",
22
+ "@steroidsjs/ckeditor5": "^27.0.2-rc.2",
23
+ "date-fns": "^2.29.3",
24
+ "lodash": "^4.17.20",
25
+ "lodash-es": "^4.17.20",
26
+ "normalize.css": "^8.0.1",
27
+ "rc-slider": "^9.7.4",
28
+ "react": "^18.2.0",
29
+ "react-collapse": "^5.0.1",
30
+ "react-day-picker": "^7.4.10",
31
+ "react-dom": "^18.2.0",
32
+ "react-image-crop": "^9.0.2",
33
+ "react-modal": "^3.11.2",
34
+ "react-transition-group": "^2.9.0",
35
+ "react-use": "^17.4.0"
36
+ },
37
+ "devDependencies": {
38
+ "@steroidsjs/core": "^3.0 || >=3.0.0-beta.42",
39
+ "@steroidsjs/eslint-config": "^2.1.4",
40
+ "@types/enzyme": "^3.10.8",
41
+ "@types/googlemaps": "^3.43.3",
42
+ "@types/jest": "^26.0.22",
43
+ "@types/markdown-to-jsx": "^6.11.3",
44
+ "@types/node": "^14.14.37",
45
+ "@types/overlayscrollbars": "^1.12.0",
46
+ "@types/reach__router": "^1.3.7",
47
+ "@types/react": "^18.0.27",
48
+ "@types/react-color": "^3.0.4",
49
+ "@types/react-syntax-highlighter": "^13.5.0",
50
+ "@types/webpack-env": "^1.16.0",
51
+ "copyfiles": "^2.4.1",
52
+ "eslint": "^8.34.0",
53
+ "typescript": "^4.9.5"
54
+ },
55
+ "peerDependencies": {
56
+ "@steroidsjs/core": "^3.0 || >=3.0.0-beta.42"
57
+ }
58
58
  }
@@ -0,0 +1 @@
1
+ @import "loading";
@@ -0,0 +1,13 @@
1
+ @keyframes loading {
2
+ from {
3
+ transform: none;
4
+ }
5
+
6
+ to {
7
+ transform: rotate(360deg);
8
+ }
9
+ }
10
+
11
+ @mixin loadingAnimation {
12
+ animation: loading 1.5s linear infinite;
13
+ }
@@ -0,0 +1,6 @@
1
+ @import url('https://fonts.googleapis.com/css?family=Nunito:400,500,600,700&display=swap');
2
+
3
+ html {
4
+ font-family: 'Nunito', sans-serif;
5
+ }
6
+
@@ -1,33 +1,89 @@
1
- @mixin button-theme($color) {
2
- background-color: map-get($color, color);
3
- color: map-get($color, text-color);
1
+ @mixin svg-color($color) {
2
+ svg {
3
+ path {
4
+ stroke: $color;
5
+ }
6
+ }
7
+ }
8
+
9
+ @mixin button-theme($colorMap, $colorName, $root) {
10
+ background-color: map-get($colorMap, color);
11
+ color: map-get($colorMap, text-color);
4
12
 
5
13
  &:hover {
6
- background-color: map-get($color, color-dark);
14
+ background-color: map-get($colorMap, color-dark);
7
15
  }
8
- &:focus, &:focus-visible {
9
- border: 3px solid map-get($color, color-light);
16
+ &:focus,
17
+ &:focus-visible {
18
+ box-shadow: 0 0 0 4px map-get($colorMap, color-light), 0 0 0 4px map-get($colorMap, color-light);
10
19
  }
11
20
  &:active {
12
- background-color: map-get($color, color-light);
21
+ background-color: map-get($colorMap, color-light);
22
+ }
23
+
24
+ &:disabled {
25
+ background-color: map-get($colorMap, color);
26
+ color: map-get($colorMap, text-color);
27
+ }
28
+
29
+ #{$root}__loader {
30
+ svg {
31
+ path {
32
+ stroke: map-get($colorMap, color-light);
33
+
34
+ @if ($colorName == 'basic' ) {
35
+ stroke: map-get($colorMap, color-dark);
36
+ }
37
+ }
38
+ }
39
+ }
40
+
41
+ #{$root}__link {
42
+ color: map-get($colorMap, color-dark);
43
+
44
+ &:hover {
45
+ color: map-get($colorMap, color-light);
46
+ }
13
47
  }
14
48
  }
15
49
 
16
- @mixin button-outline-theme($color) {
17
- background-color: #fff;
18
- color: map-get($color, color);
19
- border: 1px solid map-get($color, color);
20
-
21
- &:hover{
22
- color: map-get($color, color-dark);
23
- border-color: map-get($color, color-dark);
24
- }
25
- &:focus {
26
- box-shadow: 0 0 0 3px map-get($color, color-light), 0 0 0 3px map-get($color, color-light);
27
- }
28
- &:active {
29
- color: map-get($color, color-light);
30
- border-color: map-get($color, color-light);
31
- box-shadow: none;
32
- }
50
+ @mixin button-outline-theme($colorMap, $colorName, $root) {
51
+ background-color: transparent;
52
+ color: map-get($colorMap, color);
53
+ stroke: map-get($colorMap, color);
54
+ border: 1px solid map-get($colorMap, color);
55
+
56
+ @include svg-color(map-get($colorMap, text-color));
57
+
58
+ &:hover {
59
+ @include svg-color(map-get($colorMap, color-dark));
60
+ color: map-get($colorMap, color-dark);
61
+ border-color: map-get($colorMap, color-dark);
62
+ }
63
+ &:focus {
64
+ box-shadow: 0 0 0 4px map-get($colorMap, color-light), 0 0 0 4px map-get($colorMap, color-light);
65
+ border: 1px solid transparent;
66
+ }
67
+ &:active {
68
+ @include svg-color(map-get($colorMap, color-light));
69
+ color: map-get($colorMap, color-light);
70
+ border-color: map-get($colorMap, color-light);
71
+ stroke: map-get($colorMap, color-light);
72
+ box-shadow: none;
73
+ }
74
+
75
+ &:disabled {
76
+ background-color: transparent;
77
+ @include svg-color(map-get($colorMap, color));
78
+ color: map-get($colorMap, color);
79
+ border: 1px solid map-get($colorMap, color);
80
+ }
81
+
82
+ @if ($colorName == "basic") {
83
+ color: $text-color;
84
+ }
85
+
86
+ #{$root}__loader {
87
+ @include svg-color(map-get($colorMap, color));
88
+ }
33
89
  }
@@ -0,0 +1,5 @@
1
+ @mixin loader-color($colorMap, $colorName, $root) {
2
+ svg stop {
3
+ stop-color: map-get($colorMap, color);
4
+ }
5
+ }
@@ -0,0 +1,397 @@
1
+ :root {
2
+ --date-icon-default-color: #cbd5db;
3
+ --date-icon-close-default-color: #323232;
4
+ --date-icon-disabled-color: rgba(0, 0, 0, 0.1);
5
+ --date-range-separator-color: rgba(0, 0, 0, 0.1);
6
+ }
7
+
8
+ html[data-theme="dark"] {
9
+ --date-icon-default-color: #5b5c6b;
10
+ --date-icon-close-default-color: #ffffff;
11
+ --date-icon-disabled-color: rgba(255, 255, 255, 0.1);
12
+ --date-range-separator-color: rgba(255, 255, 255, 0.1);
13
+ }
14
+
15
+ $date-icon-default-color: var(--date-icon-default-color);
16
+ $date-icon-close-default-color: var(--date-icon-close-default-color);
17
+ $date-icon-disabled-color: var(--date-icon-disabled-color);
18
+ $date-range-separator-color: var(--date-range-separator-color);
19
+
20
+ $date-sizes: () !default;
21
+ $date-sizes: map-merge(
22
+ (
23
+ "lg": (
24
+ "padding": 16px 8px,
25
+ "radius": $radius-large,
26
+ "font-size": $font-size-lg,
27
+ "height": 56px,
28
+ "first-input-width": 96px,
29
+ ),
30
+ "md": (
31
+ "padding": 11px 8px,
32
+ "radius": $radius-large,
33
+ "font-size": $font-size-base,
34
+ "height": 46px,
35
+ "first-input-width": 86px,
36
+ ),
37
+ "sm": (
38
+ "padding": 5px 8px,
39
+ "radius": $radius-small,
40
+ "font-size": $font-size-sm,
41
+ "height": 34px,
42
+ "first-input-width": 76px,
43
+ ),
44
+ ),
45
+ $date-sizes
46
+ );
47
+
48
+ @mixin icon-container($root) {
49
+ #{$root}__icon-container {
50
+ position: absolute;
51
+ top: 50%;
52
+ right: 8px;
53
+ transform: translateY(-50%);
54
+ width: 24px;
55
+ height: 24px;
56
+
57
+ > * {
58
+ display: inline-flex;
59
+ flex-flow: row nowrap;
60
+ width: 100%;
61
+ height: 100%;
62
+ justify-content: center;
63
+ align-items: center;
64
+ }
65
+
66
+ #{$root}__date-icon {
67
+ path,
68
+ circle {
69
+ stroke: $date-icon-default-color;
70
+ }
71
+ }
72
+
73
+ #{$root}__close-icon {
74
+ cursor: pointer;
75
+ path,
76
+ circle {
77
+ stroke: $date-icon-close-default-color;
78
+ }
79
+ }
80
+ }
81
+ }
82
+
83
+ @mixin date-default-sizes($root) {
84
+ &_size {
85
+ @each $size, $size-map in $date-sizes {
86
+ &_#{$size} {
87
+ #{$root}__input {
88
+ border-radius: map-get($size-map, radius);
89
+ padding: map-get($size-map, padding);
90
+ padding-right: 40px;
91
+ height: map-get($size-map, height);
92
+ }
93
+
94
+ #{$root}__body::before {
95
+ border-radius: calc(map-get($size-map, radius) + 4px);
96
+ }
97
+
98
+ font-size: map-get($size-map, font-size);
99
+ }
100
+ }
101
+ }
102
+ }
103
+
104
+ @mixin date-default-input() {
105
+ &__input {
106
+ width: 100%;
107
+ font-size: inherit;
108
+ line-height: $line-height-lg;
109
+ background-color: $element-background-color;
110
+ border: 1px solid $border-color;
111
+ color: $text-color;
112
+ transition: border-color 150ms ease-in-out;
113
+
114
+ &:active {
115
+ border-color: $primary;
116
+ }
117
+
118
+ &::placeholder {
119
+ color: $placeholder-color;
120
+ }
121
+
122
+ &:disabled {
123
+ border: none;
124
+ background-color: $background-disabled-color;
125
+ }
126
+ }
127
+ }
128
+
129
+ @mixin date-default-body() {
130
+ &__body {
131
+ position: relative;
132
+
133
+ &::before {
134
+ display: block;
135
+ position: absolute;
136
+ top: 0;
137
+ left: 0;
138
+ right: 0;
139
+ bottom: 0;
140
+ width: 100%;
141
+ height: 100%;
142
+ content: "";
143
+ border: 4px solid $primary-light;
144
+ transform: translate(-4px, -4px);
145
+ pointer-events: none;
146
+ opacity: 0;
147
+ transition: opacity 150ms ease-in-out;
148
+ }
149
+ }
150
+ }
151
+
152
+ @mixin date-default-effects($root) {
153
+ &:focus-within:not(:active) {
154
+ #{$root}__body {
155
+ &::before {
156
+ opacity: 1;
157
+ }
158
+ }
159
+
160
+ #{$root}__input {
161
+ border-color: transparent;
162
+ }
163
+ }
164
+
165
+ &_disabled {
166
+ #{$root}__date-icon {
167
+ path,
168
+ circle {
169
+ stroke: $date-icon-disabled-color;
170
+ }
171
+ }
172
+ }
173
+
174
+ &_is-invalid {
175
+ #{$root}__input {
176
+ border-color: $danger;
177
+ }
178
+ }
179
+ }
180
+
181
+ @mixin date-range-body($root) {
182
+ &__body {
183
+ position: relative;
184
+ display: flex;
185
+ flex-flow: row nowrap;
186
+ align-items: center;
187
+ background-color: $element-background-color;
188
+ color: $text-color;
189
+ column-gap: 8px;
190
+
191
+ > * {
192
+ &:nth-child(1) {
193
+ width: 91px;
194
+ }
195
+
196
+ &:nth-child(2) {
197
+ width: 100%;
198
+ margin-right: 40px;
199
+ }
200
+ }
201
+ }
202
+ }
203
+
204
+ @mixin date-range-effects($root) {
205
+ &__effect {
206
+ position: absolute;
207
+ display: block;
208
+ width: 100%;
209
+ height: 100%;
210
+ top: 0;
211
+ left: 0;
212
+ right: 0;
213
+ bottom: 0;
214
+ border-radius: inherit;
215
+ pointer-events: none;
216
+
217
+ &::before,
218
+ &::after {
219
+ display: block;
220
+ content: "";
221
+ position: absolute;
222
+ top: 0;
223
+ left: 0;
224
+ right: 0;
225
+ bottom: 0;
226
+ transition: border-color 150ms ease-in-out, opacity 150ms ease-in-out;
227
+ opacity: 1;
228
+ border-radius: inherit;
229
+ border-width: 1px;
230
+ border-style: solid;
231
+ pointer-events: none;
232
+ }
233
+
234
+ &::before {
235
+ border-color: $border-color;
236
+ }
237
+
238
+ &::after {
239
+ width: 100%;
240
+ height: 100%;
241
+ transform: translate(-4px, -4px);
242
+ border: 4px solid $primary-light;
243
+ opacity: 0;
244
+ }
245
+ }
246
+
247
+ //Effects
248
+ //Active
249
+ &__input:active ~ &__effect::before {
250
+ border-color: $primary;
251
+ }
252
+
253
+ //Focus
254
+ &__body:focus-within:not(:active) &__effect {
255
+ &::before {
256
+ border-color: transparent;
257
+ }
258
+
259
+ &::after {
260
+ opacity: 1;
261
+ }
262
+ }
263
+
264
+ &_disabled {
265
+ #{$root}__body {
266
+ background-color: $background-disabled-color;
267
+ }
268
+
269
+ #{$root}__effect {
270
+ opacity: 0;
271
+ }
272
+ }
273
+
274
+ &_disabled {
275
+ #{$root}__date-icon {
276
+ path,
277
+ circle {
278
+ stroke: $date-icon-disabled-color;
279
+ }
280
+ }
281
+ }
282
+
283
+ &_is-invalid {
284
+ #{$root}__effect::before {
285
+ border-color: $danger;
286
+ }
287
+
288
+ #{$root}__input:active ~ #{$root}__effect::before {
289
+ border-color: $danger;
290
+ }
291
+ }
292
+ }
293
+
294
+ @mixin date-range-sizes($root) {
295
+ &_size {
296
+ @each $size, $size-map in $date-sizes {
297
+ &_#{$size} {
298
+ #{$root}__body {
299
+ padding: map-get($size-map, padding);
300
+ border-radius: map-get($size-map, radius);
301
+ height: map-get($size-map, height);
302
+
303
+ > * {
304
+ &:nth-child(1) {
305
+ width: map-get($size-map, first-input-width);
306
+ }
307
+ }
308
+ }
309
+
310
+ #{$root}__effect::after {
311
+ border-radius: calc(map-get($size-map, radius) + 4px);
312
+ }
313
+
314
+ font-size: map-get($size-map, font-size);
315
+ }
316
+ }
317
+ }
318
+ }
319
+
320
+ @mixin date-range-input() {
321
+ &__input {
322
+ border: none;
323
+ font-size: inherit;
324
+ background-color: inherit;
325
+ color: inherit;
326
+
327
+ &::placeholder {
328
+ color: $placeholder-color;
329
+ }
330
+ }
331
+ }
332
+
333
+
334
+ @mixin date-time-panel($root) {
335
+ &__panel-container {
336
+ position: relative;
337
+ display: flex;
338
+ flex-flow: row nowrap;
339
+ color: $text-color;
340
+
341
+ #{$root}__separator {
342
+ position: relative;
343
+ margin-left: 4px;
344
+ margin-right: 16px;
345
+ width: 1px;
346
+ height: 338px;
347
+ background-color: $date-range-separator-color;
348
+ transform: translateY(12px);
349
+ }
350
+
351
+ .TimePanelView__body {
352
+ column-gap: 2px;
353
+ width: 68px;
354
+ }
355
+
356
+ .TimePanelView__header {
357
+ border: none;
358
+ margin-top: 2px;
359
+ }
360
+
361
+ .TimePanelView__column {
362
+ height: 298px;
363
+ row-gap: 2px;
364
+ border: none;
365
+
366
+ &:not(:last-child) {
367
+ border-right: none;
368
+ }
369
+
370
+ overflow: scroll;
371
+ scrollbar-width: none;
372
+ -ms-overflow-style: none;
373
+
374
+ &::-webkit-scrollbar {
375
+ width: 0px;
376
+ height: 0px;
377
+ }
378
+
379
+ .TimePanelView__cell {
380
+ padding: 0;
381
+ border-radius: $radius-large;
382
+
383
+ &-value {
384
+ padding: 6px 7px;
385
+ }
386
+ }
387
+ }
388
+
389
+ .TimePanelView__button_ok {
390
+ @include calendar-button();
391
+ }
392
+
393
+ .TimePanelView__footer {
394
+ margin-top: 3px;
395
+ }
396
+ }
397
+ }
@@ -1,2 +1,5 @@
1
1
  @import "button";
2
- @import "card";
2
+ @import "typography";
3
+ @import "scroll";
4
+ @import "customMixins";
5
+ @import "date";
@@ -0,0 +1,31 @@
1
+ @mixin custom-scroll($thumbColor, $backgroundColor) {
2
+ scrollbar-color: $thumbColor $backgroundColor;
3
+ scrollbar-width: thin;
4
+
5
+ &::-webkit-scrollbar {
6
+ width: 4px;
7
+ height: 4px;
8
+ border-radius: 3px;
9
+
10
+ &:hover {
11
+ cursor: pointer;
12
+ }
13
+ }
14
+
15
+ &::-webkit-scrollbar-track {
16
+ border-radius: 3px;
17
+ background-color: $backgroundColor;
18
+ }
19
+
20
+ &::-webkit-scrollbar-thumb {
21
+ border-radius: 3px;
22
+ background-color: $thumbColor;
23
+ }
24
+ }
25
+
26
+ @mixin scrollWrapper($maxHeight, $paddingRight: 0, $thumbColor, $backgroundColor) {
27
+ @include custom-scroll($thumbColor, $backgroundColor);
28
+ padding-right: $paddingRight;
29
+ max-height: $maxHeight;
30
+ overflow: auto;
31
+ }