blue-react 8.5.1 → 8.6.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.
- package/dist/components/Body.js +1 -1
- package/dist/components/DocumentView.js +6 -2
- package/dist/style.css +44 -48
- package/dist/style.min.css +4 -4
- package/dist/style.scss +1 -2
- package/dist/styles/_general.scss +2 -9
- package/dist/styles/_layout.scss +22 -18
- package/dist/styles/_variables.scss +7 -1
- package/dist/styles/mixins/_action-menu.scss +1 -1
- package/dist/styles/mixins/_misc.scss +1 -2
- package/dist/styles/mixins/_sidebar.scss +3 -3
- package/dist/types/components/DocumentView.d.ts +1 -0
- package/package.json +5 -3
- package/dist/styles/_document-view.scss +0 -6
package/dist/style.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Blue React v8.
|
|
2
|
+
* Blue React v8.6.0-beta1 (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
|
|
|
@@ -24,5 +24,4 @@
|
|
|
24
24
|
@import "./styles/_tooltips";
|
|
25
25
|
@import "./styles/_hover";
|
|
26
26
|
|
|
27
|
-
@import "./styles/document-view";
|
|
28
27
|
@import "./styles/_bootstrap-optimizations.scss";
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--app-bg: #{$app-bg};
|
|
3
|
-
--sidebar-bg: #{$sidebar-bg};
|
|
4
|
-
--header-bg: #{$header-bg};
|
|
5
|
-
--action-link-bg-color: var(--theme);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
1
|
@include custom-scrollbar($scrollbar-thumb-color, transparent, false);
|
|
9
2
|
|
|
10
3
|
* {
|
|
@@ -52,7 +45,7 @@ body {
|
|
|
52
45
|
}
|
|
53
46
|
|
|
54
47
|
body {
|
|
55
|
-
background: var(--app-bg, #{$app-bg});
|
|
48
|
+
background: var(--blue-app-bg, #{$app-bg});
|
|
56
49
|
|
|
57
50
|
.blue-wrapper {
|
|
58
51
|
position: fixed;
|
|
@@ -170,6 +163,6 @@ body {
|
|
|
170
163
|
padding-left: calc(#{$normal-size} + #{$spacer});
|
|
171
164
|
transform: translateX(-100%);
|
|
172
165
|
transition: transform 0.4s;
|
|
173
|
-
background: var(--sidebar-bg);
|
|
166
|
+
background: var(--blue-sidebar-bg);
|
|
174
167
|
color: $sidebar-color;
|
|
175
168
|
}
|
package/dist/styles/_layout.scss
CHANGED
|
@@ -124,6 +124,10 @@
|
|
|
124
124
|
.blue-page {
|
|
125
125
|
margin-left: $normal-size;
|
|
126
126
|
animation: enabledBlueAppPage 0.5s;
|
|
127
|
+
border-top-left-radius: var(--bs-border-radius, 0.5rem);
|
|
128
|
+
border-top-right-radius: var(--bs-border-radius, 0.5rem);
|
|
129
|
+
--bs-bg-opacity: 1;
|
|
130
|
+
background-color: rgba(var(--bs-body-bg-rgb, 255, 255, 255), var(--bs-bg-opacity));
|
|
127
131
|
|
|
128
132
|
&::before,
|
|
129
133
|
&::after {
|
|
@@ -197,19 +201,19 @@
|
|
|
197
201
|
&:hover,
|
|
198
202
|
&:focus {
|
|
199
203
|
color: $sidebar-color;
|
|
200
|
-
background-color:
|
|
204
|
+
background-color: var(--blue-sidebar-bg);
|
|
201
205
|
border-color: transparent;
|
|
202
206
|
}
|
|
203
207
|
}
|
|
204
208
|
|
|
205
209
|
.blue-sidebar {
|
|
206
|
-
@include custom-scrollbar($sidebar-color,
|
|
210
|
+
@include custom-scrollbar($sidebar-color, var(--blue-sidebar-bg), 0.3rem);
|
|
207
211
|
overflow-y: auto;
|
|
208
212
|
}
|
|
209
213
|
|
|
210
214
|
.blue-sidebar-bottom {
|
|
211
215
|
width: auto;
|
|
212
|
-
background-color: var(--sidebar-bg);
|
|
216
|
+
background-color: var(--blue-sidebar-bg);
|
|
213
217
|
transition: box-shadow 0.2s;
|
|
214
218
|
|
|
215
219
|
&.has-shadow {
|
|
@@ -234,7 +238,7 @@
|
|
|
234
238
|
margin: 0;
|
|
235
239
|
cursor: default;
|
|
236
240
|
display: inline-block;
|
|
237
|
-
font-weight:
|
|
241
|
+
font-weight: 400;
|
|
238
242
|
font-size: $bla-header-logo-font-size;
|
|
239
243
|
position: absolute;
|
|
240
244
|
z-index: 1;
|
|
@@ -315,26 +319,26 @@
|
|
|
315
319
|
}
|
|
316
320
|
|
|
317
321
|
.blue-sidebar .blue-menu-item-dropdown {
|
|
318
|
-
--sidebar-bg: #{$sidebar-deep-bg};
|
|
322
|
+
--blue-sidebar-bg: #{$sidebar-deep-bg};
|
|
319
323
|
|
|
320
324
|
&::before {
|
|
321
|
-
background-color: var(--sidebar-bg);
|
|
325
|
+
background-color: var(--blue-sidebar-bg);
|
|
322
326
|
}
|
|
323
327
|
|
|
324
328
|
.blue-menu-item-dropdown {
|
|
325
|
-
--sidebar-bg: #{darken($sidebar-deep-bg, 4%)};
|
|
329
|
+
--blue-sidebar-bg: #{darken($sidebar-deep-bg, 4%)};
|
|
326
330
|
|
|
327
331
|
.blue-menu-item-dropdown {
|
|
328
|
-
--sidebar-bg: #{darken($sidebar-deep-bg, 8%)};
|
|
332
|
+
--blue-sidebar-bg: #{darken($sidebar-deep-bg, 8%)};
|
|
329
333
|
|
|
330
334
|
.blue-menu-item-dropdown {
|
|
331
|
-
--sidebar-bg: #{darken($sidebar-deep-bg, 12%)};
|
|
335
|
+
--blue-sidebar-bg: #{darken($sidebar-deep-bg, 12%)};
|
|
332
336
|
|
|
333
337
|
.blue-menu-item-dropdown {
|
|
334
|
-
--sidebar-bg: #{darken($sidebar-deep-bg, 16%)};
|
|
338
|
+
--blue-sidebar-bg: #{darken($sidebar-deep-bg, 16%)};
|
|
335
339
|
|
|
336
340
|
.blue-menu-item-dropdown {
|
|
337
|
-
--sidebar-bg: #{darken($sidebar-deep-bg, 20%)};
|
|
341
|
+
--blue-sidebar-bg: #{darken($sidebar-deep-bg, 20%)};
|
|
338
342
|
}
|
|
339
343
|
}
|
|
340
344
|
}
|
|
@@ -343,26 +347,26 @@
|
|
|
343
347
|
}
|
|
344
348
|
|
|
345
349
|
.blue-header .blue-menu-item-dropdown {
|
|
346
|
-
--sidebar-bg: #{$header-deep-bg};
|
|
350
|
+
--blue-sidebar-bg: #{$header-deep-bg};
|
|
347
351
|
|
|
348
352
|
&::before {
|
|
349
|
-
background-color: var(--header-bg);
|
|
353
|
+
background-color: var(--blue-header-bg);
|
|
350
354
|
}
|
|
351
355
|
|
|
352
356
|
.blue-menu-item-dropdown {
|
|
353
|
-
--sidebar-bg: #{darken($header-deep-bg, 4%)};
|
|
357
|
+
--blue-sidebar-bg: #{darken($header-deep-bg, 4%)};
|
|
354
358
|
|
|
355
359
|
.blue-menu-item-dropdown {
|
|
356
|
-
--sidebar-bg: #{darken($header-deep-bg, 8%)};
|
|
360
|
+
--blue-sidebar-bg: #{darken($header-deep-bg, 8%)};
|
|
357
361
|
|
|
358
362
|
.blue-menu-item-dropdown {
|
|
359
|
-
--sidebar-bg: #{darken($header-deep-bg, 12%)};
|
|
363
|
+
--blue-sidebar-bg: #{darken($header-deep-bg, 12%)};
|
|
360
364
|
|
|
361
365
|
.blue-menu-item-dropdown {
|
|
362
|
-
--sidebar-bg: #{darken($header-deep-bg, 16%)};
|
|
366
|
+
--blue-sidebar-bg: #{darken($header-deep-bg, 16%)};
|
|
363
367
|
|
|
364
368
|
.blue-menu-item-dropdown {
|
|
365
|
-
--sidebar-bg: #{darken($header-deep-bg, 20%)};
|
|
369
|
+
--blue-sidebar-bg: #{darken($header-deep-bg, 20%)};
|
|
366
370
|
}
|
|
367
371
|
}
|
|
368
372
|
}
|
|
@@ -29,7 +29,7 @@ $theme-colors: map-merge(
|
|
|
29
29
|
// $utilities-bg-colors: map-merge($utilities-bg-colors, map-loop($utilities-colors, rgba-css-var, "$key", "bg"));
|
|
30
30
|
|
|
31
31
|
// Alpha value (RGBA) e.g. for header background.
|
|
32
|
-
$shimmering: 0.
|
|
32
|
+
$shimmering: 0.8 !default;
|
|
33
33
|
|
|
34
34
|
// Thumb color of scrollbar
|
|
35
35
|
$scrollbar-thumb-color: white !default;
|
|
@@ -107,4 +107,10 @@ $scrollbar-size: 10px;
|
|
|
107
107
|
--blue-sidebar-color-l: #{$blue-sidebar-color-l};
|
|
108
108
|
--blue-sidebar-color: #{$blue-sidebar-color};
|
|
109
109
|
--blue-theme: #{$theme};
|
|
110
|
+
--blue-shimmering: 0.8;
|
|
111
|
+
|
|
112
|
+
--blue-app-bg: #{$app-bg};
|
|
113
|
+
--blue-sidebar-bg: #{$sidebar-bg};
|
|
114
|
+
--blue-header-bg: #{$header-bg};
|
|
115
|
+
--action-link-bg-color: var(--theme);
|
|
110
116
|
}
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
@mixin header-bg() {
|
|
25
|
-
background-color: rgba($header-bg, $shimmering);
|
|
26
|
-
background-image: linear-gradient(0deg, rgba($header-bg, 0.8), rgba($header-bg, 0.7));
|
|
25
|
+
background-color: rgba(var(--bs-theme-rgb, $header-bg), var(--blue-shimmering, $shimmering));
|
|
27
26
|
backdrop-filter: blur(3px) saturate(125%);
|
|
28
27
|
}
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
.blue-sidebar {
|
|
125
125
|
width: $width;
|
|
126
126
|
color: $sidebar-color;
|
|
127
|
-
background: var(--sidebar-bg);
|
|
127
|
+
background: var(--blue-sidebar-bg);
|
|
128
128
|
position: fixed;
|
|
129
129
|
left: 0;
|
|
130
130
|
top: $normal-size;
|
|
@@ -137,12 +137,12 @@
|
|
|
137
137
|
.blue-menu {
|
|
138
138
|
overflow-y: auto;
|
|
139
139
|
flex: 1;
|
|
140
|
-
@include scroll-shadow(var(--sidebar-bg), $sidebar-bg);
|
|
140
|
+
@include scroll-shadow(var(--blue-sidebar-bg), $sidebar-bg);
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
&:hover {
|
|
144
144
|
.blue-menu-item {
|
|
145
|
-
background-color: var(--sidebar-bg);
|
|
145
|
+
background-color: var(--blue-sidebar-bg);
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
|
|
@@ -18,6 +18,7 @@ export interface DocumentViewProps {
|
|
|
18
18
|
showDocumentLabel: string;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
+
* @deprecated Only used by one project (Florence). Component will be moved to that project instead.
|
|
21
22
|
* Tries to display content in an iframe. When the content can't displayed in an iframe, it will show a download button instead.
|
|
22
23
|
*/
|
|
23
24
|
export default function DocumentView({ content, mimeType, src, showDocumentLabel }: DocumentViewProps): JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blue-react",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.6.0",
|
|
4
4
|
"description": "Blue React Components",
|
|
5
5
|
"license": "LGPL-3.0-or-later",
|
|
6
6
|
"main": "index.js",
|
|
@@ -20,14 +20,15 @@
|
|
|
20
20
|
"build": "babel ./src/components --out-dir ./dist/components --extensions \".tsx,.js,.ts\"",
|
|
21
21
|
"build-css": "node ./setVersionToStyleScss.js && node-sass ./dist/style.scss ./dist/style.css && npx postcss ./dist/style.css --use autoprefixer -r && npx postcss ./dist/style.css --use postcss-minify -o ./dist/style.min.css",
|
|
22
22
|
"build-release": "npm run build-types && npm run build && npm run build-css && npm run docgen",
|
|
23
|
-
"docgen": "react-docgen ./src/components/ -o ./src/docs/data/docs.json --exclude Utilities.js --extension tsx && node followUpDocs",
|
|
23
|
+
"docgen": "react-docgen ./src/components/ -o ./src/docs/data/docs.json --exclude Utilities.js --extension tsx && node followUpDocs && npm run license-report",
|
|
24
24
|
"test": "react-scripts test",
|
|
25
25
|
"eject": "react-scripts eject",
|
|
26
26
|
"predeploy": "npm run build-docs",
|
|
27
27
|
"deploy": "gh-pages --dist build --dest v8",
|
|
28
28
|
"prepublishOnly": "npm i && npm run build-release",
|
|
29
29
|
"release": "npm publish && npm run deploy",
|
|
30
|
-
"prettier": "npx prettier --write ."
|
|
30
|
+
"prettier": "npx prettier --write .",
|
|
31
|
+
"license-report": "npx license-report --prod --output=json > ./src/docs/data/license-report.json"
|
|
31
32
|
},
|
|
32
33
|
"dependencies": {
|
|
33
34
|
"@popperjs/core": "^2.11.5",
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
"autoprefixer": "^10.3.6",
|
|
56
57
|
"blue-web-components": "github:bruegmann/blue-web-components",
|
|
57
58
|
"gh-pages": "^3.1.0",
|
|
59
|
+
"license-report": "^6.2.0",
|
|
58
60
|
"lint-staged": "^11.1.2",
|
|
59
61
|
"node-sass": "^6.0.1",
|
|
60
62
|
"postcss-cli": "^9.0.1",
|