blue-react 9.12.1 → 10.0.0-rc1
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/README.md +33 -4
- package/dist/components/HashRouter.js +219 -0
- package/dist/components/HeaderTitle.js +1 -1
- package/dist/components/Layout.js +70 -350
- package/dist/components/LegacyLayout.js +367 -0
- package/dist/components/LegacySidebarMenu.js +74 -0
- package/dist/components/SidebarMenu.js +5 -51
- package/dist/style.css +260 -1152
- package/dist/style.min.css +5 -5
- package/dist/style.scss +1 -1
- package/dist/types/components/HashRouter.d.ts +77 -0
- package/dist/types/components/Layout.d.ts +11 -139
- package/dist/types/components/LegacyLayout.d.ts +145 -0
- package/dist/types/components/LegacySidebarMenu.d.ts +33 -0
- package/index.js +1 -0
- package/package.json +5 -5
package/dist/style.scss
CHANGED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Component } from "react";
|
|
2
|
+
declare global {
|
|
3
|
+
interface Window {
|
|
4
|
+
blueHashRouterRef: any;
|
|
5
|
+
toggleSidebarEvent: any;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export interface HashRouterProps {
|
|
9
|
+
/**
|
|
10
|
+
* Registers pages for the built-in routing system. Example: `[{name: "home", component: <HomePage />}]`
|
|
11
|
+
*/
|
|
12
|
+
pages?: {
|
|
13
|
+
name: string;
|
|
14
|
+
component: JSX.Element;
|
|
15
|
+
}[];
|
|
16
|
+
/**
|
|
17
|
+
* When `true`, always the "home" route will be rendered.
|
|
18
|
+
*/
|
|
19
|
+
unrouteable?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* By default, the document title will automatically set. Set this prop to `true` to disable this behaviour.
|
|
22
|
+
*/
|
|
23
|
+
disableTitleSet?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Define a function, that will be fired when switching routes. When your function returns `true`, the default route behaviour will be blocked.
|
|
26
|
+
* You can use something like `window.blueHashRouterRef.setState({ blockRouting: onHashChange })` globally to set the value from anywhere in your app.
|
|
27
|
+
*/
|
|
28
|
+
blockRouting?: (newMatch: string[], currentMatch: string[]) => void | boolean;
|
|
29
|
+
children?: any;
|
|
30
|
+
}
|
|
31
|
+
export interface HashRouterState {
|
|
32
|
+
match: any;
|
|
33
|
+
history: string[];
|
|
34
|
+
hash: string;
|
|
35
|
+
hashHistory: string[];
|
|
36
|
+
blockRouting?: (newMatch: string[], currentMatch: string[]) => void | boolean;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Component for simple hash routing. It's recommended to use solutions like `react-router-dom` for more complex routing.
|
|
40
|
+
*
|
|
41
|
+
* As soon this component is mounted, it is globally available under `window.blueHashRouterRef`.
|
|
42
|
+
* You can also append your own event listeners.
|
|
43
|
+
*
|
|
44
|
+
* Allowed events:
|
|
45
|
+
*
|
|
46
|
+
* * **componentDidUpdate** - Component was updated.
|
|
47
|
+
* Example: `window.blueHashRouterRef.addEventListener("componentDidUpdate", (prevProps, prevState) => { })`
|
|
48
|
+
* * **pageDidShowAgain** - Page appeared again with the same old state. In the callback function you can reinitialize things.
|
|
49
|
+
* Example: `window.blueHashRouterRef.addEventListener("pageDidShowAgain", "home", (prevProps, prevState) => { })`
|
|
50
|
+
* * **pageDidHide** - This page disappeared and another page appears instead.
|
|
51
|
+
* Example: `window.blueHashRouterRef.addEventListener("pageDidHide", "home", (prevProps, prevState) => { })`
|
|
52
|
+
*
|
|
53
|
+
* Method to add event listeners:
|
|
54
|
+
* * `window.blueHashRouterRef.`**addEventListener**`(eventName: string, param2: any, param3: any, listenerId?: string)`
|
|
55
|
+
*
|
|
56
|
+
* Methods to remove event listeners:
|
|
57
|
+
* * `window.blueHashRouterRef.`**removeEventListener**`(eventName: string, listenerId: string)`
|
|
58
|
+
* * `window.blueHashRouterRef.`**removeDuplicatedEventListeners**`()` - Will automatically be called when running `addEventListener`
|
|
59
|
+
*/
|
|
60
|
+
export default class HashRouter extends Component<HashRouterProps, HashRouterState> {
|
|
61
|
+
defaultMatch: string[];
|
|
62
|
+
eventListeners: any[];
|
|
63
|
+
constructor(props: HashRouterProps);
|
|
64
|
+
onHashChange(): void;
|
|
65
|
+
static get defaultProps(): {
|
|
66
|
+
unrouteable: boolean;
|
|
67
|
+
disableTitleSet: boolean;
|
|
68
|
+
};
|
|
69
|
+
componentDidMount(): void;
|
|
70
|
+
componentWillUnmount(): void;
|
|
71
|
+
componentDidUpdate(prevProps: HashRouterProps, prevState: HashRouterState): void;
|
|
72
|
+
initMatch(): void;
|
|
73
|
+
addEventListener(param1: any, param2: any, param3: any, listenerId?: string): void;
|
|
74
|
+
removeEventListener(type: string, listenerId: string): void;
|
|
75
|
+
removeDuplicatedEventListeners(): void;
|
|
76
|
+
render(): JSX.Element;
|
|
77
|
+
}
|
|
@@ -1,144 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "blue-web/dist/js/side-layout";
|
|
2
3
|
declare global {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
namespace JSX {
|
|
5
|
+
interface IntrinsicElements {
|
|
6
|
+
"side-layout": React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
7
|
+
}
|
|
6
8
|
}
|
|
7
9
|
}
|
|
8
10
|
export interface LayoutProps {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*/
|
|
14
|
-
sidebarIn?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* React to changes of the `sidebarIn` state.
|
|
17
|
-
*/
|
|
18
|
-
onChangeSidebarIn?: (sidebarIn: boolean) => void;
|
|
19
|
-
style?: CSSProperties;
|
|
20
|
-
/**
|
|
21
|
-
* Set `true` to hide button to toggle `expandSidebar` state.
|
|
22
|
-
*/
|
|
23
|
-
hideToggleExpandSidebar?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Sidebar is automatically expanded on wider views.
|
|
26
|
-
*/
|
|
27
|
-
expandSidebar?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* React to changes of the `expandSidebar` state.
|
|
30
|
-
*/
|
|
31
|
-
onChangeExpandSidebar?: (expandSidebar: boolean) => void;
|
|
32
|
-
/**
|
|
33
|
-
* Disables sidebar.
|
|
34
|
-
*/
|
|
35
|
-
hideSidebarMenu?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Registers pages for the built-in routing system. Example: `[{name: "home", component: <HomePage />}]`
|
|
38
|
-
*/
|
|
39
|
-
pages?: {
|
|
40
|
-
name: string;
|
|
41
|
-
component: JSX.Element;
|
|
42
|
-
}[];
|
|
43
|
-
/**
|
|
44
|
-
* When `true`, always the "home" route will be rendered.
|
|
45
|
-
*/
|
|
46
|
-
unrouteable?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Extends `className`.
|
|
49
|
-
*/
|
|
50
|
-
className?: string;
|
|
51
|
-
/**
|
|
52
|
-
* By default, the document title will automatically set. Set this prop to `true` to disable this behaviour.
|
|
53
|
-
*/
|
|
54
|
-
disableTitleSet?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* If you don't use blueicon, you can define another icon element for the sidebar toggle button.
|
|
57
|
-
*/
|
|
58
|
-
sidebarToggleIconComponent?: any;
|
|
59
|
-
/**
|
|
60
|
-
* Set `true` if you want to use the Utilities functions for status and alert.
|
|
61
|
-
* Set `false` if you want to use `StatusProvider` instead.
|
|
62
|
-
*/
|
|
63
|
-
enableStatus?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Will replace status icons with custom ones. This will also overwrite the `useBlueicons` option.
|
|
66
|
-
* This can be a SVG component or a normal element component.
|
|
67
|
-
*/
|
|
68
|
-
statusIcons?: {
|
|
69
|
-
danger: any;
|
|
70
|
-
info: any;
|
|
71
|
-
success: any;
|
|
72
|
-
warning: any;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* Disables the header bars on pages.
|
|
76
|
-
*/
|
|
77
|
-
disableHeaders?: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* Define a function, that will be fired when switching routes. When your function returns `true`, the default route behaviour will be blocked.
|
|
80
|
-
* You can use something like `window.blueLayoutRef.setState({ blockRouting: onHashChange })` globally to set the value from anywhere in your app.
|
|
81
|
-
*/
|
|
82
|
-
blockRouting?: (newMatch: string[], currentMatch: string[]) => void | boolean;
|
|
83
|
-
children?: any;
|
|
84
|
-
}
|
|
85
|
-
export interface LayoutState {
|
|
86
|
-
sidebarIn: boolean;
|
|
87
|
-
expandSidebar: boolean;
|
|
88
|
-
match: any;
|
|
89
|
-
history: string[];
|
|
90
|
-
hash: string;
|
|
91
|
-
hashHistory: string[];
|
|
92
|
-
blockRouting?: (newMatch: string[], currentMatch: string[]) => void | boolean;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* The main component. As soon this component is mounted, it is globally available under `window.blueLayoutRef`.
|
|
96
|
-
* You can also append your own event listeners.
|
|
97
|
-
*
|
|
98
|
-
* Allowed events:
|
|
99
|
-
*
|
|
100
|
-
* * **componentDidUpdate** - Component was updated.
|
|
101
|
-
* Example: `window.blueLayoutRef.addEventListener("componentDidUpdate", (prevProps, prevState) => { })`
|
|
102
|
-
* * **pageDidShowAgain** - Page appeared again with the same old state. In the callback function you can reinitialize things.
|
|
103
|
-
* Example: `window.blueLayoutRef.addEventListener("pageDidShowAgain", "home", (prevProps, prevState) => { })`
|
|
104
|
-
* * **pageDidHide** - This page disappeared and another page appears instead.
|
|
105
|
-
* Example: `window.blueLayoutRef.addEventListener("pageDidHide", "home", (prevProps, prevState) => { })`
|
|
106
|
-
*
|
|
107
|
-
* Method to add event listeners:
|
|
108
|
-
* * `window.blueLayoutRef.`**addEventListener**`(eventName: string, param2: any, param3: any, listenerId?: string)`
|
|
109
|
-
*
|
|
110
|
-
* Methods to remove event listeners:
|
|
111
|
-
* * `window.blueLayoutRef.`**removeEventListener**`(eventName: string, listenerId: string)`
|
|
112
|
-
* * `window.blueLayoutRef.`**removeDuplicatedEventListeners**`()` - Will automatically be called when running `addEventListener`
|
|
113
|
-
*/
|
|
114
|
-
export default class Layout extends Component<LayoutProps, LayoutState> {
|
|
115
|
-
defaultMatch: string[];
|
|
116
|
-
eventListeners: any[];
|
|
117
|
-
constructor(props: LayoutProps);
|
|
118
|
-
onHashChange(): void;
|
|
119
|
-
static get defaultProps(): {
|
|
120
|
-
hideSidebarMenu: boolean;
|
|
121
|
-
unrouteable: boolean;
|
|
122
|
-
disableTitleSet: boolean;
|
|
123
|
-
sidebarToggleIconComponent: JSX.Element;
|
|
124
|
-
enableStatus: boolean;
|
|
125
|
-
statusIcons: {
|
|
126
|
-
danger: JSX.Element;
|
|
127
|
-
info: JSX.Element;
|
|
128
|
-
success: JSX.Element;
|
|
129
|
-
warning: JSX.Element;
|
|
130
|
-
};
|
|
131
|
-
hideToggleExpandSidebar: boolean;
|
|
132
|
-
};
|
|
133
|
-
componentDidMount(): void;
|
|
134
|
-
componentWillUnmount(): void;
|
|
135
|
-
componentDidUpdate(prevProps: LayoutProps, prevState: LayoutState): void;
|
|
136
|
-
toggleSidebar(event: any): void;
|
|
137
|
-
hideSidebar(e: any): void;
|
|
138
|
-
initMatch(): void;
|
|
139
|
-
addEventListener(param1: any, param2: any, param3: any, listenerId?: string): void;
|
|
140
|
-
removeEventListener(type: string, listenerId: string): void;
|
|
141
|
-
removeDuplicatedEventListeners(): void;
|
|
142
|
-
toggleExpandSidebar(): void;
|
|
143
|
-
render(): JSX.Element;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
header?: React.ReactNode;
|
|
13
|
+
side?: React.ReactNode;
|
|
14
|
+
pageBorder?: boolean;
|
|
144
15
|
}
|
|
16
|
+
export default function Layout({ children, header, side, pageBorder }: LayoutProps): JSX.Element;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { Component, CSSProperties } from "react";
|
|
2
|
+
declare global {
|
|
3
|
+
interface Window {
|
|
4
|
+
blueLayoutRef: any;
|
|
5
|
+
toggleSidebarEvent: any;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export interface LayoutProps {
|
|
9
|
+
id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* By default, the side bar is "in".
|
|
12
|
+
* You can control the state from outside, by also using `onChangeSidebarIn`.
|
|
13
|
+
*/
|
|
14
|
+
sidebarIn?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* React to changes of the `sidebarIn` state.
|
|
17
|
+
*/
|
|
18
|
+
onChangeSidebarIn?: (sidebarIn: boolean) => void;
|
|
19
|
+
style?: CSSProperties;
|
|
20
|
+
/**
|
|
21
|
+
* Set `true` to hide button to toggle `expandSidebar` state.
|
|
22
|
+
*/
|
|
23
|
+
hideToggleExpandSidebar?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Sidebar is automatically expanded on wider views.
|
|
26
|
+
*/
|
|
27
|
+
expandSidebar?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* React to changes of the `expandSidebar` state.
|
|
30
|
+
*/
|
|
31
|
+
onChangeExpandSidebar?: (expandSidebar: boolean) => void;
|
|
32
|
+
/**
|
|
33
|
+
* Disables sidebar.
|
|
34
|
+
*/
|
|
35
|
+
hideSidebarMenu?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Registers pages for the built-in routing system. Example: `[{name: "home", component: <HomePage />}]`
|
|
38
|
+
*/
|
|
39
|
+
pages?: {
|
|
40
|
+
name: string;
|
|
41
|
+
component: JSX.Element;
|
|
42
|
+
}[];
|
|
43
|
+
/**
|
|
44
|
+
* When `true`, always the "home" route will be rendered.
|
|
45
|
+
*/
|
|
46
|
+
unrouteable?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Extends `className`.
|
|
49
|
+
*/
|
|
50
|
+
className?: string;
|
|
51
|
+
/**
|
|
52
|
+
* By default, the document title will automatically set. Set this prop to `true` to disable this behaviour.
|
|
53
|
+
*/
|
|
54
|
+
disableTitleSet?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* If you don't use blueicon, you can define another icon element for the sidebar toggle button.
|
|
57
|
+
*/
|
|
58
|
+
sidebarToggleIconComponent?: any;
|
|
59
|
+
/**
|
|
60
|
+
* Set `true` if you want to use the Utilities functions for status and alert.
|
|
61
|
+
* Set `false` if you want to use `StatusProvider` instead.
|
|
62
|
+
*/
|
|
63
|
+
enableStatus?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Will replace status icons with custom ones. This will also overwrite the `useBlueicons` option.
|
|
66
|
+
* This can be a SVG component or a normal element component.
|
|
67
|
+
*/
|
|
68
|
+
statusIcons?: {
|
|
69
|
+
danger: any;
|
|
70
|
+
info: any;
|
|
71
|
+
success: any;
|
|
72
|
+
warning: any;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Disables the header bars on pages.
|
|
76
|
+
*/
|
|
77
|
+
disableHeaders?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Define a function, that will be fired when switching routes. When your function returns `true`, the default route behaviour will be blocked.
|
|
80
|
+
* You can use something like `window.blueLayoutRef.setState({ blockRouting: onHashChange })` globally to set the value from anywhere in your app.
|
|
81
|
+
*/
|
|
82
|
+
blockRouting?: (newMatch: string[], currentMatch: string[]) => void | boolean;
|
|
83
|
+
children?: any;
|
|
84
|
+
}
|
|
85
|
+
export interface LayoutState {
|
|
86
|
+
sidebarIn: boolean;
|
|
87
|
+
expandSidebar: boolean;
|
|
88
|
+
match: any;
|
|
89
|
+
history: string[];
|
|
90
|
+
hash: string;
|
|
91
|
+
hashHistory: string[];
|
|
92
|
+
blockRouting?: (newMatch: string[], currentMatch: string[]) => void | boolean;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @deprecated Consider to use the new `Layout` component instead.
|
|
96
|
+
* The main component. As soon this component is mounted, it is globally available under `window.blueLayoutRef`.
|
|
97
|
+
* You can also append your own event listeners.
|
|
98
|
+
*
|
|
99
|
+
* Allowed events:
|
|
100
|
+
*
|
|
101
|
+
* * **componentDidUpdate** - Component was updated.
|
|
102
|
+
* Example: `window.blueLayoutRef.addEventListener("componentDidUpdate", (prevProps, prevState) => { })`
|
|
103
|
+
* * **pageDidShowAgain** - Page appeared again with the same old state. In the callback function you can reinitialize things.
|
|
104
|
+
* Example: `window.blueLayoutRef.addEventListener("pageDidShowAgain", "home", (prevProps, prevState) => { })`
|
|
105
|
+
* * **pageDidHide** - This page disappeared and another page appears instead.
|
|
106
|
+
* Example: `window.blueLayoutRef.addEventListener("pageDidHide", "home", (prevProps, prevState) => { })`
|
|
107
|
+
*
|
|
108
|
+
* Method to add event listeners:
|
|
109
|
+
* * `window.blueLayoutRef.`**addEventListener**`(eventName: string, param2: any, param3: any, listenerId?: string)`
|
|
110
|
+
*
|
|
111
|
+
* Methods to remove event listeners:
|
|
112
|
+
* * `window.blueLayoutRef.`**removeEventListener**`(eventName: string, listenerId: string)`
|
|
113
|
+
* * `window.blueLayoutRef.`**removeDuplicatedEventListeners**`()` - Will automatically be called when running `addEventListener`
|
|
114
|
+
*/
|
|
115
|
+
export default class LegacyLayout extends Component<LayoutProps, LayoutState> {
|
|
116
|
+
defaultMatch: string[];
|
|
117
|
+
eventListeners: any[];
|
|
118
|
+
constructor(props: LayoutProps);
|
|
119
|
+
onHashChange(): void;
|
|
120
|
+
static get defaultProps(): {
|
|
121
|
+
hideSidebarMenu: boolean;
|
|
122
|
+
unrouteable: boolean;
|
|
123
|
+
disableTitleSet: boolean;
|
|
124
|
+
sidebarToggleIconComponent: JSX.Element;
|
|
125
|
+
enableStatus: boolean;
|
|
126
|
+
statusIcons: {
|
|
127
|
+
danger: JSX.Element;
|
|
128
|
+
info: JSX.Element;
|
|
129
|
+
success: JSX.Element;
|
|
130
|
+
warning: JSX.Element;
|
|
131
|
+
};
|
|
132
|
+
hideToggleExpandSidebar: boolean;
|
|
133
|
+
};
|
|
134
|
+
componentDidMount(): void;
|
|
135
|
+
componentWillUnmount(): void;
|
|
136
|
+
componentDidUpdate(prevProps: LayoutProps, prevState: LayoutState): void;
|
|
137
|
+
toggleSidebar(event: any): void;
|
|
138
|
+
hideSidebar(e: any): void;
|
|
139
|
+
initMatch(): void;
|
|
140
|
+
addEventListener(param1: any, param2: any, param3: any, listenerId?: string): void;
|
|
141
|
+
removeEventListener(type: string, listenerId: string): void;
|
|
142
|
+
removeDuplicatedEventListeners(): void;
|
|
143
|
+
toggleExpandSidebar(): void;
|
|
144
|
+
render(): JSX.Element;
|
|
145
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface SidebarMenuProps {
|
|
3
|
+
/**
|
|
4
|
+
* Extends the class name by the sidebar.
|
|
5
|
+
*/
|
|
6
|
+
sidebarClass?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Sets the `style` prop by the sidebar.
|
|
9
|
+
*/
|
|
10
|
+
sidebarStyle?: object;
|
|
11
|
+
/**
|
|
12
|
+
* Extends the class name by the menu.
|
|
13
|
+
*/
|
|
14
|
+
menuClass?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Sets the `style` prop by the menu.
|
|
17
|
+
*/
|
|
18
|
+
menuStyle?: object;
|
|
19
|
+
/**
|
|
20
|
+
* Content on top of the menu.
|
|
21
|
+
*/
|
|
22
|
+
topContent?: any;
|
|
23
|
+
/**
|
|
24
|
+
* Content for the bottom part of the sidebar.
|
|
25
|
+
*/
|
|
26
|
+
bottomContent?: any;
|
|
27
|
+
children?: any;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated Use the new `SidebarMenu` component instead.
|
|
31
|
+
* Sidebar for the `Layout` component.
|
|
32
|
+
*/
|
|
33
|
+
export default function LegacySidebarMenu(props: SidebarMenuProps): JSX.Element;
|
package/index.js
CHANGED
|
@@ -5,6 +5,7 @@ exports.ActionMenuItem = require("./dist/components/ActionMenuItem.js")["default
|
|
|
5
5
|
exports.Body = require("./dist/components/Body.js")["default"]
|
|
6
6
|
exports.Caret = require("./dist/components/Caret.js")["default"]
|
|
7
7
|
exports.Chevron = require("./dist/components/Chevron.js")["default"]
|
|
8
|
+
exports.HashRouter = require("./dist/components/HashRouter.js")["default"]
|
|
8
9
|
exports.Layout = require("./dist/components/Layout.js")["default"]
|
|
9
10
|
exports.Header = require("./dist/components/Header.js")["default"]
|
|
10
11
|
exports.HeaderTitle = require("./dist/components/HeaderTitle.js")["default"]
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blue-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0-rc1",
|
|
4
4
|
"description": "Blue React Components",
|
|
5
5
|
"license": "LGPL-3.0-or-later",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"types": "index.d.ts",
|
|
8
|
-
"homepage": "https://bruegmann.github.io/blue-react/
|
|
8
|
+
"homepage": "https://bruegmann.github.io/blue-react/v10",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/bruegmann/blue-react.git"
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"test": "react-scripts test",
|
|
25
25
|
"eject": "react-scripts eject",
|
|
26
26
|
"predeploy": "npm run build-docs",
|
|
27
|
-
"deploy": "gh-pages --dist build --dest
|
|
27
|
+
"deploy": "gh-pages --dist build --dest v10",
|
|
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
|
"license-report": "npx license-report --prod --output=json > ./src/docs/data/license-report.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@popperjs/core": "^2.11.5",
|
|
35
|
-
"blue-web": "^1.
|
|
35
|
+
"blue-web": "^1.7.0",
|
|
36
36
|
"bootstrap": "~5.3.3",
|
|
37
37
|
"clsx": "^1.1.1"
|
|
38
38
|
},
|