blue-react 8.3.3 → 8.4.0-beta1
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/MenuItem.js +9 -1
- package/dist/components/Utilities.js +2 -2
- package/dist/style.css +2081 -1560
- package/dist/style.min.css +5 -5
- package/dist/style.scss +1 -1
- package/dist/styles/_bootstrap.scss +2 -1
- package/dist/styles/_variables.scss +4 -4
- package/dist/types/components/MenuItem.d.ts +33 -1
- package/dist/types/components/Utilities.d.ts +1 -1
- package/package.json +11 -11
package/dist/style.scss
CHANGED
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
// Configuration
|
|
10
10
|
@import "node_modules/bootstrap/scss/functions";
|
|
11
11
|
@import "node_modules/bootstrap/scss/variables";
|
|
12
|
+
@import "node_modules/bootstrap/scss/maps";
|
|
12
13
|
@import "node_modules/bootstrap/scss/mixins";
|
|
13
14
|
|
|
14
|
-
@import "./_bootstrap-mixins_overwritten.scss";
|
|
15
|
+
// @import "./_bootstrap-mixins_overwritten.scss";
|
|
15
16
|
|
|
16
17
|
@import "node_modules/bootstrap/scss/utilities";
|
|
17
18
|
|
|
@@ -21,10 +21,10 @@ $theme-colors: map-merge(
|
|
|
21
21
|
);
|
|
22
22
|
|
|
23
23
|
// Since Bootstrap 5.1 this needs to be set. Otherwise we couldn't use .bg-* and .text-* utils with our custom $theme
|
|
24
|
-
$theme-colors-rgb: map-loop($theme-colors, to-rgb, "$value");
|
|
25
|
-
$utilities-colors: map-merge($utilities-colors, $theme-colors-rgb);
|
|
26
|
-
$utilities-text-colors: map-merge($utilities-text-colors, map-loop($utilities-colors, rgba-css-var, "$key", "text"));
|
|
27
|
-
$utilities-bg-colors: map-merge($utilities-bg-colors, map-loop($utilities-colors, rgba-css-var, "$key", "bg"));
|
|
24
|
+
// $theme-colors-rgb: map-loop($theme-colors, to-rgb, "$value");
|
|
25
|
+
// $utilities-colors: map-merge($utilities-colors, $theme-colors-rgb);
|
|
26
|
+
// $utilities-text-colors: map-merge($utilities-text-colors, map-loop($utilities-colors, rgba-css-var, "$key", "text"));
|
|
27
|
+
// $utilities-bg-colors: map-merge($utilities-bg-colors, map-loop($utilities-colors, rgba-css-var, "$key", "bg"));
|
|
28
28
|
|
|
29
29
|
// Alpha value (RGBA) e.g. for header background.
|
|
30
30
|
$shimmering: 0.7 !default;
|
|
@@ -55,13 +55,45 @@ export interface MenuItemProps {
|
|
|
55
55
|
*/
|
|
56
56
|
supportOutside?: boolean;
|
|
57
57
|
/**
|
|
58
|
-
* By default, MenuItem is a `"button"
|
|
58
|
+
* By default, MenuItem is a `"button"`. If you set a `href`, it's a `"a"`.
|
|
59
59
|
* If you want to have it another type, you can pass a component reference with this prop (e.g. `Link`).
|
|
60
60
|
*/
|
|
61
61
|
elementType?: any;
|
|
62
62
|
target?: string;
|
|
63
63
|
rel?: string;
|
|
64
64
|
title?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Fired on the draggable target (the source element): occurs when the user starts to drag an element
|
|
67
|
+
*/
|
|
68
|
+
onDragStart?: (event: React.DragEvent) => void | React.DragEventHandler;
|
|
69
|
+
/**
|
|
70
|
+
* Fired on the draggable target (the source element): occurs when an element is being dragged
|
|
71
|
+
*/
|
|
72
|
+
onDrag?: (event: React.DragEvent) => void | React.DragEventHandler;
|
|
73
|
+
/**
|
|
74
|
+
* Fired on the draggable target (the source element): occurs when the user has finished dragging the element
|
|
75
|
+
*/
|
|
76
|
+
onDragEnd?: (event: React.DragEvent) => void | React.DragEventHandler;
|
|
77
|
+
/**
|
|
78
|
+
* Fired on the drop target: occurs when the dragged element enters the drop target
|
|
79
|
+
*/
|
|
80
|
+
onDragEnter?: (event: React.DragEvent) => void | React.DragEventHandler;
|
|
81
|
+
/**
|
|
82
|
+
* Fired on the drop target: occurs when the dragged element is over the drop target
|
|
83
|
+
*/
|
|
84
|
+
onDragOver?: (event: React.DragEvent) => void | React.DragEventHandler;
|
|
85
|
+
/**
|
|
86
|
+
* Fired on the drop target: occurs when the dragged element leaves the drop target
|
|
87
|
+
*/
|
|
88
|
+
onDragLeave?: (event: React.DragEvent) => void | React.DragEventHandler;
|
|
89
|
+
/**
|
|
90
|
+
* Fired on the drop target: occurs when the dragged element is dropped on the drop target
|
|
91
|
+
*/
|
|
92
|
+
onDrop?: (event: React.DragEvent) => void | React.DragEventHandler;
|
|
93
|
+
/**
|
|
94
|
+
* Specifies whether an element is draggable or not.
|
|
95
|
+
*/
|
|
96
|
+
draggable?: boolean;
|
|
65
97
|
}
|
|
66
98
|
/**
|
|
67
99
|
* Link, button or custom component for Sidebar, Actions or ActionMenu
|
|
@@ -10,7 +10,7 @@ declare namespace Utilities {
|
|
|
10
10
|
function hideSuccess(): void;
|
|
11
11
|
function toggleActions(): void;
|
|
12
12
|
function resetAlertMessage(alertClassName?: string): void;
|
|
13
|
-
function setAlertMessage(message: any, alertClassName
|
|
13
|
+
function setAlertMessage(message: any, alertClassName: string | undefined, close: any, detailText: any): void;
|
|
14
14
|
function guid(): string;
|
|
15
15
|
function scrollToTop(): void;
|
|
16
16
|
function fetchData(input: any, init?: any, showErrorDetail?: boolean, onError?: any): Promise<Response>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blue-react",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.4.0-beta1",
|
|
4
4
|
"description": "Blue React Components",
|
|
5
5
|
"license": "LGPL-3.0-or-later",
|
|
6
6
|
"main": "index.js",
|
|
@@ -26,12 +26,12 @@
|
|
|
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
|
-
"release": "npm publish && npm run deploy",
|
|
29
|
+
"release": "npm publish --tag next && npm run deploy",
|
|
30
30
|
"prettier": "npx prettier --write ."
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@popperjs/core": "^2.
|
|
34
|
-
"bootstrap": "^5.
|
|
33
|
+
"@popperjs/core": "^2.11.5",
|
|
34
|
+
"bootstrap": "^5.2.0-beta1",
|
|
35
35
|
"clsx": "^1.1.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"@types/bootstrap": "^5.0.17",
|
|
49
49
|
"@types/jest": "^24.9.1",
|
|
50
50
|
"@types/node": "^12.12.47",
|
|
51
|
-
"@types/react": "^
|
|
52
|
-
"@types/react-dom": "^
|
|
53
|
-
"@types/react-router-dom": "^5.
|
|
51
|
+
"@types/react": "^18.0.9",
|
|
52
|
+
"@types/react-dom": "^18.0.5",
|
|
53
|
+
"@types/react-router-dom": "^5.3.3",
|
|
54
54
|
"@types/react-syntax-highlighter": "^13.5.0",
|
|
55
55
|
"autoprefixer": "^10.3.6",
|
|
56
56
|
"gh-pages": "^3.1.0",
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"postcss-cli": "^9.0.1",
|
|
60
60
|
"postcss-minify": "^1.1.0",
|
|
61
61
|
"prettier": "2.4.1",
|
|
62
|
-
"react": "^
|
|
63
|
-
"react-bootstrap-icons": "^1.
|
|
62
|
+
"react": "^18.1.0",
|
|
63
|
+
"react-bootstrap-icons": "^1.8.2",
|
|
64
64
|
"react-docgen": "^5.4.0",
|
|
65
|
-
"react-dom": "^
|
|
65
|
+
"react-dom": "^18.1.0",
|
|
66
66
|
"react-markdown-github": "^3.3.1",
|
|
67
|
-
"react-router-dom": "^5.
|
|
67
|
+
"react-router-dom": "^5.3.3",
|
|
68
68
|
"react-scripts": "^4.0.3",
|
|
69
69
|
"react-syntax-highlighter": "^15.4.3",
|
|
70
70
|
"reactstrap": "^9.0.0-0",
|