superdesk-ui-framework 4.0.47 → 4.0.49

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 (575) hide show
  1. package/.eslintrc.js +0 -1
  2. package/.eslintrc.json +2 -5
  3. package/.github/workflows/test.yml +22 -26
  4. package/.prettierignore +3 -0
  5. package/.prettierrc.js +9 -0
  6. package/.travis.yml +4 -4
  7. package/README.md +14 -1
  8. package/app/styles/_time.scss +28 -0
  9. package/app/styles/app.scss +1 -0
  10. package/app/styles/design-tokens/_design-tokens-general.scss +6 -3
  11. package/app/styles/form-elements/_forms-general.scss +0 -4
  12. package/app-typescript/components/Alert.tsx +12 -16
  13. package/app-typescript/components/Autocomplete.tsx +53 -42
  14. package/app-typescript/components/Badge.tsx +1 -1
  15. package/app-typescript/components/Button.tsx +5 -11
  16. package/app-typescript/components/ButtonGroup.tsx +15 -10
  17. package/app-typescript/components/Carousel.tsx +25 -26
  18. package/app-typescript/components/CheckButtonGroup.tsx +6 -10
  19. package/app-typescript/components/Checkbox.tsx +16 -10
  20. package/app-typescript/components/CheckboxButton.tsx +22 -13
  21. package/app-typescript/components/ContentDivider.tsx +6 -7
  22. package/app-typescript/components/CreateButton.tsx +8 -6
  23. package/app-typescript/components/DatePicker.tsx +59 -55
  24. package/app-typescript/components/DateTimePicker.tsx +51 -48
  25. package/app-typescript/components/Divider.tsx +2 -4
  26. package/app-typescript/components/DonutChart.tsx +11 -6
  27. package/app-typescript/components/DragHandle.tsx +10 -6
  28. package/app-typescript/components/DragHandleDots.tsx +1 -3
  29. package/app-typescript/components/DropZone.tsx +27 -25
  30. package/app-typescript/components/Dropdown.tsx +61 -102
  31. package/app-typescript/components/DropdownFirst.tsx +57 -69
  32. package/app-typescript/components/DurationInput.tsx +64 -54
  33. package/app-typescript/components/Editor/EditorButton.tsx +4 -3
  34. package/app-typescript/components/EmptyState.tsx +10 -14
  35. package/app-typescript/components/Form/FormGroup.tsx +9 -16
  36. package/app-typescript/components/Form/FormItem.tsx +1 -5
  37. package/app-typescript/components/Form/FormLabel.tsx +0 -1
  38. package/app-typescript/components/Form/FormRow.tsx +12 -19
  39. package/app-typescript/components/Form/FormRowNew.tsx +9 -16
  40. package/app-typescript/components/Form/FormText.tsx +1 -5
  41. package/app-typescript/components/Form/InputBase.tsx +12 -11
  42. package/app-typescript/components/Form/InputNew.tsx +11 -12
  43. package/app-typescript/components/Form/InputWrapper.tsx +9 -18
  44. package/app-typescript/components/Form/index.tsx +9 -9
  45. package/app-typescript/components/FormLabel.tsx +1 -5
  46. package/app-typescript/components/GridItem.tsx +38 -69
  47. package/app-typescript/components/GridList.tsx +2 -6
  48. package/app-typescript/components/HeadingText.tsx +4 -5
  49. package/app-typescript/components/IconButton.tsx +4 -10
  50. package/app-typescript/components/IconLabel.tsx +5 -5
  51. package/app-typescript/components/IconPicker.tsx +128 -126
  52. package/app-typescript/components/IllustrationButton.tsx +2 -8
  53. package/app-typescript/components/Input.tsx +2 -2
  54. package/app-typescript/components/Label.tsx +11 -7
  55. package/app-typescript/components/Layouts/AuthorinInnerSideBar.tsx +1 -5
  56. package/app-typescript/components/Layouts/AuthoringContainer.tsx +4 -6
  57. package/app-typescript/components/Layouts/AuthoringFrame.tsx +4 -20
  58. package/app-typescript/components/Layouts/AuthoringFrameContainer.tsx +1 -5
  59. package/app-typescript/components/Layouts/AuthoringFrameLeftBar.tsx +1 -5
  60. package/app-typescript/components/Layouts/AuthoringFrameMain.tsx +1 -5
  61. package/app-typescript/components/Layouts/AuthoringFrameNavBar.tsx +1 -5
  62. package/app-typescript/components/Layouts/AuthoringFrameOverlay.tsx +1 -5
  63. package/app-typescript/components/Layouts/AuthoringFrameRightBar.tsx +1 -5
  64. package/app-typescript/components/Layouts/AuthoringFrameSidePanel.tsx +1 -5
  65. package/app-typescript/components/Layouts/AuthoringFrameSidePanelOverlay.tsx +1 -3
  66. package/app-typescript/components/Layouts/AuthoringInnerBody.tsx +3 -6
  67. package/app-typescript/components/Layouts/AuthoringInnerHeader.tsx +5 -5
  68. package/app-typescript/components/Layouts/AuthoringMain.tsx +3 -4
  69. package/app-typescript/components/Layouts/AuthoringMainContainer.tsx +1 -5
  70. package/app-typescript/components/Layouts/AuthoringMainContent.tsx +1 -5
  71. package/app-typescript/components/Layouts/AuthoringMainToolBar.tsx +1 -6
  72. package/app-typescript/components/Layouts/BottomBarAction.tsx +8 -10
  73. package/app-typescript/components/Layouts/Container.tsx +13 -8
  74. package/app-typescript/components/Layouts/ContentSplitter.tsx +2 -6
  75. package/app-typescript/components/Layouts/CoreLayout.tsx +5 -12
  76. package/app-typescript/components/Layouts/CoreLayoutContainer.tsx +1 -1
  77. package/app-typescript/components/Layouts/CoreLayoutFooter.tsx +1 -5
  78. package/app-typescript/components/Layouts/CoreLayoutMain.tsx +4 -4
  79. package/app-typescript/components/Layouts/CoreLayoutOverlay.tsx +1 -5
  80. package/app-typescript/components/Layouts/CoreLayoutSlideInMenu.tsx +2 -4
  81. package/app-typescript/components/Layouts/CoreLayoutTopMenu.tsx +8 -9
  82. package/app-typescript/components/Layouts/HamburgerButton.tsx +13 -14
  83. package/app-typescript/components/Layouts/HeaderPanel.tsx +1 -5
  84. package/app-typescript/components/Layouts/Layout.tsx +10 -16
  85. package/app-typescript/components/Layouts/LayoutContainer.tsx +2 -7
  86. package/app-typescript/components/Layouts/LeftPanel.tsx +4 -11
  87. package/app-typescript/components/Layouts/MainMenu.tsx +18 -32
  88. package/app-typescript/components/Layouts/MainPanel.tsx +10 -11
  89. package/app-typescript/components/Layouts/NotificationPanel.tsx +20 -29
  90. package/app-typescript/components/Layouts/OverlayPanel.tsx +3 -5
  91. package/app-typescript/components/Layouts/PageLayout.tsx +4 -21
  92. package/app-typescript/components/Layouts/Panel.tsx +45 -81
  93. package/app-typescript/components/Layouts/index.tsx +39 -39
  94. package/app-typescript/components/LeftMenu.tsx +51 -53
  95. package/app-typescript/components/ListItemLoader.tsx +1 -1
  96. package/app-typescript/components/Lists/BoxedList.tsx +16 -41
  97. package/app-typescript/components/Lists/CalendarWeekDayItem.tsx +2 -10
  98. package/app-typescript/components/Lists/ContentList.tsx +68 -62
  99. package/app-typescript/components/Lists/SimpleList.tsx +13 -12
  100. package/app-typescript/components/Lists/TableList.tsx +169 -217
  101. package/app-typescript/components/Lists/index.tsx +2 -2
  102. package/app-typescript/components/Loader.tsx +1 -3
  103. package/app-typescript/components/Menu.tsx +2 -4
  104. package/app-typescript/components/Modal.tsx +21 -21
  105. package/app-typescript/components/MultiSelect.tsx +6 -6
  106. package/app-typescript/components/NavButton.tsx +10 -8
  107. package/app-typescript/components/Navigation/BottomNav.tsx +21 -17
  108. package/app-typescript/components/Navigation/QuickNavBar.tsx +40 -37
  109. package/app-typescript/components/Navigation/SideBarMenu.tsx +21 -17
  110. package/app-typescript/components/Navigation/SideBarTabs.tsx +13 -19
  111. package/app-typescript/components/Navigation/index.tsx +3 -3
  112. package/app-typescript/components/Popover.tsx +19 -21
  113. package/app-typescript/components/PropsList.tsx +2 -4
  114. package/app-typescript/components/RadioButtonGroup.tsx +48 -45
  115. package/app-typescript/components/RadioGroup.tsx +9 -8
  116. package/app-typescript/components/ResizablePanels.tsx +2 -3
  117. package/app-typescript/components/ResizeObserverComponent.tsx +1 -5
  118. package/app-typescript/components/SearchBar.tsx +53 -45
  119. package/app-typescript/components/Select.tsx +6 -8
  120. package/app-typescript/components/SelectGrid.tsx +32 -40
  121. package/app-typescript/components/SelectPreview.tsx +31 -25
  122. package/app-typescript/components/SelectWithTemplate.tsx +10 -11
  123. package/app-typescript/components/ShowPopup.tsx +32 -46
  124. package/app-typescript/components/SidebarMenu.tsx +19 -18
  125. package/app-typescript/components/Skeleton.tsx +12 -11
  126. package/app-typescript/components/SlidingToolbar.tsx +1 -6
  127. package/app-typescript/components/Spinner.tsx +2 -6
  128. package/app-typescript/components/StrechBar.tsx +1 -5
  129. package/app-typescript/components/SubNav.tsx +10 -8
  130. package/app-typescript/components/SvgIconIllustration.tsx +477 -105
  131. package/app-typescript/components/Switch.tsx +14 -12
  132. package/app-typescript/components/SwitchGroup.tsx +10 -10
  133. package/app-typescript/components/TabCustom.tsx +28 -35
  134. package/app-typescript/components/TabList.tsx +13 -10
  135. package/app-typescript/components/Tag.tsx +21 -24
  136. package/app-typescript/components/TagInput.tsx +4 -11
  137. package/app-typescript/components/Text/Heading.tsx +21 -41
  138. package/app-typescript/components/Text/Text.tsx +16 -12
  139. package/app-typescript/components/Text/Time.tsx +14 -10
  140. package/app-typescript/components/ThemeSelector.tsx +15 -14
  141. package/app-typescript/components/TimePicker.tsx +60 -6
  142. package/app-typescript/components/TimePickerPopover.tsx +274 -0
  143. package/app-typescript/components/TimePickerV2.tsx +20 -20
  144. package/app-typescript/components/Toast.tsx +11 -7
  145. package/app-typescript/components/ToastMessage.tsx +3 -14
  146. package/app-typescript/components/ToastText.tsx +30 -32
  147. package/app-typescript/components/ToastWrapper.tsx +76 -74
  148. package/app-typescript/components/ToggleBox/CustomHeaderToggleBox.tsx +30 -45
  149. package/app-typescript/components/ToggleBox/SimpleToggleBox.tsx +31 -33
  150. package/app-typescript/components/ToggleBox/index.tsx +3 -7
  151. package/app-typescript/components/Tooltip.tsx +1 -1
  152. package/app-typescript/components/TreeMenu.tsx +72 -81
  153. package/app-typescript/components/TreeSelect/KeyboardNavigation.tsx +1 -5
  154. package/app-typescript/components/TreeSelect/TreeSelect.tsx +221 -238
  155. package/app-typescript/components/TreeSelect/TreeSelectItem.tsx +20 -24
  156. package/app-typescript/components/TreeSelect/TreeSelectPill.tsx +12 -15
  157. package/app-typescript/components/WithPagination.tsx +34 -39
  158. package/app-typescript/components/WithPopover.tsx +0 -1
  159. package/app-typescript/components/WithPortal.tsx +4 -7
  160. package/app-typescript/components/WithSizeObserver.tsx +2 -6
  161. package/app-typescript/components/_Positioner.tsx +26 -26
  162. package/app-typescript/components/avatar/avatar-action-add.tsx +1 -6
  163. package/app-typescript/components/avatar/avatar-group.tsx +49 -68
  164. package/app-typescript/components/avatar/avatar-image.tsx +18 -12
  165. package/app-typescript/components/avatar/avatar-placeholder.tsx +3 -15
  166. package/app-typescript/components/avatar/avatar-text.tsx +1 -4
  167. package/app-typescript/components/avatar/avatar-wrapper.tsx +18 -30
  168. package/app-typescript/components/avatar/avatar.tsx +5 -8
  169. package/app-typescript/components/with-pagination.spec.tsx +8 -27
  170. package/app-typescript/helpers.tsx +2 -2
  171. package/app-typescript/index.ts +111 -100
  172. package/app-typescript/utils/time.tsx +31 -0
  173. package/declarations.d.ts +1 -1
  174. package/dist/components/Alerts.tsx +171 -78
  175. package/dist/components/Autocomplete.tsx +187 -78
  176. package/dist/components/Avatar.tsx +52 -112
  177. package/dist/components/Badges.tsx +111 -67
  178. package/dist/components/BigIconFont.tsx +29 -17
  179. package/dist/components/BoxedList.tsx +244 -114
  180. package/dist/components/ButtonGroups.tsx +213 -147
  181. package/dist/components/Buttons.tsx +409 -137
  182. package/dist/components/Card.tsx +6 -7
  183. package/dist/components/Carousel.tsx +126 -39
  184. package/dist/components/Checkboxs.tsx +446 -105
  185. package/dist/components/Container.tsx +95 -48
  186. package/dist/components/ContentDivider.tsx +110 -63
  187. package/dist/components/ContentList.tsx +577 -253
  188. package/dist/components/CreateButton.tsx +71 -21
  189. package/dist/components/DatePicker.tsx +102 -26
  190. package/dist/components/DateTimePicker.tsx +49 -11
  191. package/dist/components/DragHandleDocs.tsx +56 -26
  192. package/dist/components/DropZone.tsx +67 -29
  193. package/dist/components/Dropdowns.tsx +220 -131
  194. package/dist/components/DurationInput.tsx +92 -32
  195. package/dist/components/EmptyStates.tsx +61 -26
  196. package/dist/components/GridItem.tsx +190 -91
  197. package/dist/components/GridList.tsx +37 -17
  198. package/dist/components/Heading.tsx +81 -35
  199. package/dist/components/IconButtons.tsx +125 -32
  200. package/dist/components/IconFont.tsx +24 -12
  201. package/dist/components/IconLabels.tsx +146 -39
  202. package/dist/components/IconPicker.tsx +30 -13
  203. package/dist/components/IllustrationButton.tsx +40 -20
  204. package/dist/components/Index.tsx +128 -114
  205. package/dist/components/Inputs.tsx +153 -51
  206. package/dist/components/Labels.tsx +191 -117
  207. package/dist/components/LeftNavigations.tsx +327 -100
  208. package/dist/components/ListItems.tsx +8 -9
  209. package/dist/components/Loader.tsx +5 -4
  210. package/dist/components/Menu.tsx +48 -26
  211. package/dist/components/Modal.tsx +298 -104
  212. package/dist/components/MultiSelect.tsx +189 -53
  213. package/dist/components/NavButtons.tsx +86 -30
  214. package/dist/components/Panel.tsx +367 -120
  215. package/dist/components/Popover.tsx +37 -17
  216. package/dist/components/QuickNavigationBar.tsx +222 -86
  217. package/dist/components/RadioGroup.tsx +375 -137
  218. package/dist/components/ResizablePanels.tsx +8 -14
  219. package/dist/components/SelectGrid.tsx +79 -38
  220. package/dist/components/SelectWithTemplate.tsx +23 -14
  221. package/dist/components/Selects.tsx +94 -29
  222. package/dist/components/SimpleList.tsx +91 -41
  223. package/dist/components/SubNav.tsx +57 -37
  224. package/dist/components/Switch.tsx +168 -42
  225. package/dist/components/TableList.tsx +220 -66
  226. package/dist/components/Tabs.tsx +149 -64
  227. package/dist/components/TagInputDocs.tsx +73 -17
  228. package/dist/components/Tags.tsx +104 -73
  229. package/dist/components/Text.tsx +108 -58
  230. package/dist/components/TimePicker.tsx +76 -22
  231. package/dist/components/Toasts.tsx +162 -80
  232. package/dist/components/Togglebox.tsx +164 -62
  233. package/dist/components/Tooltips.tsx +27 -15
  234. package/dist/components/TreeMenu.tsx +95 -59
  235. package/dist/components/TreeSelect.tsx +297 -162
  236. package/dist/components/WithPaginationDocs.tsx +15 -16
  237. package/dist/components/WithSizeObserver.tsx +9 -9
  238. package/dist/components/tree-select/TreeSelect.tsx +126 -77
  239. package/dist/components/tree-select/example-1.tsx +8 -12
  240. package/dist/components/tree-select/example-2.tsx +2 -5
  241. package/dist/components/utilities/BorderRadiusUtilities.tsx +28 -13
  242. package/dist/components/utilities/BorderUtilities.tsx +31 -32
  243. package/dist/components/utilities/DisplayUtilities.tsx +4 -5
  244. package/dist/components/utilities/FlexAndGridUtilities.tsx +38 -38
  245. package/dist/components/utilities/ObjectFitUtilities.tsx +4 -6
  246. package/dist/components/utilities/ObjectPositionUtilities.tsx +3 -4
  247. package/dist/components/utilities/OpacityUtilities.tsx +4 -7
  248. package/dist/components/utilities/OverflowUtilities.tsx +4 -5
  249. package/dist/components/utilities/PositionUtilities.tsx +4 -5
  250. package/dist/components/utilities/ShadowUtilities.tsx +15 -16
  251. package/dist/components/utilities/SpacingUtilities.tsx +483 -178
  252. package/dist/components/utilities/TextUtilities.tsx +109 -60
  253. package/dist/design-patterns/Index.tsx +8 -11
  254. package/dist/design-patterns/ThreePaneLayoutPattern.tsx +92 -76
  255. package/dist/examples.bundle.css +1257 -1155
  256. package/dist/examples.bundle.js +7904 -7035
  257. package/dist/playgrounds/dummy-data/items.ts +9 -8
  258. package/dist/playgrounds/react-playgrounds/CoreLayout.tsx +559 -277
  259. package/dist/playgrounds/react-playgrounds/EditorTest.tsx +387 -204
  260. package/dist/playgrounds/react-playgrounds/FirstPlayground.tsx +74 -52
  261. package/dist/playgrounds/react-playgrounds/Index.tsx +11 -11
  262. package/dist/playgrounds/react-playgrounds/Multiedit.tsx +294 -218
  263. package/dist/playgrounds/react-playgrounds/PageLayoutTest.tsx +151 -105
  264. package/dist/playgrounds/react-playgrounds/PersonalProfile.tsx +481 -261
  265. package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +261 -149
  266. package/dist/playgrounds/react-playgrounds/Rundowns.tsx +757 -395
  267. package/dist/playgrounds/react-playgrounds/SamsPlayground.tsx +173 -91
  268. package/dist/playgrounds/react-playgrounds/TestGround.tsx +1364 -818
  269. package/dist/playgrounds/react-playgrounds/UiPlayground.tsx +178 -86
  270. package/dist/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +6 -7
  271. package/dist/playgrounds/react-playgrounds/components/AuthoringContent.tsx +42 -42
  272. package/dist/playgrounds/react-playgrounds/components/ContentSplitter.tsx +5 -8
  273. package/dist/playgrounds/react-playgrounds/components/GraphicButton.tsx +11 -11
  274. package/dist/playgrounds/react-playgrounds/components/GraphicButtonsGroup.tsx +2 -6
  275. package/dist/playgrounds/react-playgrounds/components/HeaderPanel.tsx +1 -5
  276. package/dist/playgrounds/react-playgrounds/components/Index.tsx +19 -21
  277. package/dist/playgrounds/react-playgrounds/components/Layout.tsx +11 -17
  278. package/dist/playgrounds/react-playgrounds/components/LayoutContainer.tsx +1 -1
  279. package/dist/playgrounds/react-playgrounds/components/MainPanel.tsx +11 -12
  280. package/dist/playgrounds/react-playgrounds/components/OverlayPanel.tsx +3 -5
  281. package/dist/playgrounds/react-playgrounds/components/Panel.tsx +6 -7
  282. package/dist/playgrounds/react-playgrounds/components/PanelContent.tsx +1 -5
  283. package/dist/playgrounds/react-playgrounds/components/PanelContentBlock.tsx +1 -6
  284. package/dist/playgrounds/react-playgrounds/components/PanelHeader.tsx +3 -3
  285. package/dist/playgrounds/react-playgrounds/components/SearchBar.tsx +16 -12
  286. package/dist/playgrounds/react-playgrounds/components/SidebarMenu.tsx +23 -14
  287. package/dist/playgrounds/react-playgrounds/components/SubNav.tsx +1 -5
  288. package/dist/playgrounds/react-playgrounds/components/ThemeDropdown.tsx +14 -11
  289. package/dist/playgrounds/react-playgrounds/tsconfig.json +1 -1
  290. package/dist/superdesk-ui.bundle.css +25 -4
  291. package/dist/superdesk-ui.bundle.js +3072 -2903
  292. package/dist/vendor.bundle.js +18 -18
  293. package/examples/css/docs-page.css +1135 -1116
  294. package/examples/css/reset.css +124 -43
  295. package/examples/css/vendor.css +125 -125
  296. package/examples/index.js +138 -139
  297. package/examples/js/doc.js +41 -40
  298. package/examples/js/react.js +82 -48
  299. package/examples/pages/components/Alerts.tsx +171 -78
  300. package/examples/pages/components/Autocomplete.tsx +187 -78
  301. package/examples/pages/components/Avatar.tsx +52 -112
  302. package/examples/pages/components/Badges.tsx +111 -67
  303. package/examples/pages/components/BigIconFont.tsx +29 -17
  304. package/examples/pages/components/BoxedList.tsx +244 -114
  305. package/examples/pages/components/ButtonGroups.tsx +213 -147
  306. package/examples/pages/components/Buttons.tsx +409 -137
  307. package/examples/pages/components/Card.tsx +6 -7
  308. package/examples/pages/components/Carousel.tsx +126 -39
  309. package/examples/pages/components/Checkboxs.tsx +446 -105
  310. package/examples/pages/components/Container.tsx +95 -48
  311. package/examples/pages/components/ContentDivider.tsx +110 -63
  312. package/examples/pages/components/ContentList.tsx +577 -253
  313. package/examples/pages/components/CreateButton.tsx +71 -21
  314. package/examples/pages/components/DatePicker.tsx +102 -26
  315. package/examples/pages/components/DateTimePicker.tsx +49 -11
  316. package/examples/pages/components/DragHandleDocs.tsx +56 -26
  317. package/examples/pages/components/DropZone.tsx +67 -29
  318. package/examples/pages/components/Dropdowns.tsx +220 -131
  319. package/examples/pages/components/DurationInput.tsx +92 -32
  320. package/examples/pages/components/EmptyStates.tsx +61 -26
  321. package/examples/pages/components/GridItem.tsx +190 -91
  322. package/examples/pages/components/GridList.tsx +37 -17
  323. package/examples/pages/components/Heading.tsx +81 -35
  324. package/examples/pages/components/IconButtons.tsx +125 -32
  325. package/examples/pages/components/IconFont.tsx +24 -12
  326. package/examples/pages/components/IconLabels.tsx +146 -39
  327. package/examples/pages/components/IconPicker.tsx +30 -13
  328. package/examples/pages/components/IllustrationButton.tsx +40 -20
  329. package/examples/pages/components/Index.tsx +128 -114
  330. package/examples/pages/components/Inputs.tsx +153 -51
  331. package/examples/pages/components/Labels.tsx +191 -117
  332. package/examples/pages/components/LeftNavigations.tsx +327 -100
  333. package/examples/pages/components/ListItems.tsx +8 -9
  334. package/examples/pages/components/Loader.tsx +5 -4
  335. package/examples/pages/components/Menu.tsx +48 -26
  336. package/examples/pages/components/Modal.tsx +298 -104
  337. package/examples/pages/components/MultiSelect.tsx +189 -53
  338. package/examples/pages/components/NavButtons.tsx +86 -30
  339. package/examples/pages/components/Panel.tsx +367 -120
  340. package/examples/pages/components/Popover.tsx +37 -17
  341. package/examples/pages/components/QuickNavigationBar.tsx +222 -86
  342. package/examples/pages/components/RadioGroup.tsx +375 -137
  343. package/examples/pages/components/ResizablePanels.tsx +8 -14
  344. package/examples/pages/components/SelectGrid.tsx +79 -38
  345. package/examples/pages/components/SelectWithTemplate.tsx +23 -14
  346. package/examples/pages/components/Selects.tsx +94 -29
  347. package/examples/pages/components/SimpleList.tsx +91 -41
  348. package/examples/pages/components/SubNav.tsx +57 -37
  349. package/examples/pages/components/Switch.tsx +168 -42
  350. package/examples/pages/components/TableList.tsx +220 -66
  351. package/examples/pages/components/Tabs.tsx +149 -64
  352. package/examples/pages/components/TagInputDocs.tsx +73 -17
  353. package/examples/pages/components/Tags.tsx +104 -73
  354. package/examples/pages/components/Text.tsx +108 -58
  355. package/examples/pages/components/TimePicker.tsx +76 -22
  356. package/examples/pages/components/Toasts.tsx +162 -80
  357. package/examples/pages/components/Togglebox.tsx +164 -62
  358. package/examples/pages/components/Tooltips.tsx +27 -15
  359. package/examples/pages/components/TreeMenu.tsx +95 -59
  360. package/examples/pages/components/TreeSelect.tsx +297 -162
  361. package/examples/pages/components/WithPaginationDocs.tsx +15 -16
  362. package/examples/pages/components/WithSizeObserver.tsx +9 -9
  363. package/examples/pages/components/tree-select/TreeSelect.tsx +126 -77
  364. package/examples/pages/components/tree-select/example-1.tsx +8 -12
  365. package/examples/pages/components/tree-select/example-2.tsx +2 -5
  366. package/examples/pages/components/utilities/BorderRadiusUtilities.tsx +28 -13
  367. package/examples/pages/components/utilities/BorderUtilities.tsx +31 -32
  368. package/examples/pages/components/utilities/DisplayUtilities.tsx +4 -5
  369. package/examples/pages/components/utilities/FlexAndGridUtilities.tsx +38 -38
  370. package/examples/pages/components/utilities/ObjectFitUtilities.tsx +4 -6
  371. package/examples/pages/components/utilities/ObjectPositionUtilities.tsx +3 -4
  372. package/examples/pages/components/utilities/OpacityUtilities.tsx +4 -7
  373. package/examples/pages/components/utilities/OverflowUtilities.tsx +4 -5
  374. package/examples/pages/components/utilities/PositionUtilities.tsx +4 -5
  375. package/examples/pages/components/utilities/ShadowUtilities.tsx +15 -16
  376. package/examples/pages/components/utilities/SpacingUtilities.tsx +483 -178
  377. package/examples/pages/components/utilities/TextUtilities.tsx +109 -60
  378. package/examples/pages/design-patterns/Index.tsx +8 -11
  379. package/examples/pages/design-patterns/ThreePaneLayoutPattern.tsx +92 -76
  380. package/examples/pages/playgrounds/dummy-data/items.ts +9 -8
  381. package/examples/pages/playgrounds/react-playgrounds/CoreLayout.tsx +559 -277
  382. package/examples/pages/playgrounds/react-playgrounds/EditorTest.tsx +387 -204
  383. package/examples/pages/playgrounds/react-playgrounds/FirstPlayground.tsx +74 -52
  384. package/examples/pages/playgrounds/react-playgrounds/Index.tsx +11 -11
  385. package/examples/pages/playgrounds/react-playgrounds/Multiedit.tsx +294 -218
  386. package/examples/pages/playgrounds/react-playgrounds/PageLayoutTest.tsx +151 -105
  387. package/examples/pages/playgrounds/react-playgrounds/PersonalProfile.tsx +481 -261
  388. package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +261 -149
  389. package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +757 -395
  390. package/examples/pages/playgrounds/react-playgrounds/SamsPlayground.tsx +173 -91
  391. package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +1364 -818
  392. package/examples/pages/playgrounds/react-playgrounds/UiPlayground.tsx +178 -86
  393. package/examples/pages/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +6 -7
  394. package/examples/pages/playgrounds/react-playgrounds/components/AuthoringContent.tsx +42 -42
  395. package/examples/pages/playgrounds/react-playgrounds/components/ContentSplitter.tsx +5 -8
  396. package/examples/pages/playgrounds/react-playgrounds/components/GraphicButton.tsx +11 -11
  397. package/examples/pages/playgrounds/react-playgrounds/components/GraphicButtonsGroup.tsx +2 -6
  398. package/examples/pages/playgrounds/react-playgrounds/components/HeaderPanel.tsx +1 -5
  399. package/examples/pages/playgrounds/react-playgrounds/components/Index.tsx +19 -21
  400. package/examples/pages/playgrounds/react-playgrounds/components/Layout.tsx +11 -17
  401. package/examples/pages/playgrounds/react-playgrounds/components/LayoutContainer.tsx +1 -1
  402. package/examples/pages/playgrounds/react-playgrounds/components/MainPanel.tsx +11 -12
  403. package/examples/pages/playgrounds/react-playgrounds/components/OverlayPanel.tsx +3 -5
  404. package/examples/pages/playgrounds/react-playgrounds/components/Panel.tsx +6 -7
  405. package/examples/pages/playgrounds/react-playgrounds/components/PanelContent.tsx +1 -5
  406. package/examples/pages/playgrounds/react-playgrounds/components/PanelContentBlock.tsx +1 -6
  407. package/examples/pages/playgrounds/react-playgrounds/components/PanelHeader.tsx +3 -3
  408. package/examples/pages/playgrounds/react-playgrounds/components/SearchBar.tsx +16 -12
  409. package/examples/pages/playgrounds/react-playgrounds/components/SidebarMenu.tsx +23 -14
  410. package/examples/pages/playgrounds/react-playgrounds/components/SubNav.tsx +1 -5
  411. package/examples/pages/playgrounds/react-playgrounds/components/ThemeDropdown.tsx +14 -11
  412. package/examples/pages/playgrounds/react-playgrounds/tsconfig.json +1 -1
  413. package/globals.d.ts +1 -1
  414. package/mocha-setup.ts +3 -3
  415. package/package.json +119 -117
  416. package/react/components/Alert.js +6 -9
  417. package/react/components/Autocomplete.js +15 -23
  418. package/react/components/Badge.js +1 -1
  419. package/react/components/Button.js +4 -6
  420. package/react/components/ButtonGroup.js +1 -1
  421. package/react/components/Carousel.js +3 -3
  422. package/react/components/CheckButtonGroup.js +3 -6
  423. package/react/components/CheckboxButton.js +2 -4
  424. package/react/components/ContentDivider.js +1 -1
  425. package/react/components/DatePicker.js +29 -26
  426. package/react/components/DateTimePicker.d.ts +8 -4
  427. package/react/components/DateTimePicker.js +6 -8
  428. package/react/components/Divider.js +1 -1
  429. package/react/components/DonutChart.js +1 -1
  430. package/react/components/DragHandle.js +1 -1
  431. package/react/components/DragHandleDots.js +1 -1
  432. package/react/components/DropZone.js +6 -8
  433. package/react/components/Dropdown.d.ts +1 -1
  434. package/react/components/Dropdown.js +34 -38
  435. package/react/components/DropdownFirst.d.ts +11 -11
  436. package/react/components/DropdownFirst.js +20 -24
  437. package/react/components/DurationInput.js +37 -34
  438. package/react/components/EmptyState.js +5 -5
  439. package/react/components/Form/FormGroup.js +1 -1
  440. package/react/components/Form/FormItem.js +1 -1
  441. package/react/components/Form/FormRow.js +1 -1
  442. package/react/components/Form/FormRowNew.js +3 -3
  443. package/react/components/Form/FormText.js +1 -1
  444. package/react/components/Form/InputNew.js +3 -3
  445. package/react/components/Form/InputWrapper.js +7 -10
  446. package/react/components/GridItem.d.ts +1 -1
  447. package/react/components/GridItem.js +16 -16
  448. package/react/components/GridList.js +1 -1
  449. package/react/components/HeadingText.js +4 -5
  450. package/react/components/IconLabel.js +3 -5
  451. package/react/components/IconPicker.d.ts +1 -1
  452. package/react/components/IconPicker.js +111 -104
  453. package/react/components/IllustrationButton.js +1 -1
  454. package/react/components/Input.js +1 -1
  455. package/react/components/Layouts/AuthorinInnerSideBar.js +1 -1
  456. package/react/components/Layouts/AuthoringContainer.js +1 -1
  457. package/react/components/Layouts/AuthoringFrame.js +4 -4
  458. package/react/components/Layouts/AuthoringFrameContainer.js +1 -1
  459. package/react/components/Layouts/AuthoringFrameLeftBar.js +1 -1
  460. package/react/components/Layouts/AuthoringFrameMain.js +1 -1
  461. package/react/components/Layouts/AuthoringFrameNavBar.js +1 -1
  462. package/react/components/Layouts/AuthoringFrameOverlay.js +1 -1
  463. package/react/components/Layouts/AuthoringFrameRightBar.js +1 -1
  464. package/react/components/Layouts/AuthoringFrameSidePanel.js +1 -1
  465. package/react/components/Layouts/AuthoringFrameSidePanelOverlay.js +1 -1
  466. package/react/components/Layouts/AuthoringMainContainer.js +1 -1
  467. package/react/components/Layouts/AuthoringMainContent.js +1 -1
  468. package/react/components/Layouts/AuthoringMainToolBar.js +1 -1
  469. package/react/components/Layouts/BottomBarAction.js +2 -2
  470. package/react/components/Layouts/ContentSplitter.js +1 -1
  471. package/react/components/Layouts/CoreLayout.js +2 -2
  472. package/react/components/Layouts/CoreLayoutContainer.js +1 -1
  473. package/react/components/Layouts/CoreLayoutFooter.js +1 -1
  474. package/react/components/Layouts/CoreLayoutOverlay.js +1 -1
  475. package/react/components/Layouts/CoreLayoutSlideInMenu.js +2 -2
  476. package/react/components/Layouts/CoreLayoutTopMenu.js +3 -3
  477. package/react/components/Layouts/HamburgerButton.js +1 -1
  478. package/react/components/Layouts/HeaderPanel.js +1 -1
  479. package/react/components/Layouts/Layout.d.ts +1 -1
  480. package/react/components/Layouts/Layout.js +9 -9
  481. package/react/components/Layouts/LayoutContainer.js +1 -1
  482. package/react/components/Layouts/LeftPanel.js +1 -1
  483. package/react/components/Layouts/MainMenu.js +8 -10
  484. package/react/components/Layouts/MainPanel.js +1 -1
  485. package/react/components/Layouts/NotificationPanel.d.ts +1 -1
  486. package/react/components/Layouts/NotificationPanel.js +7 -7
  487. package/react/components/Layouts/OverlayPanel.js +3 -3
  488. package/react/components/Layouts/PageLayout.js +2 -2
  489. package/react/components/Layouts/Panel.d.ts +1 -1
  490. package/react/components/Layouts/Panel.js +12 -18
  491. package/react/components/LeftMenu.d.ts +3 -3
  492. package/react/components/LeftMenu.js +11 -13
  493. package/react/components/Lists/BoxedList.js +6 -6
  494. package/react/components/Lists/CalendarWeekDayItem.js +2 -2
  495. package/react/components/Lists/ContentList.js +24 -26
  496. package/react/components/Lists/TableList.d.ts +1 -1
  497. package/react/components/Lists/TableList.js +59 -79
  498. package/react/components/Loader.js +1 -1
  499. package/react/components/Menu.js +1 -1
  500. package/react/components/Modal.d.ts +1 -1
  501. package/react/components/MultiSelect.d.ts +1 -1
  502. package/react/components/MultiSelect.js +2 -2
  503. package/react/components/NavButton.js +2 -4
  504. package/react/components/Navigation/BottomNav.js +9 -8
  505. package/react/components/Navigation/QuickNavBar.js +17 -20
  506. package/react/components/Navigation/SideBarMenu.js +11 -9
  507. package/react/components/Navigation/SideBarTabs.js +9 -8
  508. package/react/components/Popover.js +1 -1
  509. package/react/components/RadioButtonGroup.js +15 -23
  510. package/react/components/ResizablePanels.js +1 -3
  511. package/react/components/ResizeObserverComponent.js +1 -3
  512. package/react/components/SearchBar.js +14 -16
  513. package/react/components/Select.js +3 -3
  514. package/react/components/SelectGrid.js +15 -20
  515. package/react/components/SelectPreview.js +13 -13
  516. package/react/components/SelectWithTemplate.js +3 -5
  517. package/react/components/ShowPopup.d.ts +1 -0
  518. package/react/components/ShowPopup.js +7 -10
  519. package/react/components/Skeleton.js +1 -1
  520. package/react/components/SlidingToolbar.js +1 -1
  521. package/react/components/Spinner.js +1 -1
  522. package/react/components/StrechBar.js +1 -1
  523. package/react/components/SubNav.js +1 -1
  524. package/react/components/Switch.js +4 -6
  525. package/react/components/SwitchGroup.js +1 -1
  526. package/react/components/TabCustom.js +6 -4
  527. package/react/components/TabList.js +4 -8
  528. package/react/components/Tag.js +13 -17
  529. package/react/components/TagInput.js +1 -1
  530. package/react/components/Text/Heading.js +6 -6
  531. package/react/components/ThemeSelector.js +1 -1
  532. package/react/components/TimePicker.d.ts +9 -2
  533. package/react/components/TimePicker.js +29 -4
  534. package/react/components/TimePickerPopover.d.ts +19 -0
  535. package/react/components/TimePickerPopover.js +225 -0
  536. package/react/components/TimePickerV2.js +17 -17
  537. package/react/components/Toast.js +3 -3
  538. package/react/components/ToastMessage.d.ts +1 -1
  539. package/react/components/ToastMessage.js +1 -1
  540. package/react/components/ToastText.js +5 -8
  541. package/react/components/ToastWrapper.js +3 -5
  542. package/react/components/ToggleBox/CustomHeaderToggleBox.d.ts +1 -1
  543. package/react/components/ToggleBox/CustomHeaderToggleBox.js +7 -7
  544. package/react/components/ToggleBox/SimpleToggleBox.d.ts +1 -1
  545. package/react/components/ToggleBox/SimpleToggleBox.js +5 -5
  546. package/react/components/ToggleBox/index.js +3 -3
  547. package/react/components/TreeMenu.d.ts +1 -1
  548. package/react/components/TreeMenu.js +38 -44
  549. package/react/components/TreeSelect/TreeSelect.d.ts +2 -2
  550. package/react/components/TreeSelect/TreeSelect.js +105 -127
  551. package/react/components/TreeSelect/TreeSelectItem.d.ts +1 -1
  552. package/react/components/TreeSelect/TreeSelectItem.js +10 -13
  553. package/react/components/TreeSelect/TreeSelectPill.d.ts +1 -1
  554. package/react/components/TreeSelect/TreeSelectPill.js +8 -9
  555. package/react/components/WithPagination.js +18 -21
  556. package/react/components/WithPortal.d.ts +1 -1
  557. package/react/components/WithPortal.js +2 -1
  558. package/react/components/WithSizeObserver.js +1 -3
  559. package/react/components/_Positioner.js +11 -11
  560. package/react/components/avatar/avatar-action-add.js +1 -1
  561. package/react/components/avatar/avatar-group.js +11 -14
  562. package/react/components/avatar/avatar-image.js +6 -4
  563. package/react/components/avatar/avatar-placeholder.js +1 -1
  564. package/react/components/avatar/avatar-wrapper.js +2 -4
  565. package/react/components/avatar/avatar.js +4 -3
  566. package/react/helpers.js +2 -2
  567. package/react/index.d.ts +1 -1
  568. package/react/utils/time.d.ts +5 -0
  569. package/react/utils/time.js +36 -0
  570. package/tasks/webpack.dev.js +1 -1
  571. package/tasks/webpack.js +5 -5
  572. package/tasks/webpack.prod.js +1 -5
  573. package/tsconfig.json +2 -5
  574. package/tslint.json +6 -12
  575. package/webpack.config.js +2 -5
@@ -1,18 +1,35 @@
1
1
  import * as React from 'react';
2
2
  import * as Components from './components/Index';
3
- import {
4
- Button, ButtonGroup, NavButton,
5
- SubNav, SubNavDivider,
6
- Checkbox, CheckGroup, CheckButtonGroup, CheckboxButton, RadioButtonGroup, Switch, SwitchGroup,
7
- Input, Select, Option,
3
+ import {
4
+ Button,
5
+ ButtonGroup,
6
+ NavButton,
7
+ SubNav,
8
+ SubNavDivider,
9
+ Checkbox,
10
+ CheckGroup,
11
+ CheckButtonGroup,
12
+ CheckboxButton,
13
+ RadioButtonGroup,
14
+ Switch,
15
+ SwitchGroup,
16
+ Input,
17
+ Select,
18
+ Option,
8
19
  Label,
9
20
  Tooltip,
10
- Tabs, TabLabel, TabContent, TabPanel,
11
- AvatarWrapper, AvatarContentImage,
21
+ Tabs,
22
+ TabLabel,
23
+ TabContent,
24
+ TabPanel,
25
+ AvatarWrapper,
26
+ AvatarContentImage,
12
27
  LeftMenu,
13
- SimpleList, SimpleListItem,
28
+ SimpleList,
29
+ SimpleListItem,
14
30
  Container,
15
- Heading, Text,
31
+ Heading,
32
+ Text,
16
33
  Divider,
17
34
  ThemeSelector,
18
35
  Tag,
@@ -79,11 +96,11 @@ export class PersonalProfile extends React.Component<IProps, IState> {
79
96
  radioValue2: 'grid',
80
97
  radioValue3: 'list',
81
98
  indexValue: 0,
82
- }
99
+ };
83
100
  this.handleFilter = this.handleFilter.bind(this);
84
101
  this.handlePreview = this.handlePreview.bind(this);
85
102
  this.handleTheme = this.handleTheme.bind(this);
86
- this.handleClick=this.handleClick.bind(this);
103
+ this.handleClick = this.handleClick.bind(this);
87
104
  }
88
105
 
89
106
  handleFilter() {
@@ -100,8 +117,8 @@ export class PersonalProfile extends React.Component<IProps, IState> {
100
117
 
101
118
  handleTheme(newTheme: string) {
102
119
  this.setState({
103
- theme: newTheme
104
- })
120
+ theme: newTheme,
121
+ });
105
122
  }
106
123
 
107
124
  changeStatus(item: any, status: string) {
@@ -115,146 +132,198 @@ export class PersonalProfile extends React.Component<IProps, IState> {
115
132
  handleClick = (number: number) => {
116
133
  this.setState({
117
134
  indexValue: number,
118
- })
119
- }
135
+ });
136
+ };
120
137
 
121
138
  render() {
122
139
  return (
123
- <Components.Layout header='My Profile' theme={this.state.theme}>
140
+ <Components.Layout header="My Profile" theme={this.state.theme}>
124
141
  <Components.LayoutContainer>
125
142
  <Components.HeaderPanel>
126
143
  <SubNav>
127
- <ButtonGroup align='start' spaces='no-space'>
128
- <Tooltip text='User list' flow='right'>
129
- <NavButton icon='arrow-left' onClick={() => false} />
144
+ <ButtonGroup align="start" spaces="no-space">
145
+ <Tooltip text="User list" flow="right">
146
+ <NavButton icon="arrow-left" onClick={() => false} />
130
147
  </Tooltip>
131
148
  </ButtonGroup>
132
- <SubNavDivider width='medium' />
149
+ <SubNavDivider width="medium" />
133
150
  <AvatarWrapper size="medium">
134
151
  <AvatarContentImage imageUrl="/avatar.jpg" tooltipText="John Doe" />
135
152
  </AvatarWrapper>
136
- <h2 className='subnav__page-title'>Jeffrey Lebowski</h2>
153
+ <h2 className="subnav__page-title">Jeffrey Lebowski</h2>
137
154
  </SubNav>
138
155
  <SubNav>
139
- <SubNavDivider width='small' />
156
+ <SubNavDivider width="small" />
140
157
  <Tabs onClick={this.handleClick}>
141
- <TabLabel label='Overview' indexValue={0}/>
142
- <TabLabel label='Personal preferences' indexValue={1}/>
143
- <TabLabel label='Privileges' indexValue={2}/>
158
+ <TabLabel label="Overview" indexValue={0} />
159
+ <TabLabel label="Personal preferences" indexValue={1} />
160
+ <TabLabel label="Privileges" indexValue={2} />
144
161
  </Tabs>
145
162
  </SubNav>
146
163
  </Components.HeaderPanel>
147
164
  {/* TOOLBAR HEADER */}
148
- <TabContent activePanel={this.state.indexValue}>
165
+ <TabContent activePanel={this.state.indexValue}>
149
166
  <TabPanel indexValue={0}>
150
167
  <Layout.LeftPanel open={true}>
151
- <Layout.Panel background='transparent' size='xx-small'>
168
+ <Layout.Panel background="transparent" size="xx-small">
152
169
  <Layout.PanelContent>
153
170
  <LeftMenu
154
- ariaLabel={'Left navigation'}
155
- scrollSpy='#scrollContainer'
156
- activeItemId='1'
157
- style='blanc'
158
- groups={[{ label: '', items: [
159
- { id: '1', label: 'General info', ref:'profile'},
160
- { id: '2', label: 'Password', ref: 'password' },
161
- { id: '3', label: 'Default desk', ref: 'defaultDesk' },
162
- { id: '4', label: 'Language', ref: 'language' },
163
- { id: '5', label: 'Author info', ref: 'autorInfo' }
164
- ]}]}
165
- onSelect={() => {console.log('onSelect triggered')}}
171
+ ariaLabel={'Left navigation'}
172
+ scrollSpy="#scrollContainer"
173
+ activeItemId="1"
174
+ style="blanc"
175
+ groups={[
176
+ {
177
+ label: '',
178
+ items: [
179
+ {id: '1', label: 'General info', ref: 'profile'},
180
+ {id: '2', label: 'Password', ref: 'password'},
181
+ {id: '3', label: 'Default desk', ref: 'defaultDesk'},
182
+ {id: '4', label: 'Language', ref: 'language'},
183
+ {id: '5', label: 'Author info', ref: 'autorInfo'},
184
+ ],
185
+ },
186
+ ]}
187
+ onSelect={() => {
188
+ console.log('onSelect triggered');
189
+ }}
166
190
  />
167
191
  </Layout.PanelContent>
168
192
  </Layout.Panel>
169
193
  </Layout.LeftPanel>
170
194
  {/* FILTER PANEL*/}
171
- <Layout.MainPanel className='sd-padding--3' id='scrollContainer'>
172
- <SimpleList density='comfortable' width='large'>
173
- <SimpleListItem stacked={true} id='profile'>
174
- <Container id="profile" direction='column' className='sd-radius--medium sd-panel-bg--gradient-1 sd-shadow--z2 sd-padding--3 sd-state--focus'>
175
- <Container className='sd-flex-justify-space-between sd-margin-b--2'>
176
- <Label text='Active' type='success' style='translucent' />
177
- <Switch toolTipFlow='left' label={{content:'Toggle active', hidden: true}} value={this.state.value1} onChange={(value) => this.setState(() => ({ value1: value }))} />
195
+ <Layout.MainPanel className="sd-padding--3" id="scrollContainer">
196
+ <SimpleList density="comfortable" width="large">
197
+ <SimpleListItem stacked={true} id="profile">
198
+ <Container
199
+ id="profile"
200
+ direction="column"
201
+ className="sd-radius--medium sd-panel-bg--gradient-1 sd-shadow--z2 sd-padding--3 sd-state--focus"
202
+ >
203
+ <Container className="sd-flex-justify-space-between sd-margin-b--2">
204
+ <Label text="Active" type="success" style="translucent" />
205
+ <Switch
206
+ toolTipFlow="left"
207
+ label={{content: 'Toggle active', hidden: true}}
208
+ value={this.state.value1}
209
+ onChange={(value) => this.setState(() => ({value1: value}))}
210
+ />
178
211
  </Container>
179
- <Container direction='column' className='sd-flex-align-items-center sd-margin-x--auto'>
212
+ <Container
213
+ direction="column"
214
+ className="sd-flex-align-items-center sd-margin-x--auto"
215
+ >
180
216
  <AvatarWrapper size="xx-large">
181
217
  <AvatarContentImage imageUrl="/avatar.jpg" tooltipText="John Doe" />
182
218
  </AvatarWrapper>
183
- <Heading className='sd-margin-b--0-5 sd-margin-t--2' align='center' type='h2'>Jeffrey Lebowski</Heading>
184
- <Text className='sd-margin-b--1 sd-font-size--medium' align='center' color='light' >the_dude</Text>
185
- <Text className='sd-margin-b--1-5 sd-font-size--x-small' align='center' color='lighter'>Member since 24.04.2011</Text>
186
- <ButtonGroup spaces='compact' align='center'>
187
- <Tag text='Editor' shade='light' readOnly={true} onClick={()=>false} />
188
- <Tag text='Author' shade='light' readOnly={true} onClick={()=>false} />
189
- <Tag text='Administrator' shade='highlight1' readOnly={true} onClick={()=>false} />
219
+ <Heading
220
+ className="sd-margin-b--0-5 sd-margin-t--2"
221
+ align="center"
222
+ type="h2"
223
+ >
224
+ Jeffrey Lebowski
225
+ </Heading>
226
+ <Text
227
+ className="sd-margin-b--1 sd-font-size--medium"
228
+ align="center"
229
+ color="light"
230
+ >
231
+ the_dude
232
+ </Text>
233
+ <Text
234
+ className="sd-margin-b--1-5 sd-font-size--x-small"
235
+ align="center"
236
+ color="lighter"
237
+ >
238
+ Member since 24.04.2011
239
+ </Text>
240
+ <ButtonGroup spaces="compact" align="center">
241
+ <Tag
242
+ text="Editor"
243
+ shade="light"
244
+ readOnly={true}
245
+ onClick={() => false}
246
+ />
247
+ <Tag
248
+ text="Author"
249
+ shade="light"
250
+ readOnly={true}
251
+ onClick={() => false}
252
+ />
253
+ <Tag
254
+ text="Administrator"
255
+ shade="highlight1"
256
+ readOnly={true}
257
+ onClick={() => false}
258
+ />
190
259
  </ButtonGroup>
191
260
  </Container>
192
- <Container direction='column' className='sd-margin-t--4'>
193
- <Form.FormGroup marginBottom='3'>
261
+ <Container direction="column" className="sd-margin-t--4">
262
+ <Form.FormGroup marginBottom="3">
194
263
  <Form.FormItem>
195
264
  <Input
196
- label='First Name'
197
- type='text'
198
- value='Jeffrey'
265
+ label="First Name"
266
+ type="text"
267
+ value="Jeffrey"
199
268
  required={false}
200
269
  disabled={false}
201
270
  onChange={() => false}
202
271
  />
203
272
  </Form.FormItem>
204
273
  </Form.FormGroup>
205
- <Form.FormGroup marginBottom='3'>
274
+ <Form.FormGroup marginBottom="3">
206
275
  <Form.FormItem>
207
276
  <Input
208
- label='Last Name'
209
- type='text'
210
- value='Lebowski'
277
+ label="Last Name"
278
+ type="text"
279
+ value="Lebowski"
211
280
  required={false}
212
281
  disabled={false}
213
282
  onChange={() => false}
214
283
  />
215
284
  </Form.FormItem>
216
285
  </Form.FormGroup>
217
- <Form.FormGroup marginBottom='4'>
286
+ <Form.FormGroup marginBottom="4">
218
287
  <Form.FormItem>
219
288
  <Input
220
- label='Username'
221
- type='text'
222
- value='the_dude'
289
+ label="Username"
290
+ type="text"
291
+ value="the_dude"
223
292
  required={false}
224
293
  disabled={false}
225
294
  onChange={() => false}
226
295
  />
227
296
  </Form.FormItem>
228
297
  </Form.FormGroup>
229
- <Form.FormGroup marginBottom='3'>
298
+ <Form.FormGroup marginBottom="3">
230
299
  <Form.FormItem>
231
300
  <Input
232
- label='Email'
233
- type='text'
234
- value='jeffrey.lebowski@bloodsimple.org'
301
+ label="Email"
302
+ type="text"
303
+ value="jeffrey.lebowski@bloodsimple.org"
235
304
  required={false}
236
305
  disabled={false}
237
306
  onChange={() => false}
238
307
  />
239
308
  </Form.FormItem>
240
309
  </Form.FormGroup>
241
- <Form.FormGroup marginBottom='3'>
310
+ <Form.FormGroup marginBottom="3">
242
311
  <Form.FormItem>
243
312
  <Input
244
- label='Phone number'
245
- type='text'
246
- value='+381 64 155 22 55'
313
+ label="Phone number"
314
+ type="text"
315
+ value="+381 64 155 22 55"
247
316
  required={false}
248
317
  disabled={false}
249
318
  onChange={() => false}
250
319
  />
251
320
  </Form.FormItem>
252
321
  </Form.FormGroup>
253
- <Form.FormGroup marginBottom='4'>
322
+ <Form.FormGroup marginBottom="4">
254
323
  <Form.FormItem>
255
324
  <Select
256
- label='Role'
257
- value='Select user role'
325
+ label="Role"
326
+ value="Select user role"
258
327
  required={false}
259
328
  disabled={false}
260
329
  onChange={() => false}
@@ -264,154 +333,170 @@ export class PersonalProfile extends React.Component<IProps, IState> {
264
333
  <Option>Photographer</Option>
265
334
  <Option>Freelancer</Option>
266
335
  <Option>Journalist Assistant</Option>
267
- </Select>
336
+ </Select>
268
337
  </Form.FormItem>
269
338
  </Form.FormGroup>
270
- <CheckGroup orientation='vertical'>
271
- <Checkbox checked={this.state.value11} label={{text:'Administrator'}}
272
- onChange={(value) => this.setState(() => ({ value11: value }))} />
273
- <Checkbox checked={this.state.value12} label={{text:'Author'}}
274
- onChange={(value) => this.setState(() => ({ value12: value }))} />
339
+ <CheckGroup orientation="vertical">
340
+ <Checkbox
341
+ checked={this.state.value11}
342
+ label={{text: 'Administrator'}}
343
+ onChange={(value) => this.setState(() => ({value11: value}))}
344
+ />
345
+ <Checkbox
346
+ checked={this.state.value12}
347
+ label={{text: 'Author'}}
348
+ onChange={(value) => this.setState(() => ({value12: value}))}
349
+ />
275
350
  </CheckGroup>
276
351
  </Container>
277
352
  </Container>
278
353
  </SimpleListItem>
279
- <SimpleListItem stacked={true} id='password'>
280
- <Heading type='h3'>Password</Heading>
281
- <Container className='sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus'>
282
- <ButtonGroup align='center'>
283
- <Button style='hollow' type='primary' text='Change password' onClick={()=> false} />
354
+ <SimpleListItem stacked={true} id="password">
355
+ <Heading type="h3">Password</Heading>
356
+ <Container className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus">
357
+ <ButtonGroup align="center">
358
+ <Button
359
+ style="hollow"
360
+ type="primary"
361
+ text="Change password"
362
+ onClick={() => false}
363
+ />
284
364
  </ButtonGroup>
285
365
  </Container>
286
366
  </SimpleListItem>
287
- <SimpleListItem stacked={true} id='defaultDesk' >
288
- <Heading type='h3'>Default desk</Heading>
289
- <Container className='sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus'>
290
- <Form.FormGroup inlineLabel={true} marginBottom='0'>
291
- <Form.FormItem>
292
- <Select
293
- label='Default desk'
294
- value='This is some value'
295
- labelHidden={true}
296
- required={false}
297
- disabled={false}
298
- onChange={() => false}
299
- >
300
- <Option>International</Option>
301
- <Option>Kulture</Option>
302
- <Option>National</Option>
303
- <Option>News</Option>
304
- <Option>Politics</Option>
305
- <Option>Sports</Option>
306
- </Select>
307
- </Form.FormItem>
308
- </Form.FormGroup>
367
+ <SimpleListItem stacked={true} id="defaultDesk">
368
+ <Heading type="h3">Default desk</Heading>
369
+ <Container className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus">
370
+ <Form.FormGroup inlineLabel={true} marginBottom="0">
371
+ <Form.FormItem>
372
+ <Select
373
+ label="Default desk"
374
+ value="This is some value"
375
+ labelHidden={true}
376
+ required={false}
377
+ disabled={false}
378
+ onChange={() => false}
379
+ >
380
+ <Option>International</Option>
381
+ <Option>Kulture</Option>
382
+ <Option>National</Option>
383
+ <Option>News</Option>
384
+ <Option>Politics</Option>
385
+ <Option>Sports</Option>
386
+ </Select>
387
+ </Form.FormItem>
388
+ </Form.FormGroup>
309
389
  </Container>
310
390
  </SimpleListItem>
311
- <SimpleListItem stacked={true} id='language'>
312
- <Heading type='h3'>Language</Heading>
313
- <Container className='sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus'>
314
- <Form.FormGroup inlineLabel={true} marginBottom='0'>
315
- <Form.FormItem>
316
- <Select
317
- label='Language'
318
- value='English'
319
- labelHidden={true}
320
- required={false}
321
- disabled={false}
322
- onChange={() => false}
323
- >
324
- <Option>English</Option>
325
- <Option>German</Option>
326
- <Option>French</Option>
327
- <Option>Serbian</Option>
328
- </Select>
329
- </Form.FormItem>
330
- </Form.FormGroup>
391
+ <SimpleListItem stacked={true} id="language">
392
+ <Heading type="h3">Language</Heading>
393
+ <Container className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus">
394
+ <Form.FormGroup inlineLabel={true} marginBottom="0">
395
+ <Form.FormItem>
396
+ <Select
397
+ label="Language"
398
+ value="English"
399
+ labelHidden={true}
400
+ required={false}
401
+ disabled={false}
402
+ onChange={() => false}
403
+ >
404
+ <Option>English</Option>
405
+ <Option>German</Option>
406
+ <Option>French</Option>
407
+ <Option>Serbian</Option>
408
+ </Select>
409
+ </Form.FormItem>
410
+ </Form.FormGroup>
331
411
  </Container>
332
412
  </SimpleListItem>
333
- <SimpleListItem stacked={true} id='autorInfo'>
334
- <h3 className='sd-font-size--medium'>Author info</h3>
335
- <Container direction='column' className='sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus'>
336
- <Form.FormGroup marginBottom='3'>
413
+ <SimpleListItem stacked={true} id="autorInfo">
414
+ <h3 className="sd-font-size--medium">Author info</h3>
415
+ <Container
416
+ direction="column"
417
+ className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus"
418
+ >
419
+ <Form.FormGroup marginBottom="3">
337
420
  <Form.FormItem>
338
421
  <Input
339
- label='Sign-Off'
340
- type='text'
341
- value='the_dude'
422
+ label="Sign-Off"
423
+ type="text"
424
+ value="the_dude"
342
425
  required={false}
343
426
  disabled={false}
344
427
  onChange={() => false}
345
428
  />
346
429
  </Form.FormItem>
347
430
  </Form.FormGroup>
348
- <Form.FormGroup marginBottom='3'>
431
+ <Form.FormGroup marginBottom="3">
349
432
  <Form.FormItem>
350
433
  <Input
351
- label='Byline'
352
- type='text'
353
- value='Jeffrey Lebowski'
434
+ label="Byline"
435
+ type="text"
436
+ value="Jeffrey Lebowski"
354
437
  required={false}
355
438
  disabled={false}
356
439
  onChange={() => false}
357
440
  />
358
441
  </Form.FormItem>
359
442
  </Form.FormGroup>
360
- <Form.FormGroup marginBottom='3'>
443
+ <Form.FormGroup marginBottom="3">
361
444
  <Form.FormItem>
362
445
  <Input
363
- label='Job Title'
364
- type='text'
365
- value='the_dude'
446
+ label="Job Title"
447
+ type="text"
448
+ value="the_dude"
366
449
  required={false}
367
450
  disabled={false}
368
451
  onChange={() => false}
369
452
  />
370
453
  </Form.FormItem>
371
454
  </Form.FormGroup>
372
- <Form.FormGroup marginBottom='4'>
455
+ <Form.FormGroup marginBottom="4">
373
456
  <Form.FormItem>
374
457
  <Input
375
- label='Biography'
376
- type='text'
377
- value='the_dude'
458
+ label="Biography"
459
+ type="text"
460
+ value="the_dude"
378
461
  required={false}
379
462
  disabled={false}
380
463
  onChange={() => false}
381
464
  />
382
465
  </Form.FormItem>
383
466
  </Form.FormGroup>
384
- <Heading className='sd-margin-t--3 sd-margin-b--2' type='h4'>Social media</Heading>
385
- <Form.FormGroup marginBottom='3'>
467
+ <Heading className="sd-margin-t--3 sd-margin-b--2" type="h4">
468
+ Social media
469
+ </Heading>
470
+ <Form.FormGroup marginBottom="3">
386
471
  <Form.FormItem>
387
472
  <Input
388
- label='Facebook'
389
- type='text'
390
- value='the_dude'
473
+ label="Facebook"
474
+ type="text"
475
+ value="the_dude"
391
476
  required={false}
392
477
  disabled={false}
393
478
  onChange={() => false}
394
479
  />
395
480
  </Form.FormItem>
396
481
  </Form.FormGroup>
397
- <Form.FormGroup marginBottom='3'>
482
+ <Form.FormGroup marginBottom="3">
398
483
  <Form.FormItem>
399
484
  <Input
400
- label='Instagram'
401
- type='text'
402
- value='the_dude'
485
+ label="Instagram"
486
+ type="text"
487
+ value="the_dude"
403
488
  required={false}
404
489
  disabled={false}
405
490
  onChange={() => false}
406
491
  />
407
492
  </Form.FormItem>
408
493
  </Form.FormGroup>
409
- <Form.FormGroup marginBottom='2'>
494
+ <Form.FormGroup marginBottom="2">
410
495
  <Form.FormItem>
411
496
  <Input
412
- label='Twitter'
413
- type='text'
414
- value='the_dude'
497
+ label="Twitter"
498
+ type="text"
499
+ value="the_dude"
415
500
  required={false}
416
501
  disabled={false}
417
502
  onChange={() => false}
@@ -423,105 +508,156 @@ export class PersonalProfile extends React.Component<IProps, IState> {
423
508
  </SimpleList>
424
509
  </Layout.MainPanel>
425
510
  {/* MAIN CONTENT (Monitoring) */}
426
- <Components.RightPanel open={this.state.openPreview}>
427
- </Components.RightPanel>
511
+ <Components.RightPanel open={this.state.openPreview}></Components.RightPanel>
428
512
  {/* PREVIEW PANEL*/}
429
513
  <Components.OverlayPanel />
430
514
  {/* OVERLAY PANEL (Send To) */}
431
515
  </TabPanel>
432
516
  <TabPanel indexValue={1}>
433
517
  <Layout.LeftPanel open={true}>
434
- <Layout.Panel background='transparent' size='xx-small'>
518
+ <Layout.Panel background="transparent" size="xx-small">
435
519
  <Layout.PanelContent>
436
- <LeftMenu ariaLabel={'Left navigation'}
437
- activeItemId='#1'
438
- style='blanc'
439
- groups={[{ label: '', items: [
440
- { id: '1', label: 'Feature preview' },
441
- { id: '2', label: 'View formats' },
442
- { id: '3', label: 'Notifications' },
443
- { id: '4', label: 'Article defaults' },
444
- { id: '5', label: 'Categories' },
445
- { id: '6', label: 'Desks' },
446
- { id: '7', label: 'Vocabulary values' },
447
- { id: '8', label: 'Appearance' }
448
- ]}]}
520
+ <LeftMenu
521
+ ariaLabel={'Left navigation'}
522
+ activeItemId="#1"
523
+ style="blanc"
524
+ groups={[
525
+ {
526
+ label: '',
527
+ items: [
528
+ {id: '1', label: 'Feature preview'},
529
+ {id: '2', label: 'View formats'},
530
+ {id: '3', label: 'Notifications'},
531
+ {id: '4', label: 'Article defaults'},
532
+ {id: '5', label: 'Categories'},
533
+ {id: '6', label: 'Desks'},
534
+ {id: '7', label: 'Vocabulary values'},
535
+ {id: '8', label: 'Appearance'},
536
+ ],
537
+ },
538
+ ]}
449
539
  onSelect={() => false}
450
540
  />
451
541
  </Layout.PanelContent>
452
542
  </Layout.Panel>
453
543
  </Layout.LeftPanel>
454
544
  {/* FILTER PANEL*/}
455
- <Layout.MainPanel className='sd-padding--3'>
456
- <SimpleList density='comfortable' width='large'>
545
+ <Layout.MainPanel className="sd-padding--3">
546
+ <SimpleList density="comfortable" width="large">
457
547
  <SimpleListItem stacked={true}>
458
- <Heading type='h3'>Feature preview</Heading>
459
- <Container className='sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus'>
460
- <Switch label={{content:'Enable Feature Preview'}} value={this.state.value1} onChange={(value) => this.setState(() => ({ value1: value }))} />
548
+ <Heading type="h3">Feature preview</Heading>
549
+ <Container className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus">
550
+ <Switch
551
+ label={{content: 'Enable Feature Preview'}}
552
+ value={this.state.value1}
553
+ onChange={(value) => this.setState(() => ({value1: value}))}
554
+ />
461
555
  </Container>
462
556
  </SimpleListItem>
463
557
  <SimpleListItem stacked={true}>
464
- <Heading type='h3'>View formats</Heading>
465
- <Container direction='column' className='sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus'>
466
- <Text color='light' className=''>Select the prefered default view format for specific areas of Superdesks interface.
467
- The sections will always open in the selected view format, but can be always changed using the view option dropdown in each section.
558
+ <Heading type="h3">View formats</Heading>
559
+ <Container
560
+ direction="column"
561
+ className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus"
562
+ >
563
+ <Text color="light" className="">
564
+ Select the prefered default view format for specific areas of Superdesks
565
+ interface. The sections will always open in the selected view format,
566
+ but can be always changed using the view option dropdown in each
567
+ section.
468
568
  </Text>
469
- <SimpleList density='compact' border={true} className='sd-margin-t--3 sd-margin-b--0 sd-padding-b--0' >
569
+ <SimpleList
570
+ density="compact"
571
+ border={true}
572
+ className="sd-margin-t--3 sd-margin-b--0 sd-padding-b--0"
573
+ >
470
574
  <SimpleListItem stacked={true}>
471
- <Heading type='h4'>Archive</Heading>
472
- <RadioButtonGroup value={this.state.radioValue1} options={[
473
- {label: "Grid view", value: "grid", icon: "th"},
474
- {label: "List view", value: "list", icon: "th-list"},
475
- ]} onChange={(value) => this.setState(() => ({ radioValue1: value }))} />
575
+ <Heading type="h4">Archive</Heading>
576
+ <RadioButtonGroup
577
+ value={this.state.radioValue1}
578
+ options={[
579
+ {label: 'Grid view', value: 'grid', icon: 'th'},
580
+ {label: 'List view', value: 'list', icon: 'th-list'},
581
+ ]}
582
+ onChange={(value) =>
583
+ this.setState(() => ({radioValue1: value}))
584
+ }
585
+ />
476
586
  </SimpleListItem>
477
587
  <SimpleListItem stacked={true}>
478
- <Heading type='h4'>Contacts</Heading>
479
- <RadioButtonGroup value={this.state.radioValue2} options={[
480
- {label: "Grid view", value: "grid", icon: "th"},
481
- {label: "List view", value: "list", icon: "th-list"},
482
- ]} onChange={(value) => this.setState(() => ({ radioValue2: value }))} />
588
+ <Heading type="h4">Contacts</Heading>
589
+ <RadioButtonGroup
590
+ value={this.state.radioValue2}
591
+ options={[
592
+ {label: 'Grid view', value: 'grid', icon: 'th'},
593
+ {label: 'List view', value: 'list', icon: 'th-list'},
594
+ ]}
595
+ onChange={(value) =>
596
+ this.setState(() => ({radioValue2: value}))
597
+ }
598
+ />
483
599
  </SimpleListItem>
484
600
  <SimpleListItem stacked={true}>
485
- <Heading type='h4'>Archive</Heading>
486
- <RadioButtonGroup value={this.state.radioValue3} options={[
487
- {label: "Grid view", value: "grid", icon: "th"},
488
- {label: "List view", value: "list", icon: "th-list"},
489
- {label: "Swimlane view", value: "kanban", icon: "kanban-view"},
490
- ]} onChange={(value) => this.setState(() => ({ radioValue3: value }))} />
601
+ <Heading type="h4">Archive</Heading>
602
+ <RadioButtonGroup
603
+ value={this.state.radioValue3}
604
+ options={[
605
+ {label: 'Grid view', value: 'grid', icon: 'th'},
606
+ {label: 'List view', value: 'list', icon: 'th-list'},
607
+ {
608
+ label: 'Swimlane view',
609
+ value: 'kanban',
610
+ icon: 'kanban-view',
611
+ },
612
+ ]}
613
+ onChange={(value) =>
614
+ this.setState(() => ({radioValue3: value}))
615
+ }
616
+ />
491
617
  </SimpleListItem>
492
-
493
618
  </SimpleList>
494
619
  </Container>
495
620
  </SimpleListItem>
496
621
  <SimpleListItem stacked={true}>
497
- <Heading type='h3'>Notifications</Heading>
498
- <Container className='sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus'>
622
+ <Heading type="h3">Notifications</Heading>
623
+ <Container className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus">
499
624
  <SwitchGroup>
500
- <Switch label={{content:'Send notifications via email'}} value={this.state.value2} onChange={(value) => this.setState(() => ({ value2: value }))} />
501
- <Switch label={{content:'Allow Desktop Notifications'}} value={this.state.value3} onChange={(value) => this.setState(() => ({ value3: value }))} />
625
+ <Switch
626
+ label={{content: 'Send notifications via email'}}
627
+ value={this.state.value2}
628
+ onChange={(value) => this.setState(() => ({value2: value}))}
629
+ />
630
+ <Switch
631
+ label={{content: 'Allow Desktop Notifications'}}
632
+ value={this.state.value3}
633
+ onChange={(value) => this.setState(() => ({value3: value}))}
634
+ />
502
635
  </SwitchGroup>
503
636
  </Container>
504
637
  </SimpleListItem>
505
638
  <SimpleListItem stacked={true}>
506
- <h3 className='sd-font-size--medium'>Article defaults</h3>
507
- <Container direction='column' className='sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus'>
639
+ <h3 className="sd-font-size--medium">Article defaults</h3>
640
+ <Container
641
+ direction="column"
642
+ className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus"
643
+ >
508
644
  <Form.FormGroup>
509
645
  <Form.FormItem>
510
646
  <Input
511
- label='Dateline / Located'
512
- type='text'
513
- value=''
647
+ label="Dateline / Located"
648
+ type="text"
649
+ value=""
514
650
  required={false}
515
651
  disabled={false}
516
652
  onChange={() => false}
517
- />
653
+ />
518
654
  </Form.FormItem>
519
655
  </Form.FormGroup>
520
656
  <Form.FormGroup>
521
657
  <Form.FormItem>
522
658
  <Select
523
- label='Place'
524
- value='This is some value'
659
+ label="Place"
660
+ value="This is some value"
525
661
  required={true}
526
662
  disabled={false}
527
663
  onChange={() => false}
@@ -529,87 +665,171 @@ export class PersonalProfile extends React.Component<IProps, IState> {
529
665
  <Option>Select place</Option>
530
666
  <Option>Option 1</Option>
531
667
  <Option>Option 2</Option>
532
- </Select>
668
+ </Select>
533
669
  </Form.FormItem>
534
670
  </Form.FormGroup>
535
671
  </Container>
536
672
  </SimpleListItem>
537
673
  <SimpleListItem stacked={true}>
538
- <Heading type='h3'>Categories</Heading>
539
- <Container direction='column' className='sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus'>
540
- <Heading type='h4'>Preferred Categories</Heading>
541
- <Text color='light' className=''>By selecting the categories you are interested in, the system will only display these in a
542
- menu for setting the content item's categories (along with any of its existing categories).
674
+ <Heading type="h3">Categories</Heading>
675
+ <Container
676
+ direction="column"
677
+ className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus"
678
+ >
679
+ <Heading type="h4">Preferred Categories</Heading>
680
+ <Text color="light" className="">
681
+ By selecting the categories you are interested in, the system will only
682
+ display these in a menu for setting the content item's categories (along
683
+ with any of its existing categories).
543
684
  </Text>
544
- <ButtonGroup className='sd-margin-y--2'>
545
- <Button text='All' style='text-only' type='primary' onClick={()=> false} />
685
+ <ButtonGroup className="sd-margin-y--2">
686
+ <Button
687
+ text="All"
688
+ style="text-only"
689
+ type="primary"
690
+ onClick={() => false}
691
+ />
546
692
  <Divider border={true} />
547
- <Button text='None' style='text-only' type='primary' onClick={()=> false} />
693
+ <Button
694
+ text="None"
695
+ style="text-only"
696
+ type="primary"
697
+ onClick={() => false}
698
+ />
548
699
  <Divider border={true} />
549
- <Button text='Default' style='text-only' type='primary' onClick={()=> false} />
700
+ <Button
701
+ text="Default"
702
+ style="text-only"
703
+ type="primary"
704
+ onClick={() => false}
705
+ />
550
706
  </ButtonGroup>
551
- <CheckButtonGroup grid={true}>
552
- <CheckboxButton checked={this.state.value1} label={{text:'Category one'}} onChange={(value) => this.setState(() => ({ value1: value }))} />
553
- <CheckboxButton checked={this.state.value2} label={{text:'Category two'}} onChange={(value) => this.setState(() => ({ value2: value }))} />
554
- <CheckboxButton checked={this.state.value3} label={{text:'Category three'}} onChange={(value) => this.setState(() => ({ value3: value }))} />
555
- <CheckboxButton checked={this.state.value4} label={{text:'Category four'}} onChange={(value) => this.setState(() => ({ value4: value }))} />
707
+ <CheckButtonGroup grid={true}>
708
+ <CheckboxButton
709
+ checked={this.state.value1}
710
+ label={{text: 'Category one'}}
711
+ onChange={(value) => this.setState(() => ({value1: value}))}
712
+ />
713
+ <CheckboxButton
714
+ checked={this.state.value2}
715
+ label={{text: 'Category two'}}
716
+ onChange={(value) => this.setState(() => ({value2: value}))}
717
+ />
718
+ <CheckboxButton
719
+ checked={this.state.value3}
720
+ label={{text: 'Category three'}}
721
+ onChange={(value) => this.setState(() => ({value3: value}))}
722
+ />
723
+ <CheckboxButton
724
+ checked={this.state.value4}
725
+ label={{text: 'Category four'}}
726
+ onChange={(value) => this.setState(() => ({value4: value}))}
727
+ />
556
728
  </CheckButtonGroup>
557
729
  </Container>
558
730
  </SimpleListItem>
559
731
  <SimpleListItem stacked={true}>
560
- <Heading type='h3'>Desks</Heading>
561
- <Container direction='column' className='sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus'>
562
- <Heading type='h4'>Preferred Desks</Heading>
563
- <Text color='light' className='sd-margin-b--2'>By selecting the desks as your preferred desks, they appear first in the order when
564
- sending or publishing items.
732
+ <Heading type="h3">Desks</Heading>
733
+ <Container
734
+ direction="column"
735
+ className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus"
736
+ >
737
+ <Heading type="h4">Preferred Desks</Heading>
738
+ <Text color="light" className="sd-margin-b--2">
739
+ By selecting the desks as your preferred desks, they appear first in the
740
+ order when sending or publishing items.
565
741
  </Text>
566
- <CheckButtonGroup grid={true}>
567
- <CheckboxButton checked={this.state.value5} label={{text:'Politics'}} onChange={(value) => this.setState(() => ({ value5: value }))} />
568
- <CheckboxButton checked={this.state.value6} label={{text:'Sports'}} onChange={(value) => this.setState(() => ({ value6: value }))} />
569
- <CheckboxButton checked={this.state.value7} label={{text:'News'}} onChange={(value) => this.setState(() => ({ value7: value }))} />
570
- <CheckboxButton checked={this.state.value8} label={{text:'National'}} onChange={(value) => this.setState(() => ({ value8: value }))} />
571
- <CheckboxButton checked={this.state.value9} label={{text:'International'}} onChange={(value) => this.setState(() => ({ value9: value }))} />
572
- <CheckboxButton checked={this.state.value10} label={{text:'Kulture'}} onChange={(value) => this.setState(() => ({ value10: value }))} />
742
+ <CheckButtonGroup grid={true}>
743
+ <CheckboxButton
744
+ checked={this.state.value5}
745
+ label={{text: 'Politics'}}
746
+ onChange={(value) => this.setState(() => ({value5: value}))}
747
+ />
748
+ <CheckboxButton
749
+ checked={this.state.value6}
750
+ label={{text: 'Sports'}}
751
+ onChange={(value) => this.setState(() => ({value6: value}))}
752
+ />
753
+ <CheckboxButton
754
+ checked={this.state.value7}
755
+ label={{text: 'News'}}
756
+ onChange={(value) => this.setState(() => ({value7: value}))}
757
+ />
758
+ <CheckboxButton
759
+ checked={this.state.value8}
760
+ label={{text: 'National'}}
761
+ onChange={(value) => this.setState(() => ({value8: value}))}
762
+ />
763
+ <CheckboxButton
764
+ checked={this.state.value9}
765
+ label={{text: 'International'}}
766
+ onChange={(value) => this.setState(() => ({value9: value}))}
767
+ />
768
+ <CheckboxButton
769
+ checked={this.state.value10}
770
+ label={{text: 'Kulture'}}
771
+ onChange={(value) => this.setState(() => ({value10: value}))}
772
+ />
573
773
  </CheckButtonGroup>
574
774
  </Container>
575
775
  </SimpleListItem>
576
776
  <SimpleListItem stacked={true}>
577
- <Heading type='h3'>Vocabulary values</Heading>
578
- <Container direction='column' className='sd-radius--medium sd-padding--2 sd-border--medium sd-border-style--dashed'>
579
- <Text color='lighter' size='medium' className='sd-margin--auto' align='center'>There are no vocabularies configured.</Text>
777
+ <Heading type="h3">Vocabulary values</Heading>
778
+ <Container
779
+ direction="column"
780
+ className="sd-radius--medium sd-padding--2 sd-border--medium sd-border-style--dashed"
781
+ >
782
+ <Text
783
+ color="lighter"
784
+ size="medium"
785
+ className="sd-margin--auto"
786
+ align="center"
787
+ >
788
+ There are no vocabularies configured.
789
+ </Text>
580
790
  </Container>
581
791
  </SimpleListItem>
582
792
  <SimpleListItem stacked={true}>
583
- <Heading type='h3'>Appearance</Heading>
584
- <Container direction='column' className='sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus'>
585
- <Heading type='h4'>Themes</Heading>
586
- <Text color='light' className='sd-margin-b--2'>Change the appearance of Superdesk across the whole application.</Text>
793
+ <Heading type="h3">Appearance</Heading>
794
+ <Container
795
+ direction="column"
796
+ className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus"
797
+ >
798
+ <Heading type="h4">Themes</Heading>
799
+ <Text color="light" className="sd-margin-b--2">
800
+ Change the appearance of Superdesk across the whole application.
801
+ </Text>
587
802
  <ThemeSelector
588
- size='small'
803
+ size="small"
589
804
  options={[
590
805
  {label: 'Light', value: 'light-ui', theme: 'light'},
591
806
  {label: 'Dark', value: 'dark-ui', theme: 'dark'},
592
- {label: 'High Contrast', value: 'high-contrast', theme: 'contrast-light', disabled: true},
807
+ {
808
+ label: 'High Contrast',
809
+ value: 'high-contrast',
810
+ theme: 'contrast-light',
811
+ disabled: true,
812
+ },
593
813
  ]}
594
- onChange={($event)=>{this.setState({theme: $event})}} value={this.state.theme}
814
+ onChange={($event) => {
815
+ this.setState({theme: $event});
816
+ }}
817
+ value={this.state.theme}
595
818
  />
596
819
  </Container>
597
820
  </SimpleListItem>
598
821
  </SimpleList>
599
822
  </Layout.MainPanel>
600
823
  {/* MAIN CONTENT (Monitoring) */}
601
- <Layout.RightPanel open={this.state.openPreview}>
602
- </Layout.RightPanel>
824
+ <Layout.RightPanel open={this.state.openPreview}></Layout.RightPanel>
603
825
  {/* PREVIEW PANEL*/}
604
826
  </TabPanel>
605
827
  <TabPanel indexValue={2}>
606
- <Layout.MainPanel >
607
- Privileges Content goes here
608
- </Layout.MainPanel>
828
+ <Layout.MainPanel>Privileges Content goes here</Layout.MainPanel>
609
829
  </TabPanel>
610
830
  </TabContent>
611
831
  </Components.LayoutContainer>
612
- </Components.Layout >
832
+ </Components.Layout>
613
833
  );
614
834
  }
615
835
  }