blue-react 7.8.0 → 7.9.0

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 (41) hide show
  1. package/README.md +40 -40
  2. package/dist/components/ActionMenuItem.js +4 -4
  3. package/dist/components/ActionMenuSwitch.js +2 -2
  4. package/dist/components/Caret.js +2 -2
  5. package/dist/components/DocumentView.js +3 -3
  6. package/dist/components/Grid.js +10 -2
  7. package/dist/components/Header.js +2 -2
  8. package/dist/components/HeaderActions.js +2 -2
  9. package/dist/components/HeaderTitle.js +3 -3
  10. package/dist/components/Intro.js +2 -2
  11. package/dist/components/Outside.js +6 -6
  12. package/dist/components/Page.js +2 -2
  13. package/dist/components/SidebarMenu.js +3 -3
  14. package/dist/components/Switch.js +2 -2
  15. package/dist/style.css +10 -10
  16. package/dist/style.min.css +8 -8
  17. package/dist/style.scss +1 -1
  18. package/dist/styles/_action-menu.scss +81 -81
  19. package/dist/styles/_actions.scss +137 -137
  20. package/dist/styles/_bootstrap-mixins_overwritten.scss +106 -106
  21. package/dist/styles/_bootstrap-optimizations.scss +13 -13
  22. package/dist/styles/_bootstrap-variables.scss +13 -13
  23. package/dist/styles/_bootstrap.scss +56 -56
  24. package/dist/styles/_caret.scss +50 -50
  25. package/dist/styles/_document-view.scss +6 -6
  26. package/dist/styles/_hover.scss +42 -42
  27. package/dist/styles/_keyframes.scss +73 -73
  28. package/dist/styles/_mixins.scss +7 -7
  29. package/dist/styles/_ripple.scss +30 -30
  30. package/dist/styles/_router.scss +18 -18
  31. package/dist/styles/_search.scss +1 -1
  32. package/dist/styles/_switch.scss +21 -21
  33. package/dist/styles/mixins/_action-menu.scss +68 -68
  34. package/dist/styles/mixins/_actions.scss +55 -55
  35. package/dist/styles/mixins/_custom-property.scss +10 -10
  36. package/dist/styles/mixins/_misc.scss +33 -33
  37. package/dist/styles/mixins/_scroll-shadow.scss +9 -9
  38. package/dist/styles/mixins/_sidebar.scss +142 -142
  39. package/dist/styles/mixins/_switch.scss +85 -85
  40. package/dist/types/components/Grid.d.ts +3 -1
  41. package/package.json +2 -2
package/dist/style.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Blue React v7.8.0 (https://bruegmann.github.io/blue-react)
2
+ * Blue React v7.9.0 (https://bruegmann.github.io/blue-react)
3
3
  * Licensed under GNU General Public License v3.0 (https://github.com/bruegmann/blue-react/blob/master/LICENSE).
4
4
  */
5
5
 
@@ -1,81 +1,81 @@
1
- .blue-app-actions-menu {
2
- .nav-link {
3
- position: relative;
4
- margin-left: 2px;
5
-
6
- background-color: var(--action-link-bg-color);
7
-
8
- &:hover {
9
- background-color: $bla-button-bg-hover;
10
- }
11
- }
12
- }
13
-
14
- .blue-app-actions {
15
- display: inline;
16
- transition: background-color 0.5s linear;
17
- position: absolute;
18
- left: 0;
19
- right: 0;
20
- top: 0;
21
- padding: 0;
22
- max-height: $normal-size;
23
- overflow: hidden;
24
-
25
- .blue-app-actions-menu {
26
- max-width: $normal-size;
27
- }
28
-
29
- &.open {
30
- left: -#{$normal-size};
31
- width: calc(100% + #{$normal-size});
32
- }
33
-
34
- .navbar-nav > li > a {
35
- animation: fadeInDown 0.5s;
36
- }
37
-
38
- &.none {
39
- @include actions(0px);
40
- }
41
-
42
- &.sm {
43
- @include actions(768px);
44
- }
45
-
46
- &.md {
47
- @include actions(992px);
48
- }
49
-
50
- &.lg {
51
- @include actions(1200px);
52
- }
53
-
54
- // Support for MenuItems
55
- .blue-app-sidebar-btn {
56
- width: auto;
57
- margin-top: 0;
58
- margin-bottom: 0;
59
- }
60
-
61
- .blue-app-sidebar-dropdown-toggle .blue-app-sidebar-label {
62
- margin-right: 2rem;
63
- }
64
-
65
- .blue-app-sidebar-label,
66
- .blue-app-sidebar-dropdown-caret.caret {
67
- display: initial;
68
- }
69
- }
70
-
71
- .blue-app-actions-menu-toggle {
72
- & > span:first-child {
73
- transform: rotate(90deg);
74
- }
75
- }
76
-
77
- .blue-app-actions-menu-item {
78
- display: flex;
79
- align-items: center;
80
- color: inherit;
81
- }
1
+ .blue-app-actions-menu {
2
+ .nav-link {
3
+ position: relative;
4
+ margin-left: 2px;
5
+
6
+ background-color: var(--action-link-bg-color);
7
+
8
+ &:hover {
9
+ background-color: $bla-button-bg-hover;
10
+ }
11
+ }
12
+ }
13
+
14
+ .blue-app-actions {
15
+ display: inline;
16
+ transition: background-color 0.5s linear;
17
+ position: absolute;
18
+ left: 0;
19
+ right: 0;
20
+ top: 0;
21
+ padding: 0;
22
+ max-height: $normal-size;
23
+ overflow: hidden;
24
+
25
+ .blue-app-actions-menu {
26
+ max-width: $normal-size;
27
+ }
28
+
29
+ &.open {
30
+ left: -#{$normal-size};
31
+ width: calc(100% + #{$normal-size});
32
+ }
33
+
34
+ .navbar-nav > li > a {
35
+ animation: fadeInDown 0.5s;
36
+ }
37
+
38
+ &.none {
39
+ @include actions(0px);
40
+ }
41
+
42
+ &.sm {
43
+ @include actions(768px);
44
+ }
45
+
46
+ &.md {
47
+ @include actions(992px);
48
+ }
49
+
50
+ &.lg {
51
+ @include actions(1200px);
52
+ }
53
+
54
+ // Support for MenuItems
55
+ .blue-app-sidebar-btn {
56
+ width: auto;
57
+ margin-top: 0;
58
+ margin-bottom: 0;
59
+ }
60
+
61
+ .blue-app-sidebar-dropdown-toggle .blue-app-sidebar-label {
62
+ margin-right: 2rem;
63
+ }
64
+
65
+ .blue-app-sidebar-label,
66
+ .blue-app-sidebar-dropdown-caret.caret {
67
+ display: initial;
68
+ }
69
+ }
70
+
71
+ .blue-app-actions-menu-toggle {
72
+ & > span:first-child {
73
+ transform: rotate(90deg);
74
+ }
75
+ }
76
+
77
+ .blue-app-actions-menu-item {
78
+ display: flex;
79
+ align-items: center;
80
+ color: inherit;
81
+ }
@@ -1,137 +1,137 @@
1
- $blue-actions-indicator-height: 2rem !default;
2
-
3
- .blue-actions {
4
- --sidebar-bg: transparent;
5
-
6
- display: flex;
7
- align-items: stretch;
8
- color: $header-color;
9
- position: fixed;
10
- right: 0.5rem;
11
- z-index: 41;
12
- transition: height 0.3s;
13
-
14
- .blue-app-sidebar-btn {
15
- color: $header-color;
16
-
17
- &:hover,
18
- &:active {
19
- background-color: $actions-control-bg-hover;
20
- }
21
- }
22
-
23
- &.closed {
24
- .blue-actions-featured {
25
- display: flex;
26
- }
27
-
28
- .blue-actions-indicator {
29
- padding-bottom: $spacer / 2;
30
- &::before {
31
- transform: rotate(45deg);
32
- -webkit-transform: rotate(45deg);
33
- }
34
- }
35
- }
36
-
37
- &.break-sm {
38
- @include actions-break(map-get($grid-breakpoints, "sm"));
39
- }
40
-
41
- &.break-md {
42
- @include actions-break(map-get($grid-breakpoints, "md"));
43
- }
44
-
45
- &.break-lg {
46
- @include actions-break(map-get($grid-breakpoints, "lg"));
47
- }
48
-
49
- &.break-xl {
50
- @include actions-break(map-get($grid-breakpoints, "xl"));
51
- }
52
- }
53
-
54
- .blue-actions-indicator {
55
- min-height: $blue-actions-indicator-height;
56
- display: flex;
57
- justify-content: center;
58
- align-items: center;
59
- cursor: pointer;
60
- position: relative;
61
-
62
- &::before {
63
- content: "";
64
- border: solid;
65
- border-width: 0 3px 3px 0;
66
- display: block;
67
- padding: 3px;
68
- margin: 0 $spacer;
69
-
70
- transform: rotate(-135deg);
71
- -webkit-transform: rotate(-135deg);
72
- }
73
- }
74
-
75
- .blue-actions-controls {
76
- .blue-app-sidebar-btn {
77
- width: 100%;
78
- }
79
-
80
- .blue-app-sidebar-label {
81
- display: inline-block;
82
- }
83
- }
84
-
85
- .blue-actions-featured {
86
- display: none;
87
- justify-content: center;
88
-
89
- > .fluent-btn {
90
- display: inline-flex;
91
- justify-content: center;
92
- }
93
-
94
- .blue-app-sidebar-btn {
95
- margin: 2px;
96
-
97
- &.has-label {
98
- width: auto;
99
-
100
- .blue-app-sidebar-label {
101
- display: inline-block;
102
- }
103
- }
104
- }
105
- }
106
-
107
- .has-actions {
108
- &.break-sm {
109
- @include has-actions(map-get($grid-breakpoints, "sm"));
110
- }
111
-
112
- &.break-md {
113
- @include has-actions(map-get($grid-breakpoints, "md"));
114
- }
115
-
116
- &.break-lg {
117
- @include has-actions(map-get($grid-breakpoints, "lg"));
118
- }
119
-
120
- &.break-xl {
121
- @include has-actions(map-get($grid-breakpoints, "xl"));
122
- }
123
- }
124
-
125
- .blue-app-page-wrapper:not(.hasHeader) {
126
- .blue-actions {
127
- background-color: $theme;
128
- @extend .mt-1 !optional;
129
- @extend .me-1 !optional;
130
- border-radius: $blue-actions-indicator-height / 2;
131
- box-shadow: $box-shadow;
132
-
133
- &.closed {
134
- @extend .ps-3 !optional;
135
- }
136
- }
137
- }
1
+ $blue-actions-indicator-height: 2rem !default;
2
+
3
+ .blue-actions {
4
+ --sidebar-bg: transparent;
5
+
6
+ display: flex;
7
+ align-items: stretch;
8
+ color: $header-color;
9
+ position: fixed;
10
+ right: 0.5rem;
11
+ z-index: 41;
12
+ transition: height 0.3s;
13
+
14
+ .blue-app-sidebar-btn {
15
+ color: $header-color;
16
+
17
+ &:hover,
18
+ &:active {
19
+ background-color: $actions-control-bg-hover;
20
+ }
21
+ }
22
+
23
+ &.closed {
24
+ .blue-actions-featured {
25
+ display: flex;
26
+ }
27
+
28
+ .blue-actions-indicator {
29
+ padding-bottom: $spacer / 2;
30
+ &::before {
31
+ transform: rotate(45deg);
32
+ -webkit-transform: rotate(45deg);
33
+ }
34
+ }
35
+ }
36
+
37
+ &.break-sm {
38
+ @include actions-break(map-get($grid-breakpoints, "sm"));
39
+ }
40
+
41
+ &.break-md {
42
+ @include actions-break(map-get($grid-breakpoints, "md"));
43
+ }
44
+
45
+ &.break-lg {
46
+ @include actions-break(map-get($grid-breakpoints, "lg"));
47
+ }
48
+
49
+ &.break-xl {
50
+ @include actions-break(map-get($grid-breakpoints, "xl"));
51
+ }
52
+ }
53
+
54
+ .blue-actions-indicator {
55
+ min-height: $blue-actions-indicator-height;
56
+ display: flex;
57
+ justify-content: center;
58
+ align-items: center;
59
+ cursor: pointer;
60
+ position: relative;
61
+
62
+ &::before {
63
+ content: "";
64
+ border: solid;
65
+ border-width: 0 3px 3px 0;
66
+ display: block;
67
+ padding: 3px;
68
+ margin: 0 $spacer;
69
+
70
+ transform: rotate(-135deg);
71
+ -webkit-transform: rotate(-135deg);
72
+ }
73
+ }
74
+
75
+ .blue-actions-controls {
76
+ .blue-app-sidebar-btn {
77
+ width: 100%;
78
+ }
79
+
80
+ .blue-app-sidebar-label {
81
+ display: inline-block;
82
+ }
83
+ }
84
+
85
+ .blue-actions-featured {
86
+ display: none;
87
+ justify-content: center;
88
+
89
+ > .fluent-btn {
90
+ display: inline-flex;
91
+ justify-content: center;
92
+ }
93
+
94
+ .blue-app-sidebar-btn {
95
+ margin: 2px;
96
+
97
+ &.has-label {
98
+ width: auto;
99
+
100
+ .blue-app-sidebar-label {
101
+ display: inline-block;
102
+ }
103
+ }
104
+ }
105
+ }
106
+
107
+ .has-actions {
108
+ &.break-sm {
109
+ @include has-actions(map-get($grid-breakpoints, "sm"));
110
+ }
111
+
112
+ &.break-md {
113
+ @include has-actions(map-get($grid-breakpoints, "md"));
114
+ }
115
+
116
+ &.break-lg {
117
+ @include has-actions(map-get($grid-breakpoints, "lg"));
118
+ }
119
+
120
+ &.break-xl {
121
+ @include has-actions(map-get($grid-breakpoints, "xl"));
122
+ }
123
+ }
124
+
125
+ .blue-app-page-wrapper:not(.hasHeader) {
126
+ .blue-actions {
127
+ background-color: $theme;
128
+ @extend .mt-1 !optional;
129
+ @extend .me-1 !optional;
130
+ border-radius: $blue-actions-indicator-height / 2;
131
+ box-shadow: $box-shadow;
132
+
133
+ &.closed {
134
+ @extend .ps-3 !optional;
135
+ }
136
+ }
137
+ }
@@ -1,106 +1,106 @@
1
- /**
2
- * This will overwrite button-variant mixin from Bootstrap: On hover buttons will get lighter instead of darker
3
- */
4
-
5
- @mixin button-variant(
6
- $background,
7
- $border,
8
- $color: color-contrast($background),
9
- $hover-background:
10
- if(
11
- $color == $color-contrast-light,
12
- tint-color($background, $btn-hover-bg-tint-amount),
13
- shade-color($background, $btn-hover-bg-shade-amount)
14
- ),
15
- $hover-border:
16
- if(
17
- $color == $color-contrast-light,
18
- tint-color($border, $btn-hover-border-tint-amount),
19
- shade-color($border, $btn-hover-border-shade-amount)
20
- ),
21
- $hover-color: color-contrast($background),
22
- $active-background:
23
- if(
24
- $color == $color-contrast-light,
25
- shade-color($background, $btn-active-bg-shade-amount),
26
- tint-color($background, $btn-active-bg-tint-amount)
27
- ),
28
- $active-border:
29
- if(
30
- $color == $color-contrast-light,
31
- shade-color($border, $btn-active-border-shade-amount),
32
- tint-color($border, $btn-active-border-tint-amount)
33
- ),
34
- $active-color: color-contrast($active-background),
35
- $disabled-background: $background,
36
- $disabled-border: $border,
37
- $disabled-color: color-contrast($disabled-background)
38
- ) {
39
- color: $color;
40
- @include gradient-bg($background);
41
- border-color: $border;
42
- @include box-shadow($btn-box-shadow);
43
-
44
- &:hover {
45
- color: $hover-color;
46
- @include gradient-bg($hover-background);
47
- border-color: $hover-border;
48
- }
49
-
50
- .btn-check:focus + &,
51
- &:focus {
52
- color: $hover-color;
53
- @include gradient-bg($hover-background);
54
- border-color: $hover-border;
55
- @if $enable-shadows {
56
- @include box-shadow(
57
- $btn-box-shadow,
58
- 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), 0.5)
59
- );
60
- } @else {
61
- // Avoid using mixin so we can pass custom focus shadow properly
62
- box-shadow: 0
63
- 0
64
- 0
65
- $btn-focus-width
66
- rgba(mix($color, $border, 15%), 0.5);
67
- }
68
- }
69
-
70
- .btn-check:checked + &,
71
- .btn-check:active + &,
72
- &:active,
73
- &.active,
74
- .show > &.dropdown-toggle {
75
- color: $active-color;
76
- background-color: $active-background;
77
- // Remove CSS gradients if they're enabled
78
- background-image: if($enable-gradients, none, null);
79
- border-color: $active-border;
80
-
81
- &:focus {
82
- @if $enable-shadows {
83
- @include box-shadow(
84
- $btn-active-box-shadow,
85
- 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), 0.5)
86
- );
87
- } @else {
88
- // Avoid using mixin so we can pass custom focus shadow properly
89
- box-shadow: 0
90
- 0
91
- 0
92
- $btn-focus-width
93
- rgba(mix($color, $border, 15%), 0.5);
94
- }
95
- }
96
- }
97
-
98
- &:disabled,
99
- &.disabled {
100
- color: $disabled-color;
101
- background-color: $disabled-background;
102
- // Remove CSS gradients if they're enabled
103
- background-image: if($enable-gradients, none, null);
104
- border-color: $disabled-border;
105
- }
106
- }
1
+ /**
2
+ * This will overwrite button-variant mixin from Bootstrap: On hover buttons will get lighter instead of darker
3
+ */
4
+
5
+ @mixin button-variant(
6
+ $background,
7
+ $border,
8
+ $color: color-contrast($background),
9
+ $hover-background:
10
+ if(
11
+ $color == $color-contrast-light,
12
+ tint-color($background, $btn-hover-bg-tint-amount),
13
+ shade-color($background, $btn-hover-bg-shade-amount)
14
+ ),
15
+ $hover-border:
16
+ if(
17
+ $color == $color-contrast-light,
18
+ tint-color($border, $btn-hover-border-tint-amount),
19
+ shade-color($border, $btn-hover-border-shade-amount)
20
+ ),
21
+ $hover-color: color-contrast($background),
22
+ $active-background:
23
+ if(
24
+ $color == $color-contrast-light,
25
+ shade-color($background, $btn-active-bg-shade-amount),
26
+ tint-color($background, $btn-active-bg-tint-amount)
27
+ ),
28
+ $active-border:
29
+ if(
30
+ $color == $color-contrast-light,
31
+ shade-color($border, $btn-active-border-shade-amount),
32
+ tint-color($border, $btn-active-border-tint-amount)
33
+ ),
34
+ $active-color: color-contrast($active-background),
35
+ $disabled-background: $background,
36
+ $disabled-border: $border,
37
+ $disabled-color: color-contrast($disabled-background)
38
+ ) {
39
+ color: $color;
40
+ @include gradient-bg($background);
41
+ border-color: $border;
42
+ @include box-shadow($btn-box-shadow);
43
+
44
+ &:hover {
45
+ color: $hover-color;
46
+ @include gradient-bg($hover-background);
47
+ border-color: $hover-border;
48
+ }
49
+
50
+ .btn-check:focus + &,
51
+ &:focus {
52
+ color: $hover-color;
53
+ @include gradient-bg($hover-background);
54
+ border-color: $hover-border;
55
+ @if $enable-shadows {
56
+ @include box-shadow(
57
+ $btn-box-shadow,
58
+ 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), 0.5)
59
+ );
60
+ } @else {
61
+ // Avoid using mixin so we can pass custom focus shadow properly
62
+ box-shadow: 0
63
+ 0
64
+ 0
65
+ $btn-focus-width
66
+ rgba(mix($color, $border, 15%), 0.5);
67
+ }
68
+ }
69
+
70
+ .btn-check:checked + &,
71
+ .btn-check:active + &,
72
+ &:active,
73
+ &.active,
74
+ .show > &.dropdown-toggle {
75
+ color: $active-color;
76
+ background-color: $active-background;
77
+ // Remove CSS gradients if they're enabled
78
+ background-image: if($enable-gradients, none, null);
79
+ border-color: $active-border;
80
+
81
+ &:focus {
82
+ @if $enable-shadows {
83
+ @include box-shadow(
84
+ $btn-active-box-shadow,
85
+ 0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), 0.5)
86
+ );
87
+ } @else {
88
+ // Avoid using mixin so we can pass custom focus shadow properly
89
+ box-shadow: 0
90
+ 0
91
+ 0
92
+ $btn-focus-width
93
+ rgba(mix($color, $border, 15%), 0.5);
94
+ }
95
+ }
96
+ }
97
+
98
+ &:disabled,
99
+ &.disabled {
100
+ color: $disabled-color;
101
+ background-color: $disabled-background;
102
+ // Remove CSS gradients if they're enabled
103
+ background-image: if($enable-gradients, none, null);
104
+ border-color: $disabled-border;
105
+ }
106
+ }
@@ -1,13 +1,13 @@
1
- .container,
2
- .container-fluid {
3
- &:before {
4
- content: "";
5
- display: table;
6
- }
7
- }
8
-
9
- @include media-breakpoint-up(sm) {
10
- .form-horizontal .col-form-label {
11
- text-align: right;
12
- }
13
- }
1
+ .container,
2
+ .container-fluid {
3
+ &:before {
4
+ content: "";
5
+ display: table;
6
+ }
7
+ }
8
+
9
+ @include media-breakpoint-up(sm) {
10
+ .form-horizontal .col-form-label {
11
+ text-align: right;
12
+ }
13
+ }