blue-react 9.1.5 → 9.1.6

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.1.5-alpha2 (https://bruegmann.github.io/blue-react)
2
+ * Blue React v9.1.6-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
 
@@ -12,7 +12,7 @@
12
12
  display: flex;
13
13
  }
14
14
 
15
- .blue-menu-item-label {
15
+ .blue-sidebar .blue-menu-item-label {
16
16
  display: inline-block;
17
17
  }
18
18
  .blue-sidebar {
@@ -38,11 +38,11 @@
38
38
  left: $bla-sidebar-width;
39
39
  }
40
40
 
41
- .blue-menu-item-dropdown-caret.blue-caret {
41
+ .blue-sidebar .blue-menu-item-dropdown-caret.blue-caret {
42
42
  display: flex;
43
43
  }
44
44
 
45
- .blue-menu-item-dropdown {
45
+ .blue-sidebar .blue-menu-item-dropdown {
46
46
  .blue-menu-item {
47
47
  width: 100%;
48
48
  }
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import { CSSProperties } from "react";
2
2
  export interface CaretProps {
3
3
  /**
4
4
  * Indicates if open or not.
@@ -9,8 +9,9 @@ export interface CaretProps {
9
9
  */
10
10
  mirrored?: boolean;
11
11
  className?: string;
12
+ style?: CSSProperties;
12
13
  }
13
14
  /**
14
15
  * Caret icon component.
15
16
  */
16
- export default function Caret({ open, mirrored, className }: CaretProps): JSX.Element;
17
+ export default function Caret({ open, mirrored, className, style }: CaretProps): JSX.Element;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { CSSProperties } from "react";
2
2
  export interface MenuItemProps {
3
3
  /**
4
4
  * Sets `to` prop, e.g. when you use the `NavLink` component from React Router.
@@ -34,6 +34,14 @@ export interface MenuItemProps {
34
34
  * Addition to class name of label wrapper element
35
35
  */
36
36
  labelClassName?: string;
37
+ /**
38
+ * Addition to class name of caret
39
+ */
40
+ caretClassName?: string;
41
+ /**
42
+ * Addition to style of caret
43
+ */
44
+ caretStyle?: CSSProperties;
37
45
  /**
38
46
  * Should be set as active.
39
47
  */
@@ -50,6 +58,10 @@ export interface MenuItemProps {
50
58
  * Extends class name of the dropdown menu.
51
59
  */
52
60
  dropdownClassName?: string;
61
+ /**
62
+ * Extends style of the dropdown menu.
63
+ */
64
+ dropdownStyle?: CSSProperties;
53
65
  /**
54
66
  * Set children to create a nested `MenuItem` as a dropdown.
55
67
  */
@@ -1,4 +1,4 @@
1
- import { MutableRefObject } from "react";
1
+ import { CSSProperties, MutableRefObject } from "react";
2
2
  /**
3
3
  * Hook that alerts clicks outside of the passed ref
4
4
  */
@@ -7,8 +7,9 @@ export interface OutsideProps {
7
7
  children: any;
8
8
  className?: string;
9
9
  onClickOutside?: (event: MouseEvent) => void;
10
+ style?: CSSProperties;
10
11
  }
11
12
  /**
12
13
  * Component that fires an event if you click outside of it
13
14
  */
14
- export default function Outside({ children, className, onClickOutside }: OutsideProps): JSX.Element;
15
+ export default function Outside({ children, className, onClickOutside, style }: OutsideProps): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blue-react",
3
- "version": "9.1.5",
3
+ "version": "9.1.6",
4
4
  "description": "Blue React Components",
5
5
  "license": "LGPL-3.0-or-later",
6
6
  "main": "index.js",