ui-beyable 1.0.6 → 1.0.8
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/lib/cjs/components/App/App.d.ts +7 -0
- package/lib/cjs/components/App/types.d.ts +20 -0
- package/lib/cjs/components/AppHeader/AppHeader.d.ts +4 -0
- package/lib/cjs/components/AppHeader/types.d.ts +14 -0
- package/lib/cjs/components/Panel/Panel.d.ts +6 -4
- package/lib/cjs/components/Panel/types.d.ts +24 -2
- package/lib/cjs/index.css +1448 -2
- package/lib/cjs/index.d.ts +15 -3
- package/lib/cjs/index.js +136 -17
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/components/App/App.d.ts +7 -0
- package/lib/esm/components/App/types.d.ts +20 -0
- package/lib/esm/components/AppHeader/AppHeader.d.ts +4 -0
- package/lib/esm/components/AppHeader/types.d.ts +14 -0
- package/lib/esm/components/Panel/Panel.d.ts +6 -4
- package/lib/esm/components/Panel/types.d.ts +24 -2
- package/lib/esm/index.d.ts +15 -3
- package/lib/esm/index.js +130 -18
- package/lib/esm/index.js.map +1 -1
- package/package.json +2 -1
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":";;;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;AACA,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AAC9C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;AAC1B;AACA,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AAChD,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC9B,KAAK;AACL,GAAG,MAAM;AACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5B,GAAG;AACH;AACA,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE;AACxB,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;AACnC,GAAG,MAAM;AACT,IAAI,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AACpD,GAAG;AACH
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../node_modules/style-inject/dist/style-inject.es.js"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n"],"names":[],"mappings":";;;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;AACA,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AAC9C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;AAC1B;AACA,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AAChD,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC9B,KAAK;AACL,GAAG,MAAM;AACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5B,GAAG;AACH;AACA,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE;AACxB,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;AACnC,GAAG,MAAM;AACT,IAAI,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AACpD,GAAG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IAppRoot, IAppHeader, IAppLinkWrapper, IAppLogo } from './types';
|
|
3
|
+
declare function AppRoot({ children }: IAppRoot): JSX.Element;
|
|
4
|
+
declare function AppHeader({ logo, primaryLinks, secondaryLinks }: IAppHeader): JSX.Element;
|
|
5
|
+
declare function AppLinkWrapper({ children, isActive }: IAppLinkWrapper): JSX.Element;
|
|
6
|
+
declare function AppLogo({ name, overlayLink }: IAppLogo): JSX.Element;
|
|
7
|
+
export { AppRoot, AppHeader, AppLinkWrapper, AppLogo };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IAppRoot {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
interface IAppHeader {
|
|
6
|
+
logo: React.ReactNode;
|
|
7
|
+
primaryLinks?: React.ReactNode;
|
|
8
|
+
secondaryLinks?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
interface IAppLinkWrapper {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
isActive?: boolean;
|
|
13
|
+
}
|
|
14
|
+
interface IAppLogo {
|
|
15
|
+
name: string;
|
|
16
|
+
href?: string;
|
|
17
|
+
className?: string;
|
|
18
|
+
overlayLink?: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
export type { IAppRoot, IAppHeader, IAppLinkWrapper, IAppLogo };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IAppHeader {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose?: (e: any) => any;
|
|
6
|
+
hasClose?: boolean;
|
|
7
|
+
side?: string;
|
|
8
|
+
width?: number;
|
|
9
|
+
overlay?: boolean;
|
|
10
|
+
closeOnOverlay?: boolean;
|
|
11
|
+
hasOffset?: boolean;
|
|
12
|
+
offsetWidth?: number;
|
|
13
|
+
}
|
|
14
|
+
export type { IAppHeader };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { IPanel, IPanelClose } from './types';
|
|
3
|
-
declare function Panel({ children, isOpen, onClose, width,
|
|
4
|
-
declare function PanelClose({ onClick }: IPanelClose): JSX.Element;
|
|
5
|
-
|
|
2
|
+
import { IPanel, IPanelClose, IPanelHeader, IPanelBody } from './types';
|
|
3
|
+
declare function Panel({ children, isOpen, onClose, width, hasClose, side, overlay, closeOnOverlay, offsetWidth, hasOffset }: IPanel): JSX.Element;
|
|
4
|
+
declare function PanelClose({ onClick, position }: IPanelClose): JSX.Element;
|
|
5
|
+
declare function PanelHeader({ children, className, title, intro, desc, hasClose, hasBorder, hasBottomPadding, primaryAction, secondaryAction, onClose }: IPanelHeader): JSX.Element;
|
|
6
|
+
declare function PanelBody({ children, className, style, color, position, hasVerticalMargin }: IPanelBody): JSX.Element;
|
|
7
|
+
export { Panel, PanelClose, PanelHeader, PanelBody };
|
|
@@ -3,7 +3,7 @@ interface IPanel {
|
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
onClose?: (e: any) => any;
|
|
6
|
-
|
|
6
|
+
hasClose?: boolean;
|
|
7
7
|
side?: string;
|
|
8
8
|
width?: number;
|
|
9
9
|
overlay?: boolean;
|
|
@@ -13,5 +13,27 @@ interface IPanel {
|
|
|
13
13
|
}
|
|
14
14
|
interface IPanelClose {
|
|
15
15
|
onClick?: (e: any) => any;
|
|
16
|
+
position?: string;
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
+
interface IPanelHeader {
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
className?: string;
|
|
21
|
+
title?: string;
|
|
22
|
+
intro?: string;
|
|
23
|
+
desc?: string;
|
|
24
|
+
hasClose?: boolean;
|
|
25
|
+
hasBorder?: boolean;
|
|
26
|
+
hasBottomPadding?: boolean;
|
|
27
|
+
primaryAction?: React.ReactNode;
|
|
28
|
+
secondaryAction?: React.ReactNode;
|
|
29
|
+
onClose?: (e: any) => any;
|
|
30
|
+
}
|
|
31
|
+
interface IPanelBody {
|
|
32
|
+
children: React.ReactNode;
|
|
33
|
+
className?: string;
|
|
34
|
+
style?: React.CSSProperties;
|
|
35
|
+
color?: string;
|
|
36
|
+
position?: string;
|
|
37
|
+
hasVerticalMargin?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export type { IPanel, IPanelClose, IPanelHeader, IPanelBody };
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
|
+
import { AppRoot, AppHeader, AppLinkWrapper, AppLogo } from './components/App/App';
|
|
1
2
|
import Btn from './components/Button/Btn';
|
|
2
3
|
import Modal from './components/Modal/Modal';
|
|
3
|
-
import { Panel, PanelClose } from './components/Panel/Panel';
|
|
4
|
+
import { Panel, PanelClose, PanelHeader, PanelBody } from './components/Panel/Panel';
|
|
4
5
|
import Portal from './components/Portal/BYportal';
|
|
5
6
|
import Collapse from './components/Collapse/Collapse';
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
declare const Theme: {
|
|
8
|
+
typo: {
|
|
9
|
+
readonly h1: string;
|
|
10
|
+
readonly h2: string;
|
|
11
|
+
readonly h3: string;
|
|
12
|
+
};
|
|
13
|
+
colors: {
|
|
14
|
+
readonly red: string;
|
|
15
|
+
readonly blue: string;
|
|
16
|
+
readonly green: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export { Theme, AppRoot, AppHeader, AppLinkWrapper, AppLogo, Btn, Modal, Panel, PanelClose, PanelHeader, PanelBody, Portal, Collapse };
|