blue-react 9.4.1 → 9.5.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/style.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Blue React v9.4.1-alpha2 (https://bruegmann.github.io/blue-react)
2
+ * Blue React v9.5.0-alpha2 (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
 
@@ -14,6 +14,13 @@
14
14
  // @import "./styles/_bootstrap";
15
15
  @import "node_modules/bootstrap/scss/bootstrap";
16
16
 
17
+ // Per CSS-Variablen überschreibbar machen, da es von Bootstrap aus noch nicht möglich ist.
18
+ // Bei neuer Bootstrap-Version prüfen, ob es noch nötig ist.
19
+ .form-check-input:checked {
20
+ background-color: var(--bs-primary, #{$form-check-input-checked-bg-color});
21
+ border-color: var(--bs-primary, #{$form-check-input-checked-border-color});
22
+ }
23
+
17
24
  @import "./styles/_general";
18
25
  @import "./styles/_router";
19
26
  @import "./styles/_status";
@@ -4,6 +4,7 @@ export interface HeaderTitleProps {
4
4
  * Can be an image. Will be placed inside of the `src` attribute.
5
5
  */
6
6
  logo?: string;
7
+ logoAlt?: string;
7
8
  /**
8
9
  * Text next to the logo.
9
10
  */
@@ -21,9 +22,19 @@ export interface HeaderTitleProps {
21
22
  * Is the component used on the sidebar?
22
23
  */
23
24
  sidebar?: boolean;
25
+ /**
26
+ * By default, MenuItem is a `"a"`.
27
+ * If you want to have it another type, you can pass a component reference with this prop (e.g. `Link`).
28
+ */
29
+ elementType?: any;
30
+ /**
31
+ * Sets `to` prop, e.g. when you use the `Link` component from React Router.
32
+ */
33
+ to?: string;
34
+ href?: string;
24
35
  }
25
36
  /**
26
37
  * The title area at the header bar.
27
38
  * Depending on its content, the document's title will be set aswell (what will be shown in the browser title bar).
28
39
  */
29
- export default function HeaderTitle({ logo, appTitle, keepAppTitle, children, className, sidebar }: HeaderTitleProps): JSX.Element;
40
+ export default function HeaderTitle({ logo, logoAlt, appTitle, keepAppTitle, children, className, sidebar, elementType, to, href }: HeaderTitleProps): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blue-react",
3
- "version": "9.4.1",
3
+ "version": "9.5.0",
4
4
  "description": "Blue React Components",
5
5
  "license": "LGPL-3.0-or-later",
6
6
  "main": "index.js",
@@ -19,7 +19,6 @@
19
19
  "build-types": "tsc --declaration --emitDeclarationOnly --declarationDir ./dist/types --noEmit false",
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
- "build-css-better": "postcss ./dist/style.scss -o ./dist/style.css",
23
22
  "build-neu-css": "node-sass ./dist/neu.scss ./dist/neu.css && npx postcss ./dist/neu.css --use autoprefixer -r && npx postcss ./dist/neu.css --use postcss-minify -o ./dist/neu.min.css",
24
23
  "build-release": "npm run build-types && npm run build && npm run build-css && npm run docgen",
25
24
  "docgen": "react-docgen ./src/components/ -o ./src/docs/data/docs.json --exclude Utilities.js --extension tsx && node followUpDocs && npm run license-report",
@@ -62,7 +61,6 @@
62
61
  "node-sass": "^9.0.0",
63
62
  "postcss-cli": "^9.0.1",
64
63
  "postcss-minify": "^1.1.0",
65
- "postcss-scss": "^4.0.9",
66
64
  "prettier": "2.4.1",
67
65
  "react": "^18.1.0",
68
66
  "react-bootstrap-icons": "^1.9.1",