@moosend/mooskin 1.0.0 → 1.0.4

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.
Files changed (305) hide show
  1. package/lib/Checkbox/Checkbox.d.ts +1 -1
  2. package/lib/Checkbox/styles.d.ts +1 -1
  3. package/lib/Drawer/styles.d.ts +1 -1
  4. package/lib/Input/styles.d.ts +1 -1
  5. package/lib/NumberLabel/model.d.ts +1 -1
  6. package/lib/Radio/Radio.d.ts +1 -1
  7. package/lib/Radio/styles.d.ts +1 -1
  8. package/lib/Styled/model.d.ts +15 -0
  9. package/lib/index/index.d.ts +9 -9
  10. package/lib/index/index.js +2 -2
  11. package/package.json +2 -5
  12. package/lib/Button/index.d.ts +0 -2
  13. package/lib/Button/index.js +0 -1
  14. package/lib/Button/style.css +0 -1
  15. package/lib/Carousel/index.d.ts +0 -2
  16. package/lib/Carousel/index.js +0 -12
  17. package/lib/Carousel/style.css +0 -326
  18. package/lib/CheckListItem/CheckListItem.d.ts +0 -24
  19. package/lib/CheckListItem/index.d.ts +0 -2
  20. package/lib/CheckListItem/index.js +0 -1
  21. package/lib/CheckListItem/style.css +0 -5
  22. package/lib/Checkbox/index.d.ts +0 -3
  23. package/lib/Checkbox/index.js +0 -1
  24. package/lib/Checkbox/style.css +0 -14
  25. package/lib/ClipboardButton/ClipboardButton.d.ts +0 -19
  26. package/lib/ClipboardButton/index.d.ts +0 -2
  27. package/lib/ClipboardButton/index.js +0 -1
  28. package/lib/ClipboardButton/style.css +0 -1
  29. package/lib/DatePicker/index.d.ts +0 -3
  30. package/lib/DatePicker/index.js +0 -12
  31. package/lib/DatePicker/style.css +0 -7
  32. package/lib/DateRange/index.d.ts +0 -2
  33. package/lib/DateRange/index.js +0 -12
  34. package/lib/DateRange/style.css +0 -19
  35. package/lib/Fieldset/Fieldset.d.ts +0 -16
  36. package/lib/Fieldset/index.d.ts +0 -2
  37. package/lib/Fieldset/index.js +0 -1
  38. package/lib/Fieldset/style.css +0 -2
  39. package/lib/File/FileUpload.d.ts +0 -43
  40. package/lib/File/index.d.ts +0 -2
  41. package/lib/File/index.js +0 -1
  42. package/lib/File/style.css +0 -1
  43. package/lib/Form/Form.d.ts +0 -36
  44. package/lib/Form/index.d.ts +0 -3
  45. package/lib/Form/index.js +0 -1
  46. package/lib/Form/style.css +0 -1
  47. package/lib/Grid/index.d.ts +0 -4
  48. package/lib/Grid/index.js +0 -1
  49. package/lib/Grid/style.css +0 -1
  50. package/lib/Headings/H1/H1.d.ts +0 -11
  51. package/lib/Headings/H2/H2.d.ts +0 -11
  52. package/lib/Headings/H3/H3.d.ts +0 -11
  53. package/lib/Headings/H4/H4.d.ts +0 -11
  54. package/lib/Headings/H5/H5.d.ts +0 -11
  55. package/lib/Headings/H6/H6.d.ts +0 -11
  56. package/lib/Headings/index.d.ts +0 -6
  57. package/lib/Headings/index.js +0 -1
  58. package/lib/Headings/props.d.ts +0 -7
  59. package/lib/Headings/style.css +0 -12
  60. package/lib/HorizontalRangeBar/HorizontalRangeBar.d.ts +0 -25
  61. package/lib/HorizontalRangeBar/index.d.ts +0 -2
  62. package/lib/HorizontalRangeBar/index.js +0 -1
  63. package/lib/HorizontalRangeBar/style.css +0 -1
  64. package/lib/Input/index.d.ts +0 -2
  65. package/lib/Input/index.js +0 -1
  66. package/lib/Input/style.css +0 -465
  67. package/lib/Label/index.d.ts +0 -2
  68. package/lib/Label/index.js +0 -1
  69. package/lib/Label/style.css +0 -2
  70. package/lib/List/index.d.ts +0 -3
  71. package/lib/List/index.js +0 -1
  72. package/lib/List/style.css +0 -2
  73. package/lib/Loader/index.d.ts +0 -2
  74. package/lib/Loader/index.js +0 -1
  75. package/lib/Loader/style.css +0 -1
  76. package/lib/LoadingBar/index.d.ts +0 -2
  77. package/lib/LoadingBar/index.js +0 -1
  78. package/lib/LoadingBar/style.css +0 -1
  79. package/lib/Modal/index.d.ts +0 -2
  80. package/lib/Modal/index.js +0 -1
  81. package/lib/Modal/style.css +0 -15
  82. package/lib/Pagination/index.d.ts +0 -2
  83. package/lib/Pagination/index.js +0 -1
  84. package/lib/Pagination/style.css +0 -1
  85. package/lib/Radio/index.d.ts +0 -3
  86. package/lib/Radio/index.js +0 -1
  87. package/lib/Radio/style.css +0 -13
  88. package/lib/RadioAccordion/RadioAccordion.d.ts +0 -49
  89. package/lib/RadioAccordion/index.d.ts +0 -3
  90. package/lib/RadioAccordion/index.js +0 -1
  91. package/lib/RadioAccordion/style.css +0 -1
  92. package/lib/Select/index.d.ts +0 -3
  93. package/lib/Select/index.js +0 -1
  94. package/lib/Select/style.css +0 -2
  95. package/lib/SideBar/SideBar.d.ts +0 -79
  96. package/lib/SideBar/index.d.ts +0 -3
  97. package/lib/SideBar/index.js +0 -1
  98. package/lib/SideBar/style.css +0 -3
  99. package/lib/Slider/index.d.ts +0 -3
  100. package/lib/Slider/index.js +0 -1
  101. package/lib/Slider/style.css +0 -2
  102. package/lib/SmallIconButton/SmallIconButton.d.ts +0 -23
  103. package/lib/SmallIconButton/index.d.ts +0 -2
  104. package/lib/SmallIconButton/index.js +0 -1
  105. package/lib/SmallIconButton/style.css +0 -2
  106. package/lib/StatsBox/StatsBox.d.ts +0 -16
  107. package/lib/StatsBox/index.d.ts +0 -2
  108. package/lib/StatsBox/index.js +0 -1
  109. package/lib/StatsBox/style.css +0 -2
  110. package/lib/Steps/index.d.ts +0 -3
  111. package/lib/Steps/index.js +0 -1
  112. package/lib/Steps/style.css +0 -1
  113. package/lib/Switch/index.d.ts +0 -2
  114. package/lib/Switch/index.js +0 -1
  115. package/lib/Switch/style.css +0 -1
  116. package/lib/TabbedContent/TabbedContent.d.ts +0 -72
  117. package/lib/TabbedContent/index.d.ts +0 -3
  118. package/lib/TabbedContent/index.js +0 -1
  119. package/lib/TabbedContent/style.css +0 -4
  120. package/lib/Table/index.d.ts +0 -3
  121. package/lib/Table/index.js +0 -1
  122. package/lib/Table/style.css +0 -6
  123. package/lib/Tags/index.d.ts +0 -2
  124. package/lib/Tags/index.js +0 -1
  125. package/lib/Tags/style.css +0 -3
  126. package/lib/TextArea/index.d.ts +0 -2
  127. package/lib/TextArea/index.js +0 -1
  128. package/lib/TextArea/style.css +0 -1
  129. package/lib/TextEditor/index.d.ts +0 -2
  130. package/lib/TextEditor/index.js +0 -28
  131. package/lib/TextEditor/style.css +0 -852
  132. package/lib/TopNotification/TopNotification.d.ts +0 -27
  133. package/lib/TopNotification/index.d.ts +0 -2
  134. package/lib/TopNotification/index.js +0 -1
  135. package/lib/TopNotification/style.css +0 -2
  136. package/lib/Topbar/Topbar.d.ts +0 -23
  137. package/lib/Topbar/index.d.ts +0 -2
  138. package/lib/Topbar/index.js +0 -1
  139. package/lib/Topbar/style.css +0 -1
  140. package/lib/_utils/index.js +0 -1
  141. package/lib/components/ActionsDropdown/ActionsDropdown.d.ts +0 -6
  142. package/lib/components/ActionsDropdown/model.d.ts +0 -10
  143. package/lib/components/ActionsDropdown/styles.d.ts +0 -6
  144. package/lib/components/Alert/Alert.d.ts +0 -7
  145. package/lib/components/Alert/model.d.ts +0 -5
  146. package/lib/components/Alert/styles.d.ts +0 -7
  147. package/lib/components/Anchor/Anchor.d.ts +0 -3
  148. package/lib/components/Anchor/model.d.ts +0 -4
  149. package/lib/components/Anchor/styles.d.ts +0 -3
  150. package/lib/components/Box/Box.d.ts +0 -3
  151. package/lib/components/Box/model.d.ts +0 -113
  152. package/lib/components/Box/styles.d.ts +0 -7
  153. package/lib/components/Button/Button.d.ts +0 -5
  154. package/lib/components/Button/model.d.ts +0 -6
  155. package/lib/components/Button/styles.d.ts +0 -6
  156. package/lib/components/Carousel/Carousel.d.ts +0 -7
  157. package/lib/components/Carousel/model.d.ts +0 -33
  158. package/lib/components/Carousel/styles.d.ts +0 -4
  159. package/lib/components/Checkbox/Checkbox.d.ts +0 -8
  160. package/lib/components/Checkbox/model.d.ts +0 -12
  161. package/lib/components/Checkbox/styles.d.ts +0 -6
  162. package/lib/components/DatePicker/DatePicker.d.ts +0 -3
  163. package/lib/components/DatePicker/model.d.ts +0 -11
  164. package/lib/components/DateRange/DateRange.d.ts +0 -5
  165. package/lib/components/DateRange/model.d.ts +0 -13
  166. package/lib/components/DateSelect/DateSelect.d.ts +0 -3
  167. package/lib/components/DateSelect/model.d.ts +0 -7
  168. package/lib/components/DateTimePicker/DateTimePicker.d.ts +0 -3
  169. package/lib/components/DateTimePicker/model.d.ts +0 -11
  170. package/lib/components/Description/Description.d.ts +0 -3
  171. package/lib/components/Description/styles.d.ts +0 -3
  172. package/lib/components/Drawer/Drawer.d.ts +0 -10
  173. package/lib/components/Drawer/model.d.ts +0 -21
  174. package/lib/components/Drawer/styles.d.ts +0 -25
  175. package/lib/components/Expandable/Expandable.d.ts +0 -9
  176. package/lib/components/Expandable/model.d.ts +0 -13
  177. package/lib/components/Expandable/styles.d.ts +0 -9
  178. package/lib/components/Footer/Footer.d.ts +0 -6
  179. package/lib/components/Footer/styles.d.ts +0 -7
  180. package/lib/components/Grid/Grid.d.ts +0 -5
  181. package/lib/components/Grid/model.d.ts +0 -18
  182. package/lib/components/Grid/styles.d.ts +0 -5
  183. package/lib/components/IconButton/IconButton.d.ts +0 -3
  184. package/lib/components/IconButton/model.d.ts +0 -4
  185. package/lib/components/IconButton/styles.d.ts +0 -3
  186. package/lib/components/Image/Image.d.ts +0 -3
  187. package/lib/components/Image/styles.d.ts +0 -3
  188. package/lib/components/Input/Input.d.ts +0 -12
  189. package/lib/components/Input/model.d.ts +0 -27
  190. package/lib/components/Input/styles.d.ts +0 -12
  191. package/lib/components/Label/Label.d.ts +0 -3
  192. package/lib/components/Label/model.d.ts +0 -5
  193. package/lib/components/Label/styles.d.ts +0 -3
  194. package/lib/components/Layout/Layout.d.ts +0 -3
  195. package/lib/components/Layout/model.d.ts +0 -5
  196. package/lib/components/Layout/styles.d.ts +0 -3
  197. package/lib/components/List/List.d.ts +0 -8
  198. package/lib/components/List/styles.d.ts +0 -7
  199. package/lib/components/Loader/Loader.d.ts +0 -3
  200. package/lib/components/Loader/model.d.ts +0 -5
  201. package/lib/components/Loader/styles.d.ts +0 -3
  202. package/lib/components/LoadingBar/LoadingBar.d.ts +0 -3
  203. package/lib/components/LoadingBar/model.d.ts +0 -7
  204. package/lib/components/LoadingBar/styles.d.ts +0 -3
  205. package/lib/components/Modal/Modal.d.ts +0 -10
  206. package/lib/components/Modal/model.d.ts +0 -15
  207. package/lib/components/Modal/styles.d.ts +0 -14
  208. package/lib/components/NumberLabel/NumberLabel.d.ts +0 -3
  209. package/lib/components/NumberLabel/model.d.ts +0 -7
  210. package/lib/components/Pagination/Pagination.d.ts +0 -4
  211. package/lib/components/Pagination/model.d.ts +0 -10
  212. package/lib/components/Pagination/styles.d.ts +0 -6
  213. package/lib/components/Radio/Radio.d.ts +0 -8
  214. package/lib/components/Radio/model.d.ts +0 -13
  215. package/lib/components/Radio/styles.d.ts +0 -6
  216. package/lib/components/Select/Select.d.ts +0 -13
  217. package/lib/components/Select/model.d.ts +0 -22
  218. package/lib/components/Select/styles.d.ts +0 -13
  219. package/lib/components/Selector/Selector.d.ts +0 -4
  220. package/lib/components/Selector/model.d.ts +0 -10
  221. package/lib/components/Selector/styles.d.ts +0 -4
  222. package/lib/components/Sidemenu/Sidemenu.d.ts +0 -4
  223. package/lib/components/Sidemenu/model.d.ts +0 -10
  224. package/lib/components/Sidemenu/styles.d.ts +0 -4
  225. package/lib/components/Skeleton/Skeleton.d.ts +0 -5
  226. package/lib/components/Skeleton/model.d.ts +0 -14
  227. package/lib/components/Skeleton/styles.d.ts +0 -6
  228. package/lib/components/Slider/Model.d.ts +0 -7
  229. package/lib/components/Slider/Slider.d.ts +0 -3
  230. package/lib/components/Slider/styles.d.ts +0 -3
  231. package/lib/components/Stack/Stack.d.ts +0 -5
  232. package/lib/components/Stack/model.d.ts +0 -6
  233. package/lib/components/Stack/styles.d.ts +0 -3
  234. package/lib/components/Steps/Steps.d.ts +0 -6
  235. package/lib/components/Steps/model.d.ts +0 -16
  236. package/lib/components/Steps/styles.d.ts +0 -7
  237. package/lib/components/Styled/GlobalStyles.d.ts +0 -2
  238. package/lib/components/Styled/MooskinContextProvider.d.ts +0 -6
  239. package/lib/components/Styled/model.d.ts +0 -74
  240. package/lib/components/Switch/Switch.d.ts +0 -4
  241. package/lib/components/Switch/model.d.ts +0 -16
  242. package/lib/components/Switch/styles.d.ts +0 -7
  243. package/lib/components/Table/Table.d.ts +0 -7
  244. package/lib/components/Table/styles.d.ts +0 -7
  245. package/lib/components/Tabs/Tabs.d.ts +0 -6
  246. package/lib/components/Tabs/model.d.ts +0 -13
  247. package/lib/components/Tabs/styles.d.ts +0 -6
  248. package/lib/components/Tags/Tags.d.ts +0 -7
  249. package/lib/components/Tags/model.d.ts +0 -18
  250. package/lib/components/Tags/styles.d.ts +0 -8
  251. package/lib/components/Text/Text.d.ts +0 -3
  252. package/lib/components/Text/model.d.ts +0 -4
  253. package/lib/components/Text/styles.d.ts +0 -3
  254. package/lib/components/TextArea/TextArea.d.ts +0 -3
  255. package/lib/components/TextArea/model.d.ts +0 -4
  256. package/lib/components/TextArea/styles.d.ts +0 -3
  257. package/lib/components/TextEditor/TextEditor.d.ts +0 -3
  258. package/lib/components/TextEditor/model.d.ts +0 -14
  259. package/lib/components/_utils/adapter.d.ts +0 -1
  260. package/lib/components/_utils/globals/screens.d.ts +0 -11
  261. package/lib/components/_utils/globals/variables.d.ts +0 -3
  262. package/lib/components/_utils/helper.d.ts +0 -3
  263. package/lib/components/_utils/index.d.ts +0 -3
  264. package/lib/components/_utils/test-setup.d.ts +0 -0
  265. package/lib/components/_utils/types/commonTypes.d.ts +0 -4
  266. package/lib/components/index/index.d.ts +0 -85
  267. package/lib/stories/ActionsDropdown.stories.d.ts +0 -6
  268. package/lib/stories/Alert.stories.d.ts +0 -5
  269. package/lib/stories/Anchor.stories.d.ts +0 -5
  270. package/lib/stories/Box.stories.d.ts +0 -4
  271. package/lib/stories/Button.stories.d.ts +0 -8
  272. package/lib/stories/Carousel.stories.d.ts +0 -4
  273. package/lib/stories/Checkbox.stories.d.ts +0 -8
  274. package/lib/stories/DatePicker.stories.d.ts +0 -4
  275. package/lib/stories/DateRange.stories.d.ts +0 -4
  276. package/lib/stories/DateSelect.stories.d.ts +0 -9
  277. package/lib/stories/DateTimePicker.stories.d.ts +0 -4
  278. package/lib/stories/Drawer.stories.d.ts +0 -6
  279. package/lib/stories/Expandable.stories.d.ts +0 -4
  280. package/lib/stories/Footer.stories.d.ts +0 -4
  281. package/lib/stories/Grid.stories.d.ts +0 -4
  282. package/lib/stories/IconButton.stories.d.ts +0 -5
  283. package/lib/stories/Input.stories.d.ts +0 -6
  284. package/lib/stories/Layout.stories.d.ts +0 -4
  285. package/lib/stories/List.stories.d.ts +0 -5
  286. package/lib/stories/Loader.stories.d.ts +0 -4
  287. package/lib/stories/LoadingBar.stories.d.ts +0 -4
  288. package/lib/stories/Modal.stories.d.ts +0 -4
  289. package/lib/stories/NumberLabel.stories.d.ts +0 -10
  290. package/lib/stories/Pagination.stories.d.ts +0 -4
  291. package/lib/stories/Radio.stories.d.ts +0 -8
  292. package/lib/stories/Select.stories.d.ts +0 -7
  293. package/lib/stories/Selector.stories.d.ts +0 -4
  294. package/lib/stories/Sidemenu.stories.d.ts +0 -4
  295. package/lib/stories/Skeleton.stories.d.ts +0 -6
  296. package/lib/stories/Slider.stories.d.ts +0 -4
  297. package/lib/stories/Stack.stories.d.ts +0 -9
  298. package/lib/stories/StackedTags.stories.d.ts +0 -4
  299. package/lib/stories/Steps.stories.d.ts +0 -4
  300. package/lib/stories/Switch.stories.d.ts +0 -6
  301. package/lib/stories/Table.stories.d.ts +0 -4
  302. package/lib/stories/Tabs.stories.d.ts +0 -4
  303. package/lib/stories/Tags.stories.d.ts +0 -6
  304. package/lib/stories/TextEditor.stories.d.ts +0 -8
  305. package/lib/stories/Textarea.stories.d.ts +0 -5
@@ -1,79 +0,0 @@
1
- import * as React from 'react';
2
- import { IButtonProps } from '../Button/Button';
3
- export interface ISideBarProps {
4
- button?: boolean;
5
- className?: string;
6
- buttonClass?: string;
7
- buttonStyle?: React.CSSProperties;
8
- style?: React.CSSProperties;
9
- hideClick?: boolean;
10
- children?: Array<React.ReactElement<ISideBarItemProps>> | React.ReactElement<ISideBarItemProps> | Array<React.ReactElement<IButtonProps>> | React.ReactElement<IButtonProps>;
11
- }
12
- export interface ISideBarItemProps {
13
- label?: string;
14
- image?: string;
15
- imageOn?: string;
16
- active?: boolean;
17
- activeSubMenu?: boolean;
18
- className?: string;
19
- style?: React.CSSProperties;
20
- subMenuStyle?: React.CSSProperties;
21
- subMenuClasses?: string;
22
- subMenuFixed?: boolean;
23
- onMouseEnter?: (e: React.MouseEvent<HTMLDivElement>) => void;
24
- onMouseLeave?: (e: React.MouseEvent<HTMLDivElement>) => void;
25
- onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
26
- children?: any;
27
- }
28
- export interface ISubMenuProps {
29
- display?: boolean;
30
- onMouseEnter?: (e: React.MouseEvent<HTMLDivElement>) => void;
31
- onMouseLeave?: (e: React.MouseEvent<HTMLDivElement>) => void;
32
- className?: string;
33
- style?: React.CSSProperties;
34
- children?: any;
35
- }
36
- export interface ISideBarState {
37
- activeItem?: number;
38
- display: boolean;
39
- subMenuDisplay?: boolean;
40
- smallDisplay?: boolean;
41
- activeSecondary?: number;
42
- activeSubMenu?: number;
43
- smallActiveItem?: number;
44
- }
45
- export default class SideBar extends React.Component<ISideBarProps, ISideBarState> {
46
- static defaultProps: {
47
- className: string;
48
- style: {};
49
- };
50
- static displayName: string;
51
- static SidebarItem: React.StatelessComponent<ISideBarItemProps>;
52
- static SubMenu: React.StatelessComponent<ISubMenuProps>;
53
- constructor(props: ISideBarProps);
54
- componentWillMount(): void;
55
- render(): JSX.Element;
56
- getInitialState: () => {
57
- display: boolean;
58
- smallDisplay: boolean;
59
- };
60
- getItems(): any;
61
- checkChildrenType: (children: any) => boolean;
62
- getNonSubMenuItems: (children: any) => any[];
63
- initiateSubMenus: () => (JSX.Element | undefined)[];
64
- getSubMenu: (item: React.ReactElement<ISideBarItemProps, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>, index: number) => JSX.Element | undefined;
65
- displaySubMenu: (index: number) => boolean;
66
- getSubMenuItems: (items: any) => JSX.Element | React.ReactElement<ISideBarItemProps, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
67
- onClickButton: () => (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
68
- onClickItem: (itemIndex: number, item: React.ReactElement<ISideBarItemProps, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>) => (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
69
- onClickSecondary: (itemIndex: number, item: React.ReactElement<ISideBarItemProps, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>) => (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
70
- getActiveItem(): number | undefined;
71
- getCover: () => JSX.Element | undefined;
72
- coverClasses: () => any;
73
- getButton: () => JSX.Element;
74
- toggle: () => void;
75
- subMenuOn: (index?: number | undefined, subMenuFixed?: boolean | undefined) => ((e: React.MouseEvent<HTMLElement, MouseEvent>) => void) | undefined;
76
- subMenuOff: () => void;
77
- }
78
- export declare const SidebarItem: React.StatelessComponent<ISideBarItemProps>;
79
- export declare const SubMenu: React.StatelessComponent<ISubMenuProps>;
@@ -1,3 +0,0 @@
1
- import SideBar, { SidebarItem } from './SideBar';
2
- export default SideBar;
3
- export { SidebarItem };
@@ -1 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("mooskin",["react"],t):"object"==typeof exports?exports.mooskin=t(require("react")):e.mooskin=t(e.react)}(this,function(e){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="../",n(n.s=311)}({0:function(t,n){t.exports=e},20:function(e,t,n){e.exports={sidebar:"sidebar___1SY4V",subMenu:"subMenu___2nAiz",subMenuFixed:"subMenuFixed___H7abC",subMenuOn:"subMenuOn___10Ypw",subMenuOff:"subMenuOff___3lI2w",sidebarOn:"sidebarOn___1rIan",sidebarOff:"sidebarOff___3jcIC",smallOn:"smallOn___9aM33",smallOff:"smallOff___nX-J6",smallSubOn:"smallSubOn___1Ww2L",smallSubOff:"smallSubOff___3142p",itemContainer:"itemContainer___UYyne",activeItem:"activeItem___2eKTg",image:"image___ZRtH8",button:"button___3eF9z",buttonOn:"buttonOn___33sgf",arrow:"arrow___16hSe",cover:"cover___1fKWy",coverOn:"coverOn___JANKh",coverSmall:"coverSmall___3t67d"}},311:function(e,t,n){"use strict";n.r(t);var o=n(0),r=n(20),a=n.n(r),s=n(49);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],o=!0,r=!1,a=void 0;try{for(var s,i=e[Symbol.iterator]();!(o=(s=i.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){r=!0,a=e}finally{try{o||null==i.return||i.return()}finally{if(r)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=u(this,p(t).call(this,e))).getInitialState=function(){return{display:!n.props.button,smallDisplay:!1}},n.checkChildrenType=function(e){var t=!1;return Array.isArray(e)?e.forEach(function(e){t=e.type===y||t}):t=e.type===y||t,t},n.getNonSubMenuItems=function(e){var t=[];return Array.isArray(e)&&e.forEach(function(e){e.type!==y&&t.push(e)}),t},n.initiateSubMenus=function(){return o.Children.map(n.props.children,function(e,t){if(o.isValidElement(e)&&e.props.children&&e.props.children.length>1&&e.type===y)return n.getSubMenu(e,t)})},n.getSubMenu=function(e,t){if(o.isValidElement(e)&&e.type===y){var r=e.props.children?e.props.children:[],s=!n.props.button&&e.props.subMenuFixed&&n.state.activeItem===t?a.a.subMenuFixed:"",i=n.state.smallDisplay&&n.state.smallActiveItem===t?a.a.smallSubOn:a.a.smallSubOff;return e.props.subMenuFixed?o.createElement(b,{className:"".concat(s," ").concat(i," ").concat(e.props.subMenuClasses),style:e.props.subMenuStyle,display:n.displaySubMenu(t),onMouseEnter:n.subMenuOn(t)},n.getSubMenuItems(r)):o.createElement(b,{className:"".concat(s," ").concat(i," ").concat(e.props.subMenuClasses),style:e.props.subMenuStyle,display:n.displaySubMenu(t),onMouseEnter:n.subMenuOn(t),onMouseLeave:n.subMenuOn()},n.getSubMenuItems(r))}},n.displaySubMenu=function(e){return!(!n.state.subMenuDisplay||n.state.activeSubMenu!==e)},n.getSubMenuItems=function(e){var t=[];if(Array.isArray(e))e.forEach(function(e,r){e.type===y&&(e.props.children?t.push(o.createElement("div",{key:r,onClick:n.onClickItem(r,e),style:e.props.style,className:e.props.className},e.props.children)):t.push(o.createElement(y,{key:r,label:e.props.label,onClick:n.onClickSecondary(r,e),style:e.props.style,className:e.props.className,active:n.state.activeSecondary===r})))});else if(e.type===y)return o.createElement(y,{label:e.props.label,onClick:n.onClickSecondary(0,e),style:e.props.style,className:e.props.className,active:0===n.state.activeSecondary});return t},n.onClickButton=function(){return function(e){n.setState({display:!0,smallDisplay:!0})}},n.onClickItem=function(e,t){return function(o){t.props.children&&t.props.children.length>1?(t.props.onClick&&t.props.onClick(o),n.setState({activeItem:e,smallActiveItem:e})):n.props.hideClick&&n.props.button?(t.props.onClick&&t.props.onClick(o),n.setState({activeItem:e,display:!1,smallActiveItem:e,smallDisplay:!1,subMenuDisplay:!1})):n.props.hideClick?(t.props.onClick&&t.props.onClick(o),n.setState({activeItem:e,smallActiveItem:e,smallDisplay:!1,subMenuDisplay:!1})):(t.props.onClick&&t.props.onClick(o),n.setState({activeItem:e,smallActiveItem:e}))}},n.onClickSecondary=function(e,t){return function(o){n.props.hideClick&&n.props.button?(t.props.onClick&&t.props.onClick(o),n.setState({activeSecondary:e,display:!1,subMenuDisplay:!1,smallDisplay:!1})):n.props.hideClick?(t.props.onClick&&t.props.onClick(o),n.setState({activeSecondary:e,subMenuDisplay:!1,smallDisplay:!1})):(t.props.onClick&&t.props.onClick(o),n.setState({activeSecondary:e}))}},n.getCover=function(){if(n.state.display){var e=n.coverClasses();return o.createElement("div",{className:"".concat(a.a.cover," ").concat(e),onClick:n.toggle})}},n.coverClasses=function(){return n.props.button&&n.state.display?a.a.coverOn:n.state.display&&n.state.smallDisplay?a.a.coverSmall:""},n.getButton=function(){var e=n.props.button?a.a.buttonOn:"";return o.createElement("div",null,o.createElement(s.default,{icon:"view headline",onClick:n.onClickButton(),className:"".concat(a.a.button," ").concat(e," ").concat(n.props.buttonClass),style:n.props.buttonStyle}))},n.toggle=function(){n.setState({display:!1,smallDisplay:!1,smallActiveItem:-1})},n.subMenuOn=function(e,t){if(!t||n.props.button)return function(t){n.setState({subMenuDisplay:!0,activeSubMenu:e})}},n.subMenuOff=function(){n.setState({subMenuDisplay:!1,activeSubMenu:-1})},n.state={activeItem:n.getActiveItem(),activeSecondary:-1,activeSubMenu:-1,display:!1,smallActiveItem:-1,smallDisplay:!1,subMenuDisplay:!1},n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,o["Component"]),n=t,(r=[{key:"componentWillMount",value:function(){this.setState(this.getInitialState())}},{key:"render",value:function(){var e=this.getCover(),t=this.getButton(),n=this.initiateSubMenus(),r=this.state.smallDisplay?a.a.smallOn:a.a.smallOff,s=this.state.display?a.a.sidebarOn:a.a.sidebarOff,i=o.createElement("div",{className:"".concat(a.a.sidebar," ").concat(s," ").concat(r," ").concat(this.props.className),style:this.props.style},this.getItems());return o.createElement("div",{className:"sidebar-component"},t,i,n,e)}},{key:"getItems",value:function(){var e=this,t=[];return o.Children.forEach(this.props.children,function(n,r){if(!o.isValidElement(n))throw new Error("<SideBar> only accepts <Item> elements as children");n.props.children?e.checkChildrenType(n.props.children)?t.push(o.createElement(y,{key:r,image:n.props.image,imageOn:n.props.imageOn,label:n.props.label,active:e.state.activeItem===r,onClick:e.onClickItem(r,n),onMouseEnter:e.subMenuOn(r,n.props.subMenuFixed),onMouseLeave:e.subMenuOff,style:n.props.style,className:n.props.className,activeSubMenu:e.state.activeSubMenu===r},e.getNonSubMenuItems(n.props.children))):t.push(o.createElement(y,{key:r,active:e.state.activeItem===r,onClick:e.onClickItem(r,n),style:n.props.style,className:n.props.className},n.props.children)):t.push(o.createElement(y,{key:r,image:n.props.image,imageOn:n.props.imageOn,label:n.props.label,active:e.state.activeItem===r,onClick:e.onClickItem(r,n),style:n.props.style,className:n.props.className}))}),t}},{key:"getActiveItem",value:function(){var e=o.Children.toArray(this.props.children),t=!0,n=!1,r=void 0;try{for(var a,s=e.entries()[Symbol.iterator]();!(t=(a=s.next()).done);t=!0){var i=c(a.value,2),l=i[0],u=i[1];if(o.isValidElement(u)&&u.props.active)return l}}catch(e){n=!0,r=e}finally{try{t||null==s.return||s.return()}finally{if(n)throw r}}}}])&&l(n.prototype,r),i&&l(n,i),t}();m.defaultProps={className:"",style:{}},m.displayName="SideBar";var y=function(e){var t=e.active?a.a.activeItem:"",n=e.activeSubMenu?a.a.arrow:"";return o.createElement("div",{onClick:e.onClick,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:"item-component ".concat(a.a.itemContainer," ").concat(e.className," ").concat(t),style:e.style},o.createElement("div",{className:"".concat(n)}),e.image&&o.createElement("img",{src:e.active?e.active?e.imageOn?e.imageOn:e.image:void 0:e.image,className:a.a.image}),e.label&&o.createElement("span",null,e.label),e.children)};y.defaultProps={className:"",style:{}},y.displayName="SidebarItem";var b=function e(t){e.defaultProps={className:"",style:{}};var n=t.display?a.a.subMenuOn:a.a.subMenuOff;return o.createElement("div",{className:"item-component ".concat(a.a.sidebar," ").concat(a.a.subMenu," ").concat(n," ").concat(t.className),style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave},t.children)};b.displayName="SubMenu",n.d(t,"SidebarItem",function(){return y}),m.SidebarItem=y;t.default=m},49:function(e,t,n){"use strict";n.r(t);var o=n(50);t.default=o.a},50:function(e,t,n){"use strict";n.d(t,"a",function(){return y});var o=n(0),r=n(7),a=n.n(r),s=n(9),i=n.n(s);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var m={outlined:i.a.outlined,round:i.a.round,sharp:i.a.sharp,twotone:i.a.twoTone},y=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=u(this,p(t).apply(this,arguments))).onClick=function(t){!e.props.disabled&&e.props.onClick&&e.props.onClick(t)},e.getIcon=function(){return e.props.icon?e.props.icon.replace(/\s/g,"_"):""},e}var n,r,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,o["Component"]),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.style,n=e.transparent,r=e.disabled,s=e.className,c=e.id,l=e.type,u=n?i.a.transparent:i.a.normalButton,p=r?i.a.disabledButton:"",f=this.getIcon(),y=l&&m[l]?m[l]:"",b="button-icon-component\n ".concat(i.a.button,"\n ").concat(u,"\n ").concat(p,"\n ").concat(s);return o.createElement("button",{id:c,onClick:this.onClick,disabled:r,className:b,title:this.props.title,style:t},o.createElement("i",{className:"".concat(a.a.mooskinIcons," ").concat(i.a.icon," ").concat(y)},f))}}])&&l(n.prototype,r),s&&l(n,s),t}();y.defaultProps={className:"",style:{},type:""},y.displayName="SmallIconButton"},7:function(e,t,n){e.exports={mooskinIcons:"mooskinIcons___2i54i"}},9:function(e,t,n){e.exports={button:"button___2-L3K",disabledButton:"disabledButton___1e1jx",normalButton:"normalButton___2dyrQ",transparent:"transparent___10ND3",icon:"icon___oOv43",outlined:"outlined___1X5wR",round:"round___2udth",sharp:"sharp___156K3",twotone:"twotone___1FFZr"}}})});