@steroidsjs/bootstrap 3.0.0-beta.3 → 3.0.0-beta.30

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 (97) 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 +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.scss +19 -4
  9. package/content/Avatar/AvatarView.js +2 -3
  10. package/content/Avatar/AvatarView.scss +29 -36
  11. package/content/Badge/BadgeView.d.ts +3 -0
  12. package/content/Badge/BadgeView.js +25 -0
  13. package/content/Badge/BadgeView.scss +135 -0
  14. package/content/Calendar/CaptionElement.scss +5 -4
  15. package/content/Card/CardView.js +34 -14
  16. package/content/Card/CardView.scss +126 -110
  17. package/content/Detail/DetailView.scss +75 -52
  18. package/content/DropDown/DropDownView.js +6 -3
  19. package/content/DropDown/DropDownView.scss +196 -27
  20. package/content/Icon/IconView.js +2 -2
  21. package/form/Button/ButtonView.js +12 -8
  22. package/form/Button/ButtonView.scss +157 -71
  23. package/form/CheckboxField/CheckboxFieldView.js +6 -3
  24. package/form/CheckboxField/CheckboxFieldView.scss +185 -36
  25. package/form/DropDownField/DropDownFieldView.js +46 -47
  26. package/form/DropDownField/DropDownFieldView.scss +391 -181
  27. package/form/DropDownField/views/DropDownItem/DropDownItemView.d.ts +3 -0
  28. package/form/DropDownField/views/DropDownItem/DropDownItemView.js +80 -0
  29. package/form/DropDownField/views/DropDownItem/DropDownItemView.scss +217 -0
  30. package/form/DropDownField/views/DropDownItem/index.d.ts +2 -0
  31. package/form/DropDownField/views/DropDownItem/index.js +7 -0
  32. package/form/FieldLayout/FieldLayoutView.js +12 -4
  33. package/form/FieldLayout/FieldLayoutView.scss +128 -24
  34. package/form/Form/FormView.js +3 -3
  35. package/form/Form/FormView.scss +10 -14
  36. package/form/InputField/InputFieldView.js +32 -13
  37. package/form/InputField/InputFieldView.scss +245 -99
  38. package/form/NumberField/NumberFieldView.js +19 -13
  39. package/form/NumberField/NumberFieldView.scss +195 -89
  40. package/form/PasswordField/PasswordFieldView.js +11 -9
  41. package/form/PasswordField/PasswordFieldView.scss +231 -63
  42. package/form/RadioListField/RadioListFieldView.js +10 -3
  43. package/form/RadioListField/RadioListFieldView.scss +229 -1
  44. package/form/TextField/TextFieldView.js +10 -2
  45. package/form/TextField/TextFieldView.scss +143 -2
  46. package/icons/index.d.ts +2 -0
  47. package/{icon/fontawesome.js → icons/index.js} +37 -11
  48. package/icons/svgs/accordion-chevron.svg +4 -0
  49. package/icons/svgs/arrow.svg +3 -0
  50. package/icons/svgs/badge-close.svg +3 -0
  51. package/icons/svgs/close.svg +4 -0
  52. package/icons/svgs/crossed-out-eye.svg +5 -0
  53. package/icons/svgs/default.svg +11 -0
  54. package/icons/svgs/dots.svg +5 -0
  55. package/icons/svgs/error.svg +12 -0
  56. package/icons/svgs/field-close.svg +4 -0
  57. package/icons/svgs/info.svg +12 -0
  58. package/icons/svgs/loader.svg +3 -0
  59. package/icons/svgs/search.svg +4 -0
  60. package/icons/svgs/success.svg +4 -0
  61. package/icons/svgs/user.svg +4 -0
  62. package/icons/svgs/visible-eye.svg +4 -0
  63. package/icons/svgs/warning.svg +12 -0
  64. package/index.d.ts +11 -2
  65. package/index.js +13 -4
  66. package/index.scss +6 -3
  67. package/layout/Header/HeaderView.scss +3 -3
  68. package/layout/Tooltip/TooltipView.js +6 -6
  69. package/layout/Tooltip/TooltipView.scss +45 -37
  70. package/list/Grid/GridView.scss +28 -30
  71. package/nav/Tree/TreeView.scss +9 -10
  72. package/package.json +56 -56
  73. package/scss/fonts.scss +6 -0
  74. package/scss/mixins/button.scss +51 -25
  75. package/scss/mixins/index.scss +2 -1
  76. package/scss/mixins/scroll.scss +31 -0
  77. package/scss/mixins/typography.scss +26 -0
  78. package/scss/variables/common/colors.scss +87 -67
  79. package/scss/variables/common/media.scss +2 -0
  80. package/scss/variables/common/typography.scss +96 -28
  81. package/scss/variables/components/input.scss +7 -6
  82. package/scss/variables/index.scss +2 -2
  83. package/scss/variables/normalize.scss +21 -0
  84. package/typography/Text/TextView.d.ts +3 -0
  85. package/typography/Text/TextView.js +46 -0
  86. package/typography/Text/TextView.scss +16 -0
  87. package/typography/Title/TitleView.d.ts +3 -0
  88. package/typography/Title/TitleView.js +50 -0
  89. package/typography/Title/TitleView.scss +16 -0
  90. package/content/Collapse/CollapseItemView.d.ts +0 -2
  91. package/content/Collapse/CollapseItemView.js +0 -65
  92. package/content/Collapse/CollapseItemView.scss +0 -88
  93. package/content/Collapse/CollapseView.d.ts +0 -2
  94. package/content/Icon/IconView.scss +0 -25
  95. package/icon/fontawesome.d.ts +0 -2
  96. package/scss/mixins/card.scss +0 -26
  97. package/scss/variables/components/card.scss +0 -20
package/index.js CHANGED
@@ -26,6 +26,9 @@ exports["default"] = {
26
26
  'content.IconView': {
27
27
  lazy: function () { return require('./content/Icon/IconView')["default"]; }
28
28
  },
29
+ 'content.BadgeView': {
30
+ lazy: function () { return require('./content/Badge/BadgeView')["default"]; }
31
+ },
29
32
  'form.AutoCompleteFieldView': {
30
33
  lazy: function () { return require('./form/AutoCompleteField/AutoCompleteFieldView')["default"]; }
31
34
  },
@@ -35,11 +38,11 @@ exports["default"] = {
35
38
  'content.CardView': {
36
39
  lazy: function () { return require('./content/Card/CardView')["default"]; }
37
40
  },
38
- 'content.CollapseView': {
39
- lazy: function () { return require('./content/Collapse/CollapseView')["default"]; }
41
+ 'content.AccordionView': {
42
+ lazy: function () { return require('./content/Accordion/AccordionView')["default"]; }
40
43
  },
41
- 'content.CollapseItemView': {
42
- lazy: function () { return require('./content/Collapse/CollapseItemView')["default"]; }
44
+ 'content.AccordionItemView': {
45
+ lazy: function () { return require('./content/Accordion/AccordionItemView')["default"]; }
43
46
  },
44
47
  'form.CheckboxFieldView': {
45
48
  lazy: function () { return require('./form/CheckboxField/CheckboxFieldView')["default"]; }
@@ -217,5 +220,11 @@ exports["default"] = {
217
220
  },
218
221
  'nav.TreeView': {
219
222
  lazy: function () { return require('./nav/Tree/TreeView')["default"]; }
223
+ },
224
+ 'typography.TextView': {
225
+ lazy: function () { return require('./typography/Text/TextView')["default"]; }
226
+ },
227
+ 'typography.TitleView': {
228
+ lazy: function () { return require('./typography/Title/TitleView')["default"]; }
220
229
  }
221
230
  };
package/index.scss CHANGED
@@ -1,15 +1,17 @@
1
1
  @import './scss/mixins';
2
2
  @import './scss/variables';
3
+ @import './scss/fonts';
3
4
 
4
5
  @import './crud/Crud/CrudView';
5
6
  @import './content/Alert/AlertView';
6
7
  @import './content/Avatar/AvatarView';
7
8
  @import './content/Avatar/AvatarGroupView';
9
+ @import './content/Badge/BadgeView';
8
10
  @import './content/Calendar/CalendarView';
9
11
  @import './content/Calendar/CaptionElement';
10
12
  @import './content/Card/CardView';
11
- @import './content/Collapse/CollapseView';
12
- @import './content/Collapse/CollapseItemView';
13
+ @import './content/Accordion/AccordionView';
14
+ @import './content/Accordion/AccordionItemView';
13
15
  @import './content/Detail/DetailView';
14
16
  @import './form/AutoCompleteField/AutoCompleteFieldView';
15
17
  @import './form/Button/ButtonView';
@@ -38,7 +40,6 @@
38
40
  @import './form/TextField/TextFieldView';
39
41
  @import './form/TimeField/TimeFieldView';
40
42
  @import './form/TimeField/TimePanelView';
41
- @import './content/Icon/IconView';
42
43
  @import './layout/Header/HeaderView';
43
44
  @import './layout/Tooltip/TooltipView';
44
45
  @import './layout/Notifications/NotificationsView';
@@ -67,3 +68,5 @@
67
68
  @import './nav/Nav/NavListView';
68
69
  @import './nav/Nav/NavTabsView';
69
70
  @import './nav/Tree/TreeView';
71
+ @import './typography/Text/TextView';
72
+ @import './typography/Title/TitleView';
@@ -1,9 +1,9 @@
1
+ $body-bg: transparent;
2
+
1
3
  .HeaderView {
2
4
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
3
5
  background-color: $body-bg;
4
- &, a {
5
- color: $body-color;
6
- }
6
+
7
7
  a:hover {
8
8
  opacity: .7;
9
9
  }
@@ -27,18 +27,18 @@ var React = __importStar(require("react"));
27
27
  var react_1 = require("react");
28
28
  var hooks_1 = require("@steroidsjs/core/hooks");
29
29
  function TooltipView(props) {
30
- var _a;
31
30
  var tooltipRef = (0, react_1.useRef)(null);
32
31
  var arrowRef = (0, react_1.useRef)(null);
33
32
  (0, react_1.useEffect)(function () {
34
33
  props.calculatePosition(tooltipRef.current.getBoundingClientRect(), arrowRef.current.getBoundingClientRect());
35
34
  }, [props.calculatePosition]);
36
35
  var bem = (0, hooks_1.useBem)('TooltipView');
37
- return (React.createElement("div", { ref: tooltipRef, className: bem(bem.block({
38
- show: props.isTooltipVisible
39
- }), 'tooltip', 'tooltip-position-' + props.position), style: props.style },
40
- React.createElement("div", { ref: arrowRef, className: bem.element('arrow', (_a = {}, _a['position-' + props.position] = true, _a)), style: props.arrowPosition }),
41
- React.createElement("div", { className: bem(bem.element('content'), 'tooltip-inner') },
36
+ return (React.createElement("div", { ref: tooltipRef, className: bem.block({
37
+ show: props.isTooltipVisible,
38
+ position: props.position
39
+ }), style: props.style },
40
+ React.createElement("div", { ref: arrowRef, className: bem.element('arrow', { position: props.position }), style: props.arrowPosition }),
41
+ React.createElement("div", { className: bem.element('content') },
42
42
  React.createElement("span", null, props.content))));
43
43
  }
44
44
  exports["default"] = TooltipView;
@@ -1,8 +1,7 @@
1
1
  @use 'sass:math';
2
2
 
3
- $tooltip-arrow-color: #000;
4
- $tooltip-arrow-width: 8px;
5
- $tooltip-arrow-height: 8px;
3
+ $tooltip-arrow-width: 10px;
4
+ $tooltip-arrow-height: 10px;
6
5
  $tooltip-arrow-border: math.div($tooltip-arrow-width, 2);
7
6
  $tooltip-gap: 12px;
8
7
 
@@ -10,10 +9,18 @@ $tooltip-arrow-offset-horizontal: 20px;
10
9
  $tooltip-arrow-offset-vertical-top: 15px;
11
10
  $tooltip-arrow-offset-vertical-bottom: 7px;
12
11
 
12
+ $tooltip-background-color: rgba(65, 65, 65, 0.95);
13
+
13
14
  .TooltipView {
14
15
  position: absolute;
15
16
  top: 0;
16
17
  left: 0;
18
+ max-width: 300px;
19
+ word-break: break-all;
20
+ padding: 8px 12px;
21
+ border-radius: 6px;
22
+ background: $tooltip-background-color;
23
+
17
24
  transform: translate(0,0);
18
25
  opacity: 0;
19
26
  transition: opacity .15s ease-in, transform .15s ease-in;
@@ -22,99 +29,100 @@ $tooltip-arrow-offset-vertical-bottom: 7px;
22
29
  &_show {
23
30
  opacity: 1;
24
31
  }
25
- &_show.tooltip-position-top, &_show.tooltip-position-topLeft, &_show.tooltip-position-topRight{
32
+
33
+ &_position{
34
+ &_top, &_topLeft, &_topRight {
26
35
  transform: translateY(-$tooltip-gap);
27
- }
28
- &_show.tooltip-position-bottom, &_show.tooltip-position-bottomLeft, &_show.tooltip-position-bottomRight{
29
- transform: translateY($tooltip-gap);
30
- }
31
- &_show.tooltip-position-left, &_show.tooltip-position-leftTop, &_show.tooltip-position-leftBottom{
32
- transform: translateX(-$tooltip-gap);
33
- }
34
- &_show.tooltip-position-right, &_show.tooltip-position-rightTop, &_show.tooltip-position-rightBottom{
35
- transform: translateX($tooltip-gap);
36
- }
36
+ }
37
+
38
+ &_bottom, &_bottomLeft, &_bottomRight {
39
+ transform: translateY($tooltip-gap);
40
+ }
41
+
42
+ &_left, &_leftTop, &_leftBottom {
43
+ transform: translateX(-$tooltip-gap);
44
+ }
37
45
 
46
+ &_right, &_rightTop, &_rightBottom {
47
+ transform: translateX($tooltip-gap);
48
+ }
49
+ }
38
50
 
39
51
  &__arrow{
40
52
  position: absolute;
41
-
53
+
42
54
  width: $tooltip-arrow-width;
43
55
  height: $tooltip-arrow-height;
44
56
 
45
57
  border-style: solid;
46
58
  border-width: math.div($tooltip-arrow-height, 2);
59
+ border-color: $tooltip-background-color;
47
60
  box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);
48
61
 
49
-
50
- &_position-top, &_position-topLeft, &_position-topRight{
62
+ &_position_top, &_position_topLeft, &_position_topRight{
51
63
  bottom: -$tooltip-arrow-border;
52
64
  left: 50%;
53
-
54
65
  border-top-color: transparent;
55
66
  border-left-color: transparent;
56
- border-right-color: $tooltip-arrow-color;
57
- border-bottom-color: $tooltip-arrow-color;
58
67
  transform: translateX(-50%) rotate(45deg);
59
68
  }
60
- &_position-topLeft{
69
+ &_position_topLeft{
61
70
  left: $tooltip-arrow-offset-horizontal;
62
71
  }
63
- &_position-topRight{
72
+ &_position_topRight{
64
73
  left: unset;
65
74
  right: $tooltip-arrow-offset-horizontal;
66
75
  }
67
76
 
68
- &_position-bottom, &_position-bottomLeft, &_position-bottomRight{
77
+ &_position_bottom, &_position_bottomLeft, &_position_bottomRight{
69
78
  top: -$tooltip-arrow-border;
70
79
  left: 50%;
71
- border-top-color: $tooltip-arrow-color;
72
- border-left-color: $tooltip-arrow-color;
73
80
  border-right-color: transparent;
74
81
  border-bottom-color: transparent;
75
82
  transform: translateX(-50%) rotate(45deg);
76
83
  }
77
- &_position-bottomLeft{
84
+ &_position_bottomLeft{
78
85
  left: $tooltip-arrow-offset-horizontal;
79
86
  }
80
- &_position-bottomRight{
87
+ &_position_bottomRight{
81
88
  left: unset;
82
89
  right: $tooltip-arrow-offset-horizontal;
83
90
  }
84
91
 
85
- &_position-left, &_position-leftTop, &_position-leftBottom{
92
+ &_position_left, &_position_leftTop, &_position_leftBottom{
86
93
  right: -$tooltip-arrow-border;
87
94
  top: 50%;
88
- border-top-color: $tooltip-arrow-color;
89
95
  border-left-color: transparent;
90
- border-right-color: $tooltip-arrow-color;
91
96
  border-bottom-color: transparent;
92
97
  transform: translateY(-50%) rotate(45deg);
93
98
  }
94
- &_position-leftTop{
99
+ &_position_leftTop{
95
100
  top: $tooltip-arrow-offset-vertical-top;
96
101
  }
97
- &_position-leftBottom{
102
+ &_position_leftBottom{
98
103
  top: unset;
99
104
  bottom: $tooltip-arrow-offset-vertical-bottom;
100
105
  }
101
106
 
102
- &_position-right, &_position-rightTop, &_position-rightBottom{
107
+ &_position_right, &_position_rightTop, &_position_rightBottom{
103
108
  left: -$tooltip-arrow-border;
104
109
  top: 50%;
105
110
  border-top-color: transparent;
106
- border-left-color: $tooltip-arrow-color;
107
111
  border-right-color: transparent;
108
- border-bottom-color: $tooltip-arrow-color;
109
112
  transform: translateY(-50%) rotate(45deg);
110
113
  }
111
- &_position-rightTop{
114
+ &_position_rightTop{
112
115
  top: $tooltip-arrow-offset-vertical-top;
113
116
  }
114
- &_position-rightBottom{
117
+ &_position_rightBottom{
115
118
  top: unset;
116
119
  bottom: $tooltip-arrow-offset-vertical-bottom;
117
120
  }
118
121
  }
119
122
 
123
+ &__content{
124
+ color: $white;
125
+ font-size: 14px;
126
+ line-height: 24px;
127
+ }
120
128
  }
@@ -1,5 +1,3 @@
1
- @import '~bootstrap/scss/mixins/_breakpoints.scss';
2
-
3
1
  .GridView {
4
2
  opacity: 1;
5
3
  transition: opacity .2s;
@@ -9,34 +7,34 @@
9
7
  }
10
8
 
11
9
  //adaptive styles
12
- @include media-breakpoint-down(sm) {
13
- thead, tbody, th, tr {
14
- display: block;
15
- }
16
-
17
- thead tr {
18
- position: absolute;
19
- top: -9999px;
20
- left: -9999px;
21
- }
22
-
23
- td {
24
- position: relative;
25
- width: 100% !important;
26
- text-align: left !important;
27
-
28
- display: flex;
29
- align-items: center;
30
- white-space: pre-wrap;
31
- }
32
-
33
- td:before {
34
- padding-right: 1rem;
35
- width: 50%;
36
- flex-shrink: 0;
37
- content: attr(data-label);
38
- }
39
- }
10
+ // @include media-breakpoint-down(sm) {
11
+ // thead, tbody, th, tr {
12
+ // display: block;
13
+ // }
14
+
15
+ // thead tr {
16
+ // position: absolute;
17
+ // top: -9999px;
18
+ // left: -9999px;
19
+ // }
20
+
21
+ // td {
22
+ // position: relative;
23
+ // width: 100% !important;
24
+ // text-align: left !important;
25
+
26
+ // display: flex;
27
+ // align-items: center;
28
+ // white-space: pre-wrap;
29
+ // }
30
+
31
+ // td:before {
32
+ // padding-right: 1rem;
33
+ // width: 50%;
34
+ // flex-shrink: 0;
35
+ // content: attr(data-label);
36
+ // }
37
+ // }
40
38
 
41
39
  &__sort-button {
42
40
  opacity: 0.5;
@@ -17,22 +17,22 @@
17
17
  padding: 5px 10px;
18
18
  display: flex;
19
19
  flex-direction: row;
20
- color: $list-group-action-color;
21
- background-color: $list-group-bg;
20
+ color: $text-color;
21
+ background-color: $background-color;
22
22
 
23
- &:hover {
24
- color: $list-group-action-hover-color;
25
- background-color: $list-group-hover-bg;
26
- }
23
+ // &:hover {
24
+ // color: $list-group-action-hover-color;
25
+ // background-color: $list-group-hover-bg;
26
+ // }
27
27
 
28
28
  &, &:hover {
29
29
  text-decoration: none !important;
30
30
  }
31
31
  }
32
32
  &__item_selected &__item-label {
33
- background-color: $list-group-active-bg;
33
+ background-color: $secondary;
34
34
  &, &::before {
35
- color: $list-group-active-color;
35
+ color: $text-color;
36
36
  }
37
37
  }
38
38
  &__item-label::before {
@@ -43,9 +43,8 @@
43
43
  height: 20px;
44
44
  font-size: 12px;
45
45
  font-weight: bold;
46
- font-family: $font-family-monospace;
47
46
  margin-left: 10px;
48
- color: $list-group-action-color;
47
+ color: $text-color;
49
48
  position: relative;
50
49
  top: 3px;
51
50
  left: 3px;
package/package.json CHANGED
@@ -1,58 +1,58 @@
1
1
  {
2
- "name": "@steroidsjs/bootstrap",
3
- "version": "3.0.0-beta.3",
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\" 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.30",
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.15",
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.15"
57
+ }
58
58
  }
@@ -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,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
- &:hover {
6
- background-color: map-get($color, color-dark);
5
+ &:not(:disabled):hover {
6
+ background-color: map-get($colorMap, color-dark);
7
7
  }
8
- &:focus, &:focus-visible {
9
- border: 3px solid map-get($color, color-light);
8
+ &:not(:disabled):focus,
9
+ &:not(:disabled):focus-visible {
10
+ border: 4px solid map-get($colorMap, color-light);
10
11
  }
11
- &:active {
12
- background-color: map-get($color, color-light);
12
+ &:not(:disabled):active {
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
- }
34
+ &:not(:disabled):hover {
35
+ color: map-get($colorMap, color-dark);
36
+ border-color: map-get($colorMap, color-dark);
37
+ }
38
+ &:not(:disabled):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
+ &:not(:disabled):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
+ }
33
59
  }
@@ -1,2 +1,3 @@
1
1
  @import "button";
2
- @import "card";
2
+ @import "typography";
3
+ @import "scroll";
@@ -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
+ }
@@ -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
+ }