blue-react 9.1.4 → 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/components/Caret.js +4 -2
- package/dist/components/MenuItem.js +7 -4
- package/dist/components/Outside.js +4 -2
- package/dist/style.css +20 -23
- package/dist/style.min.css +3 -3
- package/dist/style.scss +1 -1
- package/dist/styles/_tooltips.scss +9 -12
- package/dist/styles/mixins/_sidebar.scss +3 -3
- package/dist/types/components/Caret.d.ts +3 -2
- package/dist/types/components/MenuItem.d.ts +13 -1
- package/dist/types/components/Outside.d.ts +3 -2
- package/package.json +1 -1
package/dist/style.scss
CHANGED
|
@@ -53,16 +53,13 @@
|
|
|
53
53
|
text-align: center;
|
|
54
54
|
|
|
55
55
|
min-width: 3em;
|
|
56
|
-
max-width: 21em;
|
|
57
|
-
white-space: nowrap;
|
|
58
|
-
overflow: hidden;
|
|
59
|
-
text-overflow: ellipsis;
|
|
56
|
+
max-width: var(--bs-tooltip-max-width, 21em);
|
|
60
57
|
|
|
61
|
-
padding: 1ch 1.5ch;
|
|
62
|
-
border-radius: 0.3em;
|
|
58
|
+
padding: var(--bs-tooltip-padding-y, 1ch) var(--bs-tooltip-padding-x, 1.5ch);
|
|
59
|
+
border-radius: var(--bs-tooltip-border-radius, 0.3em);
|
|
63
60
|
box-shadow: 0 1em 2em -0.5em rgba(0, 0, 0, 0.35);
|
|
64
|
-
background: #353539;
|
|
65
|
-
color: #fff;
|
|
61
|
+
background: var(--bs-tooltip-bg, #353539);
|
|
62
|
+
color: var(--bs-tooltip-color, #fff);
|
|
66
63
|
z-index: 1000;
|
|
67
64
|
}
|
|
68
65
|
// show the [data-tooltip]
|
|
@@ -76,7 +73,7 @@
|
|
|
76
73
|
&::before {
|
|
77
74
|
bottom: 100%;
|
|
78
75
|
border-bottom-width: 0;
|
|
79
|
-
border-top-color: #353539;
|
|
76
|
+
border-top-color: var(--bs-tooltip-bg, #353539);
|
|
80
77
|
}
|
|
81
78
|
&::after {
|
|
82
79
|
bottom: calc(100% + 5px);
|
|
@@ -92,7 +89,7 @@
|
|
|
92
89
|
&::before {
|
|
93
90
|
top: 100%;
|
|
94
91
|
border-top-width: 0;
|
|
95
|
-
border-bottom-color: #353539;
|
|
92
|
+
border-bottom-color: var(--bs-tooltip-bg, #353539);
|
|
96
93
|
}
|
|
97
94
|
&::after {
|
|
98
95
|
top: calc(100% + 5px);
|
|
@@ -129,7 +126,7 @@
|
|
|
129
126
|
&::before {
|
|
130
127
|
top: 50%;
|
|
131
128
|
border-right-width: 0;
|
|
132
|
-
border-left-color: #353539;
|
|
129
|
+
border-left-color: var(--bs-tooltip-bg, #353539);
|
|
133
130
|
left: calc(0em - 5px);
|
|
134
131
|
transform: translate(0.5em, -50%);
|
|
135
132
|
}
|
|
@@ -144,7 +141,7 @@
|
|
|
144
141
|
&::before {
|
|
145
142
|
top: 50%;
|
|
146
143
|
border-left-width: 0;
|
|
147
|
-
border-right-color: #353539;
|
|
144
|
+
border-right-color: var(--bs-tooltip-bg, #353539);
|
|
148
145
|
right: calc(0em - 5px);
|
|
149
146
|
transform: translate(-0.5em, -50%);
|
|
150
147
|
}
|
|
@@ -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
|
-
|
|
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;
|