superdesk-ui-framework 4.0.52 → 4.0.53

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 (369) hide show
  1. package/dist/examples.bundle.js +1 -1
  2. package/package.json +1 -1
  3. package/dist/playgrounds/accessible-theme-test.html +0 -813
  4. package/dist/playgrounds/boxed-list.html +0 -164
  5. package/dist/playgrounds/cards.html +0 -244
  6. package/dist/playgrounds/circular-progress.html +0 -48
  7. package/dist/playgrounds/dummy-data/items.ts +0 -95
  8. package/dist/playgrounds/editor-3-test.html +0 -15
  9. package/dist/playgrounds/form-layout.html +0 -285
  10. package/dist/playgrounds/layout-grid.html +0 -79
  11. package/dist/playgrounds/layout-snippets/edit-article.html +0 -415
  12. package/dist/playgrounds/layout-test-2.html +0 -795
  13. package/dist/playgrounds/list-item-test.html +0 -896
  14. package/dist/playgrounds/main.html +0 -16
  15. package/dist/playgrounds/master-desk.html +0 -1678
  16. package/dist/playgrounds/media-carousel.html +0 -1166
  17. package/dist/playgrounds/nav-buttons.html +0 -65
  18. package/dist/playgrounds/photo-desk.html +0 -1515
  19. package/dist/playgrounds/photo-snippets/edit-photo-metadata.html +0 -208
  20. package/dist/playgrounds/planning-snippets/edit-event.html +0 -187
  21. package/dist/playgrounds/planning-snippets/edit-planning.html +0 -457
  22. package/dist/playgrounds/planning.html +0 -1112
  23. package/dist/playgrounds/publish-snippets/edit-article.html +0 -37
  24. package/dist/playgrounds/publish.html +0 -1007
  25. package/dist/playgrounds/publisher-content-analytics.html +0 -376
  26. package/dist/playgrounds/publisher-content-list-automatic.html +0 -296
  27. package/dist/playgrounds/publisher-content-list-manual.html +0 -611
  28. package/dist/playgrounds/publisher-content-lists.html +0 -255
  29. package/dist/playgrounds/publisher-dashboard.html +0 -323
  30. package/dist/playgrounds/publisher-output-control.html +0 -3659
  31. package/dist/playgrounds/publisher-website-settings-general.html +0 -188
  32. package/dist/playgrounds/publisher-website-settings.html +0 -265
  33. package/dist/playgrounds/react-playgrounds/CoreLayout.tsx +0 -952
  34. package/dist/playgrounds/react-playgrounds/EditorTest.tsx +0 -649
  35. package/dist/playgrounds/react-playgrounds/FirstPlayground.tsx +0 -236
  36. package/dist/playgrounds/react-playgrounds/Index.tsx +0 -11
  37. package/dist/playgrounds/react-playgrounds/Multiedit.tsx +0 -401
  38. package/dist/playgrounds/react-playgrounds/PageLayoutTest.tsx +0 -210
  39. package/dist/playgrounds/react-playgrounds/PersonalProfile.tsx +0 -835
  40. package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +0 -580
  41. package/dist/playgrounds/react-playgrounds/Rundowns.tsx +0 -1415
  42. package/dist/playgrounds/react-playgrounds/SamsPlayground.tsx +0 -401
  43. package/dist/playgrounds/react-playgrounds/TestGround.tsx +0 -2710
  44. package/dist/playgrounds/react-playgrounds/UiPlayground.tsx +0 -410
  45. package/dist/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +0 -25
  46. package/dist/playgrounds/react-playgrounds/components/AuthoringContent.tsx +0 -86
  47. package/dist/playgrounds/react-playgrounds/components/ContentSplitter.tsx +0 -19
  48. package/dist/playgrounds/react-playgrounds/components/GraphicButton.tsx +0 -34
  49. package/dist/playgrounds/react-playgrounds/components/GraphicButtonsGroup.tsx +0 -11
  50. package/dist/playgrounds/react-playgrounds/components/HeaderPanel.tsx +0 -11
  51. package/dist/playgrounds/react-playgrounds/components/Index.tsx +0 -20
  52. package/dist/playgrounds/react-playgrounds/components/Layout.tsx +0 -27
  53. package/dist/playgrounds/react-playgrounds/components/LayoutContainer.tsx +0 -15
  54. package/dist/playgrounds/react-playgrounds/components/LeftPanel.tsx +0 -15
  55. package/dist/playgrounds/react-playgrounds/components/MainPanel.tsx +0 -24
  56. package/dist/playgrounds/react-playgrounds/components/OverlayPanel.tsx +0 -17
  57. package/dist/playgrounds/react-playgrounds/components/Panel.tsx +0 -23
  58. package/dist/playgrounds/react-playgrounds/components/PanelContent.tsx +0 -11
  59. package/dist/playgrounds/react-playgrounds/components/PanelContentBlock.tsx +0 -19
  60. package/dist/playgrounds/react-playgrounds/components/PanelFooter.tsx +0 -17
  61. package/dist/playgrounds/react-playgrounds/components/PanelHeader.tsx +0 -31
  62. package/dist/playgrounds/react-playgrounds/components/RightPanel.tsx +0 -16
  63. package/dist/playgrounds/react-playgrounds/components/SearchBar.tsx +0 -87
  64. package/dist/playgrounds/react-playgrounds/components/SidebarMenu.tsx +0 -76
  65. package/dist/playgrounds/react-playgrounds/components/SubNav.tsx +0 -17
  66. package/dist/playgrounds/react-playgrounds/components/ThemeDropdown.tsx +0 -57
  67. package/dist/playgrounds/react-playgrounds/tsconfig.json +0 -4
  68. package/dist/playgrounds/settings.html +0 -92
  69. package/dist/playgrounds/side-navigation.html +0 -201
  70. package/dist/playgrounds/swimlane-view.html +0 -1975
  71. package/dist/playgrounds/tags-input.html +0 -55
  72. package/dist/playgrounds/toasts.html +0 -113
  73. package/dist/playgrounds/video-editor.html +0 -706
  74. package/examples/css/docs-page.css +0 -1135
  75. package/examples/css/reset.css +0 -124
  76. package/examples/css/vendor.css +0 -175
  77. package/examples/illustration-small--components.svg +0 -45
  78. package/examples/img/andrew-power-y9L5-wmifaY-unsplash.jpg +0 -0
  79. package/examples/img/andrew-power-y9L5-wmifaY-unsplash.license.txt +0 -6
  80. package/examples/img/avatar-2.jpg +0 -0
  81. package/examples/img/avatar-3.jpg +0 -0
  82. package/examples/img/avatar-4.jpg +0 -0
  83. package/examples/img/avatar-5.jpg +0 -0
  84. package/examples/img/avatar-6.jpg +0 -0
  85. package/examples/img/avatar.jpg +0 -0
  86. package/examples/img/bill.jpg +0 -0
  87. package/examples/img/bush_1.jpg +0 -0
  88. package/examples/img/bush_2.jpg +0 -0
  89. package/examples/img/carousel-thumb--01.jpg +0 -0
  90. package/examples/img/carousel-thumb--02.jpg +0 -0
  91. package/examples/img/carousel-thumb--03.jpg +0 -0
  92. package/examples/img/carousel-thumb--04.jpg +0 -0
  93. package/examples/img/components_ilustration.svg +0 -1
  94. package/examples/img/d_trump.jpg +0 -0
  95. package/examples/img/d_trump_2.jpg +0 -0
  96. package/examples/img/d_trump_large.jpg +0 -0
  97. package/examples/img/design_ilustration.svg +0 -1
  98. package/examples/img/ferocious_beast.webm +0 -0
  99. package/examples/img/guidelines/application-frame.png +0 -0
  100. package/examples/img/guidelines/application-frame__bottom-bar.png +0 -0
  101. package/examples/img/guidelines/application-frame__left-panel.gif +0 -0
  102. package/examples/img/guidelines/application-frame__left-panel.png +0 -0
  103. package/examples/img/guidelines/application-frame__main-content.gif +0 -0
  104. package/examples/img/guidelines/application-frame__main-content.png +0 -0
  105. package/examples/img/guidelines/application-frame__right-panel.gif +0 -0
  106. package/examples/img/guidelines/application-frame__right-panel.png +0 -0
  107. package/examples/img/guidelines/application-frame__side-tabs.png +0 -0
  108. package/examples/img/guidelines/application-frame__sub-nav.png +0 -0
  109. package/examples/img/guidelines/application-frame__top-bar.png +0 -0
  110. package/examples/img/guidelines/buttons--00-01.png +0 -0
  111. package/examples/img/guidelines/buttons--00-02.png +0 -0
  112. package/examples/img/guidelines/buttons--DO-02.png +0 -0
  113. package/examples/img/guidelines/buttons--DONT-01.png +0 -0
  114. package/examples/img/guidelines/checkbox--DO-01.png +0 -0
  115. package/examples/img/guidelines/checkbox--DO-02.png +0 -0
  116. package/examples/img/guidelines/checkbox--DONT-01.png +0 -0
  117. package/examples/img/guidelines/checkbox--DONT-02.png +0 -0
  118. package/examples/img/guidelines/example__bottom-bar--01.png +0 -0
  119. package/examples/img/guidelines/example__left-side_panel--01.png +0 -0
  120. package/examples/img/guidelines/example__left_side-bar--01.png +0 -0
  121. package/examples/img/guidelines/example__main-content--01.png +0 -0
  122. package/examples/img/guidelines/example__right_side-panel--01.png +0 -0
  123. package/examples/img/guidelines/example__right_side-panel--02.png +0 -0
  124. package/examples/img/guidelines/example__right_side-panel--03.png +0 -0
  125. package/examples/img/guidelines/example__sub-nav--01.png +0 -0
  126. package/examples/img/guidelines/example__sub-nav--02.png +0 -0
  127. package/examples/img/guidelines/example__sub-nav--03.png +0 -0
  128. package/examples/img/guidelines/example__top-bar--01.png +0 -0
  129. package/examples/img/guidelines/layout--grid-01.png +0 -0
  130. package/examples/img/guidelines/layout--size-example-01.png +0 -0
  131. package/examples/img/guidelines/radio--DO-01.png +0 -0
  132. package/examples/img/guidelines/radio--DONT-01.png +0 -0
  133. package/examples/img/guidelines/radio--DONT-02.png +0 -0
  134. package/examples/img/guidelines/radio--DONT-03.png +0 -0
  135. package/examples/img/guidelines/switch--DO-01.png +0 -0
  136. package/examples/img/guidelines/switch--DO-02.png +0 -0
  137. package/examples/img/guidelines/switch--DONT-01.png +0 -0
  138. package/examples/img/guidelines/switch--DONT-02.png +0 -0
  139. package/examples/img/hillary.jpg +0 -0
  140. package/examples/img/illustration--components.svg +0 -1
  141. package/examples/img/illustration--design.svg +0 -1
  142. package/examples/img/illustration--playground.svg +0 -1
  143. package/examples/img/illustration--react.svg +0 -1
  144. package/examples/img/illustration-small--components.svg +0 -45
  145. package/examples/img/illustration-small--design.svg +0 -99
  146. package/examples/img/illustration-small--playground.svg +0 -49
  147. package/examples/img/illustration-small--react.svg +0 -53
  148. package/examples/img/illustration_user-privileges.png +0 -0
  149. package/examples/img/illustration_users.png +0 -0
  150. package/examples/img/image_01.jpg +0 -0
  151. package/examples/img/image_02.jpg +0 -0
  152. package/examples/img/masthead-image.png +0 -0
  153. package/examples/img/obama_1.jpg +0 -0
  154. package/examples/img/obama_2.jpg +0 -0
  155. package/examples/img/overlay-img.jpg +0 -0
  156. package/examples/img/react-logo--vector.svg +0 -49
  157. package/examples/img/sd-ui-framework__logo-01.svg +0 -33
  158. package/examples/img/sd-ui-framework__logo.svg +0 -20
  159. package/examples/img/th01.jpg +0 -0
  160. package/examples/img/th02.jpg +0 -0
  161. package/examples/img/th03.jpg +0 -0
  162. package/examples/index.html +0 -11
  163. package/examples/index.js +0 -468
  164. package/examples/js/doc.js +0 -230
  165. package/examples/js/react.js +0 -263
  166. package/examples/pages/components/Alerts.tsx +0 -291
  167. package/examples/pages/components/Autocomplete.tsx +0 -434
  168. package/examples/pages/components/Avatar.tsx +0 -659
  169. package/examples/pages/components/Badges.tsx +0 -221
  170. package/examples/pages/components/BigIconFont.tsx +0 -48
  171. package/examples/pages/components/BoxedList.tsx +0 -517
  172. package/examples/pages/components/ButtonGroups.tsx +0 -366
  173. package/examples/pages/components/Buttons.tsx +0 -565
  174. package/examples/pages/components/Card.tsx +0 -23
  175. package/examples/pages/components/Carousel.tsx +0 -235
  176. package/examples/pages/components/Checkboxs.tsx +0 -817
  177. package/examples/pages/components/Container.tsx +0 -190
  178. package/examples/pages/components/ContentDivider.tsx +0 -229
  179. package/examples/pages/components/ContentList.tsx +0 -786
  180. package/examples/pages/components/CreateButton.tsx +0 -121
  181. package/examples/pages/components/DatePicker.tsx +0 -245
  182. package/examples/pages/components/DateTimePicker.tsx +0 -141
  183. package/examples/pages/components/DragHandleDocs.tsx +0 -122
  184. package/examples/pages/components/DropZone.tsx +0 -149
  185. package/examples/pages/components/Dropdowns.tsx +0 -587
  186. package/examples/pages/components/DurationInput.tsx +0 -157
  187. package/examples/pages/components/EmptyStates.tsx +0 -171
  188. package/examples/pages/components/GridItem.tsx +0 -507
  189. package/examples/pages/components/GridList.tsx +0 -126
  190. package/examples/pages/components/Heading.tsx +0 -152
  191. package/examples/pages/components/IconButtons.tsx +0 -191
  192. package/examples/pages/components/IconFont.tsx +0 -49
  193. package/examples/pages/components/IconLabels.tsx +0 -199
  194. package/examples/pages/components/IconPicker.tsx +0 -82
  195. package/examples/pages/components/IllustrationButton.tsx +0 -109
  196. package/examples/pages/components/Index.tsx +0 -563
  197. package/examples/pages/components/Inputs.tsx +0 -313
  198. package/examples/pages/components/Labels.tsx +0 -354
  199. package/examples/pages/components/LeftNavigations.tsx +0 -459
  200. package/examples/pages/components/ListItems.tsx +0 -33
  201. package/examples/pages/components/Loader.tsx +0 -25
  202. package/examples/pages/components/Menu.tsx +0 -181
  203. package/examples/pages/components/Modal.tsx +0 -557
  204. package/examples/pages/components/MultiSelect.tsx +0 -343
  205. package/examples/pages/components/NavButtons.tsx +0 -159
  206. package/examples/pages/components/Panel.tsx +0 -631
  207. package/examples/pages/components/Popover.tsx +0 -90
  208. package/examples/pages/components/QuickNavigationBar.tsx +0 -278
  209. package/examples/pages/components/RadioGroup.tsx +0 -612
  210. package/examples/pages/components/ResizablePanels.tsx +0 -43
  211. package/examples/pages/components/SelectGrid.tsx +0 -162
  212. package/examples/pages/components/SelectWithTemplate.tsx +0 -144
  213. package/examples/pages/components/Selects.tsx +0 -175
  214. package/examples/pages/components/SimpleList.tsx +0 -198
  215. package/examples/pages/components/SubNav.tsx +0 -160
  216. package/examples/pages/components/Switch.tsx +0 -298
  217. package/examples/pages/components/TableList.tsx +0 -315
  218. package/examples/pages/components/Tabs.tsx +0 -276
  219. package/examples/pages/components/TagInputDocs.tsx +0 -130
  220. package/examples/pages/components/Tags.tsx +0 -154
  221. package/examples/pages/components/Text.tsx +0 -184
  222. package/examples/pages/components/TimePicker.tsx +0 -179
  223. package/examples/pages/components/Toasts.tsx +0 -283
  224. package/examples/pages/components/Togglebox.tsx +0 -307
  225. package/examples/pages/components/Tooltips.tsx +0 -74
  226. package/examples/pages/components/TreeMenu.tsx +0 -315
  227. package/examples/pages/components/TreeSelect.tsx +0 -625
  228. package/examples/pages/components/WithPaginationDocs.tsx +0 -56
  229. package/examples/pages/components/WithSizeObserver.tsx +0 -44
  230. package/examples/pages/components/tree-select/TreeSelect.tsx +0 -322
  231. package/examples/pages/components/tree-select/example-1.tsx +0 -67
  232. package/examples/pages/components/tree-select/example-2.tsx +0 -56
  233. package/examples/pages/components/utilities/BorderRadiusUtilities.tsx +0 -71
  234. package/examples/pages/components/utilities/BorderUtilities.tsx +0 -169
  235. package/examples/pages/components/utilities/DisplayUtilities.tsx +0 -115
  236. package/examples/pages/components/utilities/FlexAndGridUtilities.tsx +0 -551
  237. package/examples/pages/components/utilities/ObjectFitUtilities.tsx +0 -51
  238. package/examples/pages/components/utilities/ObjectPositionUtilities.tsx +0 -67
  239. package/examples/pages/components/utilities/OpacityUtilities.tsx +0 -61
  240. package/examples/pages/components/utilities/OverflowUtilities.tsx +0 -92
  241. package/examples/pages/components/utilities/PositionUtilities.tsx +0 -51
  242. package/examples/pages/components/utilities/ShadowUtilities.tsx +0 -122
  243. package/examples/pages/components/utilities/SpacingUtilities.tsx +0 -1079
  244. package/examples/pages/components/utilities/TextUtilities.tsx +0 -560
  245. package/examples/pages/components.html +0 -15
  246. package/examples/pages/components_deprecated/alerts.html +0 -113
  247. package/examples/pages/components_deprecated/badge.html +0 -79
  248. package/examples/pages/components_deprecated/basic-grid.html +0 -132
  249. package/examples/pages/components_deprecated/big-icons.html +0 -65
  250. package/examples/pages/components_deprecated/buttons.html +0 -631
  251. package/examples/pages/components_deprecated/carousel.html +0 -77
  252. package/examples/pages/components_deprecated/checkbox.html +0 -86
  253. package/examples/pages/components_deprecated/colors.html +0 -12
  254. package/examples/pages/components_deprecated/dropdown.html +0 -542
  255. package/examples/pages/components_deprecated/form-layout.html +0 -187
  256. package/examples/pages/components_deprecated/icon-labels.html +0 -34
  257. package/examples/pages/components_deprecated/icons.html +0 -194
  258. package/examples/pages/components_deprecated/input.html +0 -233
  259. package/examples/pages/components_deprecated/labels.html +0 -170
  260. package/examples/pages/components_deprecated/layout-grid.html +0 -227
  261. package/examples/pages/components_deprecated/left-nav.html +0 -83
  262. package/examples/pages/components_deprecated/list-item.html +0 -1342
  263. package/examples/pages/components_deprecated/loader.html +0 -64
  264. package/examples/pages/components_deprecated/modal-template.html +0 -13
  265. package/examples/pages/components_deprecated/modals.html +0 -561
  266. package/examples/pages/components_deprecated/other-elements.html +0 -54
  267. package/examples/pages/components_deprecated/panel-info.html +0 -34
  268. package/examples/pages/components_deprecated/radio.html +0 -64
  269. package/examples/pages/components_deprecated/select.html +0 -160
  270. package/examples/pages/components_deprecated/shadows.html +0 -24
  271. package/examples/pages/components_deprecated/sidebar-menu.html +0 -111
  272. package/examples/pages/components_deprecated/simple-list.html +0 -113
  273. package/examples/pages/components_deprecated/slider.html +0 -31
  274. package/examples/pages/components_deprecated/spacing.html +0 -117
  275. package/examples/pages/components_deprecated/switch.html +0 -31
  276. package/examples/pages/components_deprecated/tables.html +0 -58
  277. package/examples/pages/components_deprecated/tabs.html +0 -257
  278. package/examples/pages/components_deprecated/tag-input.html +0 -123
  279. package/examples/pages/components_deprecated/tag-labels.html +0 -57
  280. package/examples/pages/components_deprecated/text.html +0 -55
  281. package/examples/pages/components_deprecated/toggle.html +0 -63
  282. package/examples/pages/components_deprecated/tooltips.html +0 -29
  283. package/examples/pages/components_deprecated/vertical-tabs.html +0 -48
  284. package/examples/pages/components_deprecated/wizard.html +0 -41
  285. package/examples/pages/components_deprecated.html +0 -39
  286. package/examples/pages/design/application-structure.html +0 -168
  287. package/examples/pages/design/buttons.html +0 -34
  288. package/examples/pages/design/checkbox-and-radio.html +0 -64
  289. package/examples/pages/design/layout-principles.html +0 -45
  290. package/examples/pages/design/modules.html +0 -22
  291. package/examples/pages/design/pages.html +0 -22
  292. package/examples/pages/design/switch.html +0 -55
  293. package/examples/pages/design-patterns/Index.tsx +0 -42
  294. package/examples/pages/design-patterns/ThreePaneLayoutPattern.tsx +0 -378
  295. package/examples/pages/design-patterns.html +0 -14
  296. package/examples/pages/design.html +0 -39
  297. package/examples/pages/main.html +0 -76
  298. package/examples/pages/playgrounds/accessible-theme-test.html +0 -813
  299. package/examples/pages/playgrounds/boxed-list.html +0 -164
  300. package/examples/pages/playgrounds/cards.html +0 -244
  301. package/examples/pages/playgrounds/circular-progress.html +0 -48
  302. package/examples/pages/playgrounds/dummy-data/items.ts +0 -95
  303. package/examples/pages/playgrounds/editor-3-test.html +0 -15
  304. package/examples/pages/playgrounds/form-layout.html +0 -285
  305. package/examples/pages/playgrounds/layout-grid.html +0 -79
  306. package/examples/pages/playgrounds/layout-snippets/edit-article.html +0 -415
  307. package/examples/pages/playgrounds/layout-test-2.html +0 -795
  308. package/examples/pages/playgrounds/list-item-test.html +0 -896
  309. package/examples/pages/playgrounds/main.html +0 -16
  310. package/examples/pages/playgrounds/master-desk.html +0 -1678
  311. package/examples/pages/playgrounds/media-carousel.html +0 -1166
  312. package/examples/pages/playgrounds/nav-buttons.html +0 -65
  313. package/examples/pages/playgrounds/photo-desk.html +0 -1515
  314. package/examples/pages/playgrounds/photo-snippets/edit-photo-metadata.html +0 -208
  315. package/examples/pages/playgrounds/planning-snippets/edit-event.html +0 -187
  316. package/examples/pages/playgrounds/planning-snippets/edit-planning.html +0 -457
  317. package/examples/pages/playgrounds/planning.html +0 -1112
  318. package/examples/pages/playgrounds/publish-snippets/edit-article.html +0 -37
  319. package/examples/pages/playgrounds/publish.html +0 -1007
  320. package/examples/pages/playgrounds/publisher-content-analytics.html +0 -376
  321. package/examples/pages/playgrounds/publisher-content-list-automatic.html +0 -296
  322. package/examples/pages/playgrounds/publisher-content-list-manual.html +0 -611
  323. package/examples/pages/playgrounds/publisher-content-lists.html +0 -255
  324. package/examples/pages/playgrounds/publisher-dashboard.html +0 -323
  325. package/examples/pages/playgrounds/publisher-output-control.html +0 -3659
  326. package/examples/pages/playgrounds/publisher-website-settings-general.html +0 -188
  327. package/examples/pages/playgrounds/publisher-website-settings.html +0 -265
  328. package/examples/pages/playgrounds/react-playgrounds/CoreLayout.tsx +0 -952
  329. package/examples/pages/playgrounds/react-playgrounds/EditorTest.tsx +0 -649
  330. package/examples/pages/playgrounds/react-playgrounds/FirstPlayground.tsx +0 -236
  331. package/examples/pages/playgrounds/react-playgrounds/Index.tsx +0 -11
  332. package/examples/pages/playgrounds/react-playgrounds/Multiedit.tsx +0 -401
  333. package/examples/pages/playgrounds/react-playgrounds/PageLayoutTest.tsx +0 -210
  334. package/examples/pages/playgrounds/react-playgrounds/PersonalProfile.tsx +0 -835
  335. package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +0 -580
  336. package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +0 -1415
  337. package/examples/pages/playgrounds/react-playgrounds/SamsPlayground.tsx +0 -401
  338. package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +0 -2710
  339. package/examples/pages/playgrounds/react-playgrounds/UiPlayground.tsx +0 -410
  340. package/examples/pages/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +0 -25
  341. package/examples/pages/playgrounds/react-playgrounds/components/AuthoringContent.tsx +0 -86
  342. package/examples/pages/playgrounds/react-playgrounds/components/ContentSplitter.tsx +0 -19
  343. package/examples/pages/playgrounds/react-playgrounds/components/GraphicButton.tsx +0 -34
  344. package/examples/pages/playgrounds/react-playgrounds/components/GraphicButtonsGroup.tsx +0 -11
  345. package/examples/pages/playgrounds/react-playgrounds/components/HeaderPanel.tsx +0 -11
  346. package/examples/pages/playgrounds/react-playgrounds/components/Index.tsx +0 -20
  347. package/examples/pages/playgrounds/react-playgrounds/components/Layout.tsx +0 -27
  348. package/examples/pages/playgrounds/react-playgrounds/components/LayoutContainer.tsx +0 -15
  349. package/examples/pages/playgrounds/react-playgrounds/components/LeftPanel.tsx +0 -15
  350. package/examples/pages/playgrounds/react-playgrounds/components/MainPanel.tsx +0 -24
  351. package/examples/pages/playgrounds/react-playgrounds/components/OverlayPanel.tsx +0 -17
  352. package/examples/pages/playgrounds/react-playgrounds/components/Panel.tsx +0 -23
  353. package/examples/pages/playgrounds/react-playgrounds/components/PanelContent.tsx +0 -11
  354. package/examples/pages/playgrounds/react-playgrounds/components/PanelContentBlock.tsx +0 -19
  355. package/examples/pages/playgrounds/react-playgrounds/components/PanelFooter.tsx +0 -17
  356. package/examples/pages/playgrounds/react-playgrounds/components/PanelHeader.tsx +0 -31
  357. package/examples/pages/playgrounds/react-playgrounds/components/RightPanel.tsx +0 -16
  358. package/examples/pages/playgrounds/react-playgrounds/components/SearchBar.tsx +0 -87
  359. package/examples/pages/playgrounds/react-playgrounds/components/SidebarMenu.tsx +0 -76
  360. package/examples/pages/playgrounds/react-playgrounds/components/SubNav.tsx +0 -17
  361. package/examples/pages/playgrounds/react-playgrounds/components/ThemeDropdown.tsx +0 -57
  362. package/examples/pages/playgrounds/react-playgrounds/tsconfig.json +0 -4
  363. package/examples/pages/playgrounds/settings.html +0 -92
  364. package/examples/pages/playgrounds/side-navigation.html +0 -201
  365. package/examples/pages/playgrounds/swimlane-view.html +0 -1975
  366. package/examples/pages/playgrounds/tags-input.html +0 -55
  367. package/examples/pages/playgrounds/toasts.html +0 -113
  368. package/examples/pages/playgrounds/video-editor.html +0 -706
  369. package/examples/pages/playgrounds.html +0 -40
@@ -1,263 +0,0 @@
1
- import React from 'react';
2
- import {NavLink} from 'react-router-dom';
3
-
4
- import Prism from 'prismjs';
5
- import NormalizeWhitespace from 'prismjs/plugins/normalize-whitespace/prism-normalize-whitespace';
6
- import LineNumbers from 'prismjs/plugins/line-numbers/prism-line-numbers';
7
- import Markdown from 'prismjs/components/prism-markdown';
8
- import JSX from 'prismjs/components/prism-jsx';
9
-
10
- class ReactNav extends React.PureComponent {
11
- constructor(props) {
12
- super(props);
13
- this.state = {
14
- searchTerm: '',
15
- expandedSections: Object.keys(this.props.pages).reduce((sections, key) => {
16
- sections[key] = true;
17
- return sections;
18
- }, {}),
19
- };
20
-
21
- this.activeRef = React.createRef();
22
-
23
- this.handleSearchChange = this.handleSearchChange.bind(this);
24
- this.toggleSection = this.toggleSection.bind(this);
25
- }
26
-
27
- componentDidMount() {
28
- if (this.activeRef.current) {
29
- this.activeRef.current.scrollIntoView({
30
- block: 'center',
31
- inline: 'nearest',
32
- });
33
- }
34
- }
35
-
36
- handleSearchChange(event) {
37
- this.setState({
38
- searchTerm: event.target.value,
39
- expandedSections: Object.keys(this.props.pages).reduce((sections, key) => {
40
- sections[key] = true;
41
- return sections;
42
- }, {}),
43
- });
44
- }
45
-
46
- toggleSection(section) {
47
- this.setState((prevState) => ({
48
- expandedSections: {
49
- ...prevState.expandedSections,
50
- [section]: !prevState.expandedSections[section],
51
- },
52
- }));
53
- }
54
-
55
- render() {
56
- const {pages, base = 'components'} = this.props;
57
- const {searchTerm} = this.state;
58
-
59
- const filteredPages = Object.keys(pages).reduce((filtered, section) => {
60
- const filteredItems = Object.keys(pages[section].items)
61
- .filter((item) => pages[section].items[item].name.toLowerCase().includes(searchTerm.toLowerCase()))
62
- .reduce((obj, key) => {
63
- obj[key] = pages[section].items[key];
64
- return obj;
65
- }, {});
66
-
67
- if (Object.keys(filteredItems).length > 0) {
68
- filtered[section] = {...pages[section], items: filteredItems};
69
- }
70
-
71
- return filtered;
72
- }, {});
73
-
74
- const navigations = Object.keys(filteredPages).map((group) => (
75
- <li key={group}>
76
- <div
77
- className={`docs-page__nav-title ${this.state.expandedSections[group] ? 'docs-page__nav-title--open' : ''}`}
78
- onClick={() => this.toggleSection(group)}
79
- >
80
- <span className="docs-page__nav-title-caret">
81
- <i className="icon-chevron-right-thin" aria-label="chevron-right-thin" />
82
- </span>
83
- {filteredPages[group].name}
84
- </div>
85
- {this.state.expandedSections[group] && (
86
- <ul className="docs-page__nav--sub-level">
87
- {Object.keys(filteredPages[group].items).map((page) => (
88
- <li
89
- key={page}
90
- className="docs-page__nav-item"
91
- ref={`/${base}/${page}` === location.hash.replace('#', '') ? this.activeRef : null}
92
- >
93
- <NavLink
94
- to={{pathname: `/${base}/${page}`}}
95
- activeClassName="docs-page__nav-item--active"
96
- >
97
- {filteredPages[group].items[page].name}
98
- </NavLink>
99
- </li>
100
- ))}
101
- </ul>
102
- )}
103
- </li>
104
- ));
105
-
106
- return (
107
- <aside className="docs-page__sidebar">
108
- <div className="docs-page__sidebar-searchbar-container">
109
- <div className="mx-2 mb-1-5 sd-searchbar sd-searchbar--expanded sd-searchbar--boxed">
110
- <label className="sd-searchbar__icon"></label>
111
- <input
112
- id="search-input"
113
- className="sd-searchbar__input"
114
- type="text"
115
- placeholder="Search"
116
- value={searchTerm}
117
- onChange={this.handleSearchChange}
118
- />
119
- {this.state.searchTerm && (
120
- <button className="sd-searchbar__cancel" onClick={() => this.setState({searchTerm: ''})}>
121
- <Icon name="remove-sign" />
122
- </button>
123
- )}
124
- </div>
125
- </div>
126
- <ul className="docs-page__nav">{navigations}</ul>
127
- </aside>
128
- );
129
- }
130
- }
131
-
132
- class ReactDefault extends React.PureComponent {
133
- render() {
134
- return (
135
- <section className="docs-page__container">
136
- <div className="docs-page__hero">
137
- <figure className="docs-page__hero-image">
138
- <img src="/illustration--react.svg" alt="React" />
139
- </figure>
140
- <h2 className="docs-page__hero-h2 docs-page__color--primary">Home of Superdesk React components</h2>
141
- <p className="docs-page__hero-text">
142
- As the headline suggests, these where the React components live.
143
- </p>
144
- </div>
145
- </section>
146
- );
147
- }
148
- }
149
-
150
- class PatternsDefault extends React.PureComponent {
151
- render() {
152
- return (
153
- <section className="docs-page__container">
154
- <div className="docs-page__hero">
155
- <figure className="docs-page__hero-image">
156
- <img src="/illustration--components.svg" alt="React" />
157
- </figure>
158
- <h2 className="docs-page__hero-h2 docs-page__color--primary">Design Patterns</h2>
159
- <p className="docs-page__hero-text">
160
- Examples of reusable solutions for common UI patterns in Superdesk.
161
- </p>
162
- </div>
163
- </section>
164
- );
165
- }
166
- }
167
-
168
- class ReactMarkup extends React.PureComponent {
169
- constructor(props) {
170
- super(props);
171
- this.state = {
172
- active: 'preview',
173
- };
174
- }
175
-
176
- changeTab(tab) {
177
- this.setState({active: tab});
178
- }
179
-
180
- render() {
181
- const childrenWithProps = React.Children.map(this.props.children, (child) =>
182
- React.cloneElement(child, {active: this.state.active}),
183
- );
184
-
185
- return (
186
- <div className="docs-page__code-window">
187
- <div className="docs-page__window-bar">
188
- <a
189
- className={'cursor-pointer ' + (this.state.active === 'preview' ? 'active' : '')}
190
- onClick={() => this.changeTab('preview')}
191
- >
192
- Example
193
- </a>
194
- <a
195
- className={'cursor-pointer ' + (this.state.active === 'markup' ? 'active' : '')}
196
- onClick={() => this.changeTab('markup')}
197
- >
198
- Markup
199
- </a>
200
- </div>
201
-
202
- <div className="docs-page__window-content">{childrenWithProps}</div>
203
- </div>
204
- );
205
- }
206
- }
207
-
208
- class ReactMarkupPreview extends React.PureComponent {
209
- render() {
210
- return (
211
- <div
212
- className="docs-page__code-example"
213
- style={this.props.active === 'preview' ? {display: 'block'} : {display: 'none'}}
214
- >
215
- {this.props.children}
216
- </div>
217
- );
218
- }
219
- }
220
-
221
- class ReactMarkupCode extends React.PureComponent {
222
- componentDidMount() {
223
- Prism.highlightAll();
224
- }
225
- render() {
226
- return (
227
- <div
228
- className="docs-page__code-markup"
229
- style={this.props.active === 'markup' ? {display: 'block'} : {display: 'none'}}
230
- >
231
- <pre className="line-numbers">
232
- <code className="language-jsx">{this.props.children}</code>
233
- </pre>
234
- </div>
235
- );
236
- }
237
- }
238
-
239
- class ReactMarkupCodePreview extends React.PureComponent {
240
- componentDidMount() {
241
- Prism.highlightAll();
242
- }
243
- render() {
244
- const {limitHeight, children} = this.props;
245
- const classes = `language-jsx ${limitHeight ? 'max-h-25' : ''}`;
246
-
247
- return (
248
- <pre className={limitHeight ? 'max-h-25' : ''}>
249
- <code className={classes}>{children}</code>
250
- </pre>
251
- );
252
- }
253
- }
254
-
255
- export {
256
- ReactNav,
257
- ReactDefault,
258
- ReactMarkup,
259
- ReactMarkupPreview,
260
- ReactMarkupCode,
261
- ReactMarkupCodePreview,
262
- PatternsDefault,
263
- };
@@ -1,291 +0,0 @@
1
- import * as React from 'react';
2
- import * as Markup from '../../js/react';
3
- import {Alert, Prop, PropsList} from '../../../app-typescript';
4
- import * as PanelElements from '../../../app-typescript/components/Layouts/Panel';
5
-
6
- export default class AlertDoc extends React.Component {
7
- render() {
8
- return (
9
- <section className="docs-page__container">
10
- <h2 className="docs-page__h2">Alerts</h2>
11
- <Markup.ReactMarkupCodePreview>
12
- {`
13
- <Alert style='hollow' size='normal' type='primary' restoreIcon='info'>
14
- This is an info text example.
15
- </Alert>
16
- `}
17
- </Markup.ReactMarkupCodePreview>
18
- <p className="docs-page__paragraph">
19
- Provide contextual feedback or info messages for user actions with the handful of available alert
20
- box options.
21
- </p>
22
-
23
- <Markup.ReactMarkup>
24
- <Markup.ReactMarkupPreview>
25
- <p className="docs-page__paragraph">// Hollow style (preferred usage)</p>
26
-
27
- <Alert style="hollow" size="normal" restoreIcon="info">
28
- Fusce nec ex et dolor rhoncus iaculis maximus sit amet lorem. Nunc posuere, ligula quis
29
- dictum tempor, lectus diam pharetra est, id fringilla leo urna vel arcu.
30
- </Alert>
31
- <Alert icon="info-sign" style="hollow" size="normal" type="primary" restoreIcon="info">
32
- Integer elementum vestibulum ipsum a rhoncus. Cras et tortor tempus, imperdiet neque sit
33
- amet, imperdiet elit. Nunc eleifend sollicitudin molestie. Aliquam nec enim orci.
34
- </Alert>
35
- <Alert icon="warning-sign" style="hollow" size="normal" type="warning" restoreIcon="info">
36
- Sed tincidunt ipsum metus, consectetur vestibulum turpis luctus in. Vestibulum ut ex
37
- vulputate, lacinia mauris vel, accumsan libero. Morbi dapibus non felis et convallis. Sed at
38
- dolor vel nisl aliquam vehicula.
39
- </Alert>
40
- <Alert style="hollow" size="normal" type="alert" restoreIcon="info">
41
- Sed tincidunt ipsum metus, consectetur vestibulum turpis luctus in. Vestibulum ut ex
42
- vulputate, lacinia mauris vel, accumsan libero. Morbi dapibus non felis et convallis. Sed at
43
- dolor vel nisl aliquam vehicula.
44
- </Alert>
45
- <Alert style="hollow" size="normal" type="success" restoreIcon="info" margin="none">
46
- Sed tincidunt ipsum metus, consectetur vestibulum turpis luctus in. Vestibulum ut ex
47
- vulputate, lacinia mauris vel, accumsan libero. Morbi dapibus non felis et convallis. Sed at
48
- dolor vel nisl aliquam vehicula.
49
- </Alert>
50
- <Alert style="hollow" size="normal" type="highlight" restoreIcon="info">
51
- Sed tincidunt ipsum metus, consectetur vestibulum turpis luctus in. Vestibulum ut ex
52
- vulputate, lacinia mauris vel, accumsan libero. Morbi dapibus non felis et convallis. Sed at
53
- dolor vel nisl aliquam vehicula.
54
- </Alert>
55
- <Alert style="hollow" size="normal" type="sd-green" restoreIcon="help">
56
- In mattis tellus odio, quis dictum sapien pellentesque in. Phasellus dignissim tempus ante
57
- at congue. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis maximus bibendum
58
- lacinia.
59
- </Alert>
60
-
61
- <p className="docs-page__paragraph">// Filled</p>
62
-
63
- <Alert icon="exclamation-sign" style="filled" size="normal" restoreIcon="info">
64
- Nullam quis risus eget urna mollis ornare vel eu leo. Praesent commodo cursus magna, vel
65
- scelerisque nisl consectetur et. Donec ullamcorper nulla non metus auctor fringilla.
66
- </Alert>
67
- <Alert style="filled" size="normal" type="primary" restoreIcon="info">
68
- Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel
69
- illum dolore eu feugiat nulla facilisis. Praesent vulputate eros nisi, et porta magna
70
- eleifend et.
71
- </Alert>
72
- <Alert icon="warning-sign" style="filled" size="normal" type="warning" restoreIcon="info">
73
- Praesent vulputate eros nisi, et porta magna eleifend et. Duis non sagittis erat. Nulla
74
- facilisi. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac
75
- turpis egestas.
76
- </Alert>
77
- <Alert style="filled" size="normal" type="alert" restoreIcon="info">
78
- Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel
79
- illum dolore eu feugiat nulla facilisis. Praesent vulputate eros nisi, et porta magna
80
- eleifend et.
81
- </Alert>
82
- <Alert style="filled" size="normal" type="success" restoreIcon="info">
83
- Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Nulla vitae elit
84
- libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur
85
- et.
86
- </Alert>
87
- <Alert style="filled" size="normal" type="highlight" restoreIcon="info">
88
- Donec ullamcorper nulla non metus auctor fringilla. Sed posuere consectetur est at lobortis.
89
- Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa
90
- justo sit amet risus.
91
- </Alert>
92
- <Alert style="filled" size="normal" type="sd-green" restoreIcon="info">
93
- Vestibulum id ligula porta felis euismod semper. Nullam id dolor id nibh ultricies vehicula
94
- ut id elit. Nulla vitae elit libero, a pharetra augue. Sed posuere consectetur est at
95
- lobortis. Aenean eu leo quam.
96
- </Alert>
97
-
98
- <p className="docs-page__paragraph">// Small</p>
99
-
100
- <Alert icon="info-sign" style="hollow" size="small" type="primary" restoreIcon="info">
101
- Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Fusce
102
- dapibus, tellus ac cursus.
103
- </Alert>
104
- <Alert style="filled" size="small" type="highlight" restoreIcon="info">
105
- Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus
106
- porttitor. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec
107
- ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo,
108
- tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
109
- </Alert>
110
- </Markup.ReactMarkupPreview>
111
- <Markup.ReactMarkupCode>
112
- {`
113
- // Hollow style (preferred usage)
114
-
115
- <Alert style='hollow' size='normal' restoreIcon='info'>
116
- Fusce nec ex et dolor rhoncus iaculis maximus sit amet lorem. Nunc posuere, ligula quis dictum tempor, lectus diam pharetra est, id fringilla leo urna vel arcu.
117
- </Alert>
118
- <Alert icon="info-sign" style='hollow' size='normal' type='primary' restoreIcon='info'>
119
- Integer elementum vestibulum ipsum a rhoncus. Cras et tortor tempus, imperdiet neque sit amet, imperdiet elit. Nunc eleifend sollicitudin molestie. Aliquam nec enim orci.
120
- </Alert>
121
- <Alert icon="warning-sign" style='hollow' size='normal' type='warning' restoreIcon='info'>
122
- Sed tincidunt ipsum metus, consectetur vestibulum turpis luctus in. Vestibulum ut ex vulputate, lacinia mauris vel, accumsan libero. Morbi dapibus non felis et convallis. Sed at dolor vel nisl aliquam vehicula.
123
- </Alert>
124
- <Alert style='hollow' size='normal' type='alert' restoreIcon='info'>
125
- Sed tincidunt ipsum metus, consectetur vestibulum turpis luctus in. Vestibulum ut ex vulputate, lacinia mauris vel, accumsan libero. Morbi dapibus non felis et convallis. Sed at dolor vel nisl aliquam vehicula.
126
- </Alert>
127
- <Alert style='hollow' size='normal' type='success' restoreIcon='info'>
128
- Sed tincidunt ipsum metus, consectetur vestibulum turpis luctus in. Vestibulum ut ex vulputate, lacinia mauris vel, accumsan libero. Morbi dapibus non felis et convallis. Sed at dolor vel nisl aliquam vehicula.
129
- </Alert>
130
- <Alert style='hollow' size='normal' type='highlight' restoreIcon='info'>
131
- Sed tincidunt ipsum metus, consectetur vestibulum turpis luctus in. Vestibulum ut ex vulputate, lacinia mauris vel, accumsan libero. Morbi dapibus non felis et convallis. Sed at dolor vel nisl aliquam vehicula.
132
- </Alert>
133
- <Alert style='hollow' size='normal' type='sd-green' restoreIcon='help'>
134
- In mattis tellus odio, quis dictum sapien pellentesque in. Phasellus dignissim tempus ante at congue. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis maximus bibendum lacinia.
135
- </Alert>
136
-
137
- // Filled
138
-
139
- <Alert icon="exclamation-sign" style='filled' size='normal' restoreIcon='info'>
140
- Nullam quis risus eget urna mollis ornare vel eu leo. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec ullamcorper nulla non metus auctor fringilla.
141
- </Alert>
142
- <Alert style='filled' size='normal' type='primary' restoreIcon='info'>
143
- Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis. Praesent vulputate eros nisi, et porta magna eleifend et.
144
- </Alert>
145
- <Alert icon="warning-sign" style='filled' size='normal' type='warning' restoreIcon='info'>
146
- Praesent vulputate eros nisi, et porta magna eleifend et. Duis non sagittis erat. Nulla facilisi. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
147
- </Alert>
148
- <Alert style='filled' size='normal' type='alert' restoreIcon='info'>
149
- Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis. Praesent vulputate eros nisi, et porta magna eleifend et.
150
- </Alert>
151
- <Alert style='filled' size='normal' type='success' restoreIcon='info'>
152
- Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
153
- </Alert>
154
- <Alert style='filled' size='normal' type='highlight' restoreIcon='info'>
155
- Donec ullamcorper nulla non metus auctor fringilla. Sed posuere consectetur est at lobortis. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
156
- </Alert>
157
- <Alert style='filled' size='normal' type='sd-green' restoreIcon='info'>
158
- Vestibulum id ligula porta felis euismod semper. Nullam id dolor id nibh ultricies vehicula ut id elit. Nulla vitae elit libero, a pharetra augue. Sed posuere consectetur est at lobortis. Aenean eu leo quam.
159
- </Alert>
160
-
161
- // Small
162
-
163
- <Alert icon="info-sign" style='hollow' size='small' type='primary' restoreIcon='info'>
164
- Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Fusce dapibus, tellus ac cursus.
165
- </Alert>
166
- <Alert style='filled' size='small' type='highlight' restoreIcon='info'>
167
- Maecenas sed diam eget risus varius blandit sit amet non magna. Curabitur blandit tempus porttitor. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
168
- </Alert>
169
- `}
170
- </Markup.ReactMarkupCode>
171
- </Markup.ReactMarkup>
172
-
173
- <h3 className="docs-page__h3 docs-page__h3--small-top-m">Banner style</h3>
174
- <p className="docs-page__paragraph">
175
- The Alert component can be placed inside other elements, in this example inside the{' '}
176
- <code>PanelHeader</code>, to alert the user about important information relevant to this specific
177
- area of the application. In areas that are limited in space set the <code>banner</code> prop to
178
- true. This will strip all margins and the border-radius from the component. Hollow style is not
179
- recommended in this case, and small size is advised.
180
- </p>
181
- <Markup.ReactMarkup>
182
- <Markup.ReactMarkupPreview>
183
- <div
184
- className="d-flex"
185
- style={{
186
- border: '1px solid var(--sd-colour-line--medium)',
187
- backgroundColor: 'var(--sd-colour-panel-bg--100)',
188
- maxHeight: '360px',
189
- }}
190
- >
191
- <PanelElements.Panel open={true} side="left" size="small">
192
- <PanelElements.PanelHeader title="Panel example" onClose={() => false}>
193
- <Alert type="warning" icon="exclamation-sign" banner={true} size="small">
194
- Banner style alert dolor rhoncus iaculis maximus sit...
195
- </Alert>
196
- </PanelElements.PanelHeader>
197
- <PanelElements.PanelContent>
198
- <PanelElements.PanelContentBlock>
199
- <p className="sd-margin-b--2">
200
- Curabitur blandit tempus porttitor. Lorem ipsum dolor sit amet, consectetur
201
- adipiscing elit. Donec sed odio dui. Aenean eu leo quam. Pellentesque ornare
202
- sem lacinia quam venenatis vestibulum.
203
- </p>
204
- <p className="sd-margin-b--2">
205
- Donec ullamcorper nulla non metus auctor fringilla. Cras mattis consectetur
206
- purus sit amet fermentum. Donec id elit non mi porta gravida at eget metus.
207
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras justo odio,
208
- dapibus ac facilisis in, egestas eget quam. Duis mollis, est non commodo
209
- luctus, nisi erat porttitor ligula.
210
- </p>
211
- <p>
212
- Aenean lacinia bibendum nulla sed consectetur. Cum sociis natoque penatibus
213
- et magnis dis parturient montes, nascetur ridiculus mus. Etiam porta sem
214
- malesuada magna mollis euismod. Integer posuere erat a ante venenatis
215
- dapibus posuere velit aliquet.
216
- </p>
217
- </PanelElements.PanelContentBlock>
218
- </PanelElements.PanelContent>
219
- </PanelElements.Panel>
220
- </div>
221
- </Markup.ReactMarkupPreview>
222
- <Markup.ReactMarkupCode>
223
- {`
224
- <Panel open={true} side='left' size='small'>
225
- <PanelHeader title='Panel example' onClose={()=> false}>
226
- <Alert type='warning' icon='exclamation-sign' banner={true} size='small'>
227
- Banner style alert dolor rhoncus iaculis maximus sit...
228
- </Alert>
229
- </PanelHeader>
230
- <PanelContent>
231
- <PanelContentBlock>
232
- <p className='sd-margin-b--2'>Curabitur blandit tempus porttitor...</p>
233
- <p className='sd-margin-b--2'>Donec ullamcorper nulla non metus auctor fringilla...</p>
234
- <p>Aenean lacinia bibendum nulla sed consectetur. Cum sociis natoque penatibus...</p>
235
- </PanelContentBlock>
236
- </PanelContent>
237
- </Panel>
238
- `}
239
- </Markup.ReactMarkupCode>
240
- </Markup.ReactMarkup>
241
-
242
- <h3 className="docs-page__h3">Props</h3>
243
- <PropsList>
244
- <Prop
245
- name="type"
246
- isRequired={false}
247
- type="default | primary | success | warning | alert | highlight | sd-green"
248
- default="default"
249
- description="Default + semantic colour variations (e.g. primary, success etc.)"
250
- />
251
- <Prop
252
- name="style"
253
- isRequired={false}
254
- type="filled | hollow"
255
- default="filled"
256
- description="Alerts may be one of styles such as hollow alerts, alerts without background (text-only) or default filled."
257
- />
258
- <Prop
259
- name="size"
260
- isRequired={false}
261
- type="normal | small"
262
- default="normal"
263
- description="Choose between a normal or small alert."
264
- />
265
- <Prop
266
- name="margin"
267
- isRequired={false}
268
- type="none | small | normal | large"
269
- default="normal"
270
- description="Specifies the bottom margin of the alert."
271
- />
272
- <Prop
273
- name="icon"
274
- isRequired={false}
275
- type="string"
276
- default="-"
277
- description="Adds an icon at the beggining of the alert dialogue. To specify na icon use the names from the Icon component."
278
- />
279
- <Prop
280
- name="banner"
281
- isRequired={false}
282
- type="boolean"
283
- default="false"
284
- description="Setting to true will remove the box-shadow and border-radius. Use this option to display the alert in toolbars and similar."
285
- />
286
- <Prop name="restoreIcon" isRequired={false} type="info | help" default="info" description="" />
287
- </PropsList>
288
- </section>
289
- );
290
- }
291
- }