@skbkontur/side-menu 0.1.1

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/CHANGELOG.md ADDED
@@ -0,0 +1,19 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## [0.1.1](https://git.skbkontur.ru/ui/ui-parking/compare/@skbkontur/side-menu@0.1.0...@skbkontur/side-menu@0.1.1) (2022-06-02)
7
+
8
+ **Note:** Version bump only for package @skbkontur/side-menu
9
+
10
+
11
+
12
+
13
+
14
+ # 0.1.0 (2022-06-02)
15
+
16
+
17
+ ### Features
18
+
19
+ * **SideMenu:** implement component ([47f73f5](https://git.skbkontur.ru/ui/ui-parking/commits/47f73f5011893fa8bd0812da83cafdaa89f7e407))
package/README.md ADDED
@@ -0,0 +1,186 @@
1
+ ### Бета-версия компонента SideMenu
2
+
3
+ SideMenu в фирменном стиле (макеты живут [здесь](https://www.figma.com/file/XA8Ytcx8bxemYAkF7eGVSv/%D0%9A%D0%BE%D0%BC%D0%BF%D0%BE%D0%BD%D0%B5%D0%BD%D1%82-%D0%BB%D0%B5%D0%B2%D0%BE%D0%B3%D0%BE-%D0%BC%D0%B5%D0%BD%D1%8E?node-id=0%3A1)).
4
+
5
+ ```jsx harmony
6
+ import {getKonturAvatarUrl} from '@skbkontur/react-ui-addons';
7
+ import {Kontur, Ofd} from '@skbkontur/logos';
8
+ import {MenuItem, ThemeContext, ThemeFactory} from '@skbkontur/react-ui';
9
+ import {SideMenu} from './index';
10
+ import {
11
+ CheckIcon24Regular,
12
+ InfoSquareIcon24Regular,
13
+ DoubleCheckIcon24Regular,
14
+ QuestionSquareIcon24Regular,
15
+ DivideCircleIcon24Regular,
16
+ PlusSquareIcon24Regular,
17
+ WarningTriangleIcon24Regular
18
+ } from '@skbkontur/icons';
19
+
20
+
21
+ const myTheme = ThemeFactory.create({addonsSideMenuHeaderPosition: 'sticky', addonsSideMenuBodyMarginTop: '0px'});
22
+
23
+ <div style={{height: '600px'}}>
24
+ <ThemeContext.Provider value={myTheme}>
25
+ <SideMenu>
26
+ <SideMenu.Header konturLogo={<Kontur/>} productLogo={<Ofd/>}/>
27
+ <SideMenu.Body>
28
+ <SideMenu.Item icon={<DoubleCheckIcon24Regular/>} caption={'Документы к подписанию'} marker={'новое'}>
29
+ <SideMenu.SubItem caption={'Входящие'}/>
30
+ <SideMenu.SubItem caption={'Исходящие'} marker={'2'}>
31
+ <SideMenu.SubItem caption={'Исходящие1'}/>
32
+ <SideMenu.SubItem caption={'Исходящие2'}/>
33
+ </SideMenu.SubItem>
34
+ <SideMenu.SubItem caption={'Внутренние'}/>
35
+ <SideMenu.SubItem caption={'Черновики'}/>
36
+ <SideMenu.SubItem caption={'Удаленные'}/>
37
+ <SideMenu.SubItemHeader>Согласованные</SideMenu.SubItemHeader>
38
+ <SideMenu.SubItem caption={'Требуют обработки'}/>
39
+ <SideMenu.SubItem caption={'Обработанные'}/>
40
+ </SideMenu.Item>
41
+ <SideMenu.Item caption={'Контрагенты'}/>
42
+ <SideMenu.Item icon={<CheckIcon24Regular/>} caption={'Сообщения'} marker={'5'}>
43
+ <SideMenu.SubItem caption={'Входящие'} marker={'5'}/>
44
+ <SideMenu.SubItem caption={'Исходящие'}/>
45
+ <SideMenu.SubItem caption={'Внутренние'}/>
46
+ <SideMenu.SubItem caption={'Черновики'}/>
47
+ <SideMenu.SubItem caption={'Удаленные'}/>
48
+ </SideMenu.Item>
49
+ <SideMenu.Item icon={<QuestionSquareIcon24Regular/>} caption={'Справочная'}/>
50
+ <SideMenu.Divider/>
51
+ <SideMenu.Item icon={<InfoSquareIcon24Regular/>} caption={'Еще раздел'}/>
52
+ <SideMenu.Item icon={<DivideCircleIcon24Regular/>} caption={'Отчетность'}/>
53
+ </SideMenu.Body>
54
+ <SideMenu.Footer>
55
+ <SideMenu.Organisations icon={<PlusSquareIcon24Regular/>}>
56
+ <MenuItem>СКБ Контур</MenuItem>
57
+ <MenuItem>Сириус Базинес</MenuItem>
58
+ <MenuItem>Контур НТТ</MenuItem>
59
+ <MenuItem>Промэлектроника</MenuItem>
60
+ <SideMenu.DropdownMenuSeparator/>
61
+ <MenuItem>Список организаций</MenuItem>
62
+ </SideMenu.Organisations>
63
+ <SideMenu.Item icon={<WarningTriangleIcon24Regular/>} caption={'Реквизиты и настройки'}/>
64
+ <SideMenu.Avatar
65
+ userName={'Ишматова Елена'}
66
+ avatarUrl={getKonturAvatarUrl({
67
+ userId: ''
68
+ })}
69
+ />
70
+ </SideMenu.Footer>
71
+ </SideMenu>
72
+ </ThemeContext.Provider>
73
+ </div>
74
+ ```
75
+
76
+ SideMenu с меню второго уровня в отдельной колонке
77
+
78
+ ```jsx harmony
79
+ import { getKonturAvatarUrl } from '@skbkontur/react-ui-addons';
80
+ import { Buhgalteria, Kontur } from '@skbkontur/logos';
81
+ import { MenuItem, Button, Modal, Input, ThemeContext, ThemeFactory} from '@skbkontur/react-ui';
82
+ import { SideMenu } from './index';
83
+ import {
84
+ CheckIcon24Regular,
85
+ InfoSquareIcon24Regular,
86
+ DoubleCheckIcon24Regular,
87
+ QuestionSquareIcon24Regular,
88
+ DivideCircleIcon24Regular,
89
+ PlusSquareIcon24Regular,
90
+ WarningTriangleIcon24Regular
91
+ } from '@skbkontur/icons';
92
+
93
+ const [opened, setOpened] = React.useState(false);
94
+ const [panel, setPanel] = React.useState(false);
95
+
96
+ const open = () => {
97
+ setOpened(true);
98
+ }
99
+
100
+ const close = () => {
101
+ setOpened(false);
102
+ }
103
+
104
+ const renderModal = () => {
105
+ return (
106
+ <Modal onClose={close}>
107
+ <Modal.Header>Выбор организации</Modal.Header>
108
+ <Modal.Body>
109
+ <Input/>
110
+ <div>Список организаций</div>
111
+ </Modal.Body>
112
+ </Modal>
113
+ );
114
+ }
115
+
116
+ const myTheme = ThemeFactory.create({ addonsSideMenuHeaderPosition: 'sticky', addonsSideMenuBodyMarginTop: '0px' });
117
+
118
+ <div style={{height: '600px', width: '100%', background: '#E5E5E5'}}>
119
+ <ThemeContext.Provider value={myTheme} >
120
+ <SideMenu isSeparatedMenu={true}>
121
+ <SideMenu.Header konturLogo={<Kontur/>} productLogo={<Buhgalteria/>}/>
122
+ <SideMenu.Body>
123
+ <SideMenu.Item caption={'Документы'} marker={'новое'}>
124
+ <SideMenu.SubItemButtons>
125
+ <Button use="primary">Создать</Button>
126
+ <Button>Загрузить</Button>
127
+ </SideMenu.SubItemButtons>
128
+ <SideMenu.SubItem caption={'Входящие'} marker={'5'}>
129
+ <SideMenu.SubItem caption={'Входящие бла-бла-бла'}>
130
+ <SideMenu.SubItem caption={'Входящие11'}>
131
+ <SideMenu.SubItem caption={'Входящие111'}/>
132
+ <SideMenu.SubItem caption={'Входящие112'}/>
133
+ <SideMenu.SubItem caption={'Входящие113'}/>
134
+ </SideMenu.SubItem>
135
+ <SideMenu.SubItem caption={'Входящие12'}/>
136
+ <SideMenu.SubItem caption={'Входящие13'}/>
137
+ </SideMenu.SubItem>
138
+ <SideMenu.SubItem caption={'Входящие2'}>
139
+ <SideMenu.SubItem caption={'Входящие21'}>
140
+ <SideMenu.SubItem caption={'Входящие211'}/>
141
+ <SideMenu.SubItem caption={'Входящие212'}/>
142
+ <SideMenu.SubItem caption={'Входящие213'}/>
143
+ </SideMenu.SubItem>
144
+ <SideMenu.SubItem caption={'Входящие22'}/>
145
+ <SideMenu.SubItem caption={'Входящие23'}/>
146
+ </SideMenu.SubItem>
147
+ <SideMenu.SubItem caption={'Входящие3'}/>
148
+ </SideMenu.SubItem>
149
+ <SideMenu.SubItem caption={'Исходящие'}/>
150
+ <SideMenu.SubItem caption={'Внутренние'}/>
151
+ <SideMenu.SubItem caption={'Черновики'}/>
152
+ <SideMenu.SubItem caption={'Удаленные'}/>
153
+ <SideMenu.SubItemHeader>Согласованные</SideMenu.SubItemHeader>
154
+ <SideMenu.SubItem caption={'Требуют обработки'}/>
155
+ <SideMenu.SubItem caption={'Обработанные'}/>
156
+ </SideMenu.Item>
157
+ <SideMenu.Item caption={'Контрагенты'}/>
158
+ <SideMenu.Item caption={'Сообщения'} marker={'5'}>
159
+ <SideMenu.SubItem caption={'Входящие'} marker={'5'}/>
160
+ <SideMenu.SubItem caption={'Исходящие'}/>
161
+ <SideMenu.SubItem caption={'Внутренние'}/>
162
+ <SideMenu.SubItem caption={'Черновики'}/>
163
+ <SideMenu.SubItem caption={'Удаленные'}/>
164
+ </SideMenu.Item>
165
+ <SideMenu.Item caption={'Справочная'}/>
166
+ <SideMenu.Divider />
167
+ <SideMenu.Item caption={'Еще раздел'}/>
168
+ <SideMenu.Item caption={'Отчетность'}/>
169
+ </SideMenu.Body>
170
+ <SideMenu.Footer>
171
+ <div>
172
+ {opened && renderModal()}
173
+ <SideMenu.Item icon={<PlusSquareIcon24Regular/>} caption={'СКБ Контур'} _onClick={open}/>
174
+ </div>
175
+ <SideMenu.Item icon={<WarningTriangleIcon24Regular/>} caption={'Реквизиты и настройки'}/>
176
+ <SideMenu.Avatar
177
+ userName={'Ишматова Елена'}
178
+ avatarUrl={getKonturAvatarUrl({
179
+ userId: ''
180
+ })}
181
+ />
182
+ </SideMenu.Footer>
183
+ </SideMenu>
184
+ </ThemeContext.Provider>
185
+ </div>
186
+ ```
package/index.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ export * from './src/SideMenu';
2
+ export * from './src/SideMenuOrganisations';
3
+ export * from './src/SideMenuBody';
4
+ export * from './src/SideMenuFooter';
5
+ export * from './src/SideMenuHeader';
6
+ export * from './src/SideMenuItem';
7
+ export * from './src/SideMenuAvatar';
8
+ export * from './src/SideMenuSubItem';
9
+ export * from './src/SideMenuDivider';
10
+ export * from './src/SideMenuSubItemHeader';
11
+ export * from './src/SideMenuSubItemButtons';
package/index.js ADDED
@@ -0,0 +1,11 @@
1
+ export * from './src/SideMenu';
2
+ export * from './src/SideMenuOrganisations';
3
+ export * from './src/SideMenuBody';
4
+ export * from './src/SideMenuFooter';
5
+ export * from './src/SideMenuHeader';
6
+ export * from './src/SideMenuItem';
7
+ export * from './src/SideMenuAvatar';
8
+ export * from './src/SideMenuSubItem';
9
+ export * from './src/SideMenuDivider';
10
+ export * from './src/SideMenuSubItemHeader';
11
+ export * from './src/SideMenuSubItemButtons';
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@skbkontur/side-menu",
3
+ "version": "0.1.1",
4
+ "publishConfig": {
5
+ "access": "public",
6
+ "registry": "https://registry.npmjs.org/"
7
+ },
8
+ "private": false,
9
+ "license": "UNLICENSED",
10
+ "scripts": {
11
+ "clean": "git clean -fdxqe node_modules",
12
+ "build": "yarn tsc",
13
+ "lint": "yarn tsc --noEmit"
14
+ },
15
+ "author": "Kontur",
16
+ "peerDependencies": {
17
+ "@skbkontur/react-ui": ">=4 <5",
18
+ "@skbkontur/react-ui-addons": ">=4.0.1",
19
+ "react": ">=16.9",
20
+ "react-dom": ">=16.9"
21
+ },
22
+ "devDependencies": {
23
+ "@skbkontur/react-ui": "4.0.0"
24
+ },
25
+ "dependencies": {
26
+ "@skbkontur/react-icons": "^5.2.3",
27
+ "tslib": "^1"
28
+ }
29
+ }
@@ -0,0 +1,60 @@
1
+ import React from 'react';
2
+ import { Nullable } from '@skbkontur/react-ui-addons/typings/utility-types';
3
+ import { SideMenuOrganisations } from './SideMenuOrganisations';
4
+ import { SideMenuHeader } from './SideMenuHeader';
5
+ import { SideMenuItem } from './SideMenuItem';
6
+ import { SideMenuAvatar } from './SideMenuAvatar';
7
+ import { SideMenuSubItem } from './SideMenuSubItem';
8
+ import { SideMenuDivider } from './SideMenuDivider';
9
+ import { SideMenuSubItemHeader } from './SideMenuSubItemHeader';
10
+ import { SideMenuSubItemButtons } from './SideMenuSubItemButtons';
11
+ import { SideMenuDropdownMenuSeparator } from './SideMenuDropdownMenuSeparator';
12
+ declare type SideMenuInterface = {
13
+ children?: React.ReactNode;
14
+ };
15
+ declare type DefaultProps = {
16
+ size: 'small' | 'large';
17
+ isSeparatedMenu: boolean;
18
+ };
19
+ export declare type SideMenuProps = SideMenuInterface & Partial<DefaultProps>;
20
+ declare type SideMenuComponentProps = SideMenuInterface & DefaultProps;
21
+ declare type SideMenuState = {
22
+ isMinimised: boolean;
23
+ isAbleToResize: boolean;
24
+ activeItem: Nullable<React.ReactNode>;
25
+ activeSubItem: Nullable<React.ReactNode>;
26
+ hasScrollBar: boolean;
27
+ isTransitioned: boolean;
28
+ };
29
+ export declare class SideMenu extends React.Component<SideMenuComponentProps, SideMenuState> {
30
+ static __KONTUR_REACT_UI__: string;
31
+ private scrollTimer;
32
+ private transitionTimer;
33
+ static defaultProps: DefaultProps;
34
+ constructor(props: SideMenuComponentProps);
35
+ componentDidMount(): void;
36
+ componentWillUnmount(): void;
37
+ static Body: React.FC<import("@skbkontur/react-ui/internal/CommonWrapper").CommonProps>;
38
+ static Footer: React.FC<import("@skbkontur/react-ui/internal/CommonWrapper").CommonProps>;
39
+ static Header: typeof SideMenuHeader;
40
+ static Item: typeof SideMenuItem;
41
+ static SubItem: typeof SideMenuSubItem;
42
+ static SubItemHeader: typeof SideMenuSubItemHeader;
43
+ static Avatar: typeof SideMenuAvatar;
44
+ static Organisations: typeof SideMenuOrganisations;
45
+ static Divider: typeof SideMenuDivider;
46
+ static SubItemButtons: typeof SideMenuSubItemButtons;
47
+ static DropdownMenuSeparator: typeof SideMenuDropdownMenuSeparator;
48
+ private resizeTimer;
49
+ private readonly rightBorderRef;
50
+ render(): JSX.Element;
51
+ private renderMain;
52
+ private setActiveItem;
53
+ private setActiveSubItem;
54
+ private handleMouseEnter;
55
+ private handleMouseLeave;
56
+ private showMinimisedRoot;
57
+ private handleScroll;
58
+ private swipe;
59
+ }
60
+ export {};
@@ -0,0 +1,163 @@
1
+ import { __assign, __extends } from "tslib";
2
+ import React from 'react';
3
+ import { cx } from '@skbkontur/react-ui/lib/theming/Emotion';
4
+ import { CommonWrapper } from '@skbkontur/react-ui/internal/CommonWrapper';
5
+ import { isIE11, isSafari } from '@skbkontur/react-ui/lib/client';
6
+ import { jsStyles } from './SideMenu.styles';
7
+ import { SideMenuOrganisations } from './SideMenuOrganisations';
8
+ import { SideMenuThemeContext } from './SideMenuContext';
9
+ import { SideMenuBody } from './SideMenuBody';
10
+ import { SideMenuFooter } from './SideMenuFooter';
11
+ import { SideMenuHeader } from './SideMenuHeader';
12
+ import { SideMenuItem } from './SideMenuItem';
13
+ import { SideMenuAvatar } from './SideMenuAvatar';
14
+ import { SideMenuSubItem } from './SideMenuSubItem';
15
+ import { SideMenuDivider } from './SideMenuDivider';
16
+ import { SideMenuSubItemHeader } from './SideMenuSubItemHeader';
17
+ import { SideMenuSubItemButtons } from './SideMenuSubItemButtons';
18
+ import { SideMenuDropdownMenuSeparator } from './SideMenuDropdownMenuSeparator';
19
+ var SideMenu = /** @class */ (function (_super) {
20
+ __extends(SideMenu, _super);
21
+ function SideMenu(props) {
22
+ var _this = _super.call(this, props) || this;
23
+ _this.scrollTimer = null;
24
+ _this.transitionTimer = null;
25
+ _this.setActiveItem = function (item) {
26
+ _this.setState({ activeItem: item });
27
+ };
28
+ _this.setActiveSubItem = function (item) {
29
+ _this.setState({ activeSubItem: item });
30
+ };
31
+ _this.handleMouseEnter = function () {
32
+ _this.resizeTimer = setTimeout(function () {
33
+ _this.setState({ isAbleToResize: true });
34
+ }, 500);
35
+ };
36
+ _this.handleMouseLeave = function () {
37
+ if (_this.resizeTimer) {
38
+ clearTimeout(_this.resizeTimer);
39
+ }
40
+ _this.setState({ isAbleToResize: false });
41
+ };
42
+ _this.showMinimisedRoot = function () {
43
+ if (_this.state.isMinimised) {
44
+ _this.setState({ isTransitioned: true });
45
+ _this.setState({ isMinimised: false });
46
+ if (_this.transitionTimer) {
47
+ clearTimeout(_this.transitionTimer);
48
+ }
49
+ _this.transitionTimer = setTimeout(function () {
50
+ _this.setState({ isTransitioned: false });
51
+ }, 1000);
52
+ }
53
+ };
54
+ _this.handleScroll = function (event) {
55
+ var element = event.target;
56
+ if (Math.floor(element.scrollHeight - element.scrollTop) === element.clientHeight) {
57
+ return;
58
+ }
59
+ if (!_this.state.hasScrollBar) {
60
+ _this.setState({ hasScrollBar: true });
61
+ }
62
+ if (_this.scrollTimer) {
63
+ clearTimeout(_this.scrollTimer);
64
+ }
65
+ _this.scrollTimer = setTimeout(function () {
66
+ _this.setState({ hasScrollBar: false });
67
+ }, 200);
68
+ };
69
+ _this.swipe = function (rightBorder) {
70
+ var isMouseDown = false, startX = 0;
71
+ var checkStart = function (event) {
72
+ startX = event.pageX;
73
+ isMouseDown = true;
74
+ };
75
+ var checkMove = function (event) {
76
+ if (!isMouseDown) {
77
+ return;
78
+ }
79
+ if (event.pageX < startX && _this.state.isAbleToResize) {
80
+ _this.setState({ isMinimised: true });
81
+ }
82
+ return;
83
+ };
84
+ var checkEnd = function () {
85
+ isMouseDown = false;
86
+ };
87
+ rightBorder.addEventListener('mousedown', checkStart);
88
+ rightBorder.addEventListener('mousemove', checkMove);
89
+ document.addEventListener('mouseup', checkEnd);
90
+ };
91
+ _this.rightBorderRef = React.createRef();
92
+ _this.state = {
93
+ isMinimised: false,
94
+ isAbleToResize: false,
95
+ activeItem: null,
96
+ activeSubItem: null,
97
+ hasScrollBar: false,
98
+ isTransitioned: false,
99
+ };
100
+ return _this;
101
+ }
102
+ SideMenu.prototype.componentDidMount = function () {
103
+ if (this.rightBorderRef.current) {
104
+ this.swipe(this.rightBorderRef.current);
105
+ }
106
+ };
107
+ SideMenu.prototype.componentWillUnmount = function () {
108
+ if (this.scrollTimer) {
109
+ clearTimeout(this.scrollTimer);
110
+ }
111
+ if (this.transitionTimer) {
112
+ clearTimeout(this.transitionTimer);
113
+ }
114
+ };
115
+ SideMenu.prototype.render = function () {
116
+ return this.renderMain();
117
+ };
118
+ SideMenu.prototype.renderMain = function () {
119
+ var _a, _b, _c;
120
+ var rootClasses = cx((_a = {},
121
+ _a[jsStyles.root()] = true,
122
+ _a[jsStyles.rootSafari()] = isSafari,
123
+ _a[jsStyles.minimisedRoot()] = this.state.isMinimised,
124
+ _a[jsStyles.rootWithInnerSubMenu()] = !this.props.isSeparatedMenu,
125
+ _a[jsStyles.rootWithoutScrollBar()] = !this.state.hasScrollBar,
126
+ _a));
127
+ return (React.createElement(SideMenuThemeContext.Provider, { value: {
128
+ isMinimised: this.state.isMinimised,
129
+ isTransitioned: this.state.isTransitioned,
130
+ isSeparatedMenu: this.props.isSeparatedMenu,
131
+ size: this.props.size,
132
+ activeItem: this.state.activeItem,
133
+ setActiveItem: this.setActiveItem,
134
+ activeSubItem: this.state.activeSubItem,
135
+ setActiveSubItem: this.setActiveSubItem,
136
+ } },
137
+ React.createElement(CommonWrapper, __assign({}, this.props),
138
+ React.createElement("aside", { className: cx((_b = {}, _b[jsStyles.rootWrapper()] = true, _b[jsStyles.rootWrapperIE()] = isIE11, _b)), "data-tid": "SideMenu" },
139
+ React.createElement("div", { className: rootClasses, onMouseOver: this.showMinimisedRoot, onFocus: this.showMinimisedRoot, onScroll: this.handleScroll }, this.props.children),
140
+ React.createElement("div", { className: cx((_c = {},
141
+ _c[jsStyles.rightBorder()] = true,
142
+ _c[jsStyles.resizableRightBorder()] = this.state.isAbleToResize,
143
+ _c)), ref: this.rightBorderRef, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave })))));
144
+ };
145
+ SideMenu.__KONTUR_REACT_UI__ = 'SideMenu';
146
+ SideMenu.defaultProps = {
147
+ size: 'small',
148
+ isSeparatedMenu: false,
149
+ };
150
+ SideMenu.Body = SideMenuBody;
151
+ SideMenu.Footer = SideMenuFooter;
152
+ SideMenu.Header = SideMenuHeader;
153
+ SideMenu.Item = SideMenuItem;
154
+ SideMenu.SubItem = SideMenuSubItem;
155
+ SideMenu.SubItemHeader = SideMenuSubItemHeader;
156
+ SideMenu.Avatar = SideMenuAvatar;
157
+ SideMenu.Organisations = SideMenuOrganisations;
158
+ SideMenu.Divider = SideMenuDivider;
159
+ SideMenu.SubItemButtons = SideMenuSubItemButtons;
160
+ SideMenu.DropdownMenuSeparator = SideMenuDropdownMenuSeparator;
161
+ return SideMenu;
162
+ }(React.Component));
163
+ export { SideMenu };
@@ -0,0 +1,54 @@
1
+ export declare const jsStyles: {
2
+ root(): string;
3
+ rootSafari(): string;
4
+ rootWithoutScrollBar(): string;
5
+ minimisedRoot(): string;
6
+ rootWithInnerSubMenu(): string;
7
+ rootWrapper(): string;
8
+ rootWrapperIE(): string;
9
+ rightBorder(): string;
10
+ resizableRightBorder(): string;
11
+ body(): string;
12
+ footer(): string;
13
+ headerWrapper(): string;
14
+ headerMinimisedWrapper(): string;
15
+ headerFixedWrapper(): string;
16
+ item(): string;
17
+ subItem(): string;
18
+ focusedItem(): string;
19
+ activeItem(): string;
20
+ activeSubItem(): string;
21
+ itemWrapper(): string;
22
+ itemMultilineWrapper(): string;
23
+ itemLargeWrapper(): string;
24
+ subItemLargeWrapper(): string;
25
+ itemLargeMultilineWrapper(): string;
26
+ itemLargeWrapperWithoutIcon(): string;
27
+ subItemWrapper(): string;
28
+ itemWrapperWithoutIcon(): string;
29
+ itemText(): string;
30
+ itemTextTransitioned(): string;
31
+ itemTextMultiline(): string;
32
+ subItemText(): string;
33
+ itemTextWithoutItemIcon(): string;
34
+ itemTextWithoutColumnIcons(): string;
35
+ subItemTextWithoutColumnIcons(): string;
36
+ itemTextLarge(): string;
37
+ divider(): string;
38
+ icon(): string;
39
+ iconMultiline(): string;
40
+ iconLarge(): string;
41
+ iconSubItemLarge(): string;
42
+ iconSubItem(): string;
43
+ avatarIcon(): string;
44
+ headerIcon(): string;
45
+ marker(): string;
46
+ markerMultiline(): string;
47
+ dropdownMenuSeparator(): string;
48
+ subItemHeader(): string;
49
+ separatedMenu(): string;
50
+ buttonsGroup(): string;
51
+ dropdownWrapper(): string;
52
+ dropdownLabel(): string;
53
+ subItemMenu(): string;
54
+ };