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,198 +0,0 @@
1
- import * as React from 'react';
2
- import * as Markup from '../../js/react';
3
- import {
4
- SimpleList,
5
- SimpleListItem,
6
- Label,
7
- Badge,
8
- Icon,
9
- IconButton,
10
- ButtonGroup,
11
- Text,
12
- Heading,
13
- Prop,
14
- PropsList,
15
- } from '../../../app-typescript';
16
-
17
- export default class SimpleListDoc extends React.Component {
18
- render() {
19
- return (
20
- <section className="docs-page__container">
21
- <h2 className="docs-page__h2">SimpleList</h2>
22
-
23
- <Markup.ReactMarkupCodePreview>
24
- {`
25
- <SimpleList>
26
- <SimpleListItem>...</SimpleListItem>
27
- </SimpleList>
28
- `}
29
- </Markup.ReactMarkupCodePreview>
30
-
31
- <p className="docs-page__paragraph">...</p>
32
-
33
- <Markup.ReactMarkup>
34
- <Markup.ReactMarkupPreview>
35
- <p className="docs-page__paragraph">// no border / compact (default)</p>
36
- <SimpleList>
37
- <SimpleListItem>
38
- Maecenas sed diam eget risus varius blandit sit amet non magna.
39
- </SimpleListItem>
40
- <SimpleListItem>Donec sed odio dui.</SimpleListItem>
41
- <SimpleListItem>Etiam porta sem malesuada magna mollis euismod.</SimpleListItem>
42
- <SimpleListItem>
43
- Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
44
- </SimpleListItem>
45
- </SimpleList>
46
- <p className="docs-page__paragraph">// border / space-between</p>
47
- <SimpleList border={true}>
48
- <SimpleListItem justify="space-between">
49
- Vehicula Ridiculus <Label text="Active" type="success" style="translucent" />
50
- </SimpleListItem>
51
- <SimpleListItem justify="space-between">
52
- Tellus Mollis Aenean <Label text="Pending" type="warning" style="translucent" />
53
- </SimpleListItem>
54
- <SimpleListItem justify="space-between">
55
- Elit Vestibulum <Label text="Closed" type="alert" style="translucent" />
56
- </SimpleListItem>
57
- </SimpleList>
58
- <p className="docs-page__paragraph">// border / comfortable</p>
59
- <SimpleList border={true} density="comfortable">
60
- <SimpleListItem>
61
- <Icon name="photo" />
62
- <Text weight="medium">Adipiscing</Text>
63
- <Text color="light">Tellus Dolor Amet</Text>
64
- <ButtonGroup align="end">
65
- <IconButton icon="pencil" ariaValue="Edit" onClick={() => false} />
66
- <IconButton icon="trash" ariaValue="Delete" onClick={() => false} />
67
- </ButtonGroup>
68
- </SimpleListItem>
69
- <SimpleListItem>
70
- <Icon name="video" />
71
- <Text weight="medium">Condimentum</Text>
72
- <Text color="light">Nullam Ridiculus Mattis</Text>
73
- <ButtonGroup align="end">
74
- <IconButton icon="pencil" ariaValue="Edit" onClick={() => false} />
75
- <IconButton icon="trash" ariaValue="Delete" onClick={() => false} />
76
- </ButtonGroup>
77
- </SimpleListItem>
78
- <SimpleListItem>
79
- <Icon name="slideshow" />
80
- <Text weight="medium">Magna Bibendum</Text>
81
- <Text color="light">Vehicula Ornare Cras Aenean</Text>
82
- <ButtonGroup align="end">
83
- <IconButton icon="pencil" ariaValue="Edit" onClick={() => false} />
84
- <IconButton icon="trash" ariaValue="Delete" onClick={() => false} />
85
- </ButtonGroup>
86
- </SimpleListItem>
87
- </SimpleList>
88
- </Markup.ReactMarkupPreview>
89
- <Markup.ReactMarkupCode>
90
- {`
91
- // no border / compact (default)
92
- <SimpleList>
93
- <SimpleListItem>Maecenas sed diam eget risus varius blandit sit amet non magna.</SimpleListItem>
94
- <SimpleListItem>Donec sed odio dui.</SimpleListItem>
95
- <SimpleListItem>Etiam porta sem malesuada magna mollis euismod.</SimpleListItem>
96
- <SimpleListItem>Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</SimpleListItem>
97
- </SimpleList>
98
-
99
- // border / space-between
100
- <SimpleList border={true}>
101
- <SimpleListItem justify="space-between">
102
- Vehicula Ridiculus <Label text='Active' type='success' style='translucent'/>
103
- </SimpleListItem>
104
- <SimpleListItem justify="space-between">
105
- Tellus Mollis Aenean <Label text='Pending' type='warning' style='translucent'/>
106
- </SimpleListItem>
107
- <SimpleListItem justify="space-between">
108
- Elit Vestibulum <Label text='Closed' type='alert' style='translucent'/>
109
- </SimpleListItem>
110
- </SimpleList>
111
-
112
- // border / comfortable
113
- <SimpleList border={true} density='comfortable'>
114
- <SimpleListItem>
115
- <Icon name='photo' />
116
- <Text weight='medium'>Adipiscing</Text>
117
- <Text color='light'>Tellus Dolor Amet</Text>
118
- <ButtonGroup align='end'>
119
- <IconButton icon='pencil' ariaValue="Edit" onClick={()=> false} />
120
- <IconButton icon='trash' ariaValue="Delete" onClick={()=> false} />
121
- </ButtonGroup>
122
- </SimpleListItem>
123
- <SimpleListItem>
124
- <Icon name='video' />
125
- <Text weight='medium'>Condimentum</Text>
126
- <Text color='light'>Nullam Ridiculus Mattis</Text>
127
- <ButtonGroup align='end'>
128
- <IconButton icon='pencil' ariaValue="Edit" onClick={()=> false} />
129
- <IconButton icon='trash' ariaValue="Delete" onClick={()=> false} />
130
- </ButtonGroup>
131
- </SimpleListItem>
132
- <SimpleListItem>
133
- <Icon name='slideshow' />
134
- <Text weight='medium'>Magna Bibendum</Text>
135
- <Text color='light'>Vehicula Ornare Cras Aenean</Text>
136
- <ButtonGroup align='end'>
137
- <IconButton icon='pencil' ariaValue="Edit" onClick={()=> false} />
138
- <IconButton icon='trash' ariaValue="Delete" onClick={()=> false} />
139
- </ButtonGroup>
140
- </SimpleListItem>
141
- </SimpleList>
142
- `}
143
- </Markup.ReactMarkupCode>
144
- </Markup.ReactMarkup>
145
-
146
- <h3 className="docs-page__h3">Props</h3>
147
- <p className="docs-page__paragraph">SimpleList</p>
148
- <PropsList>
149
- <Prop
150
- name="density"
151
- isRequired={false}
152
- type="compact | comfortable | loose"
153
- default="compact"
154
- description="Specifies the vertical padding inside the list items. "
155
- />
156
- <Prop
157
- name="width"
158
- isRequired={false}
159
- type="none | x-small | small | medium | large"
160
- default="none"
161
- description="Defines the width of the list. If not specified the list will take the full width of the parent container."
162
- />
163
- <Prop
164
- name="border"
165
- isRequired={false}
166
- type="boolean"
167
- default="false"
168
- description="Adds a dotted border on top of the list and between list items."
169
- />
170
- <Prop
171
- name="className"
172
- isRequired={false}
173
- type="string"
174
- default="false"
175
- description="Add custom or helper classes to the list to modify the behaviour (e.g. top or bootom margins)."
176
- />
177
- </PropsList>
178
- <p className="docs-page__paragraph">SimpleListItem</p>
179
- <PropsList>
180
- <Prop
181
- name="stacked"
182
- isRequired={false}
183
- type="boolean"
184
- default="false"
185
- description="Changes the flex-direction from row to column."
186
- />
187
- <Prop
188
- name="justify"
189
- isRequired={false}
190
- type="flex-start | flex-end | center | space-between"
191
- default="flex-start"
192
- description="Changes the flex justification of the elements inside the list item. "
193
- />
194
- </PropsList>
195
- </section>
196
- );
197
- }
198
- }
@@ -1,160 +0,0 @@
1
- import * as React from 'react';
2
- import * as Markup from '../../js/react';
3
- import {SubNav, NavButton, Button, ButtonGroup, Divider, PropsList, Prop} from '../../../app-typescript';
4
-
5
- export default class SubNavDoc extends React.Component {
6
- render() {
7
- return (
8
- <section className="docs-page__container">
9
- <h2 className="docs-page__h2">Sub Navigation bar</h2>
10
- <p></p>
11
- <Markup.ReactMarkupCodePreview>
12
- {`
13
- <SubNav>
14
- <ButtonGroup align='start'>
15
- <NavButton icon='search' onClick={()=> false} />
16
- </ButtonGroup>
17
- <ButtonGroup align='end'>
18
- <NavButton icon='dots-vertical' onClick={()=> false} />
19
- </ButtonGroup>
20
- </SubNav>
21
- `}
22
- </Markup.ReactMarkupCodePreview>
23
-
24
- <Markup.ReactMarkup>
25
- <Markup.ReactMarkupPreview>
26
- <SubNav>
27
- <ButtonGroup align="start">
28
- <NavButton icon="search" onClick={() => false} />
29
- </ButtonGroup>
30
- <ButtonGroup align="end">
31
- <NavButton icon="expand-thin" type="highlight" onClick={() => false} />
32
- </ButtonGroup>
33
- </SubNav>
34
- <SubNav color="darker">
35
- <ButtonGroup align="start">
36
- <NavButton icon="filter-large" type="darker" onClick={() => false} />
37
- </ButtonGroup>
38
- <ButtonGroup align="end">
39
- <Button text="Something" onClick={() => false} />
40
- <Button text="Else" onClick={() => false} />
41
- <Divider border={true} />
42
- <Button text="Cancel" onClick={() => false} />
43
- <Button text="Save" type="primary" onClick={() => false} />
44
- <Divider size="mini" />
45
- <ButtonGroup subgroup={true} spaces="no-space">
46
- <NavButton icon="list-plus" onClick={() => false} />
47
- <NavButton icon="dots-vertical" onClick={() => false} />
48
- </ButtonGroup>
49
- </ButtonGroup>
50
- </SubNav>
51
- <br />
52
- <SubNav color="darker">
53
- <ButtonGroup align="start" padded={true}>
54
- <Button text="Something" onClick={() => false} />
55
- <Button text="Else" onClick={() => false} />
56
- <Divider border={true} />
57
- <Button text="Cancel" onClick={() => false} />
58
- <Button text="Save" type="primary" onClick={() => false} />
59
- </ButtonGroup>
60
- </SubNav>
61
- <br />
62
- <SubNav color="blueGreyDarker">
63
- <ButtonGroup align="center">
64
- <Button text="One" onClick={() => false} />
65
- <Button text="Two" onClick={() => false} />
66
- <Divider border={true} />
67
- <Button text="Three" onClick={() => false} />
68
- <Button text="Four" onClick={() => false} />
69
- <Divider border={true} />
70
- <Button text="Five" onClick={() => false} />
71
- <Button text="Six" onClick={() => false} />
72
- </ButtonGroup>
73
- </SubNav>
74
- </Markup.ReactMarkupPreview>
75
- <Markup.ReactMarkupCode>
76
- {`
77
- <SubNav>
78
- <ButtonGroup align='start'>
79
- <NavButton icon='search' onClick={()=> false} />
80
- </ButtonGroup>
81
- <ButtonGroup align='end'>
82
- <NavButton icon='expand-thin' type='highlight' onClick={()=> false} />
83
- </ButtonGroup>
84
- </SubNav>
85
- <SubNav color='darker'>
86
- <ButtonGroup align='start'>
87
- <NavButton icon='filter-large' type='darker' onClick={()=> false} />
88
- </ButtonGroup>
89
- <ButtonGroup align='end'>
90
- <Button text='Something' onClick={()=> false} />
91
- <Button text='Else' onClick={()=> false} />
92
- <Divider border={true} />
93
- <Button text='Cancel' onClick={()=> false} />
94
- <Button text='Save' type='primary' onClick={()=> false} />
95
- <Divider size="mini" />
96
- <ButtonGroup subgroup={true} spaces='no-space'>
97
- <NavButton icon='list-plus' onClick={()=> false} />
98
- <NavButton icon='dots-vertical' onClick={()=> false} />
99
- </ButtonGroup>
100
- </ButtonGroup>
101
- </SubNav>
102
-
103
- <br />
104
-
105
- <SubNav color='darker'>
106
- <ButtonGroup align='start' padded={true}>
107
- <Button text='Something' onClick={()=> false} />
108
- <Button text='Else' onClick={()=> false} />
109
- <Divider border={true} />
110
- <Button text='Cancel' onClick={()=> false} />
111
- <Button text='Save' type='primary' onClick={()=> false} />
112
- </ButtonGroup>
113
- </SubNav>
114
-
115
- <br />
116
-
117
- <SubNav color='blueGreyDarker'>
118
- <ButtonGroup align='center'>
119
- <Button text='One' onClick={()=> false} />
120
- <Button text='Two' onClick={()=> false} />
121
- <Divider border={true} />
122
- <Button text='Three' onClick={()=> false} />
123
- <Button text='Four' onClick={()=> false} />
124
- <Divider border={true} />
125
- <Button text='Five' onClick={()=> false} />
126
- <Button text='Six' onClick={()=> false} />
127
- </ButtonGroup>
128
- </SubNav>
129
- `}
130
- </Markup.ReactMarkupCode>
131
- </Markup.ReactMarkup>
132
-
133
- <h3 className="docs-page__h3">Props</h3>
134
- <PropsList>
135
- <Prop
136
- name="color"
137
- isRequired={false}
138
- type="light | darker | blueGrey | blueGreyDarker"
139
- default="light"
140
- description="Background colour of the SubNav component."
141
- />
142
- <Prop
143
- name="theme"
144
- isRequired={false}
145
- type="light | dark"
146
- default="/"
147
- description="Choose the UI theme. It will inherit the default theme if not set. All child elements will inherit the theme of the SubNav if it is set."
148
- />
149
- <Prop
150
- name="className"
151
- isRequired={false}
152
- type="string"
153
- default="/"
154
- description="Add helper classes or custom CSS styles."
155
- />
156
- </PropsList>
157
- </section>
158
- );
159
- }
160
- }
@@ -1,298 +0,0 @@
1
- import * as React from 'react';
2
- import * as Markup from '../../js/react';
3
- import * as Components from '../playgrounds/react-playgrounds/components/Index';
4
-
5
- import {Switch, SwitchGroup, Prop, PropsList, Label} from '../../../app-typescript';
6
-
7
- interface IState {
8
- value1: boolean;
9
- value2: boolean;
10
- value3: boolean;
11
- value4: boolean;
12
- value5: boolean;
13
- value6: boolean;
14
- value7: boolean;
15
- value8: boolean;
16
- value9: boolean;
17
- value10: boolean;
18
- value11: boolean;
19
- value12: boolean;
20
- }
21
-
22
- export default class SwitchDoc extends React.Component<{}, IState> {
23
- constructor(props) {
24
- super(props);
25
-
26
- this.state = {
27
- value1: false,
28
- value2: true,
29
- value3: false,
30
- value4: true,
31
- value5: false,
32
- value6: true,
33
- value7: true,
34
- value8: false,
35
- value9: false,
36
- value10: true,
37
- value11: false,
38
- value12: false,
39
- };
40
- }
41
-
42
- render() {
43
- return (
44
- <section className="docs-page__container">
45
- <h2 className="docs-page__h2">Switch</h2>
46
- <p></p>
47
- <Markup.ReactMarkupCodePreview>
48
- {`
49
- <Switch label={{text:'Switch label'}} value={value1} onChange={(value) => this.setState(() => ({ value1: value }))} />
50
- `}
51
- </Markup.ReactMarkupCodePreview>
52
- <Markup.ReactMarkup>
53
- <Markup.ReactMarkupPreview>
54
- <p className="docs-page__paragraph docs-page__paragraph--topMarginL">
55
- // Label on the right (default)
56
- </p>
57
- <div className="form__row">
58
- <Switch
59
- label={{content: 'Switch label right'}}
60
- value={this.state.value1}
61
- onChange={(value) => this.setState(() => ({value1: value}))}
62
- />
63
- </div>
64
- <p className="docs-page__paragraph docs-page__paragraph--topMarginL">// Labels on the left</p>
65
- <p className="docs-page__paragraph--small">
66
- This option should be used only in cases when the switch is aligned to the right.
67
- </p>
68
- <div className="form__row">
69
- <Switch
70
- label={{content: 'Label on left', side: 'left'}}
71
- value={this.state.value2}
72
- onChange={(value) => this.setState(() => ({value2: value}))}
73
- />
74
- </div>
75
- <p className="docs-page__paragraph docs-page__paragraph--topMarginL">// Disabled</p>
76
- <div className="form__row">
77
- <Switch
78
- label={{content: 'Label on right with disabled state'}}
79
- value={this.state.value3}
80
- onChange={(value) => this.setState(() => ({value3: value}))}
81
- disabled
82
- />
83
- </div>
84
- <p className="docs-page__paragraph docs-page__paragraph--topMarginL">// External label</p>
85
- <div className="form__row">
86
- <Switch
87
- label={{content: () => <label>External label</label>}}
88
- value={this.state.value12}
89
- onChange={(value) => this.setState(() => ({value12: value}))}
90
- />
91
- </div>
92
- </Markup.ReactMarkupPreview>
93
- <Markup.ReactMarkupCode>
94
- {`
95
- // Label on the right (default)
96
- <Switch label={{text:'Switch label right'}} value={this.state.value1} onChange={(value) => this.setState(() => ({ value1: value }))} />
97
-
98
- // Labels on the left
99
- <Switch label={{text:'Label on left', side: 'left'}} value={this.state.value2} onChange={(value) => this.setState(() => ({ value2: value }))} />
100
-
101
- // Disabled
102
- <Switch label={{text:'Label on right with disabled state'}} value={this.state.value3} onChange={(value) => this.setState(() => ({ value3: value }))} disabled={true} />
103
-
104
- // External label
105
- <Switch label={{content:() => <label>External label</label>}} value={this.state.value12} onChange={(value) => this.setState(() => ({ value12: value }))} />
106
- `}
107
- </Markup.ReactMarkupCode>
108
- </Markup.ReactMarkup>
109
-
110
- <h3 className="docs-page__h3">Switch groups</h3>
111
- <p className="docs-page__paragraph">
112
- <code>SwitchGroup</code> is a helpful wrapper component used to group <code>Switch</code>{' '}
113
- components. By default the switches are grouped horizontaly. To group them verticaly – in a
114
- list-like view – add the prop <code>orientation='vertical'</code>
115
- to the <code>SwitchGroup</code> component.
116
- </p>
117
-
118
- <Markup.ReactMarkup>
119
- <Markup.ReactMarkupPreview>
120
- <p className="docs-page__paragraph">// Vertical group (default)</p>
121
- <div className="form__row">
122
- <SwitchGroup>
123
- <Switch
124
- label={{content: 'Vertical Switch 1'}}
125
- value={this.state.value6}
126
- onChange={(value) => this.setState(() => ({value6: value}))}
127
- />
128
- <Switch
129
- label={{content: 'Vertical Switch 2'}}
130
- value={this.state.value7}
131
- onChange={(value) => this.setState(() => ({value7: value}))}
132
- />
133
- <Switch
134
- label={{content: 'Vertical Switch 3'}}
135
- value={this.state.value8}
136
- onChange={(value) => this.setState(() => ({value8: value}))}
137
- />
138
- </SwitchGroup>
139
- </div>
140
- <p className="docs-page__paragraph docs-page__paragraph--topMarginL">
141
- // Vertical group with labels on the left
142
- </p>
143
- <p className="docs-page__paragraph--small">
144
- This option should be used only in special cases and inside containers not wider than 400
145
- pixels <br />
146
- (e.g. menus, narrow modals or dialouges etc.). It should be used only in the combination
147
- with the labels on th eleft.
148
- </p>
149
- <div className="form__row docs-page__test-helper-2" style={{width: '320px'}}>
150
- <SwitchGroup align="right">
151
- <Switch
152
- label={{content: 'Vertical Switch 1', side: 'left'}}
153
- value={this.state.value9}
154
- onChange={(value) => this.setState(() => ({value9: value}))}
155
- />
156
- <Switch
157
- label={{content: 'Vertical Switch 2', side: 'left'}}
158
- value={this.state.value10}
159
- onChange={(value) => this.setState(() => ({value10: value}))}
160
- />
161
- <Switch
162
- label={{content: 'Vertical Switch 3', side: 'left'}}
163
- value={this.state.value11}
164
- onChange={(value) => this.setState(() => ({value11: value}))}
165
- />
166
- </SwitchGroup>
167
- </div>
168
- <p className="docs-page__paragraph docs-page__paragraph--topMarginL">// Horizontal group</p>
169
- <p className="docs-page__paragraph--small">
170
- Use this option only if there are no more than two switches.
171
- </p>
172
- <div className="form__row">
173
- <SwitchGroup orientation="horizontal">
174
- <Switch
175
- label={{content: 'Horizontal Switch 1'}}
176
- value={this.state.value4}
177
- onChange={(value) => this.setState(() => ({value4: value}))}
178
- />
179
- <Switch
180
- label={{content: 'Horizontal Switch 2'}}
181
- value={this.state.value5}
182
- onChange={(value) => this.setState(() => ({value5: value}))}
183
- />
184
- </SwitchGroup>
185
- </div>
186
- </Markup.ReactMarkupPreview>
187
- <Markup.ReactMarkupCode>
188
- {`
189
- // Vertical group (default)
190
- <SwitchGroup>
191
- <Switch label={{text:'Vertical Switch 1'}} value={this.state.value6} onChange={(value) => this.setState(() => ({ value6: value }))} />
192
- <Switch label={{text:'Vertical Switch 2'}} value={this.state.value7} onChange={(value) => this.setState(() => ({ value7: value }))} />
193
- <Switch label={{text:'Vertical Switch 3'}} value={this.state.value8} onChange={(value) => this.setState(() => ({ value8: value }))} />
194
- </SwitchGroup>
195
-
196
- // Vertical group with labels on the left
197
- <SwitchGroup align='right'>
198
- <Switch label={{text:'Vertical Switch 1', side: 'left'}} value={this.state.value9} onChange={(value) => this.setState(() => ({ value9: value }))} />
199
- <Switch label={{text:'Vertical Switch 2', side: 'left'}} value={this.state.value10} onChange={(value) => this.setState(() => ({ value10: value }))} />
200
- <Switch label={{text:'Vertical Switch 3', side: 'left'}} value={this.state.value11} onChange={(value) => this.setState(() => ({ value11: value }))} />
201
- </SwitchGroup>
202
-
203
- // Horizontal group
204
- <SwitchGroup orientation='horizontal'>
205
- <Switch label={{text:'Horizontal Switch 1'}} value={this.state.value4} onChange={(value) => this.setState(() => ({ value4: value }))} />
206
- <Switch label={{text:'Horizontal Switch 2'}} value={this.state.value5} onChange={(value) => this.setState(() => ({ value5: value }))} />
207
- </SwitchGroup>
208
- `}
209
- </Markup.ReactMarkupCode>
210
- </Markup.ReactMarkup>
211
-
212
- <Components.GraphicButtonsGroup>
213
- <Components.GraphicButton
214
- graphic="design"
215
- text="Switch usage guidelines"
216
- smallText="Design guidelines"
217
- link="#/design/switch"
218
- />
219
- </Components.GraphicButtonsGroup>
220
-
221
- <h3 className="docs-page__h3">Props</h3>
222
- <p className="docs-page__paragraph">Switch</p>
223
- <PropsList>
224
- <Prop name="label" isRequired={true} type="object" default="/" description="Label value." />
225
- <Prop
226
- name="disabled"
227
- isRequired={false}
228
- type="boolean"
229
- default="false"
230
- description="If true field is disabled."
231
- />
232
- <Prop
233
- name="toolTipFlow"
234
- isRequired={false}
235
- type="top | left | right | down"
236
- default="false"
237
- description="Position of tooltip."
238
- />
239
- <Prop
240
- name="toolTipAppend"
241
- isRequired={false}
242
- type="boolean"
243
- default="false"
244
- description="Tooltip append."
245
- />
246
- <Prop
247
- name="onChange"
248
- isRequired={false}
249
- type="function"
250
- default="false"
251
- description="Function onChange"
252
- />
253
- </PropsList>
254
- <p className="docs-page__paragraph">Label props</p>
255
- <PropsList>
256
- <Prop
257
- name="content"
258
- isRequired={true}
259
- type="string or function"
260
- default="/"
261
- description="Label value."
262
- />
263
- <Prop
264
- name="side"
265
- isRequired={false}
266
- type="left | right"
267
- default="right"
268
- description="Position of label relative to the button."
269
- />
270
- <Prop
271
- name="hidden"
272
- isRequired={false}
273
- type="boolean"
274
- default="false"
275
- description="If true label is not shown on display."
276
- />
277
- </PropsList>
278
- <p className="docs-page__paragraph">SwitchGroup</p>
279
- <PropsList>
280
- <Prop
281
- name="orientation"
282
- isRequired={false}
283
- type="vertical | horizontal"
284
- default="vertical"
285
- description="Orientation of Switch components inside the group."
286
- />
287
- <Prop
288
- name="align"
289
- isRequired={false}
290
- type="left | right"
291
- default="left"
292
- description="Alignment of Switch components inside the group."
293
- />
294
- </PropsList>
295
- </section>
296
- );
297
- }
298
- }