blue-react 9.9.3 → 9.10.1

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 (39) hide show
  1. package/dist/components/HeaderTitle.js +2 -5
  2. package/dist/components/Layout.js +4 -4
  3. package/dist/components/MenuItem.js +1 -8
  4. package/dist/components/Search.js +2 -3
  5. package/dist/components/Utilities.js +23 -146
  6. package/dist/style.css +17 -7
  7. package/dist/style.min.css +6 -3
  8. package/dist/style.scss +2 -54
  9. package/dist/types/components/Utilities.d.ts +11 -16
  10. package/package.json +4 -4
  11. package/dist/components/DocumentView.js +0 -83
  12. package/dist/neu.css +0 -156
  13. package/dist/neu.min.css +0 -2
  14. package/dist/neu.scss +0 -90
  15. package/dist/styles/_action-menu.scss +0 -69
  16. package/dist/styles/_bootstrap-mixins_overwritten.scss +0 -106
  17. package/dist/styles/_bootstrap-variables.scss +0 -18
  18. package/dist/styles/_bootstrap.scss +0 -58
  19. package/dist/styles/_buttons.scss +0 -110
  20. package/dist/styles/_caret.scss +0 -50
  21. package/dist/styles/_general.scss +0 -142
  22. package/dist/styles/_hover.scss +0 -44
  23. package/dist/styles/_keyframes.scss +0 -73
  24. package/dist/styles/_layout.scss +0 -378
  25. package/dist/styles/_mixins.scss +0 -7
  26. package/dist/styles/_router.scss +0 -19
  27. package/dist/styles/_search.scss +0 -62
  28. package/dist/styles/_sidebar.scss +0 -36
  29. package/dist/styles/_status.scss +0 -147
  30. package/dist/styles/_tooltips.scss +0 -196
  31. package/dist/styles/_variables.scss +0 -123
  32. package/dist/styles/mixins/_action-menu.scss +0 -67
  33. package/dist/styles/mixins/_custom-property.scss +0 -10
  34. package/dist/styles/mixins/_menu-item.scss +0 -23
  35. package/dist/styles/mixins/_misc.scss +0 -49
  36. package/dist/styles/mixins/_scroll-shadow.scss +0 -9
  37. package/dist/styles/mixins/_sidebar.scss +0 -201
  38. package/dist/styles/mixins/_switch.scss +0 -85
  39. package/dist/types/components/DocumentView.d.ts +0 -24
@@ -1,62 +0,0 @@
1
- .blue-search {
2
- display: flex;
3
- align-items: center;
4
- border: $input-border-width solid $input-border-color;
5
- border-radius: $input-border-radius;
6
- background-color: $input-bg;
7
-
8
- &.blue-search-body {
9
- border: 1px solid $input-border-color;
10
-
11
- .blue-search-input-group {
12
- display: flex;
13
- }
14
-
15
- &.focus {
16
- box-shadow: $input-btn-focus-box-shadow;
17
- }
18
- }
19
-
20
- &.focus {
21
- box-shadow: inset $input-btn-focus-box-shadow;
22
- }
23
- }
24
-
25
- .blue-sidebar .blue-search:not(.blue-search-body) {
26
- margin-left: map-get($spacers, 1);
27
- margin-right: map-get($spacers, 1);
28
- }
29
-
30
- .blue-search-input-group {
31
- display: none;
32
-
33
- .input-group-text {
34
- border-color: transparent;
35
- background-color: transparent;
36
- }
37
- }
38
-
39
- .blue-search-control {
40
- border: none;
41
- background-color: transparent !important;
42
-
43
- &:focus {
44
- box-shadow: none;
45
- }
46
- }
47
-
48
- .blue-search-reset-btn {
49
- color: rgba($input-color, 0.7);
50
-
51
- &:hover {
52
- color: $input-color;
53
- }
54
- }
55
-
56
- .blue-search.blue-search-sidebar {
57
- transition: opacity 0.2s ease-in-out;
58
- }
59
-
60
- .blue-search.blue-search-sidebar:not(:hover):not(.focus) {
61
- opacity: 0.7;
62
- }
@@ -1,36 +0,0 @@
1
- .blue-sidebar-state {
2
- &.open {
3
- @include openSidebarMenu();
4
-
5
- .blue-menu-item {
6
- width: $bla-sidebar-width;
7
- }
8
-
9
- .blue-menu-item {
10
- & > * {
11
- width: auto;
12
- }
13
- }
14
- }
15
-
16
- &:not(.open) {
17
- .blue-sidebar-visible-on-open {
18
- display: none !important;
19
- }
20
-
21
- .blue-sidebar-hidden-on-open {
22
- animation: fade-in 1s;
23
- }
24
- }
25
- }
26
-
27
- @keyframes blue-menu-item-dropdown-from-start {
28
- from {
29
- transform: translateX(-50%);
30
- opacity: 0;
31
- }
32
- }
33
-
34
- .blue-menu-item-dropdown-from-start {
35
- animation: blue-menu-item-dropdown-from-start 0.15s;
36
- }
@@ -1,147 +0,0 @@
1
- .blue-loading {
2
- background-color: $primary;
3
- }
4
-
5
- .blue-status-alert,
6
- .blue-status-circle {
7
- position: fixed;
8
- display: none;
9
- box-shadow: 0 0.313rem 0.938rem rgba(0, 0, 0, 0.2);
10
- }
11
-
12
- .blue-status-alert,
13
- .blue-status-circle {
14
- z-index: 6000;
15
- }
16
-
17
- .blue-status-alert {
18
- @extend .blue-normal-scrollbar;
19
-
20
- &:after {
21
- content: "";
22
- display: block;
23
- position: absolute;
24
- width: 100%;
25
- height: 100%;
26
- top: 50%;
27
- left: 0;
28
- pointer-events: none;
29
- background-image: radial-gradient(circle, rgba(black, 0.7) 10%, transparent 10.01%);
30
- background-repeat: no-repeat;
31
- background-position: 50%;
32
- animation: alert-in 1s;
33
- transform: scale(10, 10);
34
- opacity: 0;
35
- transition: transform 0.5s, opacity 1s;
36
- }
37
-
38
- transform: translate3d(0, 0, 0);
39
- overflow: hidden;
40
- white-space: pre-wrap;
41
-
42
- bottom: 2.5rem + 4rem + 0.938rem;
43
- left: 1rem;
44
- right: 1rem;
45
-
46
- max-height: calc(100vh - 15rem);
47
- max-height: calc(100dvh - 15rem);
48
-
49
- .alert-body {
50
- max-height: calc(100vh - 16rem);
51
- max-height: calc(100dvh - 16rem);
52
- overflow-y: auto;
53
- }
54
- }
55
-
56
- @media screen and (min-width: 768px) {
57
- .blue-status-alert {
58
- left: calc(50% - 18.75rem);
59
- right: calc(50% - 18.75rem);
60
- }
61
- }
62
-
63
- .blue-status-circle {
64
- bottom: 2.5rem;
65
- left: calc(50% - 1.25rem);
66
- border-radius: 50%;
67
- width: 4rem;
68
- height: 4rem;
69
- color: #fff;
70
-
71
- &:not(.blue-loading) {
72
- align-items: center;
73
- justify-content: center;
74
- font-size: 2.5em;
75
- }
76
- }
77
-
78
- .blue-status-success {
79
- background-color: #5cb85c;
80
- }
81
-
82
- .blue-status-info {
83
- background-color: #5bc0de;
84
- }
85
-
86
- .blue-status-warning {
87
- background-color: #d58512;
88
- }
89
-
90
- .blue-status-danger {
91
- background-color: #d43f3a;
92
- }
93
-
94
- .spinner-bounce-circle {
95
- width: 100%;
96
- height: 100%;
97
-
98
- position: relative;
99
- margin: 0;
100
- }
101
-
102
- .spinner-bounce-circle div {
103
- width: 100%;
104
- height: 100%;
105
- border-radius: 50%;
106
- background-color: #fff;
107
- opacity: 0.6;
108
- position: absolute;
109
- top: 0;
110
- left: 0;
111
-
112
- -webkit-animation: circlebounce 2s infinite ease-in-out;
113
- animation: circlebounce 2s infinite ease-in-out;
114
- }
115
-
116
- .spinner-bounce-circle div:nth-child(1) {
117
- -webkit-animation-delay: -1s;
118
- animation-delay: -1s;
119
- }
120
-
121
- $bla-status-bar-width: 37.5rem;
122
- $bla-status-bar-loading-height: 2px;
123
-
124
- .blue-status-bar {
125
- background-color: rgba(0, 0, 0, 0.7);
126
- color: #fff;
127
- position: fixed;
128
- z-index: 6;
129
- // width: 100%;
130
- box-sizing: border-box;
131
- right: 0;
132
- bottom: 0;
133
- padding: 0.4rem;
134
- padding-top: calc(0.4rem + #{$bla-status-bar-loading-height});
135
- overflow: hidden;
136
-
137
- &::after {
138
- content: "";
139
- position: absolute;
140
- left: 0;
141
- top: 0;
142
- width: 100%;
143
- height: $bla-status-bar-loading-height;
144
- background-color: #5cb85c;
145
- animation: scrolling 1s linear infinite;
146
- }
147
- }
@@ -1,196 +0,0 @@
1
- @media (hover: hover) {
2
- @keyframes tips-vert {
3
- to {
4
- opacity: 0.9;
5
- transform: translate(-50%, 0);
6
- }
7
- }
8
-
9
- @keyframes tips-horz {
10
- to {
11
- opacity: 0.9;
12
- transform: translate(0, -50%);
13
- }
14
- }
15
-
16
- @keyframes tips-diag-right {
17
- to {
18
- opacity: 0.9;
19
- transform: translate(-1em, 0);
20
- }
21
- }
22
-
23
- @keyframes tips-diag-left {
24
- to {
25
- opacity: 0.9;
26
- transform: translate(1em, 0);
27
- }
28
- }
29
-
30
- // [data-tooltip]s
31
- [data-tooltip] {
32
- position: relative;
33
- &::before,
34
- &::after {
35
- text-transform: none;
36
- line-height: 1;
37
- font-size: 0.9em;
38
- user-select: none;
39
- pointer-events: none;
40
- position: absolute;
41
- display: none;
42
- opacity: 0;
43
- }
44
- // the dink
45
- &::before {
46
- content: "";
47
- border: 5px solid transparent;
48
- z-index: 1001;
49
- }
50
- // the bubble
51
- &::after {
52
- content: attr(data-tooltip);
53
- font-family: $font-family-base;
54
- text-align: center;
55
-
56
- min-width: 3em;
57
- max-width: var(--bs-tooltip-max-width, 21em);
58
-
59
- padding: var(--bs-tooltip-padding-y, 1ch) var(--bs-tooltip-padding-x, 1.5ch);
60
- border-radius: var(--bs-tooltip-border-radius, 0.3em);
61
- box-shadow: 0 1em 2em -0.5em rgba(0, 0, 0, 0.35);
62
- background: var(--bs-tooltip-bg, #353539);
63
- color: var(--bs-tooltip-color, #fff);
64
- z-index: 1000;
65
- }
66
- // show the [data-tooltip]
67
- &:hover::before,
68
- &:hover::after {
69
- display: block;
70
- }
71
- }
72
-
73
- [data-tooltip][class*="blue-tooltip-up"] {
74
- &::before {
75
- bottom: 100%;
76
- border-bottom-width: 0;
77
- border-top-color: var(--bs-tooltip-bg, #353539);
78
- }
79
- &::after {
80
- bottom: calc(100% + 5px);
81
- }
82
- &::before,
83
- &::after {
84
- left: 50%;
85
- transform: translate(-50%, 0.5em);
86
- }
87
- }
88
-
89
- [data-tooltip][class*="blue-tooltip-down"] {
90
- &::before {
91
- top: 100%;
92
- border-top-width: 0;
93
- border-bottom-color: var(--bs-tooltip-bg, #353539);
94
- }
95
- &::after {
96
- top: calc(100% + 5px);
97
- }
98
- &::before,
99
- &::after {
100
- left: 50%;
101
- transform: translate(-50%, -0.5em);
102
- }
103
- }
104
-
105
- [data-tooltip][class$="-left"]::after {
106
- right: 50%;
107
- left: auto;
108
- }
109
-
110
- [data-tooltip].blue-tooltip-up-left::after {
111
- transform: translate(1.5em, 0.5em);
112
- }
113
-
114
- [data-tooltip].blue-tooltip-down-left::after {
115
- transform: translate(1.5em, -0.5em);
116
- }
117
-
118
- [data-tooltip].blue-tooltip-up-right::after {
119
- transform: translate(-1.5em, 0.5em);
120
- }
121
-
122
- [data-tooltip].blue-tooltip-down-right::after {
123
- transform: translate(-1.5em, -0.5em);
124
- }
125
-
126
- [data-tooltip].blue-tooltip-start {
127
- &::before {
128
- top: 50%;
129
- border-right-width: 0;
130
- border-left-color: var(--bs-tooltip-bg, #353539);
131
- left: calc(0em - 5px);
132
- transform: translate(0.5em, -50%);
133
- }
134
- &::after {
135
- top: 50%;
136
- right: calc(100% + 5px);
137
- transform: translate(0.5em, -50%);
138
- }
139
- }
140
-
141
- [data-tooltip].blue-tooltip-end {
142
- &::before {
143
- top: 50%;
144
- border-left-width: 0;
145
- border-right-color: var(--bs-tooltip-bg, #353539);
146
- right: calc(0em - 5px);
147
- transform: translate(-0.5em, -50%);
148
- }
149
- &::after {
150
- top: 50%;
151
- left: calc(100% + 5px);
152
- transform: translate(-0.5em, -50%);
153
- }
154
- }
155
-
156
- // FX: do the thing
157
- [data-tooltip][class*="blue-tooltip-up"]:hover,
158
- [data-tooltip][class*="blue-tooltip-down"]:hover {
159
- &::before,
160
- &::after {
161
- animation: tips-vert 150ms cubic-bezier(0.5, 0, 0.6, 1.3) 1ms forwards;
162
- }
163
- }
164
-
165
- [data-tooltip][class$="blue-tooltip-end"]:hover::after {
166
- animation: tips-diag-right 150ms cubic-bezier(0.5, 0, 0.6, 1.3) 1ms forwards;
167
- }
168
-
169
- [data-tooltip][class$="blue-tooltip-start"]:hover::after {
170
- animation: tips-diag-left 150ms cubic-bezier(0.5, 0, 0.6, 1.3) 1ms forwards;
171
- }
172
-
173
- [data-tooltip].blue-tooltip-start:hover,
174
- [data-tooltip].blue-tooltip-end:hover {
175
- &::before,
176
- &::after {
177
- animation: tips-horz 150ms cubic-bezier(0.5, 0, 0.6, 1.3) 1ms forwards;
178
- }
179
- }
180
-
181
- // don't show empty [data-tooltip]s
182
- [data-tooltip=""] {
183
- &::after,
184
- &::before {
185
- display: none !important;
186
- }
187
- }
188
-
189
- .blue-tooltip-nowrap {
190
- &::after {
191
- white-space: nowrap;
192
- overflow: hidden;
193
- text-overflow: ellipsis;
194
- }
195
- }
196
- }
@@ -1,123 +0,0 @@
1
- // Main color theme. E.g. used for background for body and sidebar.
2
- $theme: $primary !default;
3
-
4
- $theme-colors: () !default;
5
- // stylelint-disable-next-line scss/dollar-variable-default
6
- $theme-colors: map-merge(
7
- (
8
- "theme": $theme,
9
- "white": white,
10
- "black": #212529
11
- ),
12
- $theme-colors
13
- );
14
-
15
- // For Bootstrap 5.1 this needs to be set. Otherwise we couldn't use .bg-* and .text-* utils with our custom $theme
16
- // Since Bootstrap 5.2 it's no longer required, so it's commented out. If everything works fine, this can be removed for
17
- // future releases.
18
- // $theme-colors-rgb: map-loop($theme-colors, to-rgb, "$value");
19
- // $utilities-colors: map-merge($utilities-colors, $theme-colors-rgb);
20
- // $utilities-text-colors: map-merge($utilities-text-colors, map-loop($utilities-colors, rgba-css-var, "$key", "text"));
21
- // $utilities-bg-colors: map-merge($utilities-bg-colors, map-loop($utilities-colors, rgba-css-var, "$key", "bg"));
22
-
23
- // Alpha value (RGBA) e.g. for header background.
24
- $shimmering: 0.8 !default;
25
-
26
- // Thumb color of scrollbar.
27
- $scrollbar-thumb-color: white !default;
28
-
29
- // Thumb color of scrollbar as RGB (like `255, 255, 255`).
30
- $scrollbar-thumb-color-rgb: red($scrollbar-thumb-color), green($scrollbar-thumb-color), blue($scrollbar-thumb-color) !default;
31
-
32
- // Default size for many components, like sidebar menu items.
33
- $normal-size: 3rem !default;
34
-
35
- // Height of actions menu when it is expanded, like on mobile devices.
36
- $actions-height: 7.5rem !default;
37
-
38
- // Background color of menu toggle button.
39
- $bla-button-bg-normal: rgba(0, 0, 0, 0.1) !default;
40
-
41
- // Background color of menu toggle button on hover state.
42
- $bla-button-bg-hover: rgba(white, 0.25) !default;
43
-
44
- // Font size for sidebar menu items.
45
- $bla-btn-font-size: 1em !default;
46
-
47
- // Padding for action menu items.
48
- $bla-header-nav-padding: 0.75rem !default;
49
-
50
- // Width of the sidebar.
51
- $bla-sidebar-width: 16.563rem !default;
52
-
53
- // Background of sidebar.
54
- $sidebar-bg: $theme !default;
55
-
56
- // Background of sidebar when it's opened (on mobile devices).
57
- $sidebar-open-bg: darken($sidebar-bg, 30%) !default;
58
-
59
- // Background of sidebar menu dropdown menus
60
- $sidebar-deep-bg: darken($sidebar-bg, 4%) !default;
61
-
62
- // Text color of sidebar.
63
- $sidebar-color: #fff !default;
64
-
65
- // Color of indicator for active sidebar item.
66
- $sidebar-indicator-color: $sidebar-color !default;
67
-
68
- // Background of search control in sidebar.
69
- $sidebar-search-bg: $input-bg !default;
70
-
71
- // Background of the body element
72
- $app-bg: $sidebar-bg !default;
73
-
74
- // Text color of header elements
75
- $header-color: #fff !default;
76
-
77
- // Background color of Header
78
- $header-bg: $theme !default;
79
-
80
- // Background color of Header as RGB (like `255, 255, 255`).
81
- $header-bg-rgb: red($header-bg), green($header-bg), blue($header-bg) !default;
82
-
83
- // Background of header action menu dropdown menus
84
- $header-deep-bg: darken($header-bg, 4%) !default;
85
-
86
- // Background color, when hovering action menu item.
87
- $actions-control-bg-hover: $bla-button-bg-hover !default;
88
-
89
- // Width and height of the scrollbar indicators
90
- $scrollbar-size: 10px;
91
-
92
- :root {
93
- --blue-scrollbar-thumb-color-rgb: #{$scrollbar-thumb-color-rgb};
94
- --blue-scrollbar-size: #{$scrollbar-size};
95
-
96
- --blue-sidebar-width: #{$bla-sidebar-width};
97
- --blue-sidebar-color: #{$sidebar-color};
98
- --blue-theme: var(--theme, #{$theme});
99
- --blue-shimmering: 0.9;
100
-
101
- --blue-app-bg: #{$app-bg};
102
-
103
- --blue-sidebar-bg: #{$sidebar-bg};
104
- --blue-sidebar-depth-1-bg: #{darken($sidebar-bg, 4%)};
105
- --blue-sidebar-depth-2-bg: #{darken(darken($sidebar-bg, 4%), 4%)};
106
- --blue-sidebar-depth-3-bg: #{darken(darken($sidebar-bg, 4%), 8%)};
107
- --blue-sidebar-depth-4-bg: #{darken(darken($sidebar-bg, 4%), 12%)};
108
- --blue-sidebar-depth-5-bg: #{darken(darken($sidebar-bg, 4%), 16%)};
109
- --blue-sidebar-depth-6-bg: #{darken(darken($sidebar-bg, 4%), 20%)};
110
-
111
- --blue-header-bg: #{$header-bg};
112
- --blue-header-bg-rgb: #{$header-bg-rgb};
113
- --blue-header-depth-1-bg: #{darken($header-bg, 4%)};
114
- --blue-header-depth-2-bg: #{darken(darken($header-bg, 4%), 4%)};
115
- --blue-header-depth-3-bg: #{darken(darken($header-bg, 4%), 8%)};
116
- --blue-header-depth-4-bg: #{darken(darken($header-bg, 4%), 12%)};
117
- --blue-header-depth-5-bg: #{darken(darken($header-bg, 4%), 16%)};
118
- --blue-header-depth-6-bg: #{darken(darken($header-bg, 4%), 20%)};
119
-
120
- --blue-header-color: #{$header-color};
121
- --blue-action-link-bg-color: var(--blue-theme);
122
- --blue-menu-item-indicator-bg: #{$sidebar-indicator-color};
123
- }
@@ -1,67 +0,0 @@
1
- @mixin show-action-menu-again() {
2
- max-height: initial;
3
- overflow: initial;
4
-
5
- .blue-actions-menu {
6
- max-width: initial;
7
- }
8
- }
9
-
10
- @mixin actions($breakpoint) {
11
- @media screen and (max-width: #{$breakpoint + 1px}) {
12
- &.open {
13
- display: block;
14
- background-color: var(--blue-header-depth-1-bg, #{darken($theme, 30%)});
15
- width: auto;
16
- position: absolute;
17
- z-index: 1;
18
- left: unset;
19
- top: 0.25rem;
20
- box-shadow: 0.6rem 6rem 6rem rgba(0, 0, 0, 0.3);
21
- animation: fadeInDown 0.5s;
22
- border-radius: $border-radius;
23
-
24
- @include show-action-menu-again();
25
-
26
- .navbar-nav {
27
- display: flex;
28
- flex-wrap: wrap;
29
- justify-content: center;
30
- flex-direction: column;
31
-
32
- > li {
33
- text-align: center;
34
- height: $actions-height;
35
- display: flex;
36
- align-items: center;
37
- }
38
- }
39
-
40
- .blue-actions-menu-item:not(.blue-actions-menu-toggle) {
41
- display: flex;
42
- }
43
-
44
- .blue-actions-menu {
45
- .blue-menu-item-dropdown {
46
- --blue-sidebar-bg: #{darken($theme, 34%)};
47
- }
48
- }
49
- }
50
-
51
- .blue-actions-menu-item:not(.blue-actions-menu-toggle) {
52
- display: none;
53
- }
54
- }
55
-
56
- @media screen and (min-width: $breakpoint) {
57
- @include show-action-menu-again();
58
-
59
- .blue-actions-menu .blue-actions-label {
60
- display: inline;
61
- }
62
-
63
- .blue-actions-menu-toggle {
64
- display: none;
65
- }
66
- }
67
- }
@@ -1,10 +0,0 @@
1
- @mixin customProperty($name, $value) {
2
- // fallback for older browser who do not support custom properties / css variables
3
- #{$name}: #{$value};
4
-
5
- // create a css variable (this might override the variable on any of the ancestor elements)
6
- --#{$name}: #{$value};
7
-
8
- // use the css variable on the property
9
- #{$name}: var(--#{$name}, #{$value});
10
- }
@@ -1,23 +0,0 @@
1
- @mixin blue-menu-item-indicator() {
2
- content: "";
3
- position: absolute;
4
- top: 0.625rem;
5
- bottom: 0.625rem;
6
- left: 0.125rem;
7
- right: initial;
8
- width: 0.25rem;
9
- height: auto;
10
- background-color: var(--blue-menu-item-indicator-bg);
11
- border-radius: 1rem;
12
- animation: blue-menu-item-indicator-in-from-side 0.2s ease-in-out;
13
- }
14
-
15
- @mixin blue-menu-item-indicator-horizontal() {
16
- top: initial;
17
- bottom: 0.125rem;
18
- left: 0.625rem;
19
- right: 0.625rem;
20
- width: auto;
21
- height: 0.25rem;
22
- animation: blue-menu-item-indicator-in-from-below 0.2s ease-in-out;
23
- }