superdesk-ui-framework 4.0.51 → 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 (371) hide show
  1. package/app/styles/_avatar.scss +0 -5
  2. package/dist/examples.bundle.js +1 -1
  3. package/dist/superdesk-ui.bundle.css +1 -4
  4. package/package.json +1 -1
  5. package/dist/playgrounds/accessible-theme-test.html +0 -813
  6. package/dist/playgrounds/boxed-list.html +0 -164
  7. package/dist/playgrounds/cards.html +0 -244
  8. package/dist/playgrounds/circular-progress.html +0 -48
  9. package/dist/playgrounds/dummy-data/items.ts +0 -95
  10. package/dist/playgrounds/editor-3-test.html +0 -15
  11. package/dist/playgrounds/form-layout.html +0 -285
  12. package/dist/playgrounds/layout-grid.html +0 -79
  13. package/dist/playgrounds/layout-snippets/edit-article.html +0 -415
  14. package/dist/playgrounds/layout-test-2.html +0 -795
  15. package/dist/playgrounds/list-item-test.html +0 -896
  16. package/dist/playgrounds/main.html +0 -16
  17. package/dist/playgrounds/master-desk.html +0 -1678
  18. package/dist/playgrounds/media-carousel.html +0 -1166
  19. package/dist/playgrounds/nav-buttons.html +0 -65
  20. package/dist/playgrounds/photo-desk.html +0 -1515
  21. package/dist/playgrounds/photo-snippets/edit-photo-metadata.html +0 -208
  22. package/dist/playgrounds/planning-snippets/edit-event.html +0 -187
  23. package/dist/playgrounds/planning-snippets/edit-planning.html +0 -457
  24. package/dist/playgrounds/planning.html +0 -1112
  25. package/dist/playgrounds/publish-snippets/edit-article.html +0 -37
  26. package/dist/playgrounds/publish.html +0 -1007
  27. package/dist/playgrounds/publisher-content-analytics.html +0 -376
  28. package/dist/playgrounds/publisher-content-list-automatic.html +0 -296
  29. package/dist/playgrounds/publisher-content-list-manual.html +0 -611
  30. package/dist/playgrounds/publisher-content-lists.html +0 -255
  31. package/dist/playgrounds/publisher-dashboard.html +0 -323
  32. package/dist/playgrounds/publisher-output-control.html +0 -3659
  33. package/dist/playgrounds/publisher-website-settings-general.html +0 -188
  34. package/dist/playgrounds/publisher-website-settings.html +0 -265
  35. package/dist/playgrounds/react-playgrounds/CoreLayout.tsx +0 -952
  36. package/dist/playgrounds/react-playgrounds/EditorTest.tsx +0 -649
  37. package/dist/playgrounds/react-playgrounds/FirstPlayground.tsx +0 -236
  38. package/dist/playgrounds/react-playgrounds/Index.tsx +0 -11
  39. package/dist/playgrounds/react-playgrounds/Multiedit.tsx +0 -401
  40. package/dist/playgrounds/react-playgrounds/PageLayoutTest.tsx +0 -210
  41. package/dist/playgrounds/react-playgrounds/PersonalProfile.tsx +0 -835
  42. package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +0 -580
  43. package/dist/playgrounds/react-playgrounds/Rundowns.tsx +0 -1415
  44. package/dist/playgrounds/react-playgrounds/SamsPlayground.tsx +0 -401
  45. package/dist/playgrounds/react-playgrounds/TestGround.tsx +0 -2710
  46. package/dist/playgrounds/react-playgrounds/UiPlayground.tsx +0 -410
  47. package/dist/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +0 -25
  48. package/dist/playgrounds/react-playgrounds/components/AuthoringContent.tsx +0 -86
  49. package/dist/playgrounds/react-playgrounds/components/ContentSplitter.tsx +0 -19
  50. package/dist/playgrounds/react-playgrounds/components/GraphicButton.tsx +0 -34
  51. package/dist/playgrounds/react-playgrounds/components/GraphicButtonsGroup.tsx +0 -11
  52. package/dist/playgrounds/react-playgrounds/components/HeaderPanel.tsx +0 -11
  53. package/dist/playgrounds/react-playgrounds/components/Index.tsx +0 -20
  54. package/dist/playgrounds/react-playgrounds/components/Layout.tsx +0 -27
  55. package/dist/playgrounds/react-playgrounds/components/LayoutContainer.tsx +0 -15
  56. package/dist/playgrounds/react-playgrounds/components/LeftPanel.tsx +0 -15
  57. package/dist/playgrounds/react-playgrounds/components/MainPanel.tsx +0 -24
  58. package/dist/playgrounds/react-playgrounds/components/OverlayPanel.tsx +0 -17
  59. package/dist/playgrounds/react-playgrounds/components/Panel.tsx +0 -23
  60. package/dist/playgrounds/react-playgrounds/components/PanelContent.tsx +0 -11
  61. package/dist/playgrounds/react-playgrounds/components/PanelContentBlock.tsx +0 -19
  62. package/dist/playgrounds/react-playgrounds/components/PanelFooter.tsx +0 -17
  63. package/dist/playgrounds/react-playgrounds/components/PanelHeader.tsx +0 -31
  64. package/dist/playgrounds/react-playgrounds/components/RightPanel.tsx +0 -16
  65. package/dist/playgrounds/react-playgrounds/components/SearchBar.tsx +0 -87
  66. package/dist/playgrounds/react-playgrounds/components/SidebarMenu.tsx +0 -76
  67. package/dist/playgrounds/react-playgrounds/components/SubNav.tsx +0 -17
  68. package/dist/playgrounds/react-playgrounds/components/ThemeDropdown.tsx +0 -57
  69. package/dist/playgrounds/react-playgrounds/tsconfig.json +0 -4
  70. package/dist/playgrounds/settings.html +0 -92
  71. package/dist/playgrounds/side-navigation.html +0 -201
  72. package/dist/playgrounds/swimlane-view.html +0 -1975
  73. package/dist/playgrounds/tags-input.html +0 -55
  74. package/dist/playgrounds/toasts.html +0 -113
  75. package/dist/playgrounds/video-editor.html +0 -706
  76. package/examples/css/docs-page.css +0 -1135
  77. package/examples/css/reset.css +0 -124
  78. package/examples/css/vendor.css +0 -175
  79. package/examples/illustration-small--components.svg +0 -45
  80. package/examples/img/andrew-power-y9L5-wmifaY-unsplash.jpg +0 -0
  81. package/examples/img/andrew-power-y9L5-wmifaY-unsplash.license.txt +0 -6
  82. package/examples/img/avatar-2.jpg +0 -0
  83. package/examples/img/avatar-3.jpg +0 -0
  84. package/examples/img/avatar-4.jpg +0 -0
  85. package/examples/img/avatar-5.jpg +0 -0
  86. package/examples/img/avatar-6.jpg +0 -0
  87. package/examples/img/avatar.jpg +0 -0
  88. package/examples/img/bill.jpg +0 -0
  89. package/examples/img/bush_1.jpg +0 -0
  90. package/examples/img/bush_2.jpg +0 -0
  91. package/examples/img/carousel-thumb--01.jpg +0 -0
  92. package/examples/img/carousel-thumb--02.jpg +0 -0
  93. package/examples/img/carousel-thumb--03.jpg +0 -0
  94. package/examples/img/carousel-thumb--04.jpg +0 -0
  95. package/examples/img/components_ilustration.svg +0 -1
  96. package/examples/img/d_trump.jpg +0 -0
  97. package/examples/img/d_trump_2.jpg +0 -0
  98. package/examples/img/d_trump_large.jpg +0 -0
  99. package/examples/img/design_ilustration.svg +0 -1
  100. package/examples/img/ferocious_beast.webm +0 -0
  101. package/examples/img/guidelines/application-frame.png +0 -0
  102. package/examples/img/guidelines/application-frame__bottom-bar.png +0 -0
  103. package/examples/img/guidelines/application-frame__left-panel.gif +0 -0
  104. package/examples/img/guidelines/application-frame__left-panel.png +0 -0
  105. package/examples/img/guidelines/application-frame__main-content.gif +0 -0
  106. package/examples/img/guidelines/application-frame__main-content.png +0 -0
  107. package/examples/img/guidelines/application-frame__right-panel.gif +0 -0
  108. package/examples/img/guidelines/application-frame__right-panel.png +0 -0
  109. package/examples/img/guidelines/application-frame__side-tabs.png +0 -0
  110. package/examples/img/guidelines/application-frame__sub-nav.png +0 -0
  111. package/examples/img/guidelines/application-frame__top-bar.png +0 -0
  112. package/examples/img/guidelines/buttons--00-01.png +0 -0
  113. package/examples/img/guidelines/buttons--00-02.png +0 -0
  114. package/examples/img/guidelines/buttons--DO-02.png +0 -0
  115. package/examples/img/guidelines/buttons--DONT-01.png +0 -0
  116. package/examples/img/guidelines/checkbox--DO-01.png +0 -0
  117. package/examples/img/guidelines/checkbox--DO-02.png +0 -0
  118. package/examples/img/guidelines/checkbox--DONT-01.png +0 -0
  119. package/examples/img/guidelines/checkbox--DONT-02.png +0 -0
  120. package/examples/img/guidelines/example__bottom-bar--01.png +0 -0
  121. package/examples/img/guidelines/example__left-side_panel--01.png +0 -0
  122. package/examples/img/guidelines/example__left_side-bar--01.png +0 -0
  123. package/examples/img/guidelines/example__main-content--01.png +0 -0
  124. package/examples/img/guidelines/example__right_side-panel--01.png +0 -0
  125. package/examples/img/guidelines/example__right_side-panel--02.png +0 -0
  126. package/examples/img/guidelines/example__right_side-panel--03.png +0 -0
  127. package/examples/img/guidelines/example__sub-nav--01.png +0 -0
  128. package/examples/img/guidelines/example__sub-nav--02.png +0 -0
  129. package/examples/img/guidelines/example__sub-nav--03.png +0 -0
  130. package/examples/img/guidelines/example__top-bar--01.png +0 -0
  131. package/examples/img/guidelines/layout--grid-01.png +0 -0
  132. package/examples/img/guidelines/layout--size-example-01.png +0 -0
  133. package/examples/img/guidelines/radio--DO-01.png +0 -0
  134. package/examples/img/guidelines/radio--DONT-01.png +0 -0
  135. package/examples/img/guidelines/radio--DONT-02.png +0 -0
  136. package/examples/img/guidelines/radio--DONT-03.png +0 -0
  137. package/examples/img/guidelines/switch--DO-01.png +0 -0
  138. package/examples/img/guidelines/switch--DO-02.png +0 -0
  139. package/examples/img/guidelines/switch--DONT-01.png +0 -0
  140. package/examples/img/guidelines/switch--DONT-02.png +0 -0
  141. package/examples/img/hillary.jpg +0 -0
  142. package/examples/img/illustration--components.svg +0 -1
  143. package/examples/img/illustration--design.svg +0 -1
  144. package/examples/img/illustration--playground.svg +0 -1
  145. package/examples/img/illustration--react.svg +0 -1
  146. package/examples/img/illustration-small--components.svg +0 -45
  147. package/examples/img/illustration-small--design.svg +0 -99
  148. package/examples/img/illustration-small--playground.svg +0 -49
  149. package/examples/img/illustration-small--react.svg +0 -53
  150. package/examples/img/illustration_user-privileges.png +0 -0
  151. package/examples/img/illustration_users.png +0 -0
  152. package/examples/img/image_01.jpg +0 -0
  153. package/examples/img/image_02.jpg +0 -0
  154. package/examples/img/masthead-image.png +0 -0
  155. package/examples/img/obama_1.jpg +0 -0
  156. package/examples/img/obama_2.jpg +0 -0
  157. package/examples/img/overlay-img.jpg +0 -0
  158. package/examples/img/react-logo--vector.svg +0 -49
  159. package/examples/img/sd-ui-framework__logo-01.svg +0 -33
  160. package/examples/img/sd-ui-framework__logo.svg +0 -20
  161. package/examples/img/th01.jpg +0 -0
  162. package/examples/img/th02.jpg +0 -0
  163. package/examples/img/th03.jpg +0 -0
  164. package/examples/index.html +0 -11
  165. package/examples/index.js +0 -468
  166. package/examples/js/doc.js +0 -230
  167. package/examples/js/react.js +0 -263
  168. package/examples/pages/components/Alerts.tsx +0 -291
  169. package/examples/pages/components/Autocomplete.tsx +0 -434
  170. package/examples/pages/components/Avatar.tsx +0 -659
  171. package/examples/pages/components/Badges.tsx +0 -221
  172. package/examples/pages/components/BigIconFont.tsx +0 -48
  173. package/examples/pages/components/BoxedList.tsx +0 -517
  174. package/examples/pages/components/ButtonGroups.tsx +0 -366
  175. package/examples/pages/components/Buttons.tsx +0 -565
  176. package/examples/pages/components/Card.tsx +0 -23
  177. package/examples/pages/components/Carousel.tsx +0 -235
  178. package/examples/pages/components/Checkboxs.tsx +0 -817
  179. package/examples/pages/components/Container.tsx +0 -190
  180. package/examples/pages/components/ContentDivider.tsx +0 -229
  181. package/examples/pages/components/ContentList.tsx +0 -786
  182. package/examples/pages/components/CreateButton.tsx +0 -121
  183. package/examples/pages/components/DatePicker.tsx +0 -245
  184. package/examples/pages/components/DateTimePicker.tsx +0 -141
  185. package/examples/pages/components/DragHandleDocs.tsx +0 -122
  186. package/examples/pages/components/DropZone.tsx +0 -149
  187. package/examples/pages/components/Dropdowns.tsx +0 -587
  188. package/examples/pages/components/DurationInput.tsx +0 -157
  189. package/examples/pages/components/EmptyStates.tsx +0 -171
  190. package/examples/pages/components/GridItem.tsx +0 -507
  191. package/examples/pages/components/GridList.tsx +0 -126
  192. package/examples/pages/components/Heading.tsx +0 -152
  193. package/examples/pages/components/IconButtons.tsx +0 -191
  194. package/examples/pages/components/IconFont.tsx +0 -49
  195. package/examples/pages/components/IconLabels.tsx +0 -199
  196. package/examples/pages/components/IconPicker.tsx +0 -82
  197. package/examples/pages/components/IllustrationButton.tsx +0 -109
  198. package/examples/pages/components/Index.tsx +0 -563
  199. package/examples/pages/components/Inputs.tsx +0 -313
  200. package/examples/pages/components/Labels.tsx +0 -354
  201. package/examples/pages/components/LeftNavigations.tsx +0 -459
  202. package/examples/pages/components/ListItems.tsx +0 -33
  203. package/examples/pages/components/Loader.tsx +0 -25
  204. package/examples/pages/components/Menu.tsx +0 -181
  205. package/examples/pages/components/Modal.tsx +0 -557
  206. package/examples/pages/components/MultiSelect.tsx +0 -343
  207. package/examples/pages/components/NavButtons.tsx +0 -159
  208. package/examples/pages/components/Panel.tsx +0 -631
  209. package/examples/pages/components/Popover.tsx +0 -90
  210. package/examples/pages/components/QuickNavigationBar.tsx +0 -278
  211. package/examples/pages/components/RadioGroup.tsx +0 -612
  212. package/examples/pages/components/ResizablePanels.tsx +0 -43
  213. package/examples/pages/components/SelectGrid.tsx +0 -162
  214. package/examples/pages/components/SelectWithTemplate.tsx +0 -144
  215. package/examples/pages/components/Selects.tsx +0 -175
  216. package/examples/pages/components/SimpleList.tsx +0 -198
  217. package/examples/pages/components/SubNav.tsx +0 -160
  218. package/examples/pages/components/Switch.tsx +0 -298
  219. package/examples/pages/components/TableList.tsx +0 -315
  220. package/examples/pages/components/Tabs.tsx +0 -276
  221. package/examples/pages/components/TagInputDocs.tsx +0 -130
  222. package/examples/pages/components/Tags.tsx +0 -154
  223. package/examples/pages/components/Text.tsx +0 -184
  224. package/examples/pages/components/TimePicker.tsx +0 -179
  225. package/examples/pages/components/Toasts.tsx +0 -283
  226. package/examples/pages/components/Togglebox.tsx +0 -307
  227. package/examples/pages/components/Tooltips.tsx +0 -74
  228. package/examples/pages/components/TreeMenu.tsx +0 -315
  229. package/examples/pages/components/TreeSelect.tsx +0 -625
  230. package/examples/pages/components/WithPaginationDocs.tsx +0 -56
  231. package/examples/pages/components/WithSizeObserver.tsx +0 -44
  232. package/examples/pages/components/tree-select/TreeSelect.tsx +0 -322
  233. package/examples/pages/components/tree-select/example-1.tsx +0 -67
  234. package/examples/pages/components/tree-select/example-2.tsx +0 -56
  235. package/examples/pages/components/utilities/BorderRadiusUtilities.tsx +0 -71
  236. package/examples/pages/components/utilities/BorderUtilities.tsx +0 -169
  237. package/examples/pages/components/utilities/DisplayUtilities.tsx +0 -115
  238. package/examples/pages/components/utilities/FlexAndGridUtilities.tsx +0 -551
  239. package/examples/pages/components/utilities/ObjectFitUtilities.tsx +0 -51
  240. package/examples/pages/components/utilities/ObjectPositionUtilities.tsx +0 -67
  241. package/examples/pages/components/utilities/OpacityUtilities.tsx +0 -61
  242. package/examples/pages/components/utilities/OverflowUtilities.tsx +0 -92
  243. package/examples/pages/components/utilities/PositionUtilities.tsx +0 -51
  244. package/examples/pages/components/utilities/ShadowUtilities.tsx +0 -122
  245. package/examples/pages/components/utilities/SpacingUtilities.tsx +0 -1079
  246. package/examples/pages/components/utilities/TextUtilities.tsx +0 -560
  247. package/examples/pages/components.html +0 -15
  248. package/examples/pages/components_deprecated/alerts.html +0 -113
  249. package/examples/pages/components_deprecated/badge.html +0 -79
  250. package/examples/pages/components_deprecated/basic-grid.html +0 -132
  251. package/examples/pages/components_deprecated/big-icons.html +0 -65
  252. package/examples/pages/components_deprecated/buttons.html +0 -631
  253. package/examples/pages/components_deprecated/carousel.html +0 -77
  254. package/examples/pages/components_deprecated/checkbox.html +0 -86
  255. package/examples/pages/components_deprecated/colors.html +0 -12
  256. package/examples/pages/components_deprecated/dropdown.html +0 -542
  257. package/examples/pages/components_deprecated/form-layout.html +0 -187
  258. package/examples/pages/components_deprecated/icon-labels.html +0 -34
  259. package/examples/pages/components_deprecated/icons.html +0 -194
  260. package/examples/pages/components_deprecated/input.html +0 -233
  261. package/examples/pages/components_deprecated/labels.html +0 -170
  262. package/examples/pages/components_deprecated/layout-grid.html +0 -227
  263. package/examples/pages/components_deprecated/left-nav.html +0 -83
  264. package/examples/pages/components_deprecated/list-item.html +0 -1342
  265. package/examples/pages/components_deprecated/loader.html +0 -64
  266. package/examples/pages/components_deprecated/modal-template.html +0 -13
  267. package/examples/pages/components_deprecated/modals.html +0 -561
  268. package/examples/pages/components_deprecated/other-elements.html +0 -54
  269. package/examples/pages/components_deprecated/panel-info.html +0 -34
  270. package/examples/pages/components_deprecated/radio.html +0 -64
  271. package/examples/pages/components_deprecated/select.html +0 -160
  272. package/examples/pages/components_deprecated/shadows.html +0 -24
  273. package/examples/pages/components_deprecated/sidebar-menu.html +0 -111
  274. package/examples/pages/components_deprecated/simple-list.html +0 -113
  275. package/examples/pages/components_deprecated/slider.html +0 -31
  276. package/examples/pages/components_deprecated/spacing.html +0 -117
  277. package/examples/pages/components_deprecated/switch.html +0 -31
  278. package/examples/pages/components_deprecated/tables.html +0 -58
  279. package/examples/pages/components_deprecated/tabs.html +0 -257
  280. package/examples/pages/components_deprecated/tag-input.html +0 -123
  281. package/examples/pages/components_deprecated/tag-labels.html +0 -57
  282. package/examples/pages/components_deprecated/text.html +0 -55
  283. package/examples/pages/components_deprecated/toggle.html +0 -63
  284. package/examples/pages/components_deprecated/tooltips.html +0 -29
  285. package/examples/pages/components_deprecated/vertical-tabs.html +0 -48
  286. package/examples/pages/components_deprecated/wizard.html +0 -41
  287. package/examples/pages/components_deprecated.html +0 -39
  288. package/examples/pages/design/application-structure.html +0 -168
  289. package/examples/pages/design/buttons.html +0 -34
  290. package/examples/pages/design/checkbox-and-radio.html +0 -64
  291. package/examples/pages/design/layout-principles.html +0 -45
  292. package/examples/pages/design/modules.html +0 -22
  293. package/examples/pages/design/pages.html +0 -22
  294. package/examples/pages/design/switch.html +0 -55
  295. package/examples/pages/design-patterns/Index.tsx +0 -42
  296. package/examples/pages/design-patterns/ThreePaneLayoutPattern.tsx +0 -378
  297. package/examples/pages/design-patterns.html +0 -14
  298. package/examples/pages/design.html +0 -39
  299. package/examples/pages/main.html +0 -76
  300. package/examples/pages/playgrounds/accessible-theme-test.html +0 -813
  301. package/examples/pages/playgrounds/boxed-list.html +0 -164
  302. package/examples/pages/playgrounds/cards.html +0 -244
  303. package/examples/pages/playgrounds/circular-progress.html +0 -48
  304. package/examples/pages/playgrounds/dummy-data/items.ts +0 -95
  305. package/examples/pages/playgrounds/editor-3-test.html +0 -15
  306. package/examples/pages/playgrounds/form-layout.html +0 -285
  307. package/examples/pages/playgrounds/layout-grid.html +0 -79
  308. package/examples/pages/playgrounds/layout-snippets/edit-article.html +0 -415
  309. package/examples/pages/playgrounds/layout-test-2.html +0 -795
  310. package/examples/pages/playgrounds/list-item-test.html +0 -896
  311. package/examples/pages/playgrounds/main.html +0 -16
  312. package/examples/pages/playgrounds/master-desk.html +0 -1678
  313. package/examples/pages/playgrounds/media-carousel.html +0 -1166
  314. package/examples/pages/playgrounds/nav-buttons.html +0 -65
  315. package/examples/pages/playgrounds/photo-desk.html +0 -1515
  316. package/examples/pages/playgrounds/photo-snippets/edit-photo-metadata.html +0 -208
  317. package/examples/pages/playgrounds/planning-snippets/edit-event.html +0 -187
  318. package/examples/pages/playgrounds/planning-snippets/edit-planning.html +0 -457
  319. package/examples/pages/playgrounds/planning.html +0 -1112
  320. package/examples/pages/playgrounds/publish-snippets/edit-article.html +0 -37
  321. package/examples/pages/playgrounds/publish.html +0 -1007
  322. package/examples/pages/playgrounds/publisher-content-analytics.html +0 -376
  323. package/examples/pages/playgrounds/publisher-content-list-automatic.html +0 -296
  324. package/examples/pages/playgrounds/publisher-content-list-manual.html +0 -611
  325. package/examples/pages/playgrounds/publisher-content-lists.html +0 -255
  326. package/examples/pages/playgrounds/publisher-dashboard.html +0 -323
  327. package/examples/pages/playgrounds/publisher-output-control.html +0 -3659
  328. package/examples/pages/playgrounds/publisher-website-settings-general.html +0 -188
  329. package/examples/pages/playgrounds/publisher-website-settings.html +0 -265
  330. package/examples/pages/playgrounds/react-playgrounds/CoreLayout.tsx +0 -952
  331. package/examples/pages/playgrounds/react-playgrounds/EditorTest.tsx +0 -649
  332. package/examples/pages/playgrounds/react-playgrounds/FirstPlayground.tsx +0 -236
  333. package/examples/pages/playgrounds/react-playgrounds/Index.tsx +0 -11
  334. package/examples/pages/playgrounds/react-playgrounds/Multiedit.tsx +0 -401
  335. package/examples/pages/playgrounds/react-playgrounds/PageLayoutTest.tsx +0 -210
  336. package/examples/pages/playgrounds/react-playgrounds/PersonalProfile.tsx +0 -835
  337. package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +0 -580
  338. package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +0 -1415
  339. package/examples/pages/playgrounds/react-playgrounds/SamsPlayground.tsx +0 -401
  340. package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +0 -2710
  341. package/examples/pages/playgrounds/react-playgrounds/UiPlayground.tsx +0 -410
  342. package/examples/pages/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +0 -25
  343. package/examples/pages/playgrounds/react-playgrounds/components/AuthoringContent.tsx +0 -86
  344. package/examples/pages/playgrounds/react-playgrounds/components/ContentSplitter.tsx +0 -19
  345. package/examples/pages/playgrounds/react-playgrounds/components/GraphicButton.tsx +0 -34
  346. package/examples/pages/playgrounds/react-playgrounds/components/GraphicButtonsGroup.tsx +0 -11
  347. package/examples/pages/playgrounds/react-playgrounds/components/HeaderPanel.tsx +0 -11
  348. package/examples/pages/playgrounds/react-playgrounds/components/Index.tsx +0 -20
  349. package/examples/pages/playgrounds/react-playgrounds/components/Layout.tsx +0 -27
  350. package/examples/pages/playgrounds/react-playgrounds/components/LayoutContainer.tsx +0 -15
  351. package/examples/pages/playgrounds/react-playgrounds/components/LeftPanel.tsx +0 -15
  352. package/examples/pages/playgrounds/react-playgrounds/components/MainPanel.tsx +0 -24
  353. package/examples/pages/playgrounds/react-playgrounds/components/OverlayPanel.tsx +0 -17
  354. package/examples/pages/playgrounds/react-playgrounds/components/Panel.tsx +0 -23
  355. package/examples/pages/playgrounds/react-playgrounds/components/PanelContent.tsx +0 -11
  356. package/examples/pages/playgrounds/react-playgrounds/components/PanelContentBlock.tsx +0 -19
  357. package/examples/pages/playgrounds/react-playgrounds/components/PanelFooter.tsx +0 -17
  358. package/examples/pages/playgrounds/react-playgrounds/components/PanelHeader.tsx +0 -31
  359. package/examples/pages/playgrounds/react-playgrounds/components/RightPanel.tsx +0 -16
  360. package/examples/pages/playgrounds/react-playgrounds/components/SearchBar.tsx +0 -87
  361. package/examples/pages/playgrounds/react-playgrounds/components/SidebarMenu.tsx +0 -76
  362. package/examples/pages/playgrounds/react-playgrounds/components/SubNav.tsx +0 -17
  363. package/examples/pages/playgrounds/react-playgrounds/components/ThemeDropdown.tsx +0 -57
  364. package/examples/pages/playgrounds/react-playgrounds/tsconfig.json +0 -4
  365. package/examples/pages/playgrounds/settings.html +0 -92
  366. package/examples/pages/playgrounds/side-navigation.html +0 -201
  367. package/examples/pages/playgrounds/swimlane-view.html +0 -1975
  368. package/examples/pages/playgrounds/tags-input.html +0 -55
  369. package/examples/pages/playgrounds/toasts.html +0 -113
  370. package/examples/pages/playgrounds/video-editor.html +0 -706
  371. package/examples/pages/playgrounds.html +0 -40
@@ -1,817 +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 {Checkbox, CheckboxButton, CheckGroup, CheckButtonGroup, Alert, Prop, PropsList} 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
- value13: boolean;
21
- value14: boolean;
22
- value15: boolean;
23
- value16: boolean;
24
- value17: boolean;
25
- value18: boolean;
26
- value19: boolean;
27
- value20: boolean;
28
- value21: boolean;
29
- value22: boolean;
30
- value23: boolean;
31
- value24: boolean;
32
- value25: boolean;
33
- value26: boolean;
34
- value27: boolean;
35
- value28: boolean;
36
- value29: boolean;
37
- value30: boolean;
38
- value31: boolean;
39
- value32: boolean;
40
- value33: boolean;
41
- value34: boolean;
42
- value35: boolean;
43
- value36: boolean;
44
- value37: boolean;
45
- value38: boolean;
46
- value39: boolean;
47
- value40: boolean;
48
- value41: boolean;
49
- value42: boolean;
50
- value43: boolean;
51
- value44: boolean;
52
- value45: boolean;
53
- }
54
-
55
- export default class CheckboxsDoc extends React.Component<{}, IState> {
56
- constructor(props) {
57
- super(props);
58
- this.state = {
59
- value1: false,
60
- value2: false,
61
- value3: false,
62
- value4: false,
63
- value5: true,
64
- value6: false,
65
- value7: false,
66
- value8: false,
67
- value9: false,
68
- value10: false,
69
- value11: false,
70
- value12: false,
71
- value13: false,
72
- value14: false,
73
- value15: false,
74
- value16: false,
75
- value17: false,
76
- value18: false,
77
- value19: false,
78
- value20: false,
79
- value21: false,
80
- value22: false,
81
- value23: false,
82
- value24: false,
83
- value25: false,
84
- value26: false,
85
- value27: false,
86
- value28: false,
87
- value29: false,
88
- value30: false,
89
- value31: false,
90
- value32: false,
91
- value33: false,
92
- value34: false,
93
- value35: false,
94
- value36: false,
95
- value37: false,
96
- value38: false,
97
- value39: false,
98
- value40: false,
99
- value41: false,
100
- value42: false,
101
- value43: false,
102
- value44: false,
103
- value45: false,
104
- };
105
- }
106
-
107
- render() {
108
- return (
109
- <section className="docs-page__container">
110
- <h2 className="docs-page__h2">Checkbox</h2>
111
- <p className="docs-page__paragraph"></p>
112
- <Markup.ReactMarkupCodePreview>
113
- {`
114
- <Checkbox checked={value1} label={{text:'Checkbox label end'}}
115
- onChange={(value) => this.setState(() => ({ value1: value }))} />
116
- `}
117
- </Markup.ReactMarkupCodePreview>
118
- <h3 className="docs-page__h3">Basic Checkbox</h3>
119
- <p className="docs-page__paragraph">
120
- The label of the checkbox is by default always on the end (right). Although it's not in line with
121
- Superdesk design standards the label can also be placed to the start (left), by addind the prop{' '}
122
- <code>labelSide='start'</code>.
123
- </p>
124
- <Markup.ReactMarkup>
125
- <Markup.ReactMarkupPreview>
126
- <p className="docs-page__paragraph">// Label on the end/right (default)</p>
127
- <div className="form__row">
128
- <CheckGroup>
129
- <Checkbox
130
- checked={this.state.value1}
131
- label={{text: 'Checkbox label end'}}
132
- onChange={(value) => this.setState(() => ({value1: value}))}
133
- />
134
- <Checkbox
135
- checked={this.state.value2}
136
- label={{text: 'Check me!'}}
137
- onChange={(value) => this.setState(() => ({value2: value}))}
138
- />
139
- <Checkbox
140
- checked={this.state.value3}
141
- label={{text: 'Check me too!'}}
142
- onChange={(value) => this.setState(() => ({value3: value}))}
143
- />
144
- <Checkbox
145
- checked={this.state.value4}
146
- label={{text: 'I"m disabled :('}}
147
- disabled={true}
148
- onChange={(value) => this.setState(() => ({value4: value}))}
149
- />
150
- <Checkbox
151
- checked={this.state.value5}
152
- label={{text: "I'm disabled and checked :("}}
153
- disabled={true}
154
- onChange={(value) => this.setState(() => ({value5: value}))}
155
- />
156
- </CheckGroup>
157
- </div>
158
- <p className="docs-page__paragraph docs-page__paragraph--topMarginL">// Label on the start</p>
159
- <p className="docs-page__paragraph--small">This option should be avoided in Superdesk.</p>
160
- <div className="form__row">
161
- <CheckGroup>
162
- <Checkbox
163
- checked={this.state.value6}
164
- label={{text: 'Checkbox label start', side: 'start'}}
165
- onChange={(value) => this.setState(() => ({value6: value}))}
166
- />
167
- </CheckGroup>
168
- </div>
169
- <p className="docs-page__paragraph docs-page__paragraph--topMarginL">
170
- // Checkbox with custom values
171
- </p>
172
- <div className="form__row">
173
- <CheckGroup>
174
- <Checkbox
175
- checked={this.state.value7}
176
- label={{text: 'Checkbox with custom values'}}
177
- onChange={(value) => this.setState(() => ({value7: value}))}
178
- />
179
- </CheckGroup>
180
- </div>
181
- </Markup.ReactMarkupPreview>
182
- <Markup.ReactMarkupCode>
183
- {`
184
- // Label on the end (default)
185
- <CheckGroup>
186
- <Checkbox checked={value1} label={{text:'Checkbox label end'}}
187
- onChange={(value) => this.setState(() => ({ value1: value }))} />
188
- <Checkbox checked={value2} label={{text:'Check me!'}}
189
- onChange={(value) => this.setState(() => ({ value2: value }))} />
190
- <Checkbox checked={value3} label={{text:'Check me too!'}}
191
- onChange={(value) => this.setState(() => ({ value3: value }))} />
192
- <Checkbox checked={value4} label={{text:"I'm disabled:("}} disabled={true}
193
- onChange={(value) => this.setState(() => ({ value4: value }))} />
194
- <Checkbox checked={value5} label={{text:"I'm disabled and checked :("}} disabled={true}
195
- onChange={(value) => this.setState(() => ({ value5: value }))} />
196
- </CheckGroup>
197
-
198
- // Label on the start (left)
199
- <CheckGroup>
200
- <Checkbox checked={value6} label={{text:'Checkbox label start', side:'start'}}
201
- onChange={(value) => this.setState(() => ({ value6: value }))} />
202
- </CheckGroup>
203
-
204
- // Checkbox with custom values
205
- <CheckGroup>
206
- <Checkbox checked={value7} label={{text:'Checkbox with custom values'}}
207
- onChange={(value) => this.setState(() => ({ value7: value }))} />
208
- </CheckGroup>
209
- `}
210
- </Markup.ReactMarkupCode>
211
- </Markup.ReactMarkup>
212
-
213
- <Components.GraphicButtonsGroup>
214
- <Components.GraphicButton
215
- graphic="design"
216
- text="Checkbox usage guidelines"
217
- smallText="Design guidelines"
218
- link="#/design/checkbox-and-radio"
219
- />
220
- </Components.GraphicButtonsGroup>
221
- <h3 className="docs-page__h3">Checkbox groups</h3>
222
- <p className="docs-page__paragraph">
223
- <code>CheckGroup</code> is a helpful wrapper component used to group <code>Checkbox</code>{' '}
224
- components. By default the checkboxes are grouped horizontaly. To group them verticaly – in a
225
- list-like view – add the prop <code>orientation='vertical'</code> to the <code>CheckGroup</code>{' '}
226
- component.
227
- </p>
228
- <Markup.ReactMarkup>
229
- <Markup.ReactMarkupPreview>
230
- <p className="docs-page__paragraph">// Horizontal group (default)</p>
231
- <div className="form__group">
232
- <CheckGroup>
233
- <Checkbox
234
- checked={this.state.value16}
235
- label={{text: 'Checkbox one'}}
236
- onChange={(value) => this.setState(() => ({value16: value}))}
237
- />
238
- <Checkbox
239
- checked={this.state.value17}
240
- label={{text: 'Checkbox two'}}
241
- onChange={(value) => this.setState(() => ({value17: value}))}
242
- />
243
- <Checkbox
244
- checked={this.state.value18}
245
- label={{text: 'Checkbox three'}}
246
- onChange={(value) => this.setState(() => ({value18: value}))}
247
- />
248
- </CheckGroup>
249
- </div>
250
- <p className="docs-page__paragraph docs-page__paragraph--topMarginL">// Vertical group</p>
251
- <div className="form__group">
252
- <CheckGroup orientation="vertical">
253
- <Checkbox
254
- checked={this.state.value19}
255
- label={{text: 'Checkbox one'}}
256
- onChange={(value) => this.setState(() => ({value19: value}))}
257
- />
258
- <Checkbox
259
- checked={this.state.value20}
260
- label={{text: 'Checkbox two'}}
261
- onChange={(value) => this.setState(() => ({value20: value}))}
262
- />
263
- <Checkbox
264
- checked={this.state.value21}
265
- label={{text: 'Checkbox three'}}
266
- onChange={(value) => this.setState(() => ({value21: value}))}
267
- />
268
- </CheckGroup>
269
- </div>
270
- </Markup.ReactMarkupPreview>
271
- <Markup.ReactMarkupCode>
272
- {`
273
- // Horizontal group (default)
274
- <CheckGroup>
275
- <Checkbox checked={value16} label={{text:'Checkbox one'}}
276
- onChange={(value) => this.setState(() => ({ value16: value }))} />
277
- <Checkbox checked={value17} label={{text:'Checkbox two'}}
278
- onChange={(value) => this.setState(() => ({ value17: value }))} />
279
- <Checkbox checked={value18} label={{text:'Checkbox three'}}
280
- onChange={(value) => this.setState(() => ({ value18: value }))} />
281
- </CheckGroup>
282
-
283
- // Vertical group
284
- <CheckGroup orientation='vertical'>
285
- <Checkbox checked={value19} label={{text:'Checkbox one'}}
286
- onChange={(value) => this.setState(() => ({ value19: value }))} />
287
- <Checkbox checked={value20} label={{text:'Checkbox two'}}
288
- onChange={(value) => this.setState(() => ({ value20: value }))} />
289
- <Checkbox checked={value21} label={{text:'Checkbox three'}}
290
- onChange={(value) => this.setState(() => ({ value21: value }))} />
291
- </CheckGroup>
292
- `}
293
- </Markup.ReactMarkupCode>
294
- </Markup.ReactMarkup>
295
-
296
- <h3 className="docs-page__h3">Button style checkbox</h3>
297
- <Markup.ReactMarkupCodePreview>
298
- {`
299
- <CheckButtonGroup>
300
- <CheckboxButton checked={value1} label={{text:'Button Checkbox one'}}
301
- onChange={(value) => this.setState(() => ({ value1: value }))} />
302
- <CheckboxButton checked={value2} label={{text:'Button Checkbox two'}}
303
- onChange={(value) => this.setState(() => ({ value2: value }))} />
304
- </CheckButtonGroup>
305
- `}
306
- </Markup.ReactMarkupCodePreview>
307
- <p className="docs-page__paragraph">
308
- The <code>CheckboxButton</code> component shares the same functionality as the Checkbox component
309
- but has a different visual appearance. Any icon from the{' '}
310
- <a className="link" href="#/components/icons" target="blank">
311
- icon font
312
- </a>{' '}
313
- can be added to the component by specifying a value (icon name without the <code>icon-</code>{' '}
314
- prefix) inside the label prop e.g.{' '}
315
- <code>label={'{text: "Button style with icon", icon: "th-list"}'}</code> prop.
316
- </p>
317
- <Markup.ReactMarkup>
318
- <Markup.ReactMarkupPreview>
319
- <p className="docs-page__paragraph docs-page__paragraph--topMarginL">
320
- // Button style checkbox
321
- </p>
322
- <div className="form__group">
323
- <CheckButtonGroup>
324
- <CheckboxButton
325
- checked={this.state.value8}
326
- label={{text: 'Button style checkbox'}}
327
- onChange={(value) => this.setState(() => ({value8: value}))}
328
- />
329
- <CheckboxButton
330
- checked={this.state.value9}
331
- label={{text: 'Check this out'}}
332
- onChange={(value) => this.setState(() => ({value9: value}))}
333
- />
334
- <CheckboxButton
335
- checked={this.state.value10}
336
- label={{text: 'Check this too!'}}
337
- onChange={(value) => this.setState(() => ({value10: value}))}
338
- />
339
- <CheckboxButton
340
- checked={this.state.value11}
341
- label={{text: "U can't touch this"}}
342
- disabled={true}
343
- onChange={(value) => this.setState(() => ({value11: value}))}
344
- />
345
- </CheckButtonGroup>
346
- </div>
347
- <p className="docs-page__paragraph docs-page__paragraph--topMarginL">// With label</p>
348
- <div className="form__group">
349
- <CheckButtonGroup groupLabel="My group label">
350
- <CheckboxButton
351
- checked={this.state.value42}
352
- label={{text: 'Button style checkbox'}}
353
- onChange={(value) => this.setState(() => ({value42: value}))}
354
- />
355
- <CheckboxButton
356
- checked={this.state.value43}
357
- label={{text: 'Check this out'}}
358
- onChange={(value) => this.setState(() => ({value43: value}))}
359
- />
360
- <CheckboxButton
361
- checked={this.state.value44}
362
- label={{text: 'Check this too!'}}
363
- onChange={(value) => this.setState(() => ({value44: value}))}
364
- />
365
- <CheckboxButton
366
- checked={this.state.value45}
367
- label={{text: "U can't touch this"}}
368
- disabled={true}
369
- onChange={(value) => this.setState(() => ({value45: value}))}
370
- />
371
- </CheckButtonGroup>
372
- </div>
373
- <p className="docs-page__paragraph docs-page__paragraph--topMarginL">
374
- // Button style with icon
375
- </p>
376
- <div className="form__group">
377
- <CheckButtonGroup>
378
- <CheckboxButton
379
- checked={this.state.value12}
380
- label={{text: 'Button style with icon', icon: 'th-list'}}
381
- onChange={(value) => this.setState(() => ({value12: value}))}
382
- />
383
- <CheckboxButton
384
- checked={this.state.value13}
385
- label={{text: 'I have an icon!', icon: 'th'}}
386
- onChange={(value) => this.setState(() => ({value13: value}))}
387
- />
388
- <CheckboxButton
389
- checked={this.state.value14}
390
- label={{text: 'Yeah, me too!', icon: 'th-large'}}
391
- onChange={(value) => this.setState(() => ({value14: value}))}
392
- />
393
- <CheckboxButton
394
- checked={this.state.value15}
395
- label={{text: 'I have an icon :)', icon: 'star'}}
396
- onChange={(value) => this.setState(() => ({value15: value}))}
397
- />
398
- </CheckButtonGroup>
399
- </div>
400
- <p className="docs-page__paragraph docs-page__paragraph--topMarginL">
401
- // Button style with icon only
402
- </p>
403
- <div className="form__group">
404
- <CheckButtonGroup>
405
- <CheckboxButton
406
- checked={this.state.value38}
407
- label={{text: 'Button style with hidden text', icon: 'th-list', hidden: true}}
408
- onChange={(value) => this.setState(() => ({value38: value}))}
409
- />
410
- <CheckboxButton
411
- checked={this.state.value39}
412
- label={{text: 'The text is hidden but still accessible', icon: 'th', hidden: true}}
413
- onChange={(value) => this.setState(() => ({value39: value}))}
414
- />
415
- <CheckboxButton
416
- checked={this.state.value40}
417
- label={{text: 'The text is still here', icon: 'th-large', hidden: true}}
418
- onChange={(value) => this.setState(() => ({value40: value}))}
419
- />
420
- <CheckboxButton
421
- checked={this.state.value41}
422
- label={{text: 'Icon, no text ;)', icon: 'star', hidden: true}}
423
- disabled={true}
424
- onChange={(value) => this.setState(() => ({value41: value}))}
425
- />
426
- </CheckButtonGroup>
427
- </div>
428
- </Markup.ReactMarkupPreview>
429
- <Markup.ReactMarkupCode>
430
- {`
431
- // Button style checkbox
432
- <CheckButtonGroup>
433
- <CheckboxButton checked={value8} label={{text: 'Button style checkbox'}}
434
- onChange={(value) => this.setState(() => ({ value8: value }))} />
435
- <CheckboxButton checked={value9} label={{text: 'Check this out'}}
436
- onChange={(value) => this.setState(() => ({ value9: value }))} />
437
- <CheckboxButton checked={value10} label={{text: 'Check this too!'}}
438
- onChange={(value) => this.setState(() => ({ value10: value }))} />
439
- <CheckboxButton checked={value11} label={{text: "U can't touch this"}}
440
- onChange={(value) => this.setState(() => ({ value11: value }))} />
441
- </CheckButtonGroup>
442
-
443
- // With label
444
- <CheckButtonGroup groupLabel='My group label'>
445
- <CheckboxButton checked={value8} label={{text: 'Button style checkbox'}}
446
- onChange={(value) => this.setState(() => ({ value8: value }))} />
447
- <CheckboxButton checked={value9} label={{text: 'Check this out'}}
448
- onChange={(value) => this.setState(() => ({ value9: value }))} />
449
- <CheckboxButton checked={value10} label={{text: 'Check this too!'}}
450
- onChange={(value) => this.setState(() => ({ value10: value }))} />
451
- <CheckboxButton checked={value11} label={{text: "U can't touch this"}}
452
- onChange={(value) => this.setState(() => ({ value11: value }))} />
453
- </CheckButtonGroup>
454
-
455
- // Button style with icon
456
- <CheckButtonGroup>
457
- <CheckboxButton checked={value12} label={{text: 'Button style with icon', icon: 'th-list'}}
458
- onChange={(value) => this.setState(() => ({ value12: value }))} />
459
- <CheckboxButton checked={value13} label={{text: 'I have an icon!', icon: 'th'}}
460
- onChange={(value) => this.setState(() => ({ value13: value }))} />
461
- <CheckboxButton checked={value14} label={{text: 'Yeah, me too!', icon: 'th-large'}}
462
- onChange={(value) => this.setState(() => ({ value14: value }))} />
463
- <CheckboxButton checked={value15} label={{text: 'I have an icon :)', icon: 'star'}}
464
- onChange={(value) => this.setState(() => ({ value15: value }))} />
465
- </CheckButtonGroup>
466
-
467
- // Button style with icon only
468
- <CheckButtonGroup>
469
- <CheckboxButton checked={this.state.value12} label={{text: 'Button style with hidden text', icon: 'th-list', hidden: true}}
470
- onChange={(value) => this.setState(() => ({ value38: value }))} />
471
- <CheckboxButton checked={this.state.value13} label={{text: 'The text is hidden but still accessible', icon: 'th', hidden: true}}
472
- onChange={(value) => this.setState(() => ({ value39: value }))} />
473
- <CheckboxButton checked={this.state.value14} label={{text: 'The text is still here', icon: 'th-large', hidden: true}}
474
- onChange={(value) => this.setState(() => ({ value40: value }))} />
475
- <CheckboxButton checked={this.state.value15} label={{text: 'Icon, no text ;)', icon: 'star', hidden: true}}
476
- onChange={(value) => this.setState(() => ({ value41: value }))} />
477
- </CheckButtonGroup>
478
- `}
479
- </Markup.ReactMarkupCode>
480
- </Markup.ReactMarkup>
481
-
482
- <h3 className="docs-page__h3">Button style checkbox Groups</h3>
483
- <p className="docs-page__paragraph">
484
- <code>CheckButtonGroup</code> is a helpful wrapper component used to group{' '}
485
- <code>CheckboxButton</code> components. By default the CheckboxButton components are grouped
486
- horizontaly. A few more options are available compared to the <code>CheckGroup</code> component –
487
- alignment (start, end and center) and grid layout.{' '}
488
- </p>
489
- <Alert style="hollow" size="small" type="primary">
490
- NOTE: Alignment will work only in parent elements with display: flex;
491
- </Alert>
492
- <Markup.ReactMarkup>
493
- <Markup.ReactMarkupPreview>
494
- <p className="docs-page__paragraph docs-page__paragraph--topMarginL">// Start (default)</p>
495
- <div className="form__row form__row--flex docs-page__test-helper-2">
496
- <CheckButtonGroup>
497
- <CheckboxButton
498
- checked={this.state.value22}
499
- label={{text: 'Option one'}}
500
- onChange={(value) => this.setState(() => ({value22: value}))}
501
- />
502
- <CheckboxButton
503
- checked={this.state.value23}
504
- label={{text: 'Option two'}}
505
- onChange={(value) => this.setState(() => ({value23: value}))}
506
- />
507
- </CheckButtonGroup>
508
- </div>
509
- <p className="docs-page__paragraph docs-page__paragraph--topMarginL">// End</p>
510
- <div className="form__row form__row--flex docs-page__test-helper-2">
511
- <CheckButtonGroup align="end">
512
- <CheckboxButton
513
- checked={this.state.value24}
514
- label={{text: 'Option one'}}
515
- onChange={(value) => this.setState(() => ({value24: value}))}
516
- />
517
- <CheckboxButton
518
- checked={this.state.value25}
519
- label={{text: 'Option two'}}
520
- onChange={(value) => this.setState(() => ({value25: value}))}
521
- />
522
- </CheckButtonGroup>
523
- </div>
524
- <p className="docs-page__paragraph docs-page__paragraph--topMarginL">// Center</p>
525
- <div className="form__row form__row--flex docs-page__test-helper-2">
526
- <CheckButtonGroup align="center">
527
- <CheckboxButton
528
- checked={this.state.value26}
529
- label={{text: 'Option one'}}
530
- onChange={(value) => this.setState(() => ({value26: value}))}
531
- />
532
- <CheckboxButton
533
- checked={this.state.value27}
534
- label={{text: 'Option two'}}
535
- onChange={(value) => this.setState(() => ({value27: value}))}
536
- />
537
- </CheckButtonGroup>
538
- </div>
539
- <p className="docs-page__paragraph docs-page__paragraph--topMarginL">// Start + Center + End</p>
540
- <div className="form__row form__row--flex docs-page__test-helper-2">
541
- <CheckButtonGroup>
542
- <CheckboxButton
543
- checked={this.state.value28}
544
- label={{text: 'One'}}
545
- onChange={(value) => this.setState(() => ({value28: value}))}
546
- />
547
- <CheckboxButton
548
- checked={this.state.value29}
549
- label={{text: 'Two'}}
550
- onChange={(value) => this.setState(() => ({value29: value}))}
551
- />
552
- </CheckButtonGroup>
553
-
554
- <CheckButtonGroup align="center">
555
- <CheckboxButton
556
- checked={this.state.value30}
557
- label={{text: 'Three'}}
558
- onChange={(value) => this.setState(() => ({value30: value}))}
559
- />
560
- <CheckboxButton
561
- checked={this.state.value31}
562
- label={{text: 'Four'}}
563
- onChange={(value) => this.setState(() => ({value31: value}))}
564
- />
565
- </CheckButtonGroup>
566
-
567
- <CheckButtonGroup align="end">
568
- <CheckboxButton
569
- checked={this.state.value32}
570
- label={{text: 'Five'}}
571
- onChange={(value) => this.setState(() => ({value32: value}))}
572
- />
573
- <CheckboxButton
574
- checked={this.state.value33}
575
- label={{text: 'Six'}}
576
- onChange={(value) => this.setState(() => ({value33: value}))}
577
- />
578
- </CheckButtonGroup>
579
- </div>
580
- <p className="docs-page__paragraph docs-page__paragraph--topMarginL">// Grid</p>
581
- <div className="form__row form__row--flex docs-page__test-helper-2" style={{width: 400}}>
582
- <CheckButtonGroup grid={true}>
583
- <CheckboxButton
584
- checked={this.state.value34}
585
- label={{text: 'Option one'}}
586
- onChange={(value) => this.setState(() => ({value34: value}))}
587
- />
588
- <CheckboxButton
589
- checked={this.state.value35}
590
- label={{text: 'Option two'}}
591
- onChange={(value) => this.setState(() => ({value35: value}))}
592
- />
593
- <CheckboxButton
594
- checked={this.state.value36}
595
- label={{text: 'Option three'}}
596
- onChange={(value) => this.setState(() => ({value36: value}))}
597
- />
598
- <CheckboxButton
599
- checked={this.state.value37}
600
- label={{text: 'Option four'}}
601
- onChange={(value) => this.setState(() => ({value37: value}))}
602
- />
603
- </CheckButtonGroup>
604
- </div>
605
- </Markup.ReactMarkupPreview>
606
- <Markup.ReactMarkupCode>
607
- {`
608
- // Start (default)
609
- <CheckButtonGroup>
610
- <CheckboxButton checked={value22} label={{text: 'Option one'}}
611
- onChange={(value) => this.setState(() => ({ value22: value }))} />
612
- <CheckboxButton checked={value23} label={{text: 'Option two'}}
613
- onChange={(value) => this.setState(() => ({ value23: value }))} />
614
- </CheckButtonGroup>
615
-
616
- // End
617
- <CheckButtonGroup align='end'>
618
- <CheckboxButton checked={value24} label={{text: 'Option one'}}
619
- onChange={(value) => this.setState(() => ({ value24: value }))} />
620
- <CheckboxButton checked={value25} label={{text: 'Option two'}}
621
- onChange={(value) => this.setState(() => ({ value25: value }))} />
622
- </CheckButtonGroup>
623
-
624
- // Center
625
- <CheckButtonGroup align='center'>
626
- <CheckboxButton checked={value26} label={{text: 'Option one'}}
627
- onChange={(value) => this.setState(() => ({ value26: value }))} />
628
- <CheckboxButton checked={value27} label={{text: 'Option two'}}
629
- onChange={(value) => this.setState(() => ({ value27: value }))} />
630
- </CheckButtonGroup>
631
-
632
- // Start + Center + End
633
- <div className='form__row form__row--flex'>
634
- <CheckButtonGroup>
635
- <CheckboxButton checked={value28} label={{text: 'One'}}
636
- onChange={(value) => this.setState(() => ({ value28: value }))} />
637
- <CheckboxButton checked={value29} label={{text: 'Two'}}
638
- onChange={(value) => this.setState(() => ({ value29: value }))} />
639
- </CheckButtonGroup>
640
-
641
- <CheckButtonGroup align='center'>
642
- <CheckboxButton checked={value30} label={{text: 'Three'}}
643
- onChange={(value) => this.setState(() => ({ value30: value }))} />
644
- <CheckboxButton checked={value31} label={{text: 'Four'}}
645
- onChange={(value) => this.setState(() => ({ value31: value }))} />
646
- </CheckButtonGroup>
647
-
648
- <CheckButtonGroup align='end'>
649
- <CheckboxButton checked={value32} label={{text: 'Five'}}
650
- onChange={(value) => this.setState(() => ({ value32: value }))} />
651
- <CheckboxButton checked={value33} label={{text: 'Six'}}
652
- onChange={(value) => this.setState(() => ({ value33: value }))} />
653
- </CheckButtonGroup>
654
- </div>
655
-
656
- // Grid
657
- <CheckButtonGroup grid={true}>
658
- <CheckboxButton checked={value34} label={{text: 'Option one'}}
659
- onChange={(value) => this.setState(() => ({ value34: value }))} />
660
- <CheckboxButton checked={value35} label={{text: 'Option two'}}
661
- onChange={(value) => this.setState(() => ({ value35: value }))} />
662
- <CheckboxButton checked={value36} label={{text: 'Option three'}}
663
- onChange={(value) => this.setState(() => ({ value36: value }))} />
664
- <CheckboxButton checked={value37} label={{text: 'Option four'}}
665
- onChange={(value) => this.setState(() => ({ value37: value }))} />
666
- </CheckButtonGroup>
667
- `}
668
- </Markup.ReactMarkupCode>
669
- </Markup.ReactMarkup>
670
-
671
- <h3 className="docs-page__h3">Props</h3>
672
- <p className="docs-page__paragraph">Checkbox</p>
673
- <PropsList>
674
- <Prop
675
- name="checked"
676
- isRequired={true}
677
- type="boolean"
678
- default="false"
679
- description="The checked state of the input."
680
- />
681
- <Prop
682
- name="label text"
683
- isRequired={true}
684
- type="string"
685
- default="/"
686
- description="Label text value."
687
- />
688
- <Prop
689
- name="label side"
690
- isRequired={false}
691
- type="start | end"
692
- default="end"
693
- description="Position of label relative to the button."
694
- />
695
- <Prop
696
- name="label hidden"
697
- isRequired={false}
698
- type="boolean"
699
- default="false"
700
- description="Hides visually the label and adds an aria-label for screen-reader support."
701
- />
702
- <Prop
703
- name="disabled"
704
- isRequired={false}
705
- type="boolean"
706
- default="false"
707
- description="The disabled state of Checkbox."
708
- />
709
- <Prop
710
- name="tabindex"
711
- isRequired={false}
712
- type="number"
713
- default="/"
714
- description="Indicates an element can be focused on, and determines how that focus is handled."
715
- />
716
- <Prop
717
- name="groupLabelledBy"
718
- isRequired={false}
719
- type="string"
720
- default="/"
721
- description="Aria-labelledby for screen-reader support."
722
- />
723
- </PropsList>
724
- <p className="docs-page__paragraph">Checkbox Button</p>
725
- <PropsList>
726
- <Prop
727
- name="checked"
728
- isRequired={true}
729
- type="boolean"
730
- default="/"
731
- description="The checked state of the input"
732
- />
733
- <Prop
734
- name="label text"
735
- isRequired={true}
736
- type="string"
737
- default="/"
738
- description="Label text value."
739
- />
740
- <Prop
741
- name="label icon"
742
- isRequired={false}
743
- type="string"
744
- default="/"
745
- description="Icon class name without the icon- part."
746
- />
747
- <Prop
748
- name="label hidden"
749
- isRequired={false}
750
- type="boolean"
751
- default="false"
752
- description="Hides visually the label and adds an aria-label for screen-reader support."
753
- />
754
- <Prop
755
- name="disabled"
756
- isRequired={false}
757
- type="boolean"
758
- default="false"
759
- description="The disabled state of CheckboxButton"
760
- />
761
- <Prop
762
- name="tabindex"
763
- isRequired={false}
764
- type="number"
765
- default="/"
766
- description="Indicates an element can be focused on, and determines how that focus is handled."
767
- />
768
- </PropsList>
769
- <p className="docs-page__paragraph">CheckButtonGroup</p>
770
- <PropsList>
771
- <Prop
772
- name="orientation"
773
- isRequired={false}
774
- type="horizontal | vertical"
775
- default="horizontal"
776
- description="The checked state of the input"
777
- />
778
- <Prop
779
- name="grid"
780
- isRequired={false}
781
- type="boolean"
782
- default="/"
783
- description="Lays out child elements in an uniform grid list."
784
- />
785
- <Prop
786
- name="align"
787
- isRequired={false}
788
- type="start | end | center | inline"
789
- default="start"
790
- description="Alignemnt of the whole group relative to the parent container. Container must be flex for this to work."
791
- />
792
- <Prop
793
- name="padded"
794
- isRequired={false}
795
- type="boolean"
796
- default="/"
797
- description="Adds padding on the start and end (left and right) of the group."
798
- />
799
- <Prop
800
- name="groupLabel"
801
- isRequired={false}
802
- type="string"
803
- default="/"
804
- description="Label text value."
805
- />
806
- <Prop
807
- name="groupLabelledBy"
808
- isRequired={false}
809
- type="string"
810
- default="/"
811
- description="Aria-labelledby for screen-reader support."
812
- />
813
- </PropsList>
814
- </section>
815
- );
816
- }
817
- }