superdesk-ui-framework 4.0.52 → 4.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app-typescript/components/DateTimePicker.tsx +11 -1
- package/dist/examples.bundle.js +14 -2
- package/dist/superdesk-ui.bundle.js +13 -1
- package/package.json +1 -1
- package/react/components/DateTimePicker.d.ts +1 -0
- package/react/components/DateTimePicker.js +13 -1
- package/dist/playgrounds/accessible-theme-test.html +0 -813
- package/dist/playgrounds/boxed-list.html +0 -164
- package/dist/playgrounds/cards.html +0 -244
- package/dist/playgrounds/circular-progress.html +0 -48
- package/dist/playgrounds/dummy-data/items.ts +0 -95
- package/dist/playgrounds/editor-3-test.html +0 -15
- package/dist/playgrounds/form-layout.html +0 -285
- package/dist/playgrounds/layout-grid.html +0 -79
- package/dist/playgrounds/layout-snippets/edit-article.html +0 -415
- package/dist/playgrounds/layout-test-2.html +0 -795
- package/dist/playgrounds/list-item-test.html +0 -896
- package/dist/playgrounds/main.html +0 -16
- package/dist/playgrounds/master-desk.html +0 -1678
- package/dist/playgrounds/media-carousel.html +0 -1166
- package/dist/playgrounds/nav-buttons.html +0 -65
- package/dist/playgrounds/photo-desk.html +0 -1515
- package/dist/playgrounds/photo-snippets/edit-photo-metadata.html +0 -208
- package/dist/playgrounds/planning-snippets/edit-event.html +0 -187
- package/dist/playgrounds/planning-snippets/edit-planning.html +0 -457
- package/dist/playgrounds/planning.html +0 -1112
- package/dist/playgrounds/publish-snippets/edit-article.html +0 -37
- package/dist/playgrounds/publish.html +0 -1007
- package/dist/playgrounds/publisher-content-analytics.html +0 -376
- package/dist/playgrounds/publisher-content-list-automatic.html +0 -296
- package/dist/playgrounds/publisher-content-list-manual.html +0 -611
- package/dist/playgrounds/publisher-content-lists.html +0 -255
- package/dist/playgrounds/publisher-dashboard.html +0 -323
- package/dist/playgrounds/publisher-output-control.html +0 -3659
- package/dist/playgrounds/publisher-website-settings-general.html +0 -188
- package/dist/playgrounds/publisher-website-settings.html +0 -265
- package/dist/playgrounds/react-playgrounds/CoreLayout.tsx +0 -952
- package/dist/playgrounds/react-playgrounds/EditorTest.tsx +0 -649
- package/dist/playgrounds/react-playgrounds/FirstPlayground.tsx +0 -236
- package/dist/playgrounds/react-playgrounds/Index.tsx +0 -11
- package/dist/playgrounds/react-playgrounds/Multiedit.tsx +0 -401
- package/dist/playgrounds/react-playgrounds/PageLayoutTest.tsx +0 -210
- package/dist/playgrounds/react-playgrounds/PersonalProfile.tsx +0 -835
- package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +0 -580
- package/dist/playgrounds/react-playgrounds/Rundowns.tsx +0 -1415
- package/dist/playgrounds/react-playgrounds/SamsPlayground.tsx +0 -401
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +0 -2710
- package/dist/playgrounds/react-playgrounds/UiPlayground.tsx +0 -410
- package/dist/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +0 -25
- package/dist/playgrounds/react-playgrounds/components/AuthoringContent.tsx +0 -86
- package/dist/playgrounds/react-playgrounds/components/ContentSplitter.tsx +0 -19
- package/dist/playgrounds/react-playgrounds/components/GraphicButton.tsx +0 -34
- package/dist/playgrounds/react-playgrounds/components/GraphicButtonsGroup.tsx +0 -11
- package/dist/playgrounds/react-playgrounds/components/HeaderPanel.tsx +0 -11
- package/dist/playgrounds/react-playgrounds/components/Index.tsx +0 -20
- package/dist/playgrounds/react-playgrounds/components/Layout.tsx +0 -27
- package/dist/playgrounds/react-playgrounds/components/LayoutContainer.tsx +0 -15
- package/dist/playgrounds/react-playgrounds/components/LeftPanel.tsx +0 -15
- package/dist/playgrounds/react-playgrounds/components/MainPanel.tsx +0 -24
- package/dist/playgrounds/react-playgrounds/components/OverlayPanel.tsx +0 -17
- package/dist/playgrounds/react-playgrounds/components/Panel.tsx +0 -23
- package/dist/playgrounds/react-playgrounds/components/PanelContent.tsx +0 -11
- package/dist/playgrounds/react-playgrounds/components/PanelContentBlock.tsx +0 -19
- package/dist/playgrounds/react-playgrounds/components/PanelFooter.tsx +0 -17
- package/dist/playgrounds/react-playgrounds/components/PanelHeader.tsx +0 -31
- package/dist/playgrounds/react-playgrounds/components/RightPanel.tsx +0 -16
- package/dist/playgrounds/react-playgrounds/components/SearchBar.tsx +0 -87
- package/dist/playgrounds/react-playgrounds/components/SidebarMenu.tsx +0 -76
- package/dist/playgrounds/react-playgrounds/components/SubNav.tsx +0 -17
- package/dist/playgrounds/react-playgrounds/components/ThemeDropdown.tsx +0 -57
- package/dist/playgrounds/react-playgrounds/tsconfig.json +0 -4
- package/dist/playgrounds/settings.html +0 -92
- package/dist/playgrounds/side-navigation.html +0 -201
- package/dist/playgrounds/swimlane-view.html +0 -1975
- package/dist/playgrounds/tags-input.html +0 -55
- package/dist/playgrounds/toasts.html +0 -113
- package/dist/playgrounds/video-editor.html +0 -706
- package/examples/css/docs-page.css +0 -1135
- package/examples/css/reset.css +0 -124
- package/examples/css/vendor.css +0 -175
- package/examples/illustration-small--components.svg +0 -45
- package/examples/img/andrew-power-y9L5-wmifaY-unsplash.jpg +0 -0
- package/examples/img/andrew-power-y9L5-wmifaY-unsplash.license.txt +0 -6
- package/examples/img/avatar-2.jpg +0 -0
- package/examples/img/avatar-3.jpg +0 -0
- package/examples/img/avatar-4.jpg +0 -0
- package/examples/img/avatar-5.jpg +0 -0
- package/examples/img/avatar-6.jpg +0 -0
- package/examples/img/avatar.jpg +0 -0
- package/examples/img/bill.jpg +0 -0
- package/examples/img/bush_1.jpg +0 -0
- package/examples/img/bush_2.jpg +0 -0
- package/examples/img/carousel-thumb--01.jpg +0 -0
- package/examples/img/carousel-thumb--02.jpg +0 -0
- package/examples/img/carousel-thumb--03.jpg +0 -0
- package/examples/img/carousel-thumb--04.jpg +0 -0
- package/examples/img/components_ilustration.svg +0 -1
- package/examples/img/d_trump.jpg +0 -0
- package/examples/img/d_trump_2.jpg +0 -0
- package/examples/img/d_trump_large.jpg +0 -0
- package/examples/img/design_ilustration.svg +0 -1
- package/examples/img/ferocious_beast.webm +0 -0
- package/examples/img/guidelines/application-frame.png +0 -0
- package/examples/img/guidelines/application-frame__bottom-bar.png +0 -0
- package/examples/img/guidelines/application-frame__left-panel.gif +0 -0
- package/examples/img/guidelines/application-frame__left-panel.png +0 -0
- package/examples/img/guidelines/application-frame__main-content.gif +0 -0
- package/examples/img/guidelines/application-frame__main-content.png +0 -0
- package/examples/img/guidelines/application-frame__right-panel.gif +0 -0
- package/examples/img/guidelines/application-frame__right-panel.png +0 -0
- package/examples/img/guidelines/application-frame__side-tabs.png +0 -0
- package/examples/img/guidelines/application-frame__sub-nav.png +0 -0
- package/examples/img/guidelines/application-frame__top-bar.png +0 -0
- package/examples/img/guidelines/buttons--00-01.png +0 -0
- package/examples/img/guidelines/buttons--00-02.png +0 -0
- package/examples/img/guidelines/buttons--DO-02.png +0 -0
- package/examples/img/guidelines/buttons--DONT-01.png +0 -0
- package/examples/img/guidelines/checkbox--DO-01.png +0 -0
- package/examples/img/guidelines/checkbox--DO-02.png +0 -0
- package/examples/img/guidelines/checkbox--DONT-01.png +0 -0
- package/examples/img/guidelines/checkbox--DONT-02.png +0 -0
- package/examples/img/guidelines/example__bottom-bar--01.png +0 -0
- package/examples/img/guidelines/example__left-side_panel--01.png +0 -0
- package/examples/img/guidelines/example__left_side-bar--01.png +0 -0
- package/examples/img/guidelines/example__main-content--01.png +0 -0
- package/examples/img/guidelines/example__right_side-panel--01.png +0 -0
- package/examples/img/guidelines/example__right_side-panel--02.png +0 -0
- package/examples/img/guidelines/example__right_side-panel--03.png +0 -0
- package/examples/img/guidelines/example__sub-nav--01.png +0 -0
- package/examples/img/guidelines/example__sub-nav--02.png +0 -0
- package/examples/img/guidelines/example__sub-nav--03.png +0 -0
- package/examples/img/guidelines/example__top-bar--01.png +0 -0
- package/examples/img/guidelines/layout--grid-01.png +0 -0
- package/examples/img/guidelines/layout--size-example-01.png +0 -0
- package/examples/img/guidelines/radio--DO-01.png +0 -0
- package/examples/img/guidelines/radio--DONT-01.png +0 -0
- package/examples/img/guidelines/radio--DONT-02.png +0 -0
- package/examples/img/guidelines/radio--DONT-03.png +0 -0
- package/examples/img/guidelines/switch--DO-01.png +0 -0
- package/examples/img/guidelines/switch--DO-02.png +0 -0
- package/examples/img/guidelines/switch--DONT-01.png +0 -0
- package/examples/img/guidelines/switch--DONT-02.png +0 -0
- package/examples/img/hillary.jpg +0 -0
- package/examples/img/illustration--components.svg +0 -1
- package/examples/img/illustration--design.svg +0 -1
- package/examples/img/illustration--playground.svg +0 -1
- package/examples/img/illustration--react.svg +0 -1
- package/examples/img/illustration-small--components.svg +0 -45
- package/examples/img/illustration-small--design.svg +0 -99
- package/examples/img/illustration-small--playground.svg +0 -49
- package/examples/img/illustration-small--react.svg +0 -53
- package/examples/img/illustration_user-privileges.png +0 -0
- package/examples/img/illustration_users.png +0 -0
- package/examples/img/image_01.jpg +0 -0
- package/examples/img/image_02.jpg +0 -0
- package/examples/img/masthead-image.png +0 -0
- package/examples/img/obama_1.jpg +0 -0
- package/examples/img/obama_2.jpg +0 -0
- package/examples/img/overlay-img.jpg +0 -0
- package/examples/img/react-logo--vector.svg +0 -49
- package/examples/img/sd-ui-framework__logo-01.svg +0 -33
- package/examples/img/sd-ui-framework__logo.svg +0 -20
- package/examples/img/th01.jpg +0 -0
- package/examples/img/th02.jpg +0 -0
- package/examples/img/th03.jpg +0 -0
- package/examples/index.html +0 -11
- package/examples/index.js +0 -468
- package/examples/js/doc.js +0 -230
- package/examples/js/react.js +0 -263
- package/examples/pages/components/Alerts.tsx +0 -291
- package/examples/pages/components/Autocomplete.tsx +0 -434
- package/examples/pages/components/Avatar.tsx +0 -659
- package/examples/pages/components/Badges.tsx +0 -221
- package/examples/pages/components/BigIconFont.tsx +0 -48
- package/examples/pages/components/BoxedList.tsx +0 -517
- package/examples/pages/components/ButtonGroups.tsx +0 -366
- package/examples/pages/components/Buttons.tsx +0 -565
- package/examples/pages/components/Card.tsx +0 -23
- package/examples/pages/components/Carousel.tsx +0 -235
- package/examples/pages/components/Checkboxs.tsx +0 -817
- package/examples/pages/components/Container.tsx +0 -190
- package/examples/pages/components/ContentDivider.tsx +0 -229
- package/examples/pages/components/ContentList.tsx +0 -786
- package/examples/pages/components/CreateButton.tsx +0 -121
- package/examples/pages/components/DatePicker.tsx +0 -245
- package/examples/pages/components/DateTimePicker.tsx +0 -141
- package/examples/pages/components/DragHandleDocs.tsx +0 -122
- package/examples/pages/components/DropZone.tsx +0 -149
- package/examples/pages/components/Dropdowns.tsx +0 -587
- package/examples/pages/components/DurationInput.tsx +0 -157
- package/examples/pages/components/EmptyStates.tsx +0 -171
- package/examples/pages/components/GridItem.tsx +0 -507
- package/examples/pages/components/GridList.tsx +0 -126
- package/examples/pages/components/Heading.tsx +0 -152
- package/examples/pages/components/IconButtons.tsx +0 -191
- package/examples/pages/components/IconFont.tsx +0 -49
- package/examples/pages/components/IconLabels.tsx +0 -199
- package/examples/pages/components/IconPicker.tsx +0 -82
- package/examples/pages/components/IllustrationButton.tsx +0 -109
- package/examples/pages/components/Index.tsx +0 -563
- package/examples/pages/components/Inputs.tsx +0 -313
- package/examples/pages/components/Labels.tsx +0 -354
- package/examples/pages/components/LeftNavigations.tsx +0 -459
- package/examples/pages/components/ListItems.tsx +0 -33
- package/examples/pages/components/Loader.tsx +0 -25
- package/examples/pages/components/Menu.tsx +0 -181
- package/examples/pages/components/Modal.tsx +0 -557
- package/examples/pages/components/MultiSelect.tsx +0 -343
- package/examples/pages/components/NavButtons.tsx +0 -159
- package/examples/pages/components/Panel.tsx +0 -631
- package/examples/pages/components/Popover.tsx +0 -90
- package/examples/pages/components/QuickNavigationBar.tsx +0 -278
- package/examples/pages/components/RadioGroup.tsx +0 -612
- package/examples/pages/components/ResizablePanels.tsx +0 -43
- package/examples/pages/components/SelectGrid.tsx +0 -162
- package/examples/pages/components/SelectWithTemplate.tsx +0 -144
- package/examples/pages/components/Selects.tsx +0 -175
- package/examples/pages/components/SimpleList.tsx +0 -198
- package/examples/pages/components/SubNav.tsx +0 -160
- package/examples/pages/components/Switch.tsx +0 -298
- package/examples/pages/components/TableList.tsx +0 -315
- package/examples/pages/components/Tabs.tsx +0 -276
- package/examples/pages/components/TagInputDocs.tsx +0 -130
- package/examples/pages/components/Tags.tsx +0 -154
- package/examples/pages/components/Text.tsx +0 -184
- package/examples/pages/components/TimePicker.tsx +0 -179
- package/examples/pages/components/Toasts.tsx +0 -283
- package/examples/pages/components/Togglebox.tsx +0 -307
- package/examples/pages/components/Tooltips.tsx +0 -74
- package/examples/pages/components/TreeMenu.tsx +0 -315
- package/examples/pages/components/TreeSelect.tsx +0 -625
- package/examples/pages/components/WithPaginationDocs.tsx +0 -56
- package/examples/pages/components/WithSizeObserver.tsx +0 -44
- package/examples/pages/components/tree-select/TreeSelect.tsx +0 -322
- package/examples/pages/components/tree-select/example-1.tsx +0 -67
- package/examples/pages/components/tree-select/example-2.tsx +0 -56
- package/examples/pages/components/utilities/BorderRadiusUtilities.tsx +0 -71
- package/examples/pages/components/utilities/BorderUtilities.tsx +0 -169
- package/examples/pages/components/utilities/DisplayUtilities.tsx +0 -115
- package/examples/pages/components/utilities/FlexAndGridUtilities.tsx +0 -551
- package/examples/pages/components/utilities/ObjectFitUtilities.tsx +0 -51
- package/examples/pages/components/utilities/ObjectPositionUtilities.tsx +0 -67
- package/examples/pages/components/utilities/OpacityUtilities.tsx +0 -61
- package/examples/pages/components/utilities/OverflowUtilities.tsx +0 -92
- package/examples/pages/components/utilities/PositionUtilities.tsx +0 -51
- package/examples/pages/components/utilities/ShadowUtilities.tsx +0 -122
- package/examples/pages/components/utilities/SpacingUtilities.tsx +0 -1079
- package/examples/pages/components/utilities/TextUtilities.tsx +0 -560
- package/examples/pages/components.html +0 -15
- package/examples/pages/components_deprecated/alerts.html +0 -113
- package/examples/pages/components_deprecated/badge.html +0 -79
- package/examples/pages/components_deprecated/basic-grid.html +0 -132
- package/examples/pages/components_deprecated/big-icons.html +0 -65
- package/examples/pages/components_deprecated/buttons.html +0 -631
- package/examples/pages/components_deprecated/carousel.html +0 -77
- package/examples/pages/components_deprecated/checkbox.html +0 -86
- package/examples/pages/components_deprecated/colors.html +0 -12
- package/examples/pages/components_deprecated/dropdown.html +0 -542
- package/examples/pages/components_deprecated/form-layout.html +0 -187
- package/examples/pages/components_deprecated/icon-labels.html +0 -34
- package/examples/pages/components_deprecated/icons.html +0 -194
- package/examples/pages/components_deprecated/input.html +0 -233
- package/examples/pages/components_deprecated/labels.html +0 -170
- package/examples/pages/components_deprecated/layout-grid.html +0 -227
- package/examples/pages/components_deprecated/left-nav.html +0 -83
- package/examples/pages/components_deprecated/list-item.html +0 -1342
- package/examples/pages/components_deprecated/loader.html +0 -64
- package/examples/pages/components_deprecated/modal-template.html +0 -13
- package/examples/pages/components_deprecated/modals.html +0 -561
- package/examples/pages/components_deprecated/other-elements.html +0 -54
- package/examples/pages/components_deprecated/panel-info.html +0 -34
- package/examples/pages/components_deprecated/radio.html +0 -64
- package/examples/pages/components_deprecated/select.html +0 -160
- package/examples/pages/components_deprecated/shadows.html +0 -24
- package/examples/pages/components_deprecated/sidebar-menu.html +0 -111
- package/examples/pages/components_deprecated/simple-list.html +0 -113
- package/examples/pages/components_deprecated/slider.html +0 -31
- package/examples/pages/components_deprecated/spacing.html +0 -117
- package/examples/pages/components_deprecated/switch.html +0 -31
- package/examples/pages/components_deprecated/tables.html +0 -58
- package/examples/pages/components_deprecated/tabs.html +0 -257
- package/examples/pages/components_deprecated/tag-input.html +0 -123
- package/examples/pages/components_deprecated/tag-labels.html +0 -57
- package/examples/pages/components_deprecated/text.html +0 -55
- package/examples/pages/components_deprecated/toggle.html +0 -63
- package/examples/pages/components_deprecated/tooltips.html +0 -29
- package/examples/pages/components_deprecated/vertical-tabs.html +0 -48
- package/examples/pages/components_deprecated/wizard.html +0 -41
- package/examples/pages/components_deprecated.html +0 -39
- package/examples/pages/design/application-structure.html +0 -168
- package/examples/pages/design/buttons.html +0 -34
- package/examples/pages/design/checkbox-and-radio.html +0 -64
- package/examples/pages/design/layout-principles.html +0 -45
- package/examples/pages/design/modules.html +0 -22
- package/examples/pages/design/pages.html +0 -22
- package/examples/pages/design/switch.html +0 -55
- package/examples/pages/design-patterns/Index.tsx +0 -42
- package/examples/pages/design-patterns/ThreePaneLayoutPattern.tsx +0 -378
- package/examples/pages/design-patterns.html +0 -14
- package/examples/pages/design.html +0 -39
- package/examples/pages/main.html +0 -76
- package/examples/pages/playgrounds/accessible-theme-test.html +0 -813
- package/examples/pages/playgrounds/boxed-list.html +0 -164
- package/examples/pages/playgrounds/cards.html +0 -244
- package/examples/pages/playgrounds/circular-progress.html +0 -48
- package/examples/pages/playgrounds/dummy-data/items.ts +0 -95
- package/examples/pages/playgrounds/editor-3-test.html +0 -15
- package/examples/pages/playgrounds/form-layout.html +0 -285
- package/examples/pages/playgrounds/layout-grid.html +0 -79
- package/examples/pages/playgrounds/layout-snippets/edit-article.html +0 -415
- package/examples/pages/playgrounds/layout-test-2.html +0 -795
- package/examples/pages/playgrounds/list-item-test.html +0 -896
- package/examples/pages/playgrounds/main.html +0 -16
- package/examples/pages/playgrounds/master-desk.html +0 -1678
- package/examples/pages/playgrounds/media-carousel.html +0 -1166
- package/examples/pages/playgrounds/nav-buttons.html +0 -65
- package/examples/pages/playgrounds/photo-desk.html +0 -1515
- package/examples/pages/playgrounds/photo-snippets/edit-photo-metadata.html +0 -208
- package/examples/pages/playgrounds/planning-snippets/edit-event.html +0 -187
- package/examples/pages/playgrounds/planning-snippets/edit-planning.html +0 -457
- package/examples/pages/playgrounds/planning.html +0 -1112
- package/examples/pages/playgrounds/publish-snippets/edit-article.html +0 -37
- package/examples/pages/playgrounds/publish.html +0 -1007
- package/examples/pages/playgrounds/publisher-content-analytics.html +0 -376
- package/examples/pages/playgrounds/publisher-content-list-automatic.html +0 -296
- package/examples/pages/playgrounds/publisher-content-list-manual.html +0 -611
- package/examples/pages/playgrounds/publisher-content-lists.html +0 -255
- package/examples/pages/playgrounds/publisher-dashboard.html +0 -323
- package/examples/pages/playgrounds/publisher-output-control.html +0 -3659
- package/examples/pages/playgrounds/publisher-website-settings-general.html +0 -188
- package/examples/pages/playgrounds/publisher-website-settings.html +0 -265
- package/examples/pages/playgrounds/react-playgrounds/CoreLayout.tsx +0 -952
- package/examples/pages/playgrounds/react-playgrounds/EditorTest.tsx +0 -649
- package/examples/pages/playgrounds/react-playgrounds/FirstPlayground.tsx +0 -236
- package/examples/pages/playgrounds/react-playgrounds/Index.tsx +0 -11
- package/examples/pages/playgrounds/react-playgrounds/Multiedit.tsx +0 -401
- package/examples/pages/playgrounds/react-playgrounds/PageLayoutTest.tsx +0 -210
- package/examples/pages/playgrounds/react-playgrounds/PersonalProfile.tsx +0 -835
- package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +0 -580
- package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +0 -1415
- package/examples/pages/playgrounds/react-playgrounds/SamsPlayground.tsx +0 -401
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +0 -2710
- package/examples/pages/playgrounds/react-playgrounds/UiPlayground.tsx +0 -410
- package/examples/pages/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +0 -25
- package/examples/pages/playgrounds/react-playgrounds/components/AuthoringContent.tsx +0 -86
- package/examples/pages/playgrounds/react-playgrounds/components/ContentSplitter.tsx +0 -19
- package/examples/pages/playgrounds/react-playgrounds/components/GraphicButton.tsx +0 -34
- package/examples/pages/playgrounds/react-playgrounds/components/GraphicButtonsGroup.tsx +0 -11
- package/examples/pages/playgrounds/react-playgrounds/components/HeaderPanel.tsx +0 -11
- package/examples/pages/playgrounds/react-playgrounds/components/Index.tsx +0 -20
- package/examples/pages/playgrounds/react-playgrounds/components/Layout.tsx +0 -27
- package/examples/pages/playgrounds/react-playgrounds/components/LayoutContainer.tsx +0 -15
- package/examples/pages/playgrounds/react-playgrounds/components/LeftPanel.tsx +0 -15
- package/examples/pages/playgrounds/react-playgrounds/components/MainPanel.tsx +0 -24
- package/examples/pages/playgrounds/react-playgrounds/components/OverlayPanel.tsx +0 -17
- package/examples/pages/playgrounds/react-playgrounds/components/Panel.tsx +0 -23
- package/examples/pages/playgrounds/react-playgrounds/components/PanelContent.tsx +0 -11
- package/examples/pages/playgrounds/react-playgrounds/components/PanelContentBlock.tsx +0 -19
- package/examples/pages/playgrounds/react-playgrounds/components/PanelFooter.tsx +0 -17
- package/examples/pages/playgrounds/react-playgrounds/components/PanelHeader.tsx +0 -31
- package/examples/pages/playgrounds/react-playgrounds/components/RightPanel.tsx +0 -16
- package/examples/pages/playgrounds/react-playgrounds/components/SearchBar.tsx +0 -87
- package/examples/pages/playgrounds/react-playgrounds/components/SidebarMenu.tsx +0 -76
- package/examples/pages/playgrounds/react-playgrounds/components/SubNav.tsx +0 -17
- package/examples/pages/playgrounds/react-playgrounds/components/ThemeDropdown.tsx +0 -57
- package/examples/pages/playgrounds/react-playgrounds/tsconfig.json +0 -4
- package/examples/pages/playgrounds/settings.html +0 -92
- package/examples/pages/playgrounds/side-navigation.html +0 -201
- package/examples/pages/playgrounds/swimlane-view.html +0 -1975
- package/examples/pages/playgrounds/tags-input.html +0 -55
- package/examples/pages/playgrounds/toasts.html +0 -113
- package/examples/pages/playgrounds/video-editor.html +0 -706
- package/examples/pages/playgrounds.html +0 -40
@@ -1,631 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import * as Markup from '../../js/react';
|
3
|
-
import {PropsList, Prop, Button, ButtonGroup, IconButton, Label, SlidingToolbar} from '../../../app-typescript';
|
4
|
-
import * as PanelElements from '../../../app-typescript/components/Layouts/Panel';
|
5
|
-
import {Rotate} from '../../../app-typescript/components/Rotate';
|
6
|
-
|
7
|
-
interface IProps {
|
8
|
-
children?: React.ReactNode;
|
9
|
-
}
|
10
|
-
|
11
|
-
interface IState {
|
12
|
-
openPanel1: boolean;
|
13
|
-
openPanel2: boolean;
|
14
|
-
openPanel3: boolean;
|
15
|
-
openPanel4: boolean;
|
16
|
-
openToolbar1: boolean;
|
17
|
-
rotate: boolean;
|
18
|
-
}
|
19
|
-
|
20
|
-
export default class PanelDoc extends React.Component<IProps, IState> {
|
21
|
-
constructor(props: IProps) {
|
22
|
-
super(props);
|
23
|
-
this.state = {
|
24
|
-
openPanel1: true,
|
25
|
-
openPanel2: true,
|
26
|
-
openPanel3: true,
|
27
|
-
openPanel4: true,
|
28
|
-
openToolbar1: true,
|
29
|
-
rotate: false,
|
30
|
-
};
|
31
|
-
}
|
32
|
-
|
33
|
-
render() {
|
34
|
-
return (
|
35
|
-
<section className="docs-page__container">
|
36
|
-
<h2 className="docs-page__h2">Panel</h2>
|
37
|
-
|
38
|
-
<Markup.ReactMarkupCodePreview>
|
39
|
-
{`
|
40
|
-
<Panel side='left' size="small">
|
41
|
-
<PanelHeader title='Title for the Panel' handlePanelParent={()=> false}>
|
42
|
-
</PanelHeader>
|
43
|
-
<PanelContent>
|
44
|
-
<PanelContentBlock>
|
45
|
-
...
|
46
|
-
</PanelContentBlock>
|
47
|
-
</PanelContent>
|
48
|
-
<PanelFooter>
|
49
|
-
<Button text='Clear' style='hollow' onClick={() => false} />
|
50
|
-
<Button text='Submit' type='primary' onClick={() => false} />
|
51
|
-
</PanelFooter>
|
52
|
-
</Panel>
|
53
|
-
`}
|
54
|
-
</Markup.ReactMarkupCodePreview>
|
55
|
-
|
56
|
-
<p className="docs-page__paragraph">...</p>
|
57
|
-
|
58
|
-
<Markup.ReactMarkup>
|
59
|
-
<Markup.ReactMarkupPreview>
|
60
|
-
<p className="docs-page__paragraph">// Left</p>
|
61
|
-
<div
|
62
|
-
className="d-flex"
|
63
|
-
style={{
|
64
|
-
border: '1px solid var(--sd-colour-line--medium)',
|
65
|
-
backgroundColor: 'var(--sd-colour-panel-bg--100)',
|
66
|
-
maxHeight: '400px',
|
67
|
-
}}
|
68
|
-
>
|
69
|
-
{this.state.openPanel1 ? null : (
|
70
|
-
<div className="d-flex items-center justify-center sd-flex--grow">
|
71
|
-
<Button
|
72
|
-
text="Open Panel"
|
73
|
-
style="filled"
|
74
|
-
onClick={() => this.setState({openPanel1: true})}
|
75
|
-
/>
|
76
|
-
</div>
|
77
|
-
)}
|
78
|
-
<PanelElements.Panel
|
79
|
-
side="left"
|
80
|
-
background="light"
|
81
|
-
open={this.state.openPanel1}
|
82
|
-
size="x-small"
|
83
|
-
>
|
84
|
-
<PanelElements.PanelHeader
|
85
|
-
title="This is the Panel title"
|
86
|
-
onClose={() => this.setState({openPanel1: false})}
|
87
|
-
iconButtons={[
|
88
|
-
<Rotate degrees={this.state.rotate ? 90 : 0}>
|
89
|
-
<IconButton
|
90
|
-
ariaValue="Pin"
|
91
|
-
icon="pin"
|
92
|
-
onClick={() => this.setState({rotate: !this.state.rotate})}
|
93
|
-
/>
|
94
|
-
</Rotate>,
|
95
|
-
]}
|
96
|
-
></PanelElements.PanelHeader>
|
97
|
-
<PanelElements.PanelContent>
|
98
|
-
<PanelElements.PanelContentBlock>
|
99
|
-
<p className="sd-margin-b--2">
|
100
|
-
Maecenas sed diam eget risus varius blandit sit amet non magna. Lorem ipsum
|
101
|
-
dolor sit amet, consectetur adipiscing elit. Maecenas faucibus mollis
|
102
|
-
interdum. Cras justo odio, dapibus ac facilisis in, egestas eget quam.
|
103
|
-
Aenean lacinia bibendum nulla sed consectetur. Lorem ipsum dolor sit amet,
|
104
|
-
consectetur adipiscing elit.
|
105
|
-
</p>
|
106
|
-
<p>
|
107
|
-
Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada
|
108
|
-
magna mollis euismod. Aenean eu leo quam. Pellentesque ornare sem lacinia
|
109
|
-
quam venenatis vestibulum. Nullam quis risus eget urna mollis ornare vel eu
|
110
|
-
leo. Curabitur blandit tempus porttitor. Aenean lacinia bibendum nulla sed
|
111
|
-
consectetur.
|
112
|
-
</p>
|
113
|
-
</PanelElements.PanelContentBlock>
|
114
|
-
</PanelElements.PanelContent>
|
115
|
-
<PanelElements.PanelFooter>
|
116
|
-
<Button text="Clear" style="hollow" onClick={() => false} />
|
117
|
-
<Button text="Submit" type="primary" onClick={() => false} />
|
118
|
-
</PanelElements.PanelFooter>
|
119
|
-
</PanelElements.Panel>
|
120
|
-
</div>
|
121
|
-
</Markup.ReactMarkupPreview>
|
122
|
-
<Markup.ReactMarkupCode>
|
123
|
-
{`
|
124
|
-
// Left
|
125
|
-
{this.state.openPanel1 ? null :
|
126
|
-
<div className='d-flex items-center justify-center sd-flex--grow'>
|
127
|
-
<Button text="Open Panel" style="filled" onClick={() => this.setState({'openPanel1': true})} />
|
128
|
-
</div>
|
129
|
-
}
|
130
|
-
|
131
|
-
<PanelElements.Panel side='left' background='light' open={this.state.openPanel1} size='x-small'>
|
132
|
-
<PanelElements.PanelHeader
|
133
|
-
title='This is the title for the Panel'
|
134
|
-
onClose={() => this.setState({'openPanel1': false})}
|
135
|
-
iconButtons={[
|
136
|
-
<Rotate degrees={this.state.rotate ? 90 : 0}>
|
137
|
-
<IconButton ariaValue='Pin' icon='pin' onClick={() => this.setState({rotate: !this.state.rotate})} />
|
138
|
-
</Rotate>,
|
139
|
-
]}
|
140
|
-
>
|
141
|
-
</PanelElements.PanelHeader>
|
142
|
-
|
143
|
-
<PanelElements.PanelContent>
|
144
|
-
<PanelElements.PanelContentBlock>
|
145
|
-
<p className='sd-margin-b--2'>Maecenas sed diam eget risus varius blandit sit amet non magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas faucibus mollis interdum.
|
146
|
-
Cras justo odio, dapibus ac facilisis in, egestas eget quam. Aenean lacinia bibendum nulla sed consectetur. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
147
|
-
<p>Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis
|
148
|
-
vestibulum. Nullam quis risus eget urna mollis ornare vel eu leo. Curabitur blandit tempus porttitor. Aenean lacinia bibendum nulla sed consectetur.</p>
|
149
|
-
</PanelElements.PanelContentBlock>
|
150
|
-
</PanelElements.PanelContent>
|
151
|
-
|
152
|
-
<PanelElements.PanelFooter>
|
153
|
-
<Button text='Clear' style='hollow' onClick={() => false} />
|
154
|
-
<Button text='Submit' type='primary' onClick={() => false} />
|
155
|
-
</PanelElements.PanelFooter>
|
156
|
-
</PanelElements.Panel>
|
157
|
-
`}
|
158
|
-
</Markup.ReactMarkupCode>
|
159
|
-
</Markup.ReactMarkup>
|
160
|
-
|
161
|
-
<Markup.ReactMarkup>
|
162
|
-
<Markup.ReactMarkupPreview>
|
163
|
-
<p className="docs-page__paragraph">
|
164
|
-
// Right, custom elements inside the footer + dark theme.
|
165
|
-
</p>
|
166
|
-
<div
|
167
|
-
className="d-flex"
|
168
|
-
style={{
|
169
|
-
border: '1px solid var(--sd-colour-line--medium)',
|
170
|
-
backgroundColor: 'var(--sd-colour-panel-bg--100)',
|
171
|
-
maxHeight: '400px',
|
172
|
-
}}
|
173
|
-
>
|
174
|
-
{this.state.openPanel2 ? null : (
|
175
|
-
<div className="d-flex items-center justify-center sd-flex--grow">
|
176
|
-
<Button
|
177
|
-
text="Open Panel"
|
178
|
-
style="filled"
|
179
|
-
onClick={() => this.setState({openPanel2: true})}
|
180
|
-
/>
|
181
|
-
</div>
|
182
|
-
)}
|
183
|
-
<PanelElements.Panel
|
184
|
-
side="right"
|
185
|
-
background="light"
|
186
|
-
open={this.state.openPanel2}
|
187
|
-
size="small"
|
188
|
-
theme="dark"
|
189
|
-
>
|
190
|
-
<PanelElements.PanelHeader
|
191
|
-
title="Right panel title"
|
192
|
-
onClose={() => this.setState({openPanel2: false})}
|
193
|
-
color="blueGreyDarker"
|
194
|
-
></PanelElements.PanelHeader>
|
195
|
-
<PanelElements.PanelContent>
|
196
|
-
<PanelElements.PanelContentBlock>
|
197
|
-
<p className="sd-margin-b--2">
|
198
|
-
Curabitur blandit tempus porttitor. Lorem ipsum dolor sit amet, consectetur
|
199
|
-
adipiscing elit. Donec sed odio dui. Aenean eu leo quam. Pellentesque ornare
|
200
|
-
sem lacinia quam venenatis vestibulum.
|
201
|
-
</p>
|
202
|
-
<p className="sd-margin-b--2">
|
203
|
-
Donec ullamcorper nulla non metus auctor fringilla. Cras mattis consectetur
|
204
|
-
purus sit amet fermentum. Donec id elit non mi porta gravida at eget metus.
|
205
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras justo odio,
|
206
|
-
dapibus ac facilisis in, egestas eget quam. Duis mollis, est non commodo
|
207
|
-
luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.
|
208
|
-
Vestibulum id ligula porta felis euismod semper.
|
209
|
-
</p>
|
210
|
-
<p>
|
211
|
-
Aenean lacinia bibendum nulla sed consectetur. Cum sociis natoque penatibus
|
212
|
-
et magnis dis parturient montes, nascetur ridiculus mus. Etiam porta sem
|
213
|
-
malesuada magna mollis euismod. Integer posuere erat a ante venenatis
|
214
|
-
dapibus posuere velit aliquet. Praesent commodo cursus magna, vel
|
215
|
-
scelerisque nisl consectetur et.
|
216
|
-
</p>
|
217
|
-
</PanelElements.PanelContentBlock>
|
218
|
-
</PanelElements.PanelContent>
|
219
|
-
<PanelElements.PanelFooter>
|
220
|
-
<ButtonGroup align="start">
|
221
|
-
<Button text="one" style="hollow" onClick={() => false} />
|
222
|
-
<Button text="two" style="hollow" onClick={() => false} />
|
223
|
-
<Label text="Published" type="primary" style="translucent" />
|
224
|
-
</ButtonGroup>
|
225
|
-
<ButtonGroup align="end">
|
226
|
-
<IconButton icon="pencil" ariaValue={'Edit'} onClick={() => false} />
|
227
|
-
<IconButton
|
228
|
-
icon="dots-vertical"
|
229
|
-
ariaValue={'More options'}
|
230
|
-
onClick={() => false}
|
231
|
-
/>
|
232
|
-
</ButtonGroup>
|
233
|
-
</PanelElements.PanelFooter>
|
234
|
-
</PanelElements.Panel>
|
235
|
-
</div>
|
236
|
-
</Markup.ReactMarkupPreview>
|
237
|
-
<Markup.ReactMarkupCode>
|
238
|
-
{`
|
239
|
-
// Right, custom elements inside the footer + dark theme.
|
240
|
-
|
241
|
-
{this.state.openPanel2 ? null :
|
242
|
-
<div className='d-flex items-center justify-center sd-flex--grow'>
|
243
|
-
<Button text="Open Panel" style="filled" onClick={() => this.setState({'openPanel2': true})} />
|
244
|
-
</div>
|
245
|
-
}
|
246
|
-
<PanelElements.Panel side='right' background='light' open={this.state.openPanel2} size='small' theme="dark-ui">
|
247
|
-
<PanelElements.PanelHeader title='Right panel title' onClose={()=> this.setState({openPanel2: false})} color='blueGreyDarker'>
|
248
|
-
</PanelElements.PanelHeader>
|
249
|
-
<PanelElements.PanelContent>
|
250
|
-
<PanelElements.PanelContentBlock>
|
251
|
-
<p className='sd-margin-b--2'>Curabitur blandit tempus porttitor. Lorem ipsum dolor sit amet, consectetur adipiscing elit...</p>
|
252
|
-
<p className='sd-margin-b--2'>Donec ullamcorper nulla non metus auctor fringilla. Cras mattis consectetur purus sit amet fermentum...</p>
|
253
|
-
<p>Aenean lacinia bibendum nulla sed consectetur. Cum sociis natoque penatibus et magnis dis parturient...</p>
|
254
|
-
</PanelElements.PanelContentBlock>
|
255
|
-
</PanelElements.PanelContent>
|
256
|
-
<PanelElements.PanelFooter>
|
257
|
-
<ButtonGroup align='start'>
|
258
|
-
<Button text='one' style='hollow' onClick={()=> false} />
|
259
|
-
<Button text='two' style='hollow' onClick={()=> false} />
|
260
|
-
<Label text='Published' type='primary' style='translucent'/>
|
261
|
-
</ButtonGroup>
|
262
|
-
<ButtonGroup align='end'>
|
263
|
-
<IconButton icon='pencil' ariaValue={'Edit'} onClick={() => false} />
|
264
|
-
<IconButton icon='dots-vertical' ariaValue={'More options'} onClick={() => false} />
|
265
|
-
</ButtonGroup>
|
266
|
-
</PanelElements.PanelFooter>
|
267
|
-
</PanelElements.Panel>
|
268
|
-
`}
|
269
|
-
</Markup.ReactMarkupCode>
|
270
|
-
</Markup.ReactMarkup>
|
271
|
-
|
272
|
-
<Markup.ReactMarkup>
|
273
|
-
<Markup.ReactMarkupPreview>
|
274
|
-
<p className="docs-page__paragraph">
|
275
|
-
// With PanelHeaderSlidingToolbar element inside the PanelHeader
|
276
|
-
</p>
|
277
|
-
<div
|
278
|
-
className="d-flex"
|
279
|
-
style={{
|
280
|
-
border: '1px solid var(--sd-colour-line--medium)',
|
281
|
-
backgroundColor: 'var(--sd-colour-panel-bg--100)',
|
282
|
-
maxHeight: '400px',
|
283
|
-
}}
|
284
|
-
>
|
285
|
-
{this.state.openPanel3 ? null : (
|
286
|
-
<div className="d-flex items-center justify-center sd-flex--grow">
|
287
|
-
<Button
|
288
|
-
text="Open Panel"
|
289
|
-
style="filled"
|
290
|
-
onClick={() => this.setState({openPanel3: true})}
|
291
|
-
/>
|
292
|
-
</div>
|
293
|
-
)}
|
294
|
-
<PanelElements.Panel
|
295
|
-
side="left"
|
296
|
-
background="light"
|
297
|
-
open={this.state.openPanel3}
|
298
|
-
size="small"
|
299
|
-
>
|
300
|
-
<PanelElements.PanelHeader
|
301
|
-
title="Donec sed odio dui"
|
302
|
-
onClose={() => this.setState({openPanel3: false})}
|
303
|
-
>
|
304
|
-
{!this.state.openToolbar1 ? null : (
|
305
|
-
<PanelElements.PanelHeaderSlidingToolbar>
|
306
|
-
<ButtonGroup align="end">
|
307
|
-
<Button
|
308
|
-
text="Cancel"
|
309
|
-
style="hollow"
|
310
|
-
onClick={() => this.setState({openToolbar1: false})}
|
311
|
-
/>
|
312
|
-
<Button
|
313
|
-
text="Save"
|
314
|
-
style="hollow"
|
315
|
-
type="primary"
|
316
|
-
onClick={() => this.setState({openToolbar1: false})}
|
317
|
-
/>
|
318
|
-
</ButtonGroup>
|
319
|
-
</PanelElements.PanelHeaderSlidingToolbar>
|
320
|
-
)}
|
321
|
-
</PanelElements.PanelHeader>
|
322
|
-
<PanelElements.PanelContent>
|
323
|
-
<PanelElements.PanelContentBlock>
|
324
|
-
<p className="sd-margin-b--2">
|
325
|
-
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut
|
326
|
-
fermentum massa justo sit amet risus. Donec id elit non mi porta gravida at
|
327
|
-
eget metus. Nulla vitae elit libero, a pharetra augue. Maecenas faucibus
|
328
|
-
mollis interdum. Vivamus sagittis lacus vel augue laoreet rutrum faucibus
|
329
|
-
dolor auctor. Nulla vitae elit libero, a pharetra augue.
|
330
|
-
</p>
|
331
|
-
<p>
|
332
|
-
Donec ullamcorper nulla non metus auctor fringilla. Cras mattis consectetur
|
333
|
-
purus sit amet fermentum. Donec id elit non mi porta gravida at eget metus.
|
334
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras justo odio,
|
335
|
-
dapibus ac facilisis in, egestas eget quam. Duis mollis, est non commodo
|
336
|
-
luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.
|
337
|
-
Vestibulum id ligula porta felis euismod semper.
|
338
|
-
</p>
|
339
|
-
</PanelElements.PanelContentBlock>
|
340
|
-
</PanelElements.PanelContent>
|
341
|
-
<PanelElements.PanelFooter>
|
342
|
-
{this.state.openToolbar1 ? null : (
|
343
|
-
<ButtonGroup align="start">
|
344
|
-
<Button
|
345
|
-
text="Open Slide In Toolbar"
|
346
|
-
style="hollow"
|
347
|
-
onClick={() => this.setState({openToolbar1: true})}
|
348
|
-
/>
|
349
|
-
</ButtonGroup>
|
350
|
-
)}
|
351
|
-
<ButtonGroup align="end">
|
352
|
-
<IconButton
|
353
|
-
icon="dots-vertical"
|
354
|
-
ariaValue={'More options'}
|
355
|
-
onClick={() => false}
|
356
|
-
/>
|
357
|
-
</ButtonGroup>
|
358
|
-
</PanelElements.PanelFooter>
|
359
|
-
</PanelElements.Panel>
|
360
|
-
</div>
|
361
|
-
</Markup.ReactMarkupPreview>
|
362
|
-
<Markup.ReactMarkupCode>
|
363
|
-
{`
|
364
|
-
// With PanelHeaderSlidingToolbar element inside the PanelHeader
|
365
|
-
|
366
|
-
{this.state.openPanel3 ? null :
|
367
|
-
<div className='d-flex items-center justify-center sd-flex--grow'>
|
368
|
-
<Button text="Open Panel" style="filled" onClick={() => this.setState({'openPanel3': true})} />
|
369
|
-
</div>
|
370
|
-
}
|
371
|
-
<PanelElements.Panel side='left' background='light' open={this.state.openPanel3} size='small'>
|
372
|
-
<PanelElements.PanelHeader title='Donec sed odio dui' onClose={()=> this.setState({openPanel3: false})}>
|
373
|
-
{!this.state.openToolbar1 ? null :
|
374
|
-
<PanelElements.PanelHeaderSlidingToolbar>
|
375
|
-
<ButtonGroup align='end'>
|
376
|
-
<Button text='Cancel' style='hollow' onClick={()=> this.setState({openToolbar1: false})} />
|
377
|
-
<Button text='Save' style='hollow' type='primary' onClick={()=> this.setState({openToolbar1: false})} />
|
378
|
-
</ButtonGroup>
|
379
|
-
</PanelElements.PanelHeaderSlidingToolbar>
|
380
|
-
}
|
381
|
-
</PanelElements.PanelHeader>
|
382
|
-
<PanelElements.PanelContent>
|
383
|
-
<PanelElements.PanelContentBlock>
|
384
|
-
<p className='sd-margin-b--2'>Fusce dapibus, tellus ac cursus commodo...</p>
|
385
|
-
<p>Donec ullamcorper nulla non metus auctor fringilla. Cras mattis consectetur purus...</p>
|
386
|
-
</PanelElements.PanelContentBlock>
|
387
|
-
</PanelElements.PanelContent>
|
388
|
-
<PanelElements.PanelFooter>
|
389
|
-
{this.state.openToolbar1 ? null :
|
390
|
-
<ButtonGroup align='start'>
|
391
|
-
<Button text='Open Slide In Toolbar' style='hollow' onClick={()=> this.setState({openToolbar1: true})} />
|
392
|
-
</ButtonGroup>
|
393
|
-
}
|
394
|
-
<ButtonGroup align='end'>
|
395
|
-
<IconButton icon='dots-vertical' ariaValue={'More options'} onClick={() => false} />
|
396
|
-
</ButtonGroup>
|
397
|
-
</PanelElements.PanelFooter>
|
398
|
-
</PanelElements.Panel>
|
399
|
-
`}
|
400
|
-
</Markup.ReactMarkupCode>
|
401
|
-
</Markup.ReactMarkup>
|
402
|
-
|
403
|
-
<Markup.ReactMarkup>
|
404
|
-
<Markup.ReactMarkupPreview>
|
405
|
-
<p className="docs-page__paragraph">
|
406
|
-
// With PanelTools (allowing custom actions) + dark theme
|
407
|
-
</p>
|
408
|
-
<div
|
409
|
-
className="d-flex"
|
410
|
-
style={{
|
411
|
-
border: '1px solid var(--sd-colour-line--medium)',
|
412
|
-
backgroundColor: 'var(--sd-colour-panel-bg--100)',
|
413
|
-
maxHeight: '400px',
|
414
|
-
}}
|
415
|
-
>
|
416
|
-
{this.state.openPanel4 ? null : (
|
417
|
-
<div className="d-flex items-center justify-center sd-flex--grow">
|
418
|
-
<Button
|
419
|
-
text="Open Panel"
|
420
|
-
style="filled"
|
421
|
-
onClick={() => this.setState({openPanel4: true})}
|
422
|
-
/>
|
423
|
-
</div>
|
424
|
-
)}
|
425
|
-
<PanelElements.Panel
|
426
|
-
side="left"
|
427
|
-
background="light"
|
428
|
-
open={this.state.openPanel4}
|
429
|
-
size="x-small"
|
430
|
-
theme="dark"
|
431
|
-
>
|
432
|
-
<PanelElements.PanelHeader title="Donec sed odio dui">
|
433
|
-
<PanelElements.PanelTools
|
434
|
-
tools={[
|
435
|
-
{title: 'Delete', icon: 'trash', onClick: () => false, ariaValue: 'Delete'},
|
436
|
-
{title: 'Edit', icon: 'pencil', onClick: () => false, ariaValue: 'Edit'},
|
437
|
-
{
|
438
|
-
title: 'Close',
|
439
|
-
icon: 'close-small',
|
440
|
-
onClick: () => this.setState({openPanel4: false}),
|
441
|
-
ariaValue: 'Close',
|
442
|
-
},
|
443
|
-
]}
|
444
|
-
/>
|
445
|
-
</PanelElements.PanelHeader>
|
446
|
-
<PanelElements.PanelContent>
|
447
|
-
<PanelElements.PanelContentBlock>
|
448
|
-
<p className="sd-margin-b--2">
|
449
|
-
Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut
|
450
|
-
fermentum massa justo sit amet risus. Donec id elit non mi porta gravida at
|
451
|
-
eget metus. Nulla vitae elit libero, a pharetra augue.
|
452
|
-
</p>
|
453
|
-
<p>
|
454
|
-
Donec ullamcorper nulla non metus auctor fringilla. Cras mattis consectetur
|
455
|
-
purus sit amet fermentum. Donec id elit non mi porta gravida at eget metus.
|
456
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
457
|
-
</p>
|
458
|
-
</PanelElements.PanelContentBlock>
|
459
|
-
</PanelElements.PanelContent>
|
460
|
-
<PanelElements.PanelFooter>
|
461
|
-
<Button text="Cancel" style="hollow" onClick={() => false} />
|
462
|
-
<Button text="Save" type="primary" onClick={() => false} />
|
463
|
-
</PanelElements.PanelFooter>
|
464
|
-
</PanelElements.Panel>
|
465
|
-
</div>
|
466
|
-
</Markup.ReactMarkupPreview>
|
467
|
-
<Markup.ReactMarkupCode>
|
468
|
-
{`
|
469
|
-
// With PanelTools (allowing custom actions) + dark theme
|
470
|
-
|
471
|
-
{this.state.openPanel4 ? null :
|
472
|
-
<div className='d-flex items-center justify-center sd-flex--grow'>
|
473
|
-
<Button text="Open Panel" style="filled" onClick={() => this.setState({'openPanel4': true})} />
|
474
|
-
</div>
|
475
|
-
}
|
476
|
-
<PanelElements.Panel side='left' background='light' open={this.state.openPanel4} size='x-small' theme='dark-ui'>
|
477
|
-
<PanelElements.PanelHeader title='Donec sed odio dui'>
|
478
|
-
<PanelElements.PanelTools tools={[
|
479
|
-
{title: 'Delete', icon: 'trash', onClick: () => false, ariaValue: 'Delete' },
|
480
|
-
{title: 'Edit', icon: 'pencil', onClick: () => false, ariaValue: 'Edit' },
|
481
|
-
{title: 'Close', icon: 'close-small', onClick: ()=> this.setState({openPanel4: false}), ariaValue: 'Close' },
|
482
|
-
]} />
|
483
|
-
</PanelElements.PanelHeader>
|
484
|
-
<PanelElements.PanelContent>
|
485
|
-
<PanelElements.PanelContentBlock>
|
486
|
-
<p className='sd-margin-b--2'>Fusce dapibus, tellus ac cursus commodo, tortor mauris...</p>
|
487
|
-
<p>Donec ullamcorper nulla non metus auctor fringilla. Cras mattis consectetur purus sit amet...</p>
|
488
|
-
</PanelElements.PanelContentBlock>
|
489
|
-
</PanelElements.PanelContent>
|
490
|
-
<PanelElements.PanelFooter>
|
491
|
-
<Button text='Cancel' style='hollow' onClick={() => false} />
|
492
|
-
<Button text='Save' type='primary' onClick={() => false} />
|
493
|
-
</PanelElements.PanelFooter>
|
494
|
-
</PanelElements.Panel>
|
495
|
-
`}
|
496
|
-
</Markup.ReactMarkupCode>
|
497
|
-
</Markup.ReactMarkup>
|
498
|
-
|
499
|
-
<h3 className="docs-page__h3">Props</h3>
|
500
|
-
<p className="docs-page__paragraph">Panel</p>
|
501
|
-
<PropsList>
|
502
|
-
<Prop
|
503
|
-
name="size"
|
504
|
-
isRequired={false}
|
505
|
-
type="xx-small | x-small | small | medium | large | x-large | xx-large | xxx-large | full | auto"
|
506
|
-
default="small"
|
507
|
-
description="Specifies the width of the panel."
|
508
|
-
/>
|
509
|
-
<Prop
|
510
|
-
name="side"
|
511
|
-
isRequired={false}
|
512
|
-
type="left | right"
|
513
|
-
default="left"
|
514
|
-
description="Defines the side of the panel. It will also add the appropriate shadow on the opsite side."
|
515
|
-
/>
|
516
|
-
<Prop
|
517
|
-
name="theme"
|
518
|
-
isRequired={false}
|
519
|
-
type="light | dark"
|
520
|
-
default="/"
|
521
|
-
description="Explicitly define the theme of the panel. All child elements and the content will inherit the selected theme."
|
522
|
-
/>
|
523
|
-
<Prop
|
524
|
-
name="background"
|
525
|
-
isRequired={false}
|
526
|
-
type="transparent | light | grey"
|
527
|
-
default="light"
|
528
|
-
description="Background colour of the panel."
|
529
|
-
/>
|
530
|
-
<Prop
|
531
|
-
name="open"
|
532
|
-
isRequired={false}
|
533
|
-
type="boolean"
|
534
|
-
default="false"
|
535
|
-
description="Toggles the open/closed state of the panel."
|
536
|
-
/>
|
537
|
-
<Prop
|
538
|
-
name="ClassName"
|
539
|
-
isRequired={false}
|
540
|
-
type="string"
|
541
|
-
default="false"
|
542
|
-
description="Add custom classes to modify the default behaviour or specify the placement in complex layouts."
|
543
|
-
/>
|
544
|
-
</PropsList>
|
545
|
-
|
546
|
-
<p className="docs-page__paragraph">PanelHeader</p>
|
547
|
-
<PropsList>
|
548
|
-
<Prop
|
549
|
-
name="title"
|
550
|
-
isRequired={false}
|
551
|
-
type="string"
|
552
|
-
default="/"
|
553
|
-
description="Specifies the title of the panel."
|
554
|
-
/>
|
555
|
-
<Prop
|
556
|
-
name="theme"
|
557
|
-
isRequired={false}
|
558
|
-
type="light | dark"
|
559
|
-
default="/"
|
560
|
-
description="Explicitly define the theme just for the of Panel Header. All child elements and the content inside the Header will inherit the selected theme."
|
561
|
-
/>
|
562
|
-
<Prop
|
563
|
-
name="color"
|
564
|
-
isRequired={false}
|
565
|
-
type="light | darker | blueGrey | blueGreyDarker"
|
566
|
-
default="light"
|
567
|
-
description="Background colour of the Panel Header. blueGrey and blueGreyDarker will also change the text colour to white."
|
568
|
-
/>
|
569
|
-
<Prop
|
570
|
-
name="ClassName"
|
571
|
-
isRequired={false}
|
572
|
-
type="string"
|
573
|
-
default="false"
|
574
|
-
description="Add custom or helper classes to modify the default behaviour if needed. Use only if necessary."
|
575
|
-
/>
|
576
|
-
<Prop
|
577
|
-
name="iconButtons"
|
578
|
-
isRequired={false}
|
579
|
-
type="Aarray"
|
580
|
-
default="false"
|
581
|
-
description="Array of JSX Elements."
|
582
|
-
/>
|
583
|
-
</PropsList>
|
584
|
-
|
585
|
-
<p className="docs-page__paragraph">PanelContent</p>
|
586
|
-
<PropsList>
|
587
|
-
<Prop
|
588
|
-
name="loading"
|
589
|
-
isRequired={false}
|
590
|
-
type="boolean"
|
591
|
-
default="false"
|
592
|
-
description="Loading state."
|
593
|
-
/>
|
594
|
-
<Prop name="empty" isRequired={false} type="boolean" default="false" description="Empty state" />
|
595
|
-
<Prop
|
596
|
-
name="emptyTemplate"
|
597
|
-
isRequired={false}
|
598
|
-
type="ReactNode"
|
599
|
-
default="/"
|
600
|
-
description="Use the EmptyState component to define the image and text for the empty state."
|
601
|
-
/>
|
602
|
-
</PropsList>
|
603
|
-
|
604
|
-
<p className="docs-page__paragraph">PanelContentBlock</p>
|
605
|
-
<PropsList>
|
606
|
-
<Prop
|
607
|
-
name="flex"
|
608
|
-
isRequired={false}
|
609
|
-
type="boolean"
|
610
|
-
default="false"
|
611
|
-
description="Change to flex display mode."
|
612
|
-
/>
|
613
|
-
<Prop
|
614
|
-
name="padding"
|
615
|
-
isRequired={false}
|
616
|
-
type="0 | 1-5 | 3"
|
617
|
-
default="2"
|
618
|
-
description="Choose padding for the content block. Defaults to 2 (16px) without specifiying a value."
|
619
|
-
/>
|
620
|
-
<Prop
|
621
|
-
name="ClassName"
|
622
|
-
isRequired={false}
|
623
|
-
type="string"
|
624
|
-
default="false"
|
625
|
-
description="Add custom or helper classes to modify the default behaviour or layout if needed."
|
626
|
-
/>
|
627
|
-
</PropsList>
|
628
|
-
</section>
|
629
|
-
);
|
630
|
-
}
|
631
|
-
}
|