@steroidsjs/bootstrap 3.0.0-beta.2 → 3.0.0-beta.21

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 (161) hide show
  1. package/README.md +1 -2
  2. package/content/Accordion/AccordionItemView.d.ts +2 -0
  3. package/content/Accordion/AccordionItemView.js +96 -0
  4. package/content/Accordion/AccordionItemView.scss +195 -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 +14 -0
  8. package/content/Alert/AlertView.d.ts +0 -1
  9. package/content/Alert/AlertView.js +12 -16
  10. package/content/Alert/AlertView.scss +46 -81
  11. package/content/Avatar/AvatarGroupView.d.ts +0 -1
  12. package/content/Avatar/AvatarView.d.ts +0 -1
  13. package/content/Avatar/AvatarView.js +4 -2
  14. package/content/Avatar/AvatarView.scss +139 -85
  15. package/content/Badge/BadgeView.d.ts +3 -0
  16. package/content/Badge/BadgeView.js +25 -0
  17. package/content/Badge/BadgeView.scss +107 -0
  18. package/content/Calendar/CalendarView.d.ts +0 -1
  19. package/content/Calendar/CaptionElement.d.ts +0 -1
  20. package/content/Calendar/CaptionElement.js +1 -1
  21. package/content/Calendar/CaptionElement.scss +2 -0
  22. package/content/Card/CardView.d.ts +0 -1
  23. package/content/Detail/DetailView.d.ts +0 -1
  24. package/content/DropDown/DropDownView.d.ts +0 -1
  25. package/content/DropDown/DropDownView.js +6 -3
  26. package/content/DropDown/DropDownView.scss +196 -27
  27. package/{icon → content}/Icon/IconView.d.ts +1 -2
  28. package/crud/Crud/CrudView.d.ts +0 -1
  29. package/form/AutoCompleteField/AutoCompleteFieldView.d.ts +0 -1
  30. package/form/Button/ButtonView.d.ts +0 -1
  31. package/form/Button/ButtonView.js +8 -8
  32. package/form/Button/ButtonView.scss +116 -78
  33. package/form/CheckboxField/CheckboxFieldView.d.ts +0 -1
  34. package/form/CheckboxField/CheckboxFieldView.js +3 -3
  35. package/form/CheckboxField/CheckboxFieldView.scss +121 -36
  36. package/form/CheckboxListField/CheckboxListFieldView.d.ts +0 -1
  37. package/form/DateField/DateFieldView.d.ts +0 -1
  38. package/form/DateField/DateFieldView.js +1 -1
  39. package/form/DateRangeField/DateRangeFieldView.d.ts +0 -1
  40. package/form/DateRangeField/DateRangeFieldView.js +1 -1
  41. package/form/DateTimeField/DateTimeFieldView.d.ts +0 -1
  42. package/form/DateTimeField/DateTimeFieldView.js +1 -1
  43. package/form/DateTimeRangeField/DateTimeRangeFieldView.d.ts +0 -1
  44. package/form/DateTimeRangeField/DateTimeRangeFieldView.js +1 -1
  45. package/form/DropDownField/DropDownFieldView.d.ts +0 -1
  46. package/form/DropDownField/DropDownFieldView.js +1 -1
  47. package/form/DropDownField/DropDownFieldView.scss +3 -0
  48. package/form/FieldLayout/FieldLayoutView.d.ts +0 -1
  49. package/form/FieldList/FieldListView.d.ts +0 -1
  50. package/form/FieldSet/FieldSetView.d.ts +0 -1
  51. package/form/FileField/FileFieldItemView.d.ts +0 -1
  52. package/form/FileField/FileFieldItemView.js +1 -1
  53. package/form/FileField/FileFieldView.d.ts +0 -1
  54. package/form/FileField/FileFieldView.js +1 -1
  55. package/form/HtmlField/HtmlFieldView.d.ts +0 -1
  56. package/form/ImageField/ImageFieldModalView.d.ts +0 -1
  57. package/form/ImageField/ImageFieldView.d.ts +1 -2
  58. package/form/ImageField/ImageFieldView.js +9 -9
  59. package/form/InputField/InputFieldView.d.ts +0 -1
  60. package/form/InputField/InputFieldView.scss +5 -4
  61. package/form/NumberField/NumberFieldView.d.ts +0 -1
  62. package/form/NumberField/NumberFieldView.scss +0 -1
  63. package/form/PasswordField/PasswordFieldView.d.ts +0 -1
  64. package/form/PasswordField/PasswordFieldView.js +11 -11
  65. package/form/PasswordField/PasswordFieldView.scss +221 -63
  66. package/form/RadioListField/RadioListFieldView.d.ts +0 -1
  67. package/form/RateField/RateFieldView.d.ts +0 -1
  68. package/form/RateField/RateFieldView.js +1 -1
  69. package/form/ReCaptchaField/ReCaptchaFieldView.d.ts +0 -1
  70. package/form/SliderField/SliderFieldView.d.ts +0 -1
  71. package/form/SwitcherField/SwitcherFieldView.d.ts +0 -1
  72. package/form/TextField/TextFieldView.d.ts +0 -1
  73. package/form/TimeField/TimeFieldView.d.ts +0 -1
  74. package/form/TimeField/TimeFieldView.js +1 -1
  75. package/form/TimeField/TimePanelView.d.ts +0 -1
  76. package/{icon/fontawesome.js → icons/index.js} +19 -6
  77. package/icons/svgs/accordion-chevron.svg +4 -0
  78. package/icons/svgs/badge-close.svg +3 -0
  79. package/icons/svgs/close.svg +4 -0
  80. package/icons/svgs/crossed-out-eye.svg +5 -0
  81. package/icons/svgs/default.svg +11 -0
  82. package/icons/svgs/error.svg +12 -0
  83. package/icons/svgs/info.svg +12 -0
  84. package/icons/svgs/loader.svg +3 -0
  85. package/icons/svgs/success.svg +4 -0
  86. package/icons/svgs/visible-eye.svg +4 -0
  87. package/icons/svgs/warning.svg +12 -0
  88. package/index.d.ts +14 -5
  89. package/index.js +16 -7
  90. package/index.scss +5 -3
  91. package/layout/Header/HeaderView.d.ts +0 -1
  92. package/layout/Header/HeaderView.js +1 -1
  93. package/layout/Header/HeaderView.scss +3 -3
  94. package/layout/Loader/LoaderView.d.ts +0 -1
  95. package/layout/Notifications/NotificationsItemView.d.ts +0 -1
  96. package/layout/Notifications/NotificationsView.d.ts +0 -1
  97. package/layout/ProgressBar/CircleProgressBarView.d.ts +0 -1
  98. package/layout/ProgressBar/CircleProgressBarView.js +5 -2
  99. package/layout/ProgressBar/LineProgressBarView.d.ts +0 -1
  100. package/layout/Skeleton/SkeletonView.d.ts +0 -1
  101. package/layout/Tooltip/TooltipView.d.ts +0 -1
  102. package/list/CheckboxColumn/CheckboxColumnView.d.ts +0 -1
  103. package/list/ControlsColumnView/ControlsColumnView.d.ts +0 -1
  104. package/list/Empty/EmptyView.d.ts +0 -1
  105. package/list/Grid/GridView.js +4 -4
  106. package/list/Grid/GridView.scss +28 -30
  107. package/list/List/ListItemView.d.ts +0 -1
  108. package/list/Pagination/PaginationButtonView.d.ts +0 -1
  109. package/list/Pagination/PaginationMoreView.d.ts +0 -1
  110. package/list/PaginationSize/PaginationSizeView.d.ts +0 -1
  111. package/list/Steps/StepItemView.d.ts +1 -2
  112. package/list/Steps/StepItemView.js +3 -3
  113. package/list/Steps/StepsView.d.ts +0 -1
  114. package/list/Steps/StepsView.js +1 -1
  115. package/modal/Modal/ModalView.d.ts +0 -1
  116. package/modal/TwoFactorModal/TwoFactorModalView.d.ts +0 -1
  117. package/nav/Breadcrubms/BreadcrumbsView.d.ts +0 -1
  118. package/nav/Controls/ControlsView.d.ts +0 -1
  119. package/nav/Nav/NavBarView.d.ts +0 -1
  120. package/nav/Nav/NavButtonView.d.ts +0 -1
  121. package/nav/Nav/NavIconView.d.ts +0 -1
  122. package/nav/Nav/NavLinkView.d.ts +0 -1
  123. package/nav/Nav/NavListView.d.ts +0 -1
  124. package/nav/Nav/NavTabsView.d.ts +0 -1
  125. package/nav/Tree/TreeView.d.ts +0 -1
  126. package/nav/Tree/TreeView.scss +9 -10
  127. package/package.json +55 -52
  128. package/scss/mixins/button.scss +50 -24
  129. package/scss/mixins/index.scss +2 -1
  130. package/scss/mixins/typography.scss +26 -0
  131. package/scss/variables/common/colors.scss +168 -0
  132. package/scss/variables/common/media.scss +2 -0
  133. package/scss/variables/common/old-variables.scss +24 -0
  134. package/scss/variables/common/radiuses.scss +5 -0
  135. package/scss/variables/common/spacing.scss +12 -0
  136. package/scss/variables/common/typography.scss +107 -0
  137. package/scss/variables/components/calendar.scss +1 -1
  138. package/scss/variables/components/card.scss +1 -1
  139. package/scss/variables/components/icon.scss +1 -1
  140. package/scss/variables/components/input.scss +3 -11
  141. package/scss/variables/components/ratefield.scss +1 -1
  142. package/scss/variables/index.scss +6 -3
  143. package/typography/Text/TextView.d.ts +3 -0
  144. package/typography/Text/TextView.js +46 -0
  145. package/typography/Text/TextView.scss +15 -0
  146. package/typography/Title/TitleView.d.ts +3 -0
  147. package/typography/Title/TitleView.js +50 -0
  148. package/typography/Title/TitleView.scss +15 -0
  149. package/content/Collapse/CollapseItemView.d.ts +0 -3
  150. package/content/Collapse/CollapseItemView.js +0 -64
  151. package/content/Collapse/CollapseItemView.scss +0 -88
  152. package/content/Collapse/CollapseView.d.ts +0 -3
  153. package/content/Collapse/CollapseView.scss +0 -15
  154. package/icon/Icon/IconView.scss +0 -25
  155. package/icon/Icon/index.d.ts +0 -1
  156. package/icon/Icon/index.js +0 -16
  157. package/scss/variables/colors.scss +0 -74
  158. package/scss/variables/components/alert.scss +0 -9
  159. package/scss/variables/components/avatar.scss +0 -17
  160. /package/{icon → content}/Icon/IconView.js +0 -0
  161. /package/{icon/fontawesome.d.ts → icons/index.d.ts} +0 -0
package/package.json CHANGED
@@ -1,54 +1,57 @@
1
1
  {
2
- "name": "@steroidsjs/bootstrap",
3
- "version": "3.0.0-beta.2",
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
- "build": "tsc && cp ./{package.json,LICENSE,README.md} dist && copyfiles -u 1 \"src/**/*.scss\" dist"
13
- },
14
- "license": "MIT",
15
- "homepage": "https://github.com/steroids/react-bootstrap",
16
- "bugs": {
17
- "url": "https://github.com/steroids/react-bootstrap/issues"
18
- },
19
- "dependencies": {
20
- "@ckeditor/ckeditor5-react": "^3.0.2",
21
- "@steroidsjs/ckeditor5": "^27.0.2-rc.2",
22
- "bootstrap": "^4.5.2",
23
- "date-fns": "^2.29.3",
24
- "lodash": "^4.17.20",
25
- "lodash-es": "^4.17.20",
26
- "rc-slider": "^9.7.4",
27
- "react": "^18.2.0",
28
- "react-collapse": "^5.0.1",
29
- "react-day-picker": "^7.4.10",
30
- "react-dom": "^18.2.0",
31
- "react-image-crop": "^9.0.2",
32
- "react-modal": "^3.11.2",
33
- "react-transition-group": "^2.9.0"
34
- },
35
- "devDependencies": {
36
- "@steroidsjs/core": "^3.0 || >=3.0.0-beta.1",
37
- "@types/enzyme": "^3.10.8",
38
- "@types/googlemaps": "^3.43.3",
39
- "@types/jest": "^26.0.22",
40
- "@types/markdown-to-jsx": "^6.11.3",
41
- "@types/node": "^14.14.37",
42
- "@types/overlayscrollbars": "^1.12.0",
43
- "@types/reach__router": "^1.3.7",
44
- "@types/react": "^18.0.27",
45
- "@types/react-color": "^3.0.4",
46
- "@types/react-syntax-highlighter": "^13.5.0",
47
- "@types/webpack-env": "^1.16.0",
48
- "copyfiles": "^2.4.1",
49
- "typescript": "^4.3.4"
50
- },
51
- "peerDependencies": {
52
- "@steroidsjs/core": "^3.0 || >=3.0.0-beta.1"
53
- }
2
+ "name": "@steroidsjs/bootstrap",
3
+ "version": "3.0.0-beta.21",
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
+ "rc-slider": "^9.7.4",
27
+ "react": "^18.2.0",
28
+ "react-collapse": "^5.0.1",
29
+ "react-day-picker": "^7.4.10",
30
+ "react-dom": "^18.2.0",
31
+ "react-image-crop": "^9.0.2",
32
+ "react-modal": "^3.11.2",
33
+ "react-transition-group": "^2.9.0",
34
+ "react-use": "^17.4.0"
35
+ },
36
+ "devDependencies": {
37
+ "@steroidsjs/core": "^3.0 || >=3.0.0-beta.9",
38
+ "@steroidsjs/eslint-config": "^2.1.4",
39
+ "@types/enzyme": "^3.10.8",
40
+ "@types/googlemaps": "^3.43.3",
41
+ "@types/jest": "^26.0.22",
42
+ "@types/markdown-to-jsx": "^6.11.3",
43
+ "@types/node": "^14.14.37",
44
+ "@types/overlayscrollbars": "^1.12.0",
45
+ "@types/reach__router": "^1.3.7",
46
+ "@types/react": "^18.0.27",
47
+ "@types/react-color": "^3.0.4",
48
+ "@types/react-syntax-highlighter": "^13.5.0",
49
+ "@types/webpack-env": "^1.16.0",
50
+ "copyfiles": "^2.4.1",
51
+ "eslint": "^8.34.0",
52
+ "typescript": "^4.9.5"
53
+ },
54
+ "peerDependencies": {
55
+ "@steroidsjs/core": "^3.0 || >=3.0.0-beta.9"
56
+ }
54
57
  }
@@ -1,33 +1,59 @@
1
- @mixin button-theme($color) {
2
- background-color: map-get($color, color);
3
- color: map-get($color, text-color);
1
+ @mixin button-theme($colorMap, $colorName, $root) {
2
+ background-color: map-get($colorMap, color);
3
+ color: map-get($colorMap, text-color);
4
4
 
5
5
  &:hover {
6
- background-color: map-get($color, color-dark);
6
+ background-color: map-get($colorMap, color-dark);
7
7
  }
8
- &:focus, &:focus-visible {
9
- border: 3px solid map-get($color, color-light);
8
+ &:focus,
9
+ &:focus-visible {
10
+ border: 4px solid map-get($colorMap, color-light);
10
11
  }
11
12
  &:active {
12
- background-color: map-get($color, color-light);
13
+ background-color: map-get($colorMap, color-light);
14
+ }
15
+
16
+ #{$root}__loader {
17
+ svg {
18
+ path {
19
+ stroke: map-get($colorMap, color-light);
20
+
21
+ @if ($colorName == 'basic' ) {
22
+ stroke: map-get($colorMap, color-dark);
23
+ }
24
+ }
25
+ }
13
26
  }
14
27
  }
15
28
 
16
- @mixin button-outline-theme($color) {
17
- background-color: #fff;
18
- color: map-get($color, color);
19
- border: 1px solid map-get($color, color);
29
+ @mixin button-outline-theme($colorMap, $colorName, $root) {
30
+ background-color: transparent;
31
+ color: map-get($colorMap, color);
32
+ border: 1px solid map-get($colorMap, color);
20
33
 
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
- }
33
- }
34
+ &:hover {
35
+ color: map-get($colorMap, color-dark);
36
+ border-color: map-get($colorMap, color-dark);
37
+ }
38
+ &:focus {
39
+ box-shadow: 0 0 0 4px map-get($colorMap, color-light), 0 0 0 4px map-get($colorMap, color-light);
40
+ border: none;
41
+ }
42
+ &:active {
43
+ color: map-get($colorMap, color-light);
44
+ border-color: map-get($colorMap, color-light);
45
+ box-shadow: none;
46
+ }
47
+
48
+ @if ($colorName == "basic") {
49
+ color: $text-color;
50
+ }
51
+
52
+ #{$root}__loader {
53
+ svg {
54
+ path {
55
+ stroke: map-get($colorMap, color);
56
+ }
57
+ }
58
+ }
59
+ }
@@ -1,2 +1,3 @@
1
1
  @import "button";
2
- @import "card";
2
+ @import "card";
3
+ @import "typography";
@@ -0,0 +1,26 @@
1
+ @mixin typography-type($typeMap) {
2
+ font-family: map-get($typeMap, font-family);
3
+ font-size: map-get($typeMap, font-size);
4
+ font-weight: map-get($typeMap, font-weight);
5
+ line-height: map-get($typeMap, line-height);
6
+ color: map-get($typeMap, color);
7
+ text-transform: map-get($typeMap, text-transform);
8
+ text-decoration: map-get($typeMap, text-decoration);
9
+ text-align: map-get($typeMap, text-align);
10
+
11
+ @media (max-width: $tablet-width) {
12
+ font-size: map-get($typeMap, tablet-font-size);
13
+ font-weight: map-get($typeMap, tablet-font-weight);
14
+ line-height: map-get($typeMap, tablet-line-height);
15
+ text-transform: map-get($typeMap, tablet-text-transform);
16
+ text-align: map-get($typeMap, tablet-text-align);
17
+ }
18
+
19
+ @media (max-width: $mobile-width) {
20
+ font-size: map-get($typeMap, mobile-font-size);
21
+ font-weight: map-get($typeMap, mobile-font-weight);
22
+ line-height: map-get($typeMap, mobile-line-height);
23
+ text-transform: map-get($typeMap, mobile-text-transform);
24
+ text-align: map-get($typeMap, mobile-text-align);
25
+ }
26
+ }
@@ -0,0 +1,168 @@
1
+ :root {
2
+ --primary: #651fff;
3
+ --primary-dark: #5218d0;
4
+ --primary-light: #dbcbff;
5
+ --secondary: #a3aee6;
6
+ --secondary-dark: #6b76ad;
7
+ --secondary-light: #d9dfff;
8
+ --success: #2bc945;
9
+ --success-dark: #2abd42;
10
+ --success-light: #b9ffc3;
11
+ --danger: #fb4e4e;
12
+ --danger-dark: #ec4c4c;
13
+ --danger-light: #ffbfbf;
14
+ --info: #a7efff;
15
+ --info-dark: #8fd8e9;
16
+ --info-light: #d3f7ff;
17
+ --warning: #ffe457;
18
+ --warning-dark: #ebd251;
19
+ --warning-light: #fff6c6;
20
+ --graphite: #323232;
21
+ --gray-dark: #e1e1e1;
22
+ --gray: #ededed;
23
+ --light-gray: #f8f8f8;
24
+ --dark: #6f6b76;
25
+ --light: #9088a1;
26
+ --text-color: #312C3A;
27
+ --background-color: #fff;
28
+ --is-dark: 'false';
29
+ --border-color: #eef1f2;
30
+ --border-color-hover: #e5e9eb;
31
+ --placeholder-color: rgba(0, 0, 0, 0.3);
32
+ --placeholder-disabled-color: rgba(0, 0, 0, 0.3);
33
+ --background-disabled-color: #eef1f2;
34
+ }
35
+
36
+ html[data-theme="dark"] {
37
+ --primary: #8b57ff;
38
+ --primary-dark: #6648a7;
39
+ --primary-light: #ba9bff;
40
+ --secondary: #9ea8db;
41
+ --secondary-dark: #616a95;
42
+ --secondary-light: #bcc3e9;
43
+ --success: #3cf25a;
44
+ --success-dark: #34cc4d;
45
+ --success-light: #74ff8b;
46
+ --danger: #fc6666;
47
+ --danger-dark: #dc5858;
48
+ --danger-light: #ffa1a1;
49
+ --info: #9ae1f1;
50
+ --info-dark: #77c4d6;
51
+ --info-light: #ccf6ff;
52
+ --warning: #ffe457;
53
+ --warning-dark: #ebd251;
54
+ --warning-light: #fff6c8;
55
+ --graphite: #414141;
56
+ --gray-dark: #4e4f57;
57
+ --gray: #5b5c6b;
58
+ --light-gray: #928b9d;
59
+ --dark: #6b6477;
60
+ --light: #b7afc7;
61
+ --text-color: #FFFFFF;
62
+ --is-dark: 'true';
63
+ --border-color: #eef1f2;
64
+ --border-color-hover: #4e4f57;
65
+ --placeholder-color: rgba(255, 255, 255, 0.3);
66
+ --placeholder-disabled-color: rgba(255, 255, 255, 0.1);
67
+ --background-disabled-color: #5b5c6b;
68
+ }
69
+
70
+ /*
71
+ * SCSS variables implementation
72
+ */
73
+ $primary: var(--primary) !default;
74
+ $primary-dark: var(--primary-dark) !default;
75
+ $primary-light: var(--primary-light) !default;
76
+ $secondary: var(--secondary) !default;
77
+ $secondary-dark: var(--secondary-dark) !default;
78
+ $secondary-light: var(--secondary-light) !default;
79
+ $success: var(--success) !default;
80
+ $success-dark: var(--success-dark) !default;
81
+ $success-light: var(--success-light) !default;
82
+ $danger: var(--danger) !default;
83
+ $danger-dark: var(--danger-dark) !default;
84
+ $danger-light: var(--danger-light) !default;
85
+ $info: var(--info) !default;
86
+ $info-dark: var(--info-dark) !default;
87
+ $info-light: var(--info-light) !default;
88
+ $warning: var(--warning) !default;
89
+ $warning-dark: var(--warning-dark) !default;
90
+ $warning-light: var(--warning-light) !default;
91
+ $graphite: var(--graphite) !default;
92
+ $gray-dark: var(--gray-dark) !default;
93
+ $gray: var(--gray) !default;
94
+ $light-gray: var(--light-gray) !default;
95
+ $dark: var(--dark) !default;
96
+ $light: var(--light) !default;
97
+ $text-color: var(--text-color) !default;
98
+ $background-color: var(--background-color) !default;
99
+ $is-dark: var(--is-dark) !default;
100
+ $border-color: var(--border-color) !default;
101
+ $border-color-hover: var(--border-color-hover) !default;
102
+ $placeholder-color: var(--placeholder-color) !default;
103
+ $placeholder-disabled-color: var(--placeholder-disabled-color) !default;
104
+ $background-disabled-color: var(--background-disabled-color) !default;
105
+
106
+ /*
107
+ * Common colors
108
+ */
109
+
110
+ $black: rgba(#000, 1) !default;
111
+ $black-60: rgba(#000, 0.6) !default;
112
+ $black-30: rgba(#000, 0.3) !default;
113
+ $black-10: rgba(#000, 0.1) !default;
114
+ $black-4: rgba(#000, 0.04) !default;
115
+ $white: #fff !default;
116
+
117
+ $link-color: #2ba3fb !default;
118
+
119
+ $gradient-blue: linear-gradient(180deg, #651FFF, #BA9BFF) !default;
120
+
121
+ $color-themes: () !default;
122
+ $color-themes: map-merge(
123
+ (
124
+ "basic": (
125
+ "color": $gray,
126
+ "color-dark": $gray-dark,
127
+ "color-light": $light-gray,
128
+ "text-color": $text-color,
129
+ ),
130
+ "primary": (
131
+ "color": $primary,
132
+ "color-dark": $primary-dark,
133
+ "color-light": $primary-light,
134
+ "text-color": $white,
135
+ ),
136
+ "secondary": (
137
+ "color": $secondary,
138
+ "color-dark": $secondary-dark,
139
+ "color-light": $secondary-light,
140
+ "text-color": $white,
141
+ ),
142
+ "success": (
143
+ "color": $success,
144
+ "color-dark": $success-dark,
145
+ "color-light": $success-light,
146
+ "text-color": $white,
147
+ ),
148
+ "danger": (
149
+ "color": $danger,
150
+ "color-dark": $danger-dark,
151
+ "color-light": $danger-light,
152
+ "text-color": $white,
153
+ ),
154
+ "warning": (
155
+ "color": $warning,
156
+ "color-dark": $warning-dark,
157
+ "color-light": $warning-light,
158
+ "text-color": $text-color,
159
+ ),
160
+ "info": (
161
+ "color": $info,
162
+ "color-dark": $info-dark,
163
+ "color-light": $info-light,
164
+ "text-color": $text-color,
165
+ ),
166
+ ),
167
+ $color-themes
168
+ );
@@ -0,0 +1,2 @@
1
+ $mobile-width: 540px !default;
2
+ $tablet-width: 960px !default;
@@ -0,0 +1,24 @@
1
+ $grey-light: #D9D9D9;
2
+ $grey-lighter: #F8F8F8;
3
+ $grey: #F8F9FA;
4
+ $grey-dark: #2D2D2D;
5
+ $grey-darker: #78848E;
6
+ $grey-disabled: #F1F1F1;
7
+
8
+ $additional: #0596FF;
9
+
10
+ $border-default: #CCCCCC;
11
+ $border-hover: #B0B0B0;
12
+ $border-action: #39BBD8;
13
+ $border-typing: #A7EFFF;
14
+ $back-disabled: #EBEBEB;
15
+ $back-success: #F1FFEC;
16
+ $border-success: #64D03E;
17
+ $back-error: #FCE7E7;
18
+ $border-error: #FF4557;
19
+ $back-info: #ECFCFF;
20
+ $back-warning: #FFFCEA;
21
+
22
+ $shadow-default: 0px 0px 30px rgba(0, 0, 0, 0.1);
23
+
24
+ $heading: #152536 !default;
@@ -0,0 +1,5 @@
1
+ $radius-circle: 50%;
2
+ $radius-xlarge: 160px;
3
+ $radius-large: 12px;
4
+ $radius-medium: 10px;
5
+ $radius-small: 8px;
@@ -0,0 +1,12 @@
1
+ $spacing-240: 240px;
2
+ $spacing-160: 160px;
3
+ $spacing-124: 124px;
4
+ $spacing-80: 80px;
5
+ $spacing-64: 64px;
6
+ $spacing-40: 40px;
7
+ $spacing-32: 32px;
8
+ $spacing-24: 24px;
9
+ $spacing-16: 16px;
10
+ $spacing-8: 8px;
11
+ $spacing-4: 4px;
12
+ $spacing-2: 2px;
@@ -0,0 +1,107 @@
1
+ /*
2
+ * Common font variables
3
+ */
4
+
5
+ $font-family-nunito: "Nunito", sans-serif;
6
+
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
+
14
+ $line-height-xs: 17px !default;
15
+ $line-height-sm: 20px !default;
16
+ $line-height-base: 22px !default;
17
+ $line-height-lg: 25px !default;
18
+ $line-height-xl: 34px !default;
19
+ $line-height-2xl: 45px !default;
20
+
21
+ $font-weight-sm: 400 !default;
22
+ $font-weight-md: 500 !default;
23
+ $font-weight-lg: 700 !default;
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
+ );
73
+
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
+ );
98
+
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
+ );
@@ -12,4 +12,4 @@ $calendar-day-border-radius: 10px !default;
12
12
  $calendar-shadow-shape: 0 0 0 3px !default;
13
13
  $calendar-selected-shadow: $calendar-shadow-shape $calendar-primary-light-color !default;
14
14
  $calendar-today-shadow: $calendar-shadow-shape $calendar-primary-light-color !default;
15
- $calendar-hover-shadow: $calendar-shadow-shape $calendar-secondary-color !default;
15
+ $calendar-hover-shadow: $calendar-shadow-shape $calendar-secondary-color !default;
@@ -17,4 +17,4 @@ $card-link-font-size: 16px !default;
17
17
  $card-border-radius: 3px !default;
18
18
  $card-button-border-radius: 4px !default;
19
19
 
20
- $card-header-background: $grey-lighter !default;
20
+ $card-header-background: $grey-lighter !default;
@@ -1,3 +1,3 @@
1
1
  $icon-size: 16px !default;
2
2
  $icon-size-sm: 12px !default;
3
- $icon-size-lg: 32px !default;
3
+ $icon-size-lg: 32px !default;
@@ -1,11 +1,3 @@
1
- $input-height-sm: 28px !default;
2
- $input-height-md: 36px !default;
3
- $input-height-lg: 46px !default;
4
-
5
- $input-border: 1px solid $border-default !default;
6
- $input-border-radius: 4px !default;
7
-
8
- $input-padding-y: 0 !default;
9
- $input-padding-x: 8px !default;
10
- $input-addon-padding: 0.6rem !default;
11
- $input-text-padding: 0.4rem !default;
1
+ $input-height-sm: 34px;
2
+ $input-height-md: 46px;
3
+ $input-height-lg: 56px;
@@ -1,2 +1,2 @@
1
1
  $icon-size: 20px !default;
2
- $icon-color: $primary !default;
2
+ $icon-color: $primary !default;
@@ -1,6 +1,9 @@
1
- @import 'colors';
2
- @import 'components/alert';
3
- @import 'components/avatar';
1
+ @import 'common/colors';
2
+ @import 'common/media';
3
+ @import 'common/typography';
4
+ @import 'common/radiuses';
5
+ @import 'common/old-variables';
6
+
4
7
  @import 'components/button';
5
8
  @import 'components/calendar';
6
9
  @import 'components/card';
@@ -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;