superdesk-ui-framework 4.0.52 → 4.0.54

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 (373) hide show
  1. package/app-typescript/components/DateTimePicker.tsx +11 -1
  2. package/dist/examples.bundle.js +14 -2
  3. package/dist/superdesk-ui.bundle.js +13 -1
  4. package/package.json +1 -1
  5. package/react/components/DateTimePicker.d.ts +1 -0
  6. package/react/components/DateTimePicker.js +13 -1
  7. package/dist/playgrounds/accessible-theme-test.html +0 -813
  8. package/dist/playgrounds/boxed-list.html +0 -164
  9. package/dist/playgrounds/cards.html +0 -244
  10. package/dist/playgrounds/circular-progress.html +0 -48
  11. package/dist/playgrounds/dummy-data/items.ts +0 -95
  12. package/dist/playgrounds/editor-3-test.html +0 -15
  13. package/dist/playgrounds/form-layout.html +0 -285
  14. package/dist/playgrounds/layout-grid.html +0 -79
  15. package/dist/playgrounds/layout-snippets/edit-article.html +0 -415
  16. package/dist/playgrounds/layout-test-2.html +0 -795
  17. package/dist/playgrounds/list-item-test.html +0 -896
  18. package/dist/playgrounds/main.html +0 -16
  19. package/dist/playgrounds/master-desk.html +0 -1678
  20. package/dist/playgrounds/media-carousel.html +0 -1166
  21. package/dist/playgrounds/nav-buttons.html +0 -65
  22. package/dist/playgrounds/photo-desk.html +0 -1515
  23. package/dist/playgrounds/photo-snippets/edit-photo-metadata.html +0 -208
  24. package/dist/playgrounds/planning-snippets/edit-event.html +0 -187
  25. package/dist/playgrounds/planning-snippets/edit-planning.html +0 -457
  26. package/dist/playgrounds/planning.html +0 -1112
  27. package/dist/playgrounds/publish-snippets/edit-article.html +0 -37
  28. package/dist/playgrounds/publish.html +0 -1007
  29. package/dist/playgrounds/publisher-content-analytics.html +0 -376
  30. package/dist/playgrounds/publisher-content-list-automatic.html +0 -296
  31. package/dist/playgrounds/publisher-content-list-manual.html +0 -611
  32. package/dist/playgrounds/publisher-content-lists.html +0 -255
  33. package/dist/playgrounds/publisher-dashboard.html +0 -323
  34. package/dist/playgrounds/publisher-output-control.html +0 -3659
  35. package/dist/playgrounds/publisher-website-settings-general.html +0 -188
  36. package/dist/playgrounds/publisher-website-settings.html +0 -265
  37. package/dist/playgrounds/react-playgrounds/CoreLayout.tsx +0 -952
  38. package/dist/playgrounds/react-playgrounds/EditorTest.tsx +0 -649
  39. package/dist/playgrounds/react-playgrounds/FirstPlayground.tsx +0 -236
  40. package/dist/playgrounds/react-playgrounds/Index.tsx +0 -11
  41. package/dist/playgrounds/react-playgrounds/Multiedit.tsx +0 -401
  42. package/dist/playgrounds/react-playgrounds/PageLayoutTest.tsx +0 -210
  43. package/dist/playgrounds/react-playgrounds/PersonalProfile.tsx +0 -835
  44. package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +0 -580
  45. package/dist/playgrounds/react-playgrounds/Rundowns.tsx +0 -1415
  46. package/dist/playgrounds/react-playgrounds/SamsPlayground.tsx +0 -401
  47. package/dist/playgrounds/react-playgrounds/TestGround.tsx +0 -2710
  48. package/dist/playgrounds/react-playgrounds/UiPlayground.tsx +0 -410
  49. package/dist/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +0 -25
  50. package/dist/playgrounds/react-playgrounds/components/AuthoringContent.tsx +0 -86
  51. package/dist/playgrounds/react-playgrounds/components/ContentSplitter.tsx +0 -19
  52. package/dist/playgrounds/react-playgrounds/components/GraphicButton.tsx +0 -34
  53. package/dist/playgrounds/react-playgrounds/components/GraphicButtonsGroup.tsx +0 -11
  54. package/dist/playgrounds/react-playgrounds/components/HeaderPanel.tsx +0 -11
  55. package/dist/playgrounds/react-playgrounds/components/Index.tsx +0 -20
  56. package/dist/playgrounds/react-playgrounds/components/Layout.tsx +0 -27
  57. package/dist/playgrounds/react-playgrounds/components/LayoutContainer.tsx +0 -15
  58. package/dist/playgrounds/react-playgrounds/components/LeftPanel.tsx +0 -15
  59. package/dist/playgrounds/react-playgrounds/components/MainPanel.tsx +0 -24
  60. package/dist/playgrounds/react-playgrounds/components/OverlayPanel.tsx +0 -17
  61. package/dist/playgrounds/react-playgrounds/components/Panel.tsx +0 -23
  62. package/dist/playgrounds/react-playgrounds/components/PanelContent.tsx +0 -11
  63. package/dist/playgrounds/react-playgrounds/components/PanelContentBlock.tsx +0 -19
  64. package/dist/playgrounds/react-playgrounds/components/PanelFooter.tsx +0 -17
  65. package/dist/playgrounds/react-playgrounds/components/PanelHeader.tsx +0 -31
  66. package/dist/playgrounds/react-playgrounds/components/RightPanel.tsx +0 -16
  67. package/dist/playgrounds/react-playgrounds/components/SearchBar.tsx +0 -87
  68. package/dist/playgrounds/react-playgrounds/components/SidebarMenu.tsx +0 -76
  69. package/dist/playgrounds/react-playgrounds/components/SubNav.tsx +0 -17
  70. package/dist/playgrounds/react-playgrounds/components/ThemeDropdown.tsx +0 -57
  71. package/dist/playgrounds/react-playgrounds/tsconfig.json +0 -4
  72. package/dist/playgrounds/settings.html +0 -92
  73. package/dist/playgrounds/side-navigation.html +0 -201
  74. package/dist/playgrounds/swimlane-view.html +0 -1975
  75. package/dist/playgrounds/tags-input.html +0 -55
  76. package/dist/playgrounds/toasts.html +0 -113
  77. package/dist/playgrounds/video-editor.html +0 -706
  78. package/examples/css/docs-page.css +0 -1135
  79. package/examples/css/reset.css +0 -124
  80. package/examples/css/vendor.css +0 -175
  81. package/examples/illustration-small--components.svg +0 -45
  82. package/examples/img/andrew-power-y9L5-wmifaY-unsplash.jpg +0 -0
  83. package/examples/img/andrew-power-y9L5-wmifaY-unsplash.license.txt +0 -6
  84. package/examples/img/avatar-2.jpg +0 -0
  85. package/examples/img/avatar-3.jpg +0 -0
  86. package/examples/img/avatar-4.jpg +0 -0
  87. package/examples/img/avatar-5.jpg +0 -0
  88. package/examples/img/avatar-6.jpg +0 -0
  89. package/examples/img/avatar.jpg +0 -0
  90. package/examples/img/bill.jpg +0 -0
  91. package/examples/img/bush_1.jpg +0 -0
  92. package/examples/img/bush_2.jpg +0 -0
  93. package/examples/img/carousel-thumb--01.jpg +0 -0
  94. package/examples/img/carousel-thumb--02.jpg +0 -0
  95. package/examples/img/carousel-thumb--03.jpg +0 -0
  96. package/examples/img/carousel-thumb--04.jpg +0 -0
  97. package/examples/img/components_ilustration.svg +0 -1
  98. package/examples/img/d_trump.jpg +0 -0
  99. package/examples/img/d_trump_2.jpg +0 -0
  100. package/examples/img/d_trump_large.jpg +0 -0
  101. package/examples/img/design_ilustration.svg +0 -1
  102. package/examples/img/ferocious_beast.webm +0 -0
  103. package/examples/img/guidelines/application-frame.png +0 -0
  104. package/examples/img/guidelines/application-frame__bottom-bar.png +0 -0
  105. package/examples/img/guidelines/application-frame__left-panel.gif +0 -0
  106. package/examples/img/guidelines/application-frame__left-panel.png +0 -0
  107. package/examples/img/guidelines/application-frame__main-content.gif +0 -0
  108. package/examples/img/guidelines/application-frame__main-content.png +0 -0
  109. package/examples/img/guidelines/application-frame__right-panel.gif +0 -0
  110. package/examples/img/guidelines/application-frame__right-panel.png +0 -0
  111. package/examples/img/guidelines/application-frame__side-tabs.png +0 -0
  112. package/examples/img/guidelines/application-frame__sub-nav.png +0 -0
  113. package/examples/img/guidelines/application-frame__top-bar.png +0 -0
  114. package/examples/img/guidelines/buttons--00-01.png +0 -0
  115. package/examples/img/guidelines/buttons--00-02.png +0 -0
  116. package/examples/img/guidelines/buttons--DO-02.png +0 -0
  117. package/examples/img/guidelines/buttons--DONT-01.png +0 -0
  118. package/examples/img/guidelines/checkbox--DO-01.png +0 -0
  119. package/examples/img/guidelines/checkbox--DO-02.png +0 -0
  120. package/examples/img/guidelines/checkbox--DONT-01.png +0 -0
  121. package/examples/img/guidelines/checkbox--DONT-02.png +0 -0
  122. package/examples/img/guidelines/example__bottom-bar--01.png +0 -0
  123. package/examples/img/guidelines/example__left-side_panel--01.png +0 -0
  124. package/examples/img/guidelines/example__left_side-bar--01.png +0 -0
  125. package/examples/img/guidelines/example__main-content--01.png +0 -0
  126. package/examples/img/guidelines/example__right_side-panel--01.png +0 -0
  127. package/examples/img/guidelines/example__right_side-panel--02.png +0 -0
  128. package/examples/img/guidelines/example__right_side-panel--03.png +0 -0
  129. package/examples/img/guidelines/example__sub-nav--01.png +0 -0
  130. package/examples/img/guidelines/example__sub-nav--02.png +0 -0
  131. package/examples/img/guidelines/example__sub-nav--03.png +0 -0
  132. package/examples/img/guidelines/example__top-bar--01.png +0 -0
  133. package/examples/img/guidelines/layout--grid-01.png +0 -0
  134. package/examples/img/guidelines/layout--size-example-01.png +0 -0
  135. package/examples/img/guidelines/radio--DO-01.png +0 -0
  136. package/examples/img/guidelines/radio--DONT-01.png +0 -0
  137. package/examples/img/guidelines/radio--DONT-02.png +0 -0
  138. package/examples/img/guidelines/radio--DONT-03.png +0 -0
  139. package/examples/img/guidelines/switch--DO-01.png +0 -0
  140. package/examples/img/guidelines/switch--DO-02.png +0 -0
  141. package/examples/img/guidelines/switch--DONT-01.png +0 -0
  142. package/examples/img/guidelines/switch--DONT-02.png +0 -0
  143. package/examples/img/hillary.jpg +0 -0
  144. package/examples/img/illustration--components.svg +0 -1
  145. package/examples/img/illustration--design.svg +0 -1
  146. package/examples/img/illustration--playground.svg +0 -1
  147. package/examples/img/illustration--react.svg +0 -1
  148. package/examples/img/illustration-small--components.svg +0 -45
  149. package/examples/img/illustration-small--design.svg +0 -99
  150. package/examples/img/illustration-small--playground.svg +0 -49
  151. package/examples/img/illustration-small--react.svg +0 -53
  152. package/examples/img/illustration_user-privileges.png +0 -0
  153. package/examples/img/illustration_users.png +0 -0
  154. package/examples/img/image_01.jpg +0 -0
  155. package/examples/img/image_02.jpg +0 -0
  156. package/examples/img/masthead-image.png +0 -0
  157. package/examples/img/obama_1.jpg +0 -0
  158. package/examples/img/obama_2.jpg +0 -0
  159. package/examples/img/overlay-img.jpg +0 -0
  160. package/examples/img/react-logo--vector.svg +0 -49
  161. package/examples/img/sd-ui-framework__logo-01.svg +0 -33
  162. package/examples/img/sd-ui-framework__logo.svg +0 -20
  163. package/examples/img/th01.jpg +0 -0
  164. package/examples/img/th02.jpg +0 -0
  165. package/examples/img/th03.jpg +0 -0
  166. package/examples/index.html +0 -11
  167. package/examples/index.js +0 -468
  168. package/examples/js/doc.js +0 -230
  169. package/examples/js/react.js +0 -263
  170. package/examples/pages/components/Alerts.tsx +0 -291
  171. package/examples/pages/components/Autocomplete.tsx +0 -434
  172. package/examples/pages/components/Avatar.tsx +0 -659
  173. package/examples/pages/components/Badges.tsx +0 -221
  174. package/examples/pages/components/BigIconFont.tsx +0 -48
  175. package/examples/pages/components/BoxedList.tsx +0 -517
  176. package/examples/pages/components/ButtonGroups.tsx +0 -366
  177. package/examples/pages/components/Buttons.tsx +0 -565
  178. package/examples/pages/components/Card.tsx +0 -23
  179. package/examples/pages/components/Carousel.tsx +0 -235
  180. package/examples/pages/components/Checkboxs.tsx +0 -817
  181. package/examples/pages/components/Container.tsx +0 -190
  182. package/examples/pages/components/ContentDivider.tsx +0 -229
  183. package/examples/pages/components/ContentList.tsx +0 -786
  184. package/examples/pages/components/CreateButton.tsx +0 -121
  185. package/examples/pages/components/DatePicker.tsx +0 -245
  186. package/examples/pages/components/DateTimePicker.tsx +0 -141
  187. package/examples/pages/components/DragHandleDocs.tsx +0 -122
  188. package/examples/pages/components/DropZone.tsx +0 -149
  189. package/examples/pages/components/Dropdowns.tsx +0 -587
  190. package/examples/pages/components/DurationInput.tsx +0 -157
  191. package/examples/pages/components/EmptyStates.tsx +0 -171
  192. package/examples/pages/components/GridItem.tsx +0 -507
  193. package/examples/pages/components/GridList.tsx +0 -126
  194. package/examples/pages/components/Heading.tsx +0 -152
  195. package/examples/pages/components/IconButtons.tsx +0 -191
  196. package/examples/pages/components/IconFont.tsx +0 -49
  197. package/examples/pages/components/IconLabels.tsx +0 -199
  198. package/examples/pages/components/IconPicker.tsx +0 -82
  199. package/examples/pages/components/IllustrationButton.tsx +0 -109
  200. package/examples/pages/components/Index.tsx +0 -563
  201. package/examples/pages/components/Inputs.tsx +0 -313
  202. package/examples/pages/components/Labels.tsx +0 -354
  203. package/examples/pages/components/LeftNavigations.tsx +0 -459
  204. package/examples/pages/components/ListItems.tsx +0 -33
  205. package/examples/pages/components/Loader.tsx +0 -25
  206. package/examples/pages/components/Menu.tsx +0 -181
  207. package/examples/pages/components/Modal.tsx +0 -557
  208. package/examples/pages/components/MultiSelect.tsx +0 -343
  209. package/examples/pages/components/NavButtons.tsx +0 -159
  210. package/examples/pages/components/Panel.tsx +0 -631
  211. package/examples/pages/components/Popover.tsx +0 -90
  212. package/examples/pages/components/QuickNavigationBar.tsx +0 -278
  213. package/examples/pages/components/RadioGroup.tsx +0 -612
  214. package/examples/pages/components/ResizablePanels.tsx +0 -43
  215. package/examples/pages/components/SelectGrid.tsx +0 -162
  216. package/examples/pages/components/SelectWithTemplate.tsx +0 -144
  217. package/examples/pages/components/Selects.tsx +0 -175
  218. package/examples/pages/components/SimpleList.tsx +0 -198
  219. package/examples/pages/components/SubNav.tsx +0 -160
  220. package/examples/pages/components/Switch.tsx +0 -298
  221. package/examples/pages/components/TableList.tsx +0 -315
  222. package/examples/pages/components/Tabs.tsx +0 -276
  223. package/examples/pages/components/TagInputDocs.tsx +0 -130
  224. package/examples/pages/components/Tags.tsx +0 -154
  225. package/examples/pages/components/Text.tsx +0 -184
  226. package/examples/pages/components/TimePicker.tsx +0 -179
  227. package/examples/pages/components/Toasts.tsx +0 -283
  228. package/examples/pages/components/Togglebox.tsx +0 -307
  229. package/examples/pages/components/Tooltips.tsx +0 -74
  230. package/examples/pages/components/TreeMenu.tsx +0 -315
  231. package/examples/pages/components/TreeSelect.tsx +0 -625
  232. package/examples/pages/components/WithPaginationDocs.tsx +0 -56
  233. package/examples/pages/components/WithSizeObserver.tsx +0 -44
  234. package/examples/pages/components/tree-select/TreeSelect.tsx +0 -322
  235. package/examples/pages/components/tree-select/example-1.tsx +0 -67
  236. package/examples/pages/components/tree-select/example-2.tsx +0 -56
  237. package/examples/pages/components/utilities/BorderRadiusUtilities.tsx +0 -71
  238. package/examples/pages/components/utilities/BorderUtilities.tsx +0 -169
  239. package/examples/pages/components/utilities/DisplayUtilities.tsx +0 -115
  240. package/examples/pages/components/utilities/FlexAndGridUtilities.tsx +0 -551
  241. package/examples/pages/components/utilities/ObjectFitUtilities.tsx +0 -51
  242. package/examples/pages/components/utilities/ObjectPositionUtilities.tsx +0 -67
  243. package/examples/pages/components/utilities/OpacityUtilities.tsx +0 -61
  244. package/examples/pages/components/utilities/OverflowUtilities.tsx +0 -92
  245. package/examples/pages/components/utilities/PositionUtilities.tsx +0 -51
  246. package/examples/pages/components/utilities/ShadowUtilities.tsx +0 -122
  247. package/examples/pages/components/utilities/SpacingUtilities.tsx +0 -1079
  248. package/examples/pages/components/utilities/TextUtilities.tsx +0 -560
  249. package/examples/pages/components.html +0 -15
  250. package/examples/pages/components_deprecated/alerts.html +0 -113
  251. package/examples/pages/components_deprecated/badge.html +0 -79
  252. package/examples/pages/components_deprecated/basic-grid.html +0 -132
  253. package/examples/pages/components_deprecated/big-icons.html +0 -65
  254. package/examples/pages/components_deprecated/buttons.html +0 -631
  255. package/examples/pages/components_deprecated/carousel.html +0 -77
  256. package/examples/pages/components_deprecated/checkbox.html +0 -86
  257. package/examples/pages/components_deprecated/colors.html +0 -12
  258. package/examples/pages/components_deprecated/dropdown.html +0 -542
  259. package/examples/pages/components_deprecated/form-layout.html +0 -187
  260. package/examples/pages/components_deprecated/icon-labels.html +0 -34
  261. package/examples/pages/components_deprecated/icons.html +0 -194
  262. package/examples/pages/components_deprecated/input.html +0 -233
  263. package/examples/pages/components_deprecated/labels.html +0 -170
  264. package/examples/pages/components_deprecated/layout-grid.html +0 -227
  265. package/examples/pages/components_deprecated/left-nav.html +0 -83
  266. package/examples/pages/components_deprecated/list-item.html +0 -1342
  267. package/examples/pages/components_deprecated/loader.html +0 -64
  268. package/examples/pages/components_deprecated/modal-template.html +0 -13
  269. package/examples/pages/components_deprecated/modals.html +0 -561
  270. package/examples/pages/components_deprecated/other-elements.html +0 -54
  271. package/examples/pages/components_deprecated/panel-info.html +0 -34
  272. package/examples/pages/components_deprecated/radio.html +0 -64
  273. package/examples/pages/components_deprecated/select.html +0 -160
  274. package/examples/pages/components_deprecated/shadows.html +0 -24
  275. package/examples/pages/components_deprecated/sidebar-menu.html +0 -111
  276. package/examples/pages/components_deprecated/simple-list.html +0 -113
  277. package/examples/pages/components_deprecated/slider.html +0 -31
  278. package/examples/pages/components_deprecated/spacing.html +0 -117
  279. package/examples/pages/components_deprecated/switch.html +0 -31
  280. package/examples/pages/components_deprecated/tables.html +0 -58
  281. package/examples/pages/components_deprecated/tabs.html +0 -257
  282. package/examples/pages/components_deprecated/tag-input.html +0 -123
  283. package/examples/pages/components_deprecated/tag-labels.html +0 -57
  284. package/examples/pages/components_deprecated/text.html +0 -55
  285. package/examples/pages/components_deprecated/toggle.html +0 -63
  286. package/examples/pages/components_deprecated/tooltips.html +0 -29
  287. package/examples/pages/components_deprecated/vertical-tabs.html +0 -48
  288. package/examples/pages/components_deprecated/wizard.html +0 -41
  289. package/examples/pages/components_deprecated.html +0 -39
  290. package/examples/pages/design/application-structure.html +0 -168
  291. package/examples/pages/design/buttons.html +0 -34
  292. package/examples/pages/design/checkbox-and-radio.html +0 -64
  293. package/examples/pages/design/layout-principles.html +0 -45
  294. package/examples/pages/design/modules.html +0 -22
  295. package/examples/pages/design/pages.html +0 -22
  296. package/examples/pages/design/switch.html +0 -55
  297. package/examples/pages/design-patterns/Index.tsx +0 -42
  298. package/examples/pages/design-patterns/ThreePaneLayoutPattern.tsx +0 -378
  299. package/examples/pages/design-patterns.html +0 -14
  300. package/examples/pages/design.html +0 -39
  301. package/examples/pages/main.html +0 -76
  302. package/examples/pages/playgrounds/accessible-theme-test.html +0 -813
  303. package/examples/pages/playgrounds/boxed-list.html +0 -164
  304. package/examples/pages/playgrounds/cards.html +0 -244
  305. package/examples/pages/playgrounds/circular-progress.html +0 -48
  306. package/examples/pages/playgrounds/dummy-data/items.ts +0 -95
  307. package/examples/pages/playgrounds/editor-3-test.html +0 -15
  308. package/examples/pages/playgrounds/form-layout.html +0 -285
  309. package/examples/pages/playgrounds/layout-grid.html +0 -79
  310. package/examples/pages/playgrounds/layout-snippets/edit-article.html +0 -415
  311. package/examples/pages/playgrounds/layout-test-2.html +0 -795
  312. package/examples/pages/playgrounds/list-item-test.html +0 -896
  313. package/examples/pages/playgrounds/main.html +0 -16
  314. package/examples/pages/playgrounds/master-desk.html +0 -1678
  315. package/examples/pages/playgrounds/media-carousel.html +0 -1166
  316. package/examples/pages/playgrounds/nav-buttons.html +0 -65
  317. package/examples/pages/playgrounds/photo-desk.html +0 -1515
  318. package/examples/pages/playgrounds/photo-snippets/edit-photo-metadata.html +0 -208
  319. package/examples/pages/playgrounds/planning-snippets/edit-event.html +0 -187
  320. package/examples/pages/playgrounds/planning-snippets/edit-planning.html +0 -457
  321. package/examples/pages/playgrounds/planning.html +0 -1112
  322. package/examples/pages/playgrounds/publish-snippets/edit-article.html +0 -37
  323. package/examples/pages/playgrounds/publish.html +0 -1007
  324. package/examples/pages/playgrounds/publisher-content-analytics.html +0 -376
  325. package/examples/pages/playgrounds/publisher-content-list-automatic.html +0 -296
  326. package/examples/pages/playgrounds/publisher-content-list-manual.html +0 -611
  327. package/examples/pages/playgrounds/publisher-content-lists.html +0 -255
  328. package/examples/pages/playgrounds/publisher-dashboard.html +0 -323
  329. package/examples/pages/playgrounds/publisher-output-control.html +0 -3659
  330. package/examples/pages/playgrounds/publisher-website-settings-general.html +0 -188
  331. package/examples/pages/playgrounds/publisher-website-settings.html +0 -265
  332. package/examples/pages/playgrounds/react-playgrounds/CoreLayout.tsx +0 -952
  333. package/examples/pages/playgrounds/react-playgrounds/EditorTest.tsx +0 -649
  334. package/examples/pages/playgrounds/react-playgrounds/FirstPlayground.tsx +0 -236
  335. package/examples/pages/playgrounds/react-playgrounds/Index.tsx +0 -11
  336. package/examples/pages/playgrounds/react-playgrounds/Multiedit.tsx +0 -401
  337. package/examples/pages/playgrounds/react-playgrounds/PageLayoutTest.tsx +0 -210
  338. package/examples/pages/playgrounds/react-playgrounds/PersonalProfile.tsx +0 -835
  339. package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +0 -580
  340. package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +0 -1415
  341. package/examples/pages/playgrounds/react-playgrounds/SamsPlayground.tsx +0 -401
  342. package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +0 -2710
  343. package/examples/pages/playgrounds/react-playgrounds/UiPlayground.tsx +0 -410
  344. package/examples/pages/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +0 -25
  345. package/examples/pages/playgrounds/react-playgrounds/components/AuthoringContent.tsx +0 -86
  346. package/examples/pages/playgrounds/react-playgrounds/components/ContentSplitter.tsx +0 -19
  347. package/examples/pages/playgrounds/react-playgrounds/components/GraphicButton.tsx +0 -34
  348. package/examples/pages/playgrounds/react-playgrounds/components/GraphicButtonsGroup.tsx +0 -11
  349. package/examples/pages/playgrounds/react-playgrounds/components/HeaderPanel.tsx +0 -11
  350. package/examples/pages/playgrounds/react-playgrounds/components/Index.tsx +0 -20
  351. package/examples/pages/playgrounds/react-playgrounds/components/Layout.tsx +0 -27
  352. package/examples/pages/playgrounds/react-playgrounds/components/LayoutContainer.tsx +0 -15
  353. package/examples/pages/playgrounds/react-playgrounds/components/LeftPanel.tsx +0 -15
  354. package/examples/pages/playgrounds/react-playgrounds/components/MainPanel.tsx +0 -24
  355. package/examples/pages/playgrounds/react-playgrounds/components/OverlayPanel.tsx +0 -17
  356. package/examples/pages/playgrounds/react-playgrounds/components/Panel.tsx +0 -23
  357. package/examples/pages/playgrounds/react-playgrounds/components/PanelContent.tsx +0 -11
  358. package/examples/pages/playgrounds/react-playgrounds/components/PanelContentBlock.tsx +0 -19
  359. package/examples/pages/playgrounds/react-playgrounds/components/PanelFooter.tsx +0 -17
  360. package/examples/pages/playgrounds/react-playgrounds/components/PanelHeader.tsx +0 -31
  361. package/examples/pages/playgrounds/react-playgrounds/components/RightPanel.tsx +0 -16
  362. package/examples/pages/playgrounds/react-playgrounds/components/SearchBar.tsx +0 -87
  363. package/examples/pages/playgrounds/react-playgrounds/components/SidebarMenu.tsx +0 -76
  364. package/examples/pages/playgrounds/react-playgrounds/components/SubNav.tsx +0 -17
  365. package/examples/pages/playgrounds/react-playgrounds/components/ThemeDropdown.tsx +0 -57
  366. package/examples/pages/playgrounds/react-playgrounds/tsconfig.json +0 -4
  367. package/examples/pages/playgrounds/settings.html +0 -92
  368. package/examples/pages/playgrounds/side-navigation.html +0 -201
  369. package/examples/pages/playgrounds/swimlane-view.html +0 -1975
  370. package/examples/pages/playgrounds/tags-input.html +0 -55
  371. package/examples/pages/playgrounds/toasts.html +0 -113
  372. package/examples/pages/playgrounds/video-editor.html +0 -706
  373. package/examples/pages/playgrounds.html +0 -40
@@ -1,283 +0,0 @@
1
- import * as React from 'react';
2
-
3
- import * as Markup from '../../js/react';
4
- import {HeadingText, Button, Prop, PropsList} from '../../../app-typescript';
5
- import {toasted} from '../../../app-typescript';
6
-
7
- export default class ToastsDoc extends React.Component {
8
- // default
9
- showDefault = () => {
10
- toasted.notify("I'm a tasty default Toast message!", {position: 'top'});
11
- };
12
-
13
- // all positions
14
- showAll = () => {
15
- toasted.notify('Position top', {position: 'top'});
16
- toasted.notify('Position top-left', {position: 'top-left'});
17
- toasted.notify('Position top-right', {position: 'top-right'});
18
- toasted.notify('Position bottom', {position: 'bottom'});
19
- toasted.notify('Position bottom-left', {position: 'bottom-left'});
20
- toasted.notify('Position bottom-right', {position: 'bottom-right'});
21
- };
22
-
23
- // duration
24
- showDuration = () => {
25
- toasted.notify('Curabitur blandit tempus porttitor.', {duration: 3000});
26
- };
27
- showNull = () => {
28
- toasted.notify('Curabitur blandit tempus porttitor.', {});
29
- };
30
-
31
- // coloring and icon
32
- showSuccess = () => {
33
- toasted.notify("I'm a tasty default Toast message!", {type: 'success', icon: 'ok'});
34
- };
35
- showAlert = () => {
36
- toasted.notify('Danger! Condimentum ridiculus ultricies ornare mollis.', {
37
- type: 'alert',
38
- icon: 'exclamation-sign',
39
- position: 'bottom',
40
- });
41
- };
42
-
43
- // size
44
- showSizeS = () => {
45
- toasted.notify('Et harum quidem rerum facilis est et expedita distinctio.', {
46
- position: 'top-left',
47
- size: 'fixed-s',
48
- });
49
- };
50
- showSizeM = () => {
51
- toasted.notify('Et harum quidem rerum facilis est et expedita distinctio.', {
52
- position: 'top-left',
53
- size: 'fixed-m',
54
- });
55
- };
56
- showSizeL = () => {
57
- toasted.notify('Et harum quidem rerum facilis est et expedita distinctio.', {
58
- position: 'top-left',
59
- size: 'fixed-l',
60
- });
61
- };
62
- showSizeXL = () => {
63
- toasted.notify('Et harum quidem rerum facilis est et expedita distinctio.', {
64
- position: 'top-left',
65
- size: 'fixed-xl',
66
- });
67
- };
68
-
69
- // custom element
70
- showCustomHeading = () => {
71
- toasted.notify(
72
- <HeadingText
73
- heading="I have Toaster heading!"
74
- text="Nulla vitae elit libero, a pharetra augue. Nullam id dolor id nibh ultricies vehicula ut id elit. Donec id elit non mi porta gravida at eget metus."
75
- />,
76
- {type: 'primary', icon: 'info-sign', position: 'bottom'},
77
- );
78
- };
79
- showAnotherCustomElement = () => {
80
- toasted.notify(
81
- <React.Fragment>
82
- <div className="sd-toast__icon"></div>
83
- <figure className="sd-toast__avatar avatar">sd</figure>
84
- <div className="sd-toast__message">
85
- <div className="sd-toast__message-header">
86
- <h4 className="sd-toast__heading">Martin Mustermann</h4>
87
- <time title="March 22, 2017 11:08 AM">16:50, 16.03.2019</time>
88
- </div>
89
- <p>
90
- Nulla vitae elit libero, a pharetra augue. Nullam id dolor id nibh ultricies vehicula ut id
91
- elit.
92
- </p>
93
- </div>
94
- </React.Fragment>,
95
- {position: 'bottom-right', size: 'fixed-l'},
96
- );
97
- };
98
-
99
- render() {
100
- return (
101
- <section className="docs-page__container">
102
- <h2 className="docs-page__h2">Toasts</h2>
103
- <Markup.ReactMarkupCodePreview>
104
- {`
105
- import {toasted} from 'superdesk-ui-framework/react';
106
-
107
- toasted.notify("I'm a tasty default Toast message!", {});
108
- `}
109
- </Markup.ReactMarkupCodePreview>
110
-
111
- <h3 className="docs-page__h3">Position</h3>
112
- <p className="docs-page__paragraph">
113
- Chose one of 6 placement options (<code>'top'</code>, <code>'top-right'</code>,{' '}
114
- <code>'top-left'</code>, <code>'bottom'</code>, <code>'bottom-right'</code>,{' '}
115
- <code>'bottom-left'</code>). The default value is ’top’ and will be rendered so without explicitly
116
- specifying it.
117
- </p>
118
- <Markup.ReactMarkup>
119
- <Markup.ReactMarkupPreview>
120
- <div className="docs-page__content-row">
121
- <Button text="default" onClick={this.showDefault}></Button>
122
- <Button text="all positions" onClick={this.showAll}></Button>
123
- </div>
124
- </Markup.ReactMarkupPreview>
125
- <Markup.ReactMarkupCode>
126
- {`
127
- toasted.notify("I'm a tasty default Toast message!", {});
128
-
129
- toasted.notify('Position top', { position: 'top' });
130
- toasted.notify('Position top-left', { position: 'top-left' });
131
- toasted.notify('Position top-right', { position: 'top-right' });
132
- toasted.notify('Position bottom', { position: 'bottom' });
133
- toasted.notify('Position bottom-left', { position: 'bottom-left' });
134
- toasted.notify('Position bottom-right', { position: 'bottom-right' });
135
- `}
136
- </Markup.ReactMarkupCode>
137
- </Markup.ReactMarkup>
138
-
139
- <h3 className="docs-page__h3">Duration</h3>
140
- <p className="docs-page__paragraph">
141
- It can be set duration time off notification when is set <code>duration</code> option, otherwise the
142
- notification will appear indefinitely until manually closed by the user.
143
- </p>
144
- <Markup.ReactMarkup>
145
- <Markup.ReactMarkupPreview>
146
- <p className="docs-page__paragraph">// Duration time 3000ms and NULL</p>
147
- <div className="docs-page__content-row">
148
- <Button text="3000" onClick={this.showDuration}></Button>
149
- <Button text="null" onClick={this.showNull}></Button>
150
- </div>
151
- </Markup.ReactMarkupPreview>
152
- <Markup.ReactMarkupCode>
153
- {`
154
- toasted.notify("Curabitur blandit tempus porttitor.", { duration: 3000 });
155
- toasted.notify("Curabitur blandit tempus porttitor.", {});
156
- `}
157
- </Markup.ReactMarkupCode>
158
- </Markup.ReactMarkup>
159
-
160
- <h3 className="docs-page__h3">Coloring and Icon</h3>
161
- <p className="docs-page__paragraph">
162
- For Superdesk only Default and Primary buttons should be used in most cases. Other semantic colour
163
- options are allowed but should be used only in cases where a clear distinction between similarly
164
- important actions is needed (e.g. Send To versus Publish action). Also it can be set icons for
165
- toast. Just add any of the available classes from the Icon font as a value of the icon prop
166
- </p>
167
- <Markup.ReactMarkup>
168
- <Markup.ReactMarkupPreview>
169
- <div className="docs-page__content-row">
170
- <Button type="success" text="success" onClick={this.showSuccess}></Button>
171
- <Button type="alert" text="alert" onClick={this.showAlert}></Button>
172
- </div>
173
- </Markup.ReactMarkupPreview>
174
- <Markup.ReactMarkupCode>
175
- {`
176
- toasted.notify("I'm a tasty default Toast message!", { type: 'success', icon: 'ok'});
177
- toasted.notify("Danger! Condimentum ridiculus ultricies ornare mollis.", { type: 'alert', icon: 'exclamation-sign', position: 'bottom'});
178
- `}
179
- </Markup.ReactMarkupCode>
180
- </Markup.ReactMarkup>
181
-
182
- <h3 className="docs-page__h3">Size</h3>
183
- <p className="docs-page__paragraph">
184
- To change the default size set the size value either to <code>'fixed-s'</code>,{' '}
185
- <code>'fixed-m'</code>, <code>'fixed-l'</code> or <code>'fixed-xl'</code>.
186
- </p>
187
- <Markup.ReactMarkup>
188
- <Markup.ReactMarkupPreview>
189
- <div className="docs-page__content-row">
190
- <Button text="fixed-s" onClick={this.showSizeS}></Button>
191
- <Button text="fixed-m" onClick={this.showSizeM}></Button>
192
- <Button text="fixed-l" onClick={this.showSizeL}></Button>
193
- <Button text="fixed-xl" onClick={this.showSizeXL}></Button>
194
- </div>
195
- </Markup.ReactMarkupPreview>
196
- <Markup.ReactMarkupCode>
197
- {`
198
- toasted.notify("Et harum quidem rerum facilis est et expedita distinctio.", { position: 'top-left', size: 'fixed-s' });
199
- toasted.notify("Et harum quidem rerum facilis est et expedita distinctio.", { position: 'top-left', size: 'fixed-m' });
200
- toasted.notify("Et harum quidem rerum facilis est et expedita distinctio.", { position: 'top-left', size: 'fixed-l' });
201
- toasted.notify("Et harum quidem rerum facilis est et expedita distinctio.", { position: 'top-left', size: 'fixed-xl' });
202
- `}
203
- </Markup.ReactMarkupCode>
204
- </Markup.ReactMarkup>
205
-
206
- <h3 className="docs-page__h3">Custom</h3>
207
- <p className="docs-page__paragraph"></p>
208
- <Markup.ReactMarkup>
209
- <Markup.ReactMarkupPreview>
210
- <div className="docs-page__content-row">
211
- <Button text="heading" type="primary" onClick={this.showCustomHeading}></Button>
212
- <Button text="element" onClick={this.showAnotherCustomElement}></Button>
213
- </div>
214
- </Markup.ReactMarkupPreview>
215
- <Markup.ReactMarkupCode>
216
- {`
217
- toasted.notify(<HeadingText heading='I have Toaster heading!' text='Nulla vitae elit libero, a pharetra augue. Nullam id dolor id nibh ultricies vehicula ut id elit. Donec id elit non mi porta gravida at eget metus.' />, { type: 'primary', icon: 'info-sign', position: 'bottom' });
218
- toasted.notify(
219
- <React.Fragment>
220
- <div className="sd-toast__icon"></div>
221
- <figure className="sd-toast__avatar avatar">sd</figure>
222
- <div className="sd-toast__message">
223
- <div className="sd-toast__message-header">
224
- <h4 className="sd-toast__heading">Martin Mustermann</h4>
225
- <time title="March 22, 2017 11:08 AM">16:50, 16.03.2019</time>
226
- </div>
227
- <p>Nulla vitae elit libero, a pharetra augue. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
228
- </div>
229
- </React.Fragment>
230
- , { position: 'bottom-right', size: 'fixed-l' });
231
- `}
232
- </Markup.ReactMarkupCode>
233
- </Markup.ReactMarkup>
234
-
235
- <h3 className="docs-page__h3">Props</h3>
236
- <PropsList>
237
- <Prop
238
- name="message"
239
- isRequired={true}
240
- type="string | React.ReactNode"
241
- default="normal"
242
- description="Message value or custom message element"
243
- />
244
- <Prop
245
- name="icon"
246
- isRequired={false}
247
- type="string"
248
- default=""
249
- description="Icon class name without the icon- part."
250
- />
251
- <Prop
252
- name="type"
253
- isRequired={false}
254
- type="default | primary | success | warning | alert | highlight | light"
255
- default="default"
256
- description="Default + semantic colour variations (e.g. primary, success etc.)."
257
- />
258
- <Prop
259
- name="position"
260
- isRequired={false}
261
- type="top | bottom | top-right | top-left | bottom-right | bottom-left"
262
- default="top"
263
- description="Position of the toast"
264
- />
265
- <Prop
266
- name="size"
267
- isRequired={false}
268
- type="fixed-s | fixed-m | fixed-l | fixed-xl"
269
- default="normal"
270
- description="Specifies a different sizes of toast."
271
- />
272
- <Prop
273
- name="duration"
274
- isRequired={false}
275
- type="number | null"
276
- default="null"
277
- description="Specifies a duration time of toast."
278
- />
279
- </PropsList>
280
- </section>
281
- );
282
- }
283
- }
@@ -1,307 +0,0 @@
1
- import * as React from 'react';
2
- import * as Markup from '../../js/react';
3
- import {
4
- PropsList,
5
- Prop,
6
- Badge,
7
- Icon,
8
- Label,
9
- AvatarGroup,
10
- ContentDivider,
11
- FormLabel,
12
- Text,
13
- } from '../../../app-typescript';
14
- import {ToggleBox} from './../../../app-typescript/components/ToggleBox/index';
15
- import {IAvatarInGroup} from '../../../app-typescript/components/avatar/avatar-group';
16
-
17
- const avatars: Array<IAvatarInGroup> = [
18
- {
19
- imageUrl: null,
20
- initials: 'VS',
21
- displayName: 'Vladimir Stefanovic',
22
- icon: {name: 'text', color: 'var(--sd-colour-highlight)'},
23
- },
24
- {
25
- imageUrl: null,
26
- initials: 'JL',
27
- displayName: 'Jeffrey Lebowski',
28
- icon: {name: 'photo', color: 'var(--sd-colour-highlight)'},
29
- },
30
- {
31
- imageUrl: null,
32
- initials: 'WS',
33
- displayName: 'Walter Sobchak',
34
- icon: {name: 'video', color: 'var(--sd-colour-highlight)'},
35
- },
36
- {
37
- imageUrl: null,
38
- initials: 'ML',
39
- displayName: 'Maude Lebowski',
40
- icon: {name: 'file', color: 'var(--sd-colour-highlight)'},
41
- },
42
- ];
43
-
44
- const ToggleboxDocs = () => {
45
- return (
46
- <section className="docs-page__container">
47
- <h2 className="docs-page__h2">Togglebox</h2>
48
- <Markup.ReactMarkupCodePreview>
49
- {`
50
- <ToggleBox variant="simple" title="togglebox title">togglebox content</ToggleBox>
51
- `}
52
- </Markup.ReactMarkupCodePreview>
53
- <p className="docs-page__paragraph">Simple ToggleBox:</p>
54
- <Markup.ReactMarkup>
55
- <Markup.ReactMarkupPreview>
56
- <div style={{marginTop: '2em'}}>
57
- <ToggleBox variant="simple" title="Simple togglebox">
58
- Togglebox content
59
- </ToggleBox>
60
- <ToggleBox variant="simple" title="With badge" badge={<Badge text="2" type="primary" />}>
61
- Togglebox content
62
- </ToggleBox>
63
- <ToggleBox variant="simple" title="Togglebox - circled chevron" circledChevron={true}>
64
- Togglebox content
65
- </ToggleBox>
66
- <ToggleBox variant="simple" title="Large title" largeTitle={true} circledChevron={true}>
67
- <div className="px-4 text-sm line-height-lg">
68
- <p className="mb-2">
69
- Maecenas sed diam eget risus varius blandit sit amet non magna. Nulla vitae elit
70
- libero, a pharetra augue. Donec id elit non mi porta gravida at eget metus. Integer
71
- posuere erat a ante venenatis dapibus posuere velit aliquet. Curabitur blandit
72
- tempus porttitor.
73
- </p>
74
-
75
- <p className="mb-2">
76
- Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Nullam quis
77
- risus eget urna mollis ornare vel eu leo. Donec id elit non mi porta gravida at eget
78
- metus. Nullam id dolor id nibh ultricies vehicula ut id elit. Integer posuere erat a
79
- ante venenatis dapibus posuere velit aliquet.
80
- </p>
81
-
82
- <p className="">
83
- Aenean lacinia bibendum nulla sed consectetur. Morbi leo risus, porta ac consectetur
84
- ac, vestibulum at eros. Vestibulum id ligula porta felis euismod semper. Cras justo
85
- odio, dapibus ac facilisis in, egestas eget quam.
86
- </p>
87
- </div>
88
- </ToggleBox>
89
- </div>
90
- </Markup.ReactMarkupPreview>
91
- <Markup.ReactMarkupCode>{`
92
- <ToggleBox variant='simple' title="Simple togglebox">Togglebox content</ToggleBox>
93
- <ToggleBox variant='simple' title="With badge" badge={<Badge text='2' type='primary' />}>Togglebox content</ToggleBox>
94
- <ToggleBox variant='simple' title="Togglebox - circled chevron" className="toggle-box--circle">Togglebox content</ToggleBox>
95
- `}</Markup.ReactMarkupCode>
96
- </Markup.ReactMarkup>
97
-
98
- <p className="docs-page__paragraph">Custom header ToggleBox:</p>
99
- <Markup.ReactMarkup>
100
- <Markup.ReactMarkupPreview>
101
- <div style={{marginTop: '2em'}}>
102
- <ToggleBox
103
- variant="custom-header"
104
- header={
105
- <div role="listitem" className="sd-list-item sd-list-item--no-hover">
106
- <div className="sd-list-item__border sd-list-item__border--locked"></div>
107
- <div className="sd-list-item__column sd-list-item__column--no-border pe-0-5">
108
- <Icon type="primary" name="calendar" scale="1.5x" ariaHidden={true} />
109
- </div>
110
- <div className="sd-list-item__column sd-list-item__column--grow sd-list-item__column--no-border">
111
- <div className="sd-list-item__row">
112
- <span className="sd-list-item__slugline">Planning Slugline</span>
113
- </div>
114
- <div className="sd-list-item__row sd-list-item__row--overflow-visible me-1 mb-1-5">
115
- <Label text="draft" style="translucent" />
116
- <span className="sd-margin-s--auto">
117
- <AvatarGroup size="x-small" items={avatars} />
118
- </span>
119
- </div>
120
- </div>
121
- </div>
122
- }
123
- getToggleButtonLabel={(open) => (open ? 'show less' : 'show more')}
124
- onToggle={(isOpen) => false}
125
- >
126
- <div>
127
- <FormLabel text="Name" />
128
- <Text size="small" weight="medium">
129
- Australian Open 2024
130
- </Text>
131
- </div>
132
- <ContentDivider type="dashed" margin="x-small" />
133
- <div>
134
- <FormLabel text="Current Date" />
135
- <Text size="small" weight="medium">
136
- 05.02.2024 @ 10:00
137
- </Text>
138
- </div>
139
- <ContentDivider type="dashed" margin="x-small" />
140
- <div>
141
- <FormLabel text="Current Repeat Summary" />
142
- <Text size="small" weight="medium">
143
- Every 1 day(s) until CET 28 Feb 2024
144
- </Text>
145
- </div>
146
- <ContentDivider type="dashed" margin="x-small" />
147
- <div>
148
- <FormLabel text="No. of events" />
149
- <Text size="small" weight="medium">
150
- 1
151
- </Text>
152
- </div>
153
- </ToggleBox>
154
- </div>
155
- </Markup.ReactMarkupPreview>
156
- <Markup.ReactMarkupCode>{`
157
- <ToggleBox
158
- variant='custom-header'
159
- header={
160
- <div role="listitem" className="sd-list-item sd-list-item--no-hover">
161
- <div className="sd-list-item__border sd-list-item__border--locked"></div>
162
- <div className="sd-list-item__column sd-list-item__column--no-border pe-0-5">
163
- <Icon type='primary' name='calendar' scale='1.5x' ariaHidden={true} />
164
- </div>
165
- <div className="sd-list-item__column sd-list-item__column--grow sd-list-item__column--no-border">
166
- <div className="sd-list-item__row">
167
- <span className="sd-list-item__slugline">Planning Slugline</span>
168
- </div>
169
- <div className="sd-list-item__row sd-list-item__row--overflow-visible me-1 mb-1-5">
170
- <Label text='draft' style='translucent'/>
171
- <span className="sd-margin-s--auto">
172
- <AvatarGroup
173
- size="x-small"
174
- items={avatars}
175
- />
176
- </span>
177
- </div>
178
- </div>
179
- </div>
180
- }
181
- onToggle={() => false}
182
- >
183
- <div>
184
- <FormLabel text='Name'/>
185
- <Text size='small' weight='medium'>Australian Open 2024</Text>
186
- </div>
187
- <ContentDivider type="dashed" margin='x-small' />
188
- <div>
189
- <FormLabel text='Current Date'/>
190
- <Text size='small' weight='medium'>05.02.2024 @ 10:00</Text>
191
- </div>
192
- <ContentDivider type="dashed" margin='x-small' />
193
- <div>
194
- <FormLabel text='Current Repeat Summary'/>
195
- <Text size='small' weight='medium'>Every 1 day(s) until CET 28 Feb 2024</Text>
196
- </div>
197
- <ContentDivider type="dashed" margin='x-small' />
198
- <div>
199
- <FormLabel text='No. of events'/>
200
- <Text size='small' weight='medium'>1</Text>
201
- </div>
202
- </ToggleBox>
203
- `}</Markup.ReactMarkupCode>
204
- </Markup.ReactMarkup>
205
-
206
- <h3 className="docs-page__h3">Props</h3>
207
- <PropsList>
208
- <Prop
209
- name="variant"
210
- isRequired={true}
211
- type="simple | custom header"
212
- default="null"
213
- description="Type of component."
214
- />
215
- </PropsList>
216
-
217
- <h3 className="docs-page__h3">Props: variant: 'simple'</h3>
218
- <PropsList>
219
- <Prop name="title" isRequired={true} type="string" default="null" description="Togglebox title" />
220
- <Prop name="badge" isRequired={false} type="JSX.Element" default="null" description="Badge" />
221
- <Prop
222
- name="initiallyOpen"
223
- isRequired={false}
224
- type="boolean"
225
- default="false"
226
- description="Opens togglebox on initial render"
227
- />
228
- <Prop
229
- name="className"
230
- isRequired={false}
231
- type="string"
232
- default="null"
233
- description="Style class of the component"
234
- />
235
- <Prop
236
- name="margin"
237
- isRequired={false}
238
- type="none | small | normal | large"
239
- default="normal"
240
- description="Defines the bottom margin of the toggle box."
241
- />
242
- <Prop
243
- name="onOpen"
244
- isRequired={false}
245
- type="function"
246
- default="null"
247
- description="Callback on open event"
248
- />
249
- <Prop
250
- name="onClose"
251
- isRequired={false}
252
- type="function"
253
- default="null"
254
- description="Callback on close event"
255
- />
256
- <Prop
257
- name="circledChevron"
258
- isRequired={false}
259
- type="boolean"
260
- default="false"
261
- description="Adds a light, circle-shaped background around the chevron."
262
- />
263
- <Prop
264
- name="largeTitle"
265
- isRequired={false}
266
- type="boolean"
267
- default="false"
268
- description="This option will increase the size of the title. Always use a circled chevron (circledChevron) in combination with this option."
269
- />
270
- </PropsList>
271
-
272
- <h3 className="docs-page__h3">Props: variant: 'custom-header'</h3>
273
- <PropsList>
274
- <Prop
275
- name="header"
276
- isRequired={true}
277
- type="JSX.Component"
278
- default="null"
279
- description="Always visible part of component."
280
- />
281
- <Prop
282
- name="children"
283
- isRequired={false}
284
- type="JSX.Component"
285
- default="null"
286
- description="Appear on clicking the button."
287
- />
288
- <Prop
289
- name="initiallyOpen"
290
- isRequired={false}
291
- type="boolean"
292
- default="false"
293
- description="Opens togglebox on initial render."
294
- />
295
- <Prop
296
- name="onClose"
297
- isRequired={false}
298
- type="function"
299
- default="null"
300
- description="Callback on toggle."
301
- />
302
- </PropsList>
303
- </section>
304
- );
305
- };
306
-
307
- export default ToggleboxDocs;
@@ -1,74 +0,0 @@
1
- import * as React from 'react';
2
-
3
- import * as Markup from '../../js/react';
4
-
5
- import {Tooltip, Prop, PropsList, Button} from '../../../app-typescript';
6
-
7
- export default class TooltipDoc extends React.Component {
8
- render() {
9
- return (
10
- <section className="docs-page__container">
11
- <h2 className="docs-page__h2">Tooltips</h2>
12
- <Markup.ReactMarkupCodePreview>
13
- {`
14
- <Tooltip text="I'm on top" >
15
- <Button text='top' onClick={() => false} />
16
- </Tooltip>
17
- `}
18
- </Markup.ReactMarkupCodePreview>
19
- <h3 className="docs-page__h3">Default</h3>
20
- <p className="docs-page__paragraph">
21
- Chose one of 4 placement options (<code>’left’</code>, <code>’right’</code>, <code>down</code>, and{' '}
22
- <code>’top’</code>). The default value is <code>’top’</code> and will be rendered so without
23
- explicitly specifying it.
24
- </p>
25
- <Markup.ReactMarkup>
26
- <Markup.ReactMarkupPreview>
27
- <div className="docs-page__content-row docs-page__content-row--no-margin">
28
- <Tooltip text="I'm on top">
29
- <Button text="top" onClick={() => false} />
30
- </Tooltip>
31
- <Tooltip text="I'm at the bottom" flow="down">
32
- <Button text="bottom" onClick={() => false} />
33
- </Tooltip>
34
- <Tooltip text="I open on the left" flow="left">
35
- <Button text="left" onClick={() => false} />
36
- </Tooltip>
37
- <Tooltip text="Right on!" flow="right">
38
- <Button text="right" onClick={() => false} />
39
- </Tooltip>
40
- </div>
41
- </Markup.ReactMarkupPreview>
42
- <Markup.ReactMarkupCode>
43
- {`
44
- <Tooltip text="I'm on top" >
45
- <Button text='top' onClick={() => false} />
46
- </Tooltip>
47
- <Tooltip text="I'm at the bottom" flow='down'>
48
- <Button text='bottom' onClick={() => false} />
49
- </Tooltip>
50
- <Tooltip text="I open on the left" flow='left'>
51
- <Button text='left' onClick={() => false} />
52
- </Tooltip>
53
- <Tooltip text="Right on!" flow='right'>
54
- <Button text='right' onClick={() => false} />
55
- </Tooltip>
56
- `}
57
- </Markup.ReactMarkupCode>
58
- </Markup.ReactMarkup>
59
-
60
- <h3 className="docs-page__h3">Props</h3>
61
- <PropsList>
62
- <Prop name="text" isRequired={true} type="string" default="/" description="Tooltip text value." />
63
- <Prop
64
- name="flow"
65
- isRequired={false}
66
- type="top | left | right | down"
67
- default="top"
68
- description="Position of tooltip text."
69
- />
70
- </PropsList>
71
- </section>
72
- );
73
- }
74
- }