@northlight/ui 1.5.0 → 1.5.2
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/es/{mediatool-ui-framework.d.mts → northlight.d.mts} +61 -83
- package/dist/es/northlight.mjs +11948 -0
- package/dist/es/northlight.mjs.map +1 -0
- package/dist/ts/types.d.ts +61 -83
- package/dist/umd/northlight.js +12773 -0
- package/dist/umd/northlight.js.map +1 -0
- package/dist/umd/northlight.min.js +28 -0
- package/dist/umd/northlight.min.js.map +1 -0
- package/package.json +14 -43
- package/dist/es/mediatool-ui-framework.mjs +0 -88049
- package/dist/es/mediatool-ui-framework.mjs.map +0 -1
- package/dist/es/sandbox.d.mts +0 -64
- package/dist/es/sandbox.mjs +0 -3747
- package/dist/es/sandbox.mjs.map +0 -1
- package/dist/umd/mediatool-ui-framework.js +0 -88449
- package/dist/umd/mediatool-ui-framework.js.map +0 -1
- package/dist/umd/mediatool-ui-framework.min.js +0 -459
- package/dist/umd/mediatool-ui-framework.min.js.map +0 -1
package/dist/es/sandbox.d.mts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { RouteComponentProps } from 'react-router-dom';
|
|
3
|
-
|
|
4
|
-
type DefaultComponent = {
|
|
5
|
-
default: ComponentType<any>;
|
|
6
|
-
};
|
|
7
|
-
interface Page {
|
|
8
|
-
path: string;
|
|
9
|
-
title: string;
|
|
10
|
-
component: () => Promise<DefaultComponent>;
|
|
11
|
-
extraProps?: Record<string, any>;
|
|
12
|
-
}
|
|
13
|
-
interface MainPage extends Page {
|
|
14
|
-
Icon: any;
|
|
15
|
-
subItems?: Page[];
|
|
16
|
-
}
|
|
17
|
-
interface SearchBarComponentsBarProps {
|
|
18
|
-
routes: MainPage[];
|
|
19
|
-
}
|
|
20
|
-
interface RouteOption {
|
|
21
|
-
label: string;
|
|
22
|
-
value: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface RoutingProps {
|
|
26
|
-
routes: MainPage[];
|
|
27
|
-
basename?: string;
|
|
28
|
-
fallback?: string;
|
|
29
|
-
}
|
|
30
|
-
declare const Routing: ({ routes, basename, fallback }: RoutingProps) => JSX.Element;
|
|
31
|
-
|
|
32
|
-
type LazyPageProps = {
|
|
33
|
-
loader: () => Promise<DefaultComponent>;
|
|
34
|
-
children?: (component: ComponentType<any>, props: RouteComponentProps) => ReactNode;
|
|
35
|
-
} & RouteComponentProps;
|
|
36
|
-
declare const LazyPage: ({ loader, children, ...rest }: LazyPageProps) => JSX.Element;
|
|
37
|
-
|
|
38
|
-
interface MenuItemProps {
|
|
39
|
-
path: string;
|
|
40
|
-
title: string;
|
|
41
|
-
Icon: any;
|
|
42
|
-
}
|
|
43
|
-
interface MainMenuProps {
|
|
44
|
-
menuItems: MenuItemProps[];
|
|
45
|
-
}
|
|
46
|
-
declare const MainMenu: ({ menuItems }: MainMenuProps) => JSX.Element;
|
|
47
|
-
|
|
48
|
-
interface SubMenuItemProps {
|
|
49
|
-
path: string;
|
|
50
|
-
title: string;
|
|
51
|
-
}
|
|
52
|
-
interface SubMenuProps {
|
|
53
|
-
mainRoutes: MainPage[];
|
|
54
|
-
}
|
|
55
|
-
declare const SubMenu: ({ mainRoutes }: SubMenuProps) => JSX.Element;
|
|
56
|
-
|
|
57
|
-
declare const SearchComponentsBar: ({ routes, }: SearchBarComponentsBarProps) => JSX.Element;
|
|
58
|
-
|
|
59
|
-
interface SandboxProps {
|
|
60
|
-
routes: MainPage[];
|
|
61
|
-
}
|
|
62
|
-
declare const Sandbox: ({ routes }: SandboxProps) => JSX.Element;
|
|
63
|
-
|
|
64
|
-
export { DefaultComponent, LazyPage, LazyPageProps, MainMenu, MainMenuProps, MainPage, MenuItemProps, Page, RouteOption, Routing, Sandbox, SandboxProps, SearchBarComponentsBarProps, SearchComponentsBar, SubMenu, SubMenuItemProps };
|