blue-react 6.9.2

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 (74) hide show
  1. package/README.md +36 -0
  2. package/dist/ActionMenu.js +122 -0
  3. package/dist/ActionMenuItem.js +110 -0
  4. package/dist/ActionMenuSwitch.js +98 -0
  5. package/dist/Actions.js +178 -0
  6. package/dist/Body.js +89 -0
  7. package/dist/Caret.js +71 -0
  8. package/dist/DocumentView.js +138 -0
  9. package/dist/FluentBtn.js +100 -0
  10. package/dist/FormSwitch.js +75 -0
  11. package/dist/Grid.js +341 -0
  12. package/dist/Header.js +66 -0
  13. package/dist/HeaderActions.js +75 -0
  14. package/dist/HeaderTitle.js +137 -0
  15. package/dist/Intro.js +108 -0
  16. package/dist/MenuItem.js +204 -0
  17. package/dist/Page.js +64 -0
  18. package/dist/Search.js +203 -0
  19. package/dist/SidebarMenu.js +153 -0
  20. package/dist/Switch.js +89 -0
  21. package/dist/SwitchMenuItem.js +65 -0
  22. package/dist/Utilities.js +173 -0
  23. package/dist/style/_actions.scss +109 -0
  24. package/dist/style/_actions_deprecated.scss +58 -0
  25. package/dist/style/_bootstrap-mixins_overwritten.scss +54 -0
  26. package/dist/style/_bootstrap-optimizations.scss +28 -0
  27. package/dist/style/_bootstrap.scss +45 -0
  28. package/dist/style/_caret.scss +50 -0
  29. package/dist/style/_document-view.scss +5 -0
  30. package/dist/style/_fluent.scss +38 -0
  31. package/dist/style/_form-switch.scss +74 -0
  32. package/dist/style/_general.scss +154 -0
  33. package/dist/style/_grid.scss +316 -0
  34. package/dist/style/_keyframes.scss +68 -0
  35. package/dist/style/_mixins.scss +7 -0
  36. package/dist/style/_ripple.scss +26 -0
  37. package/dist/style/_router.scss +18 -0
  38. package/dist/style/_search.scss +48 -0
  39. package/dist/style/_status.scss +138 -0
  40. package/dist/style/_switch.scss +22 -0
  41. package/dist/style/_variables.scss +91 -0
  42. package/dist/style/mixins/_actions.scss +59 -0
  43. package/dist/style/mixins/_actions_deprecated.scss +54 -0
  44. package/dist/style/mixins/_custom-property.scss +10 -0
  45. package/dist/style/mixins/_misc.scss +28 -0
  46. package/dist/style/mixins/_scroll-shadow.scss +10 -0
  47. package/dist/style/mixins/_sidebar.scss +114 -0
  48. package/dist/style/mixins/_switch.scss +77 -0
  49. package/dist/style.css +8518 -0
  50. package/dist/style.scss +36 -0
  51. package/dist/types/ActionMenu.d.ts +15 -0
  52. package/dist/types/ActionMenuItem.d.ts +33 -0
  53. package/dist/types/ActionMenuSwitch.d.ts +19 -0
  54. package/dist/types/Actions.d.ts +35 -0
  55. package/dist/types/Body.d.ts +24 -0
  56. package/dist/types/Caret.d.ts +21 -0
  57. package/dist/types/DocumentView.d.ts +30 -0
  58. package/dist/types/FluentBtn.d.ts +29 -0
  59. package/dist/types/Grid.d.ts +49 -0
  60. package/dist/types/Header.d.ts +6 -0
  61. package/dist/types/HeaderActions.d.ts +16 -0
  62. package/dist/types/HeaderTitle.d.ts +25 -0
  63. package/dist/types/Intro.d.ts +29 -0
  64. package/dist/types/MenuItem.d.ts +54 -0
  65. package/dist/types/Page.d.ts +8 -0
  66. package/dist/types/Search.d.ts +30 -0
  67. package/dist/types/SidebarMenu.d.ts +39 -0
  68. package/dist/types/Switch.d.ts +26 -0
  69. package/dist/types/SwitchMenuItem.d.ts +15 -0
  70. package/dist/types/Utilities.d.ts +55 -0
  71. package/dist/types/shared.d.ts +1 -0
  72. package/index.d.ts +62 -0
  73. package/index.js +20 -0
  74. package/package.json +56 -0
@@ -0,0 +1,316 @@
1
+ .blue-app-grid {
2
+ position: relative;
3
+ // padding-top: $normal-size;
4
+ min-height: 100vh;
5
+
6
+ &.hasNoSidebarMenu {
7
+ .blue-app-page,
8
+ .blue-app-header {
9
+ padding-left: 0;
10
+ }
11
+
12
+ .blue-app-sidebar-toggler {
13
+ display: none;
14
+ }
15
+
16
+ .blue-app-page {
17
+ margin-left: 0;
18
+ }
19
+
20
+ .blue-app-header-extension {
21
+ left: 0;
22
+ padding-right: 0;
23
+ }
24
+ }
25
+
26
+ &.open {
27
+ @media screen and (max-width: 1400px) {
28
+ // --sidebar-bg: #{$sidebar-open-bg};
29
+
30
+ .router-page.active {
31
+ .blue-app-page {
32
+ filter: blur(3px) brightness(.8);
33
+ }
34
+
35
+ // &::after {
36
+ // content: "";
37
+ // position: absolute;
38
+ // top: 0; right: 0; bottom: 0; left: 0;
39
+ // background: linear-gradient(rgba($theme, 0.1), transparent);
40
+ // }
41
+ }
42
+ }
43
+
44
+ @include openSidebarMenu();
45
+ }
46
+
47
+ &:not(.open){
48
+ .blue-app-sidebar-visible-on-open {
49
+ display: none;
50
+ }
51
+
52
+ .blue-app-sidebar-hidden-on-open {
53
+ animation: fade-in 1s;
54
+ }
55
+ }
56
+ }
57
+
58
+ .ui-header-wrapper {
59
+ position: absolute;
60
+ top: 0; right: 0; bottom: 0; left: 0;
61
+ }
62
+
63
+ .blue-app-sidebar-toggler {
64
+ position: fixed;
65
+ width: 48px;
66
+ height: 48px;
67
+ left: 0;
68
+ top: 0;
69
+ z-index: 3;
70
+ }
71
+
72
+ .blue-app-sidebar-toggler,
73
+ .blue-app-header {
74
+ @include header-bg();
75
+ }
76
+
77
+ .blue-app-grid:not(.wrapper-in) .blue-app-header {
78
+ overflow: hidden;
79
+ }
80
+
81
+ .blue-app-header {
82
+ height: $normal-size;
83
+ color: $header-color;
84
+ position: fixed;
85
+ top: 0;
86
+ left: $normal-size;
87
+ right: 0;
88
+ z-index: 4;
89
+
90
+ @media screen and (min-width: 768px) {
91
+ right: 1rem;
92
+ }
93
+
94
+ .navbar-nav {
95
+ margin: 0;
96
+
97
+ > li {
98
+ float: left;
99
+
100
+ > a {
101
+ background-color: transparent;
102
+ color: $header-color;
103
+ padding: $bla-header-nav-padding;
104
+
105
+ &:hover, &:focus {
106
+ background-color: $bla-button-bg-hover;
107
+ }
108
+ }
109
+ }
110
+ }
111
+
112
+ .navbar-left {
113
+ float: left !important;
114
+ }
115
+
116
+ .navbar-right {
117
+ float: right !important;
118
+ }
119
+
120
+ .blue-app-header-form {
121
+ padding: .4rem;
122
+ float: right;
123
+ display: flex;
124
+ align-items: center;
125
+ height: 100%;
126
+ position: relative;
127
+
128
+ &.form-horizontal {
129
+ .form-group {
130
+ display: flex;
131
+ align-items: center;
132
+ }
133
+
134
+ .control-label {
135
+ padding-top: 0;
136
+ }
137
+ }
138
+ }
139
+
140
+ .blue-app-search {
141
+ width: 256px;
142
+ }
143
+ }
144
+
145
+ .blue-app-page {
146
+ @include custom-scrollbar(#333, white, .3rem);
147
+
148
+ margin-left: $normal-size;
149
+ animation: enabledBlueAppPage .5s;
150
+
151
+ // &.active {
152
+ // animation: enabledBlueAppPage .5s;
153
+ // }
154
+ }
155
+
156
+ @include blue-app-sidebar($normal-size);
157
+
158
+ @media (max-width: 600px) {
159
+ @include blue-app-sidebar(0);
160
+ .blue-app-grid:not(.open) .blue-app-sidebar {
161
+ left: -$normal-size;
162
+ }
163
+
164
+ .blue-app-page {
165
+ margin-left: 0;
166
+ }
167
+ }
168
+
169
+ @media (min-width: 1400px) {
170
+ .blue-app-grid.expand-sidebar {
171
+ @include openSidebarMenu();
172
+
173
+ .blue-app-sidebar {
174
+ box-shadow: none !important;
175
+ // background: transparent;
176
+ }
177
+
178
+ .blue-app-page {
179
+ margin-left: $bla-sidebar-width;
180
+ }
181
+
182
+ .blue-app-sidebar-toggler {
183
+ display: none;
184
+ }
185
+
186
+ .blue-app-header {
187
+ left: 0;
188
+ }
189
+ }
190
+ }
191
+
192
+ .blue-app-open-menu {
193
+ position: absolute !important;
194
+ margin-top: 0 !important;
195
+ left: 0;
196
+ background-color: $bla-button-bg-normal !important;
197
+ border-color: transparent !important;
198
+
199
+ &:hover,
200
+ &:focus {
201
+ color: $sidebar-color;
202
+ background-color: $bla-button-bg-hover;
203
+ border-color: transparent;
204
+ }
205
+ }
206
+
207
+ .blue-app-sidebar {
208
+ overflow-y: auto;
209
+ }
210
+
211
+ .blue-app-sidebar-bottom {
212
+ width: auto;
213
+ background-color: var(--sidebar-bg);
214
+ transition: box-shadow .2s;
215
+
216
+ &.has-shadow {
217
+ box-shadow: 0 -2rem 2rem rgba(black,.1);
218
+
219
+ }
220
+ }
221
+
222
+ .blue-app-page {
223
+ padding-bottom: 10px;
224
+ background-color: $body-bg;
225
+ min-height: calc(100vh - #{$normal-size});
226
+ margin-top: $normal-size;
227
+ }
228
+
229
+ .blue-app-header-logo {
230
+ padding: 10px 15px;
231
+ margin: 0;
232
+ cursor: default;
233
+ display: inline-block;
234
+ font-weight: 300;
235
+ font-size: $bla-header-logo-font-size;
236
+ position: absolute;
237
+ z-index: 1;
238
+
239
+ a {
240
+ color: inherit;
241
+
242
+ &:focus {
243
+ text-decoration: none;
244
+ }
245
+ }
246
+ }
247
+
248
+ .blue-app-header-logo-image {
249
+ width: 32px;
250
+ height: 32px;
251
+ margin-top: -4px;
252
+ }
253
+
254
+ .blue-app-sidebar-btn {
255
+ border-radius: 0;
256
+ transition: width .5s !important;
257
+ padding: 8px 12px;
258
+ border: none;
259
+ margin-top: 2px;
260
+ margin-bottom: 2px;
261
+
262
+ &:hover {
263
+ box-shadow: none !important;
264
+ }
265
+
266
+ &:focus {
267
+ box-shadow: none;
268
+ }
269
+ }
270
+
271
+ .blue-app-sidebar-label {
272
+ display: none;
273
+ max-height: 100%;
274
+ }
275
+
276
+ .blue-app-sidebar-dropdown {
277
+ margin-left: 1rem;
278
+ animation: blue-app-sidebar-dropdown .2s;
279
+
280
+ --sidebar-bg: #{$sidebar-deep-bg};
281
+ background: var(--sidebar-bg);
282
+
283
+ .blue-app-sidebar-dropdown {
284
+ --sidebar-bg: #{darken($sidebar-deep-bg, 4%)};
285
+
286
+ .blue-app-sidebar-dropdown {
287
+ --sidebar-bg: #{darken($sidebar-deep-bg, 8%)};
288
+
289
+ .blue-app-sidebar-dropdown {
290
+ --sidebar-bg: #{darken($sidebar-deep-bg, 12%)};
291
+
292
+ .blue-app-sidebar-dropdown {
293
+ --sidebar-bg: #{darken($sidebar-deep-bg, 16%)};
294
+
295
+ .blue-app-sidebar-dropdown {
296
+ --sidebar-bg: #{darken($sidebar-deep-bg, 20%)};
297
+ }
298
+ }
299
+ }
300
+ }
301
+ }
302
+ }
303
+
304
+ .blue-app-sidebar-dropdown-caret.caret {
305
+ display: none;
306
+ position: absolute;
307
+ right: 1.5rem;
308
+ top: 50%;
309
+ transform: translateY(-50%);
310
+ align-items: center;
311
+ }
312
+
313
+ .blue-app-page-nav-btn {
314
+ position: relative;
315
+ z-index: 1;
316
+ }
@@ -0,0 +1,68 @@
1
+ @keyframes fade-in {
2
+ from {
3
+ opacity: 0;
4
+ }
5
+ to {
6
+ opacity: 1;
7
+ }
8
+ }
9
+
10
+ @keyframes blAppearUp {
11
+ from {
12
+ margin-top: 40px;
13
+ }
14
+ to {
15
+ margin-top: 0;
16
+ }
17
+ }
18
+
19
+ @keyframes blue-app-sidebar-dropdown {
20
+ from {
21
+ transform: translateY(-50%);
22
+ }
23
+ }
24
+
25
+ @keyframes enabledBlueAppPage {
26
+ from {
27
+ // margin-top: $normal-size + 60px;
28
+ transform: scale(0.98);
29
+ opacity: 0;
30
+ }
31
+ to {
32
+ opacity: 1;
33
+ }
34
+ }
35
+
36
+ @keyframes fadeInDown {
37
+ from {
38
+ opacity: 0;
39
+ transform: translate3d(0, -100%, 0);
40
+ }
41
+
42
+ to {
43
+ opacity: 1;
44
+ transform: none;
45
+ }
46
+ }
47
+
48
+ @keyframes alert-in {
49
+ from {
50
+ transform: scale(0, 0);
51
+ opacity: .2;
52
+ transition: 0s;
53
+ }
54
+ }
55
+
56
+ @keyframes circlebounce {
57
+ 0%, 100% { transform: scale(0.0); }
58
+ 50% { transform: scale(1.0); }
59
+ }
60
+
61
+ @keyframes scrolling {
62
+ from {
63
+ transform: translateX(-100%);
64
+ }
65
+ to {
66
+ transform: translateX(100%);
67
+ }
68
+ }
@@ -0,0 +1,7 @@
1
+ @import "./mixins/_misc.scss";
2
+ @import "./mixins/_sidebar.scss";
3
+ @import "./mixins/_actions_deprecated.scss";
4
+ @import "./mixins/_actions.scss";
5
+ @import "./mixins/_switch.scss";
6
+ @import "./mixins/custom-property.scss";
7
+ @import "./mixins/scroll-shadow";
@@ -0,0 +1,26 @@
1
+ .ripple {
2
+ position: relative;
3
+ overflow: hidden;
4
+ transform: translate3d(0, 0, 0);
5
+ }
6
+ .ripple:after {
7
+ content: "";
8
+ display: block;
9
+ position: absolute;
10
+ width: 100%;
11
+ height: 100%;
12
+ top: 0;
13
+ left: 0;
14
+ pointer-events: none;
15
+ background-image: radial-gradient(circle, rgba(black, .7) 10%, transparent 10.01%);
16
+ background-repeat: no-repeat;
17
+ background-position: 50%;
18
+ transform: scale(10, 10);
19
+ opacity: 0;
20
+ transition: transform .5s, opacity 1s;
21
+ }
22
+ .ripple:active:after {
23
+ transform: scale(0, 0);
24
+ opacity: .2;
25
+ transition: 0s;
26
+ }
@@ -0,0 +1,18 @@
1
+ body {
2
+ overflow: hidden;
3
+ }
4
+
5
+ .router-page {
6
+ /* This is nessesary, because scrolling on iOS devices would not be smooth without it */
7
+ -webkit-overflow-scrolling: touch;
8
+
9
+ overflow-y: scroll;
10
+ overflow-x: hidden;
11
+ position: absolute;
12
+ width: 100vw;
13
+ height: 100vh;
14
+
15
+ &:not(.active) {
16
+ display: none;
17
+ }
18
+ }
@@ -0,0 +1,48 @@
1
+ .blue-app-search {
2
+ height: $normal-size;
3
+ display: flex;
4
+ align-items: center;
5
+
6
+ &.blue-app-search-body {
7
+ border: 1px solid $input-border-color;
8
+ border-radius: 4px;
9
+
10
+ .blue-app-search-input-group {
11
+ display: flex;
12
+ }
13
+
14
+ &.focus {
15
+ box-shadow: $input-btn-focus-box-shadow;
16
+ }
17
+ }
18
+
19
+ &.focus {
20
+ box-shadow: inset $input-btn-focus-box-shadow;
21
+ }
22
+ }
23
+
24
+ .blue-app-search-input-group {
25
+ display: none;
26
+
27
+ .input-group-text {
28
+ border-color: transparent;
29
+ background-color: transparent;
30
+ }
31
+ }
32
+
33
+ .blue-app-search-control {
34
+ border: none;
35
+ background-color: transparent !important;
36
+
37
+ &:focus {
38
+ box-shadow: none;
39
+ }
40
+ }
41
+
42
+ .blue-app-search-reset-btn {
43
+ color: rgba($input-color, .7);
44
+
45
+ &:hover {
46
+ color: $input-color;
47
+ }
48
+ }
@@ -0,0 +1,138 @@
1
+ .blue-app-loading {
2
+ background-color: $primary;
3
+ }
4
+
5
+ .blue-app-status-alert,
6
+ .blue-app-status-circle {
7
+ position: fixed;
8
+ display: none;
9
+ box-shadow: 0 5px 15px rgba(0,0,0,.2);
10
+ }
11
+
12
+ .blue-app-status-alert,
13
+ .blue-app-status-circle {
14
+ z-index: 6000;
15
+ }
16
+
17
+ .blue-app-status-alert {
18
+ &:after {
19
+ content: "";
20
+ display: block;
21
+ position: absolute;
22
+ width: 100%;
23
+ height: 100%;
24
+ top: 50%;
25
+ left: 0;
26
+ pointer-events: none;
27
+ background-image: radial-gradient(circle, rgba(black, .7) 10%, transparent 10.01%);
28
+ background-repeat: no-repeat;
29
+ background-position: 50%;
30
+ animation: alert-in 1s;
31
+ transform: scale(10, 10);
32
+ opacity: 0;
33
+ transition: transform .5s, opacity 1s;
34
+ }
35
+
36
+ transform: translate3d(0, 0, 0);
37
+ overflow: hidden;
38
+ white-space: pre-wrap;
39
+
40
+ bottom: 40px + 64px + 15px;
41
+ left: 1rem;
42
+ right: 1rem;
43
+ }
44
+
45
+ @media screen and (min-width: 768px) {
46
+ .blue-app-status-alert {
47
+ left: calc(50% - 300px);
48
+ right: calc(50% - 300px);
49
+ }
50
+ }
51
+
52
+ .blue-app-status-circle {
53
+ bottom: 40px;
54
+ left: calc(50% - 20px);
55
+ border-radius: 50%;
56
+ width: 64px;
57
+ height: 64px;
58
+ color: #fff;
59
+
60
+ &:not(.blue-app-loading) {
61
+ text-align: center;
62
+ padding-top: 5px;
63
+ font-size: 2.5em;
64
+ }
65
+ }
66
+
67
+ .blue-app-status-success {
68
+ background-color: #5cb85c;
69
+ }
70
+
71
+ .blue-app-status-info {
72
+ background-color: #5bc0de;
73
+ }
74
+
75
+ .blue-app-status-warning {
76
+ background-color: #d58512;
77
+ }
78
+
79
+ .blue-app-status-danger {
80
+ background-color: #d43f3a;
81
+ }
82
+
83
+ .spinner-bounce-circle
84
+ {
85
+ width: 100%;
86
+ height: 100%;
87
+
88
+ position: relative;
89
+ margin: 0;
90
+ }
91
+
92
+ .spinner-bounce-circle div
93
+ {
94
+ width: 100%;
95
+ height: 100%;
96
+ border-radius: 50%;
97
+ background-color: #fff;
98
+ opacity: 0.6;
99
+ position: absolute;
100
+ top: 0;
101
+ left: 0;
102
+
103
+ -webkit-animation: circlebounce 2.0s infinite ease-in-out;
104
+ animation: circlebounce 2.0s infinite ease-in-out;
105
+ }
106
+
107
+ .spinner-bounce-circle div:nth-child(1) {
108
+ -webkit-animation-delay: -1.0s;
109
+ animation-delay: -1.0s;
110
+ }
111
+
112
+ $bla-status-bar-width: 600px;
113
+ $bla-status-bar-loading-height: 2px;
114
+
115
+ .blue-app-status-bar {
116
+ background-color: rgba(0,0,0,.7);
117
+ color: #fff;
118
+ position: fixed;
119
+ z-index: 6;
120
+ // width: 100%;
121
+ box-sizing: border-box;
122
+ right: 0;
123
+ bottom: 0;
124
+ padding: .4rem;
125
+ padding-top: calc(.4rem + #{$bla-status-bar-loading-height});
126
+ overflow: hidden;
127
+
128
+ &::after {
129
+ content: "";
130
+ position: absolute;
131
+ left: 0;
132
+ top: 0;
133
+ width: 100%;
134
+ height: $bla-status-bar-loading-height;
135
+ background-color: #5cb85c;
136
+ animation: scrolling 1s linear infinite;
137
+ }
138
+ }
@@ -0,0 +1,22 @@
1
+ $width: 35px;
2
+ $height: 20px;
3
+ $padding: 3px;
4
+
5
+ $switch-active-color: $success;
6
+
7
+
8
+ .switch {
9
+ @include switch();
10
+
11
+ &.lg {
12
+ @include switch(100px, 30px);
13
+ }
14
+ }
15
+
16
+ /* Rounded sliders */
17
+ .slider.round {
18
+ border-radius: $height;
19
+ }
20
+ .slider.round:before {
21
+ border-radius: 50%;
22
+ }