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

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 (150) hide show
  1. package/content/Accordion/AccordionItemView.d.ts +2 -0
  2. package/content/Accordion/AccordionItemView.js +96 -0
  3. package/content/Accordion/AccordionItemView.scss +195 -0
  4. package/content/Accordion/AccordionView.d.ts +2 -0
  5. package/content/{Collapse/CollapseView.js → Accordion/AccordionView.js} +3 -3
  6. package/content/Accordion/AccordionView.scss +14 -0
  7. package/content/Alert/AlertView.d.ts +0 -1
  8. package/content/Alert/AlertView.js +12 -16
  9. package/content/Alert/AlertView.scss +46 -81
  10. package/content/Avatar/AvatarGroupView.d.ts +0 -1
  11. package/content/Avatar/AvatarView.d.ts +0 -1
  12. package/content/Avatar/AvatarView.js +4 -2
  13. package/content/Avatar/AvatarView.scss +139 -85
  14. package/content/Badge/BadgeView.d.ts +3 -0
  15. package/content/Badge/BadgeView.js +25 -0
  16. package/content/Badge/BadgeView.scss +107 -0
  17. package/content/Calendar/CalendarView.d.ts +0 -1
  18. package/content/Calendar/CaptionElement.d.ts +0 -1
  19. package/content/Calendar/CaptionElement.js +1 -1
  20. package/content/Card/CardView.d.ts +0 -1
  21. package/content/Detail/DetailView.d.ts +0 -1
  22. package/content/DropDown/DropDownView.d.ts +0 -1
  23. package/content/DropDown/DropDownView.js +6 -3
  24. package/content/DropDown/DropDownView.scss +196 -27
  25. package/{icon → content}/Icon/IconView.d.ts +1 -2
  26. package/crud/Crud/CrudView.d.ts +0 -1
  27. package/form/AutoCompleteField/AutoCompleteFieldView.d.ts +0 -1
  28. package/form/Button/ButtonView.d.ts +0 -1
  29. package/form/Button/ButtonView.js +8 -9
  30. package/form/Button/ButtonView.scss +116 -78
  31. package/form/CheckboxField/CheckboxFieldView.d.ts +0 -1
  32. package/form/CheckboxField/CheckboxFieldView.js +3 -3
  33. package/form/CheckboxField/CheckboxFieldView.scss +121 -36
  34. package/form/CheckboxListField/CheckboxListFieldView.d.ts +0 -1
  35. package/form/DateField/DateFieldView.d.ts +0 -1
  36. package/form/DateField/DateFieldView.js +1 -1
  37. package/form/DateRangeField/DateRangeFieldView.d.ts +0 -1
  38. package/form/DateRangeField/DateRangeFieldView.js +1 -1
  39. package/form/DateTimeField/DateTimeFieldView.d.ts +0 -1
  40. package/form/DateTimeField/DateTimeFieldView.js +1 -1
  41. package/form/DateTimeRangeField/DateTimeRangeFieldView.d.ts +0 -1
  42. package/form/DateTimeRangeField/DateTimeRangeFieldView.js +1 -1
  43. package/form/DropDownField/DropDownFieldView.d.ts +0 -1
  44. package/form/DropDownField/DropDownFieldView.js +1 -1
  45. package/form/FieldLayout/FieldLayoutView.d.ts +0 -1
  46. package/form/FieldList/FieldListView.d.ts +0 -1
  47. package/form/FieldSet/FieldSetView.d.ts +0 -1
  48. package/form/FileField/FileFieldItemView.d.ts +0 -1
  49. package/form/FileField/FileFieldItemView.js +1 -1
  50. package/form/FileField/FileFieldView.d.ts +0 -1
  51. package/form/FileField/FileFieldView.js +1 -1
  52. package/form/HtmlField/HtmlFieldView.d.ts +0 -1
  53. package/form/ImageField/ImageFieldModalView.d.ts +0 -1
  54. package/form/ImageField/ImageFieldView.d.ts +1 -2
  55. package/form/ImageField/ImageFieldView.js +9 -9
  56. package/form/InputField/InputFieldView.d.ts +0 -1
  57. package/form/NumberField/NumberFieldView.d.ts +0 -1
  58. package/form/PasswordField/PasswordFieldView.d.ts +0 -1
  59. package/form/PasswordField/PasswordFieldView.js +1 -1
  60. package/form/RadioListField/RadioListFieldView.d.ts +0 -1
  61. package/form/RateField/RateFieldView.d.ts +0 -1
  62. package/form/RateField/RateFieldView.js +1 -1
  63. package/form/ReCaptchaField/ReCaptchaFieldView.d.ts +0 -1
  64. package/form/SliderField/SliderFieldView.d.ts +0 -1
  65. package/form/SwitcherField/SwitcherFieldView.d.ts +0 -1
  66. package/form/TextField/TextFieldView.d.ts +0 -1
  67. package/form/TimeField/TimeFieldView.d.ts +0 -1
  68. package/form/TimeField/TimeFieldView.js +1 -1
  69. package/form/TimeField/TimePanelView.d.ts +0 -1
  70. package/{icon/fontawesome.js → icons/index.js} +17 -6
  71. package/icons/svgs/accordion-chevron.svg +4 -0
  72. package/icons/svgs/badge-close.svg +3 -0
  73. package/icons/svgs/close.svg +4 -0
  74. package/icons/svgs/default.svg +11 -0
  75. package/icons/svgs/error.svg +12 -0
  76. package/icons/svgs/info.svg +12 -0
  77. package/icons/svgs/loader.svg +3 -0
  78. package/icons/svgs/success.svg +4 -0
  79. package/icons/svgs/warning.svg +12 -0
  80. package/index.d.ts +14 -5
  81. package/index.js +16 -7
  82. package/index.scss +5 -3
  83. package/layout/Header/HeaderView.d.ts +0 -1
  84. package/layout/Header/HeaderView.js +1 -1
  85. package/layout/Loader/LoaderView.d.ts +0 -1
  86. package/layout/Notifications/NotificationsItemView.d.ts +0 -1
  87. package/layout/Notifications/NotificationsView.d.ts +0 -1
  88. package/layout/ProgressBar/CircleProgressBarView.d.ts +0 -1
  89. package/layout/ProgressBar/CircleProgressBarView.js +5 -2
  90. package/layout/ProgressBar/LineProgressBarView.d.ts +0 -1
  91. package/layout/Skeleton/SkeletonView.d.ts +0 -1
  92. package/layout/Tooltip/TooltipView.d.ts +0 -1
  93. package/list/CheckboxColumn/CheckboxColumnView.d.ts +0 -1
  94. package/list/ControlsColumnView/ControlsColumnView.d.ts +0 -1
  95. package/list/Empty/EmptyView.d.ts +0 -1
  96. package/list/Grid/GridView.js +4 -4
  97. package/list/List/ListItemView.d.ts +0 -1
  98. package/list/Pagination/PaginationButtonView.d.ts +0 -1
  99. package/list/Pagination/PaginationMoreView.d.ts +0 -1
  100. package/list/PaginationSize/PaginationSizeView.d.ts +0 -1
  101. package/list/Steps/StepItemView.d.ts +1 -2
  102. package/list/Steps/StepItemView.js +3 -3
  103. package/list/Steps/StepsView.d.ts +0 -1
  104. package/list/Steps/StepsView.js +1 -1
  105. package/modal/Modal/ModalView.d.ts +0 -1
  106. package/modal/TwoFactorModal/TwoFactorModalView.d.ts +0 -1
  107. package/nav/Breadcrubms/BreadcrumbsView.d.ts +0 -1
  108. package/nav/Controls/ControlsView.d.ts +0 -1
  109. package/nav/Nav/NavBarView.d.ts +0 -1
  110. package/nav/Nav/NavButtonView.d.ts +0 -1
  111. package/nav/Nav/NavIconView.d.ts +0 -1
  112. package/nav/Nav/NavLinkView.d.ts +0 -1
  113. package/nav/Nav/NavListView.d.ts +0 -1
  114. package/nav/Nav/NavTabsView.d.ts +0 -1
  115. package/nav/Tree/TreeView.d.ts +0 -1
  116. package/package.json +56 -52
  117. package/scss/mixins/button.scss +50 -24
  118. package/scss/mixins/index.scss +2 -1
  119. package/scss/mixins/typography.scss +26 -0
  120. package/scss/variables/common/colors.scss +154 -0
  121. package/scss/variables/common/media.scss +2 -0
  122. package/scss/variables/common/old-variables.scss +24 -0
  123. package/scss/variables/common/radiuses.scss +5 -0
  124. package/scss/variables/common/spacing.scss +12 -0
  125. package/scss/variables/common/typography.scss +107 -0
  126. package/scss/variables/components/calendar.scss +1 -1
  127. package/scss/variables/components/card.scss +1 -1
  128. package/scss/variables/components/icon.scss +1 -1
  129. package/scss/variables/components/input.scss +56 -1
  130. package/scss/variables/components/ratefield.scss +1 -1
  131. package/scss/variables/index.scss +6 -3
  132. package/typography/Text/TextView.d.ts +3 -0
  133. package/typography/Text/TextView.js +46 -0
  134. package/typography/Text/TextView.scss +15 -0
  135. package/typography/Title/TitleView.d.ts +3 -0
  136. package/typography/Title/TitleView.js +50 -0
  137. package/typography/Title/TitleView.scss +15 -0
  138. package/content/Collapse/CollapseItemView.d.ts +0 -3
  139. package/content/Collapse/CollapseItemView.js +0 -64
  140. package/content/Collapse/CollapseItemView.scss +0 -88
  141. package/content/Collapse/CollapseView.d.ts +0 -3
  142. package/content/Collapse/CollapseView.scss +0 -15
  143. package/icon/Icon/IconView.scss +0 -25
  144. package/icon/Icon/index.d.ts +0 -1
  145. package/icon/Icon/index.js +0 -16
  146. package/scss/variables/colors.scss +0 -74
  147. package/scss/variables/components/alert.scss +0 -9
  148. package/scss/variables/components/avatar.scss +0 -17
  149. /package/{icon → content}/Icon/IconView.js +0 -0
  150. /package/{icon/fontawesome.d.ts → icons/index.d.ts} +0 -0
package/package.json CHANGED
@@ -1,54 +1,58 @@
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.20",
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
+ "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.9",
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.9"
57
+ }
54
58
  }
@@ -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,154 @@
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
+ }
30
+
31
+ html[data-theme="dark"] {
32
+ --primary: #8b57ff;
33
+ --primary-dark: #6648a7;
34
+ --primary-light: #ba9bff;
35
+ --secondary: #9ea8db;
36
+ --secondary-dark: #616a95;
37
+ --secondary-light: #bcc3e9;
38
+ --success: #3cf25a;
39
+ --success-dark: #34cc4d;
40
+ --success-light: #74ff8b;
41
+ --danger: #fc6666;
42
+ --danger-dark: #dc5858;
43
+ --danger-light: #ffa1a1;
44
+ --info: #9ae1f1;
45
+ --info-dark: #77c4d6;
46
+ --info-light: #ccf6ff;
47
+ --warning: #ffe457;
48
+ --warning-dark: #ebd251;
49
+ --warning-light: #fff6c8;
50
+ --graphite: #414141;
51
+ --gray-dark: #4e4f57;
52
+ --gray: #5b5c6b;
53
+ --light-gray: #928b9d;
54
+ --dark: #6b6477;
55
+ --light: #b7afc7;
56
+ --text-color: #FFFFFF;
57
+ --background-color: #414141;
58
+ --is-dark: 'true';
59
+ }
60
+
61
+ /*
62
+ * SCSS variables implementation
63
+ */
64
+ $primary: var(--primary);
65
+ $primary-dark: var(--primary-dark);
66
+ $primary-light: var(--primary-light);
67
+ $secondary: var(--secondary);
68
+ $secondary-dark: var(--secondary-dark);
69
+ $secondary-light: var(--secondary-light);
70
+ $success: var(--success);
71
+ $success-dark: var(--success-dark);
72
+ $success-light: var(--success-light);
73
+ $danger: var(--danger);
74
+ $danger-dark: var(--danger-dark);
75
+ $danger-light: var(--danger-light);
76
+ $info: var(--info);
77
+ $info-dark: var(--info-dark);
78
+ $info-light: var(--info-light);
79
+ $warning: var(--warning);
80
+ $warning-dark: var(--warning-dark);
81
+ $warning-light: var(--warning-light);
82
+ $graphite: var(--graphite);
83
+ $gray-dark: var(--gray-dark);
84
+ $gray: var(--gray);
85
+ $light-gray: var(--light-gray);
86
+ $dark: var(--dark);
87
+ $light: var(--light);
88
+ $text-color: var(--text-color);
89
+ $background-color: var(--background-color);
90
+ $is-dark: var(--is-dark);
91
+
92
+ /*
93
+ * Common colors
94
+ */
95
+
96
+ $black: rgba(#000, 1);
97
+ $black-60: rgba(#000, 0.6);
98
+ $black-30: rgba(#000, 0.3);
99
+ $black-10: rgba(#000, 0.1);
100
+ $black-4: rgba(#000, 0.04);
101
+ $white: #fff;
102
+
103
+ $link-color: #2ba3fb;
104
+
105
+ $gradient-blue: linear-gradient(180deg, #651FFF, #BA9BFF);
106
+
107
+ $color-themes: ();
108
+ $color-themes: map-merge(
109
+ (
110
+ "basic": (
111
+ "color": $gray,
112
+ "color-dark": $gray-dark,
113
+ "color-light": $light-gray,
114
+ "text-color": $text-color,
115
+ ),
116
+ "primary": (
117
+ "color": $primary,
118
+ "color-dark": $primary-dark,
119
+ "color-light": $primary-light,
120
+ "text-color": $white,
121
+ ),
122
+ "secondary": (
123
+ "color": $secondary,
124
+ "color-dark": $secondary-dark,
125
+ "color-light": $secondary-light,
126
+ "text-color": $white,
127
+ ),
128
+ "success": (
129
+ "color": $success,
130
+ "color-dark": $success-dark,
131
+ "color-light": $success-light,
132
+ "text-color": $white,
133
+ ),
134
+ "danger": (
135
+ "color": $danger,
136
+ "color-dark": $danger-dark,
137
+ "color-light": $danger-light,
138
+ "text-color": $white,
139
+ ),
140
+ "warning": (
141
+ "color": $warning,
142
+ "color-dark": $warning-dark,
143
+ "color-light": $warning-light,
144
+ "text-color": $text-color,
145
+ ),
146
+ "info": (
147
+ "color": $info,
148
+ "color-dark": $info-dark,
149
+ "color-light": $info-light,
150
+ "text-color": $text-color,
151
+ ),
152
+ ),
153
+ $color-themes
154
+ );
@@ -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;
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;
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;
20
+
21
+ $font-weight-sm: 400;
22
+ $font-weight-md: 500;
23
+ $font-weight-lg: 700;
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,3 +1,58 @@
1
+ //Small
2
+ $input-label-margin-bottom-sm: 4px;
3
+
4
+ $input-padding-x-sm: 12px;
5
+ $input-padding-y-sm: 5px;
6
+
7
+ $input-margin-bottom-sm: 20px;
8
+ $input-outline-width-sm: 4px;
9
+ $input-border-width-sm: 1px;
10
+
11
+ $input-icon-margin-right-sm: 12px;
12
+ $input-icon-close-margin-left-sm: 12px;
13
+ $input-icon-size-sm: 24px;
14
+
15
+ $input-message-margin-top-sm: 4px;
16
+ $input-message-icon-size-sm: 16px;
17
+ $input-message-icon-margin-right-sm: 4px;
18
+
19
+ //Medium
20
+ $input-label-margin-bottom-md: $input-label-margin-bottom-sm;
21
+
22
+ $input-padding-x-md: $input-padding-x-sm;
23
+ $input-padding-y-md: 11px;
24
+
25
+ $input-margin-bottom-md: $input-margin-bottom-sm;
26
+ $input-outline-width-md: $input-outline-width-sm;
27
+ $input-border-width-md: $input-border-width-sm;
28
+
29
+ $input-icon-margin-right-md: $input-icon-margin-right-sm;
30
+ $input-icon-close-margin-left-md: $input-icon-close-margin-left-sm;
31
+ $input-icon-size-md: $input-icon-size-sm;
32
+
33
+ $input-message-margin-top-md: $input-message-margin-top-sm;
34
+ $input-message-icon-size-md: $input-message-icon-size-sm;
35
+ $input-message-icon-margin-right-md: $input-message-icon-margin-right-sm;
36
+
37
+ //Large
38
+ $input-label-margin-bottom-lg: $input-label-margin-bottom-sm;
39
+
40
+ $input-padding-x-lg: $input-padding-x-sm;
41
+ $input-padding-y-lg: 16px;
42
+
43
+ $input-margin-bottom-lg: $input-margin-bottom-sm;
44
+ $input-outline-width-lg: $input-outline-width-sm;
45
+ $input-border-width-lg: $input-border-width-sm;
46
+
47
+ $input-icon-margin-right-lg: $input-icon-margin-right-sm;
48
+ $input-icon-close-margin-left-lg: $input-icon-close-margin-left-sm;
49
+ $input-icon-size-lg: $input-icon-size-sm;
50
+
51
+ $input-message-margin-top-lg: $input-message-margin-top-sm;
52
+ $input-message-icon-size-lg: $input-message-icon-size-sm;
53
+ $input-message-icon-margin-right-lg: $input-message-icon-margin-right-sm;
54
+
55
+
1
56
  $input-height-sm: 28px !default;
2
57
  $input-height-md: 36px !default;
3
58
  $input-height-lg: 46px !default;
@@ -8,4 +63,4 @@ $input-border-radius: 4px !default;
8
63
  $input-padding-y: 0 !default;
9
64
  $input-padding-x: 8px !default;
10
65
  $input-addon-padding: 0.6rem !default;
11
- $input-text-padding: 0.4rem !default;
66
+ $input-text-padding: 0.4rem !default;
@@ -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>;