superdesk-ui-framework 4.0.52 → 4.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/examples.bundle.js +1 -1
- package/package.json +1 -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,283 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
|
3
|
-
import * as Markup from '../../js/react';
|
4
|
-
import {HeadingText, Button, Prop, PropsList} from '../../../app-typescript';
|
5
|
-
import {toasted} from '../../../app-typescript';
|
6
|
-
|
7
|
-
export default class ToastsDoc extends React.Component {
|
8
|
-
// default
|
9
|
-
showDefault = () => {
|
10
|
-
toasted.notify("I'm a tasty default Toast message!", {position: 'top'});
|
11
|
-
};
|
12
|
-
|
13
|
-
// all positions
|
14
|
-
showAll = () => {
|
15
|
-
toasted.notify('Position top', {position: 'top'});
|
16
|
-
toasted.notify('Position top-left', {position: 'top-left'});
|
17
|
-
toasted.notify('Position top-right', {position: 'top-right'});
|
18
|
-
toasted.notify('Position bottom', {position: 'bottom'});
|
19
|
-
toasted.notify('Position bottom-left', {position: 'bottom-left'});
|
20
|
-
toasted.notify('Position bottom-right', {position: 'bottom-right'});
|
21
|
-
};
|
22
|
-
|
23
|
-
// duration
|
24
|
-
showDuration = () => {
|
25
|
-
toasted.notify('Curabitur blandit tempus porttitor.', {duration: 3000});
|
26
|
-
};
|
27
|
-
showNull = () => {
|
28
|
-
toasted.notify('Curabitur blandit tempus porttitor.', {});
|
29
|
-
};
|
30
|
-
|
31
|
-
// coloring and icon
|
32
|
-
showSuccess = () => {
|
33
|
-
toasted.notify("I'm a tasty default Toast message!", {type: 'success', icon: 'ok'});
|
34
|
-
};
|
35
|
-
showAlert = () => {
|
36
|
-
toasted.notify('Danger! Condimentum ridiculus ultricies ornare mollis.', {
|
37
|
-
type: 'alert',
|
38
|
-
icon: 'exclamation-sign',
|
39
|
-
position: 'bottom',
|
40
|
-
});
|
41
|
-
};
|
42
|
-
|
43
|
-
// size
|
44
|
-
showSizeS = () => {
|
45
|
-
toasted.notify('Et harum quidem rerum facilis est et expedita distinctio.', {
|
46
|
-
position: 'top-left',
|
47
|
-
size: 'fixed-s',
|
48
|
-
});
|
49
|
-
};
|
50
|
-
showSizeM = () => {
|
51
|
-
toasted.notify('Et harum quidem rerum facilis est et expedita distinctio.', {
|
52
|
-
position: 'top-left',
|
53
|
-
size: 'fixed-m',
|
54
|
-
});
|
55
|
-
};
|
56
|
-
showSizeL = () => {
|
57
|
-
toasted.notify('Et harum quidem rerum facilis est et expedita distinctio.', {
|
58
|
-
position: 'top-left',
|
59
|
-
size: 'fixed-l',
|
60
|
-
});
|
61
|
-
};
|
62
|
-
showSizeXL = () => {
|
63
|
-
toasted.notify('Et harum quidem rerum facilis est et expedita distinctio.', {
|
64
|
-
position: 'top-left',
|
65
|
-
size: 'fixed-xl',
|
66
|
-
});
|
67
|
-
};
|
68
|
-
|
69
|
-
// custom element
|
70
|
-
showCustomHeading = () => {
|
71
|
-
toasted.notify(
|
72
|
-
<HeadingText
|
73
|
-
heading="I have Toaster heading!"
|
74
|
-
text="Nulla vitae elit libero, a pharetra augue. Nullam id dolor id nibh ultricies vehicula ut id elit. Donec id elit non mi porta gravida at eget metus."
|
75
|
-
/>,
|
76
|
-
{type: 'primary', icon: 'info-sign', position: 'bottom'},
|
77
|
-
);
|
78
|
-
};
|
79
|
-
showAnotherCustomElement = () => {
|
80
|
-
toasted.notify(
|
81
|
-
<React.Fragment>
|
82
|
-
<div className="sd-toast__icon"></div>
|
83
|
-
<figure className="sd-toast__avatar avatar">sd</figure>
|
84
|
-
<div className="sd-toast__message">
|
85
|
-
<div className="sd-toast__message-header">
|
86
|
-
<h4 className="sd-toast__heading">Martin Mustermann</h4>
|
87
|
-
<time title="March 22, 2017 11:08 AM">16:50, 16.03.2019</time>
|
88
|
-
</div>
|
89
|
-
<p>
|
90
|
-
Nulla vitae elit libero, a pharetra augue. Nullam id dolor id nibh ultricies vehicula ut id
|
91
|
-
elit.
|
92
|
-
</p>
|
93
|
-
</div>
|
94
|
-
</React.Fragment>,
|
95
|
-
{position: 'bottom-right', size: 'fixed-l'},
|
96
|
-
);
|
97
|
-
};
|
98
|
-
|
99
|
-
render() {
|
100
|
-
return (
|
101
|
-
<section className="docs-page__container">
|
102
|
-
<h2 className="docs-page__h2">Toasts</h2>
|
103
|
-
<Markup.ReactMarkupCodePreview>
|
104
|
-
{`
|
105
|
-
import {toasted} from 'superdesk-ui-framework/react';
|
106
|
-
|
107
|
-
toasted.notify("I'm a tasty default Toast message!", {});
|
108
|
-
`}
|
109
|
-
</Markup.ReactMarkupCodePreview>
|
110
|
-
|
111
|
-
<h3 className="docs-page__h3">Position</h3>
|
112
|
-
<p className="docs-page__paragraph">
|
113
|
-
Chose one of 6 placement options (<code>'top'</code>, <code>'top-right'</code>,{' '}
|
114
|
-
<code>'top-left'</code>, <code>'bottom'</code>, <code>'bottom-right'</code>,{' '}
|
115
|
-
<code>'bottom-left'</code>). The default value is ’top’ and will be rendered so without explicitly
|
116
|
-
specifying it.
|
117
|
-
</p>
|
118
|
-
<Markup.ReactMarkup>
|
119
|
-
<Markup.ReactMarkupPreview>
|
120
|
-
<div className="docs-page__content-row">
|
121
|
-
<Button text="default" onClick={this.showDefault}></Button>
|
122
|
-
<Button text="all positions" onClick={this.showAll}></Button>
|
123
|
-
</div>
|
124
|
-
</Markup.ReactMarkupPreview>
|
125
|
-
<Markup.ReactMarkupCode>
|
126
|
-
{`
|
127
|
-
toasted.notify("I'm a tasty default Toast message!", {});
|
128
|
-
|
129
|
-
toasted.notify('Position top', { position: 'top' });
|
130
|
-
toasted.notify('Position top-left', { position: 'top-left' });
|
131
|
-
toasted.notify('Position top-right', { position: 'top-right' });
|
132
|
-
toasted.notify('Position bottom', { position: 'bottom' });
|
133
|
-
toasted.notify('Position bottom-left', { position: 'bottom-left' });
|
134
|
-
toasted.notify('Position bottom-right', { position: 'bottom-right' });
|
135
|
-
`}
|
136
|
-
</Markup.ReactMarkupCode>
|
137
|
-
</Markup.ReactMarkup>
|
138
|
-
|
139
|
-
<h3 className="docs-page__h3">Duration</h3>
|
140
|
-
<p className="docs-page__paragraph">
|
141
|
-
It can be set duration time off notification when is set <code>duration</code> option, otherwise the
|
142
|
-
notification will appear indefinitely until manually closed by the user.
|
143
|
-
</p>
|
144
|
-
<Markup.ReactMarkup>
|
145
|
-
<Markup.ReactMarkupPreview>
|
146
|
-
<p className="docs-page__paragraph">// Duration time 3000ms and NULL</p>
|
147
|
-
<div className="docs-page__content-row">
|
148
|
-
<Button text="3000" onClick={this.showDuration}></Button>
|
149
|
-
<Button text="null" onClick={this.showNull}></Button>
|
150
|
-
</div>
|
151
|
-
</Markup.ReactMarkupPreview>
|
152
|
-
<Markup.ReactMarkupCode>
|
153
|
-
{`
|
154
|
-
toasted.notify("Curabitur blandit tempus porttitor.", { duration: 3000 });
|
155
|
-
toasted.notify("Curabitur blandit tempus porttitor.", {});
|
156
|
-
`}
|
157
|
-
</Markup.ReactMarkupCode>
|
158
|
-
</Markup.ReactMarkup>
|
159
|
-
|
160
|
-
<h3 className="docs-page__h3">Coloring and Icon</h3>
|
161
|
-
<p className="docs-page__paragraph">
|
162
|
-
For Superdesk only Default and Primary buttons should be used in most cases. Other semantic colour
|
163
|
-
options are allowed but should be used only in cases where a clear distinction between similarly
|
164
|
-
important actions is needed (e.g. Send To versus Publish action). Also it can be set icons for
|
165
|
-
toast. Just add any of the available classes from the Icon font as a value of the icon prop
|
166
|
-
</p>
|
167
|
-
<Markup.ReactMarkup>
|
168
|
-
<Markup.ReactMarkupPreview>
|
169
|
-
<div className="docs-page__content-row">
|
170
|
-
<Button type="success" text="success" onClick={this.showSuccess}></Button>
|
171
|
-
<Button type="alert" text="alert" onClick={this.showAlert}></Button>
|
172
|
-
</div>
|
173
|
-
</Markup.ReactMarkupPreview>
|
174
|
-
<Markup.ReactMarkupCode>
|
175
|
-
{`
|
176
|
-
toasted.notify("I'm a tasty default Toast message!", { type: 'success', icon: 'ok'});
|
177
|
-
toasted.notify("Danger! Condimentum ridiculus ultricies ornare mollis.", { type: 'alert', icon: 'exclamation-sign', position: 'bottom'});
|
178
|
-
`}
|
179
|
-
</Markup.ReactMarkupCode>
|
180
|
-
</Markup.ReactMarkup>
|
181
|
-
|
182
|
-
<h3 className="docs-page__h3">Size</h3>
|
183
|
-
<p className="docs-page__paragraph">
|
184
|
-
To change the default size set the size value either to <code>'fixed-s'</code>,{' '}
|
185
|
-
<code>'fixed-m'</code>, <code>'fixed-l'</code> or <code>'fixed-xl'</code>.
|
186
|
-
</p>
|
187
|
-
<Markup.ReactMarkup>
|
188
|
-
<Markup.ReactMarkupPreview>
|
189
|
-
<div className="docs-page__content-row">
|
190
|
-
<Button text="fixed-s" onClick={this.showSizeS}></Button>
|
191
|
-
<Button text="fixed-m" onClick={this.showSizeM}></Button>
|
192
|
-
<Button text="fixed-l" onClick={this.showSizeL}></Button>
|
193
|
-
<Button text="fixed-xl" onClick={this.showSizeXL}></Button>
|
194
|
-
</div>
|
195
|
-
</Markup.ReactMarkupPreview>
|
196
|
-
<Markup.ReactMarkupCode>
|
197
|
-
{`
|
198
|
-
toasted.notify("Et harum quidem rerum facilis est et expedita distinctio.", { position: 'top-left', size: 'fixed-s' });
|
199
|
-
toasted.notify("Et harum quidem rerum facilis est et expedita distinctio.", { position: 'top-left', size: 'fixed-m' });
|
200
|
-
toasted.notify("Et harum quidem rerum facilis est et expedita distinctio.", { position: 'top-left', size: 'fixed-l' });
|
201
|
-
toasted.notify("Et harum quidem rerum facilis est et expedita distinctio.", { position: 'top-left', size: 'fixed-xl' });
|
202
|
-
`}
|
203
|
-
</Markup.ReactMarkupCode>
|
204
|
-
</Markup.ReactMarkup>
|
205
|
-
|
206
|
-
<h3 className="docs-page__h3">Custom</h3>
|
207
|
-
<p className="docs-page__paragraph"></p>
|
208
|
-
<Markup.ReactMarkup>
|
209
|
-
<Markup.ReactMarkupPreview>
|
210
|
-
<div className="docs-page__content-row">
|
211
|
-
<Button text="heading" type="primary" onClick={this.showCustomHeading}></Button>
|
212
|
-
<Button text="element" onClick={this.showAnotherCustomElement}></Button>
|
213
|
-
</div>
|
214
|
-
</Markup.ReactMarkupPreview>
|
215
|
-
<Markup.ReactMarkupCode>
|
216
|
-
{`
|
217
|
-
toasted.notify(<HeadingText heading='I have Toaster heading!' text='Nulla vitae elit libero, a pharetra augue. Nullam id dolor id nibh ultricies vehicula ut id elit. Donec id elit non mi porta gravida at eget metus.' />, { type: 'primary', icon: 'info-sign', position: 'bottom' });
|
218
|
-
toasted.notify(
|
219
|
-
<React.Fragment>
|
220
|
-
<div className="sd-toast__icon"></div>
|
221
|
-
<figure className="sd-toast__avatar avatar">sd</figure>
|
222
|
-
<div className="sd-toast__message">
|
223
|
-
<div className="sd-toast__message-header">
|
224
|
-
<h4 className="sd-toast__heading">Martin Mustermann</h4>
|
225
|
-
<time title="March 22, 2017 11:08 AM">16:50, 16.03.2019</time>
|
226
|
-
</div>
|
227
|
-
<p>Nulla vitae elit libero, a pharetra augue. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
|
228
|
-
</div>
|
229
|
-
</React.Fragment>
|
230
|
-
, { position: 'bottom-right', size: 'fixed-l' });
|
231
|
-
`}
|
232
|
-
</Markup.ReactMarkupCode>
|
233
|
-
</Markup.ReactMarkup>
|
234
|
-
|
235
|
-
<h3 className="docs-page__h3">Props</h3>
|
236
|
-
<PropsList>
|
237
|
-
<Prop
|
238
|
-
name="message"
|
239
|
-
isRequired={true}
|
240
|
-
type="string | React.ReactNode"
|
241
|
-
default="normal"
|
242
|
-
description="Message value or custom message element"
|
243
|
-
/>
|
244
|
-
<Prop
|
245
|
-
name="icon"
|
246
|
-
isRequired={false}
|
247
|
-
type="string"
|
248
|
-
default=""
|
249
|
-
description="Icon class name without the icon- part."
|
250
|
-
/>
|
251
|
-
<Prop
|
252
|
-
name="type"
|
253
|
-
isRequired={false}
|
254
|
-
type="default | primary | success | warning | alert | highlight | light"
|
255
|
-
default="default"
|
256
|
-
description="Default + semantic colour variations (e.g. primary, success etc.)."
|
257
|
-
/>
|
258
|
-
<Prop
|
259
|
-
name="position"
|
260
|
-
isRequired={false}
|
261
|
-
type="top | bottom | top-right | top-left | bottom-right | bottom-left"
|
262
|
-
default="top"
|
263
|
-
description="Position of the toast"
|
264
|
-
/>
|
265
|
-
<Prop
|
266
|
-
name="size"
|
267
|
-
isRequired={false}
|
268
|
-
type="fixed-s | fixed-m | fixed-l | fixed-xl"
|
269
|
-
default="normal"
|
270
|
-
description="Specifies a different sizes of toast."
|
271
|
-
/>
|
272
|
-
<Prop
|
273
|
-
name="duration"
|
274
|
-
isRequired={false}
|
275
|
-
type="number | null"
|
276
|
-
default="null"
|
277
|
-
description="Specifies a duration time of toast."
|
278
|
-
/>
|
279
|
-
</PropsList>
|
280
|
-
</section>
|
281
|
-
);
|
282
|
-
}
|
283
|
-
}
|
@@ -1,307 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import * as Markup from '../../js/react';
|
3
|
-
import {
|
4
|
-
PropsList,
|
5
|
-
Prop,
|
6
|
-
Badge,
|
7
|
-
Icon,
|
8
|
-
Label,
|
9
|
-
AvatarGroup,
|
10
|
-
ContentDivider,
|
11
|
-
FormLabel,
|
12
|
-
Text,
|
13
|
-
} from '../../../app-typescript';
|
14
|
-
import {ToggleBox} from './../../../app-typescript/components/ToggleBox/index';
|
15
|
-
import {IAvatarInGroup} from '../../../app-typescript/components/avatar/avatar-group';
|
16
|
-
|
17
|
-
const avatars: Array<IAvatarInGroup> = [
|
18
|
-
{
|
19
|
-
imageUrl: null,
|
20
|
-
initials: 'VS',
|
21
|
-
displayName: 'Vladimir Stefanovic',
|
22
|
-
icon: {name: 'text', color: 'var(--sd-colour-highlight)'},
|
23
|
-
},
|
24
|
-
{
|
25
|
-
imageUrl: null,
|
26
|
-
initials: 'JL',
|
27
|
-
displayName: 'Jeffrey Lebowski',
|
28
|
-
icon: {name: 'photo', color: 'var(--sd-colour-highlight)'},
|
29
|
-
},
|
30
|
-
{
|
31
|
-
imageUrl: null,
|
32
|
-
initials: 'WS',
|
33
|
-
displayName: 'Walter Sobchak',
|
34
|
-
icon: {name: 'video', color: 'var(--sd-colour-highlight)'},
|
35
|
-
},
|
36
|
-
{
|
37
|
-
imageUrl: null,
|
38
|
-
initials: 'ML',
|
39
|
-
displayName: 'Maude Lebowski',
|
40
|
-
icon: {name: 'file', color: 'var(--sd-colour-highlight)'},
|
41
|
-
},
|
42
|
-
];
|
43
|
-
|
44
|
-
const ToggleboxDocs = () => {
|
45
|
-
return (
|
46
|
-
<section className="docs-page__container">
|
47
|
-
<h2 className="docs-page__h2">Togglebox</h2>
|
48
|
-
<Markup.ReactMarkupCodePreview>
|
49
|
-
{`
|
50
|
-
<ToggleBox variant="simple" title="togglebox title">togglebox content</ToggleBox>
|
51
|
-
`}
|
52
|
-
</Markup.ReactMarkupCodePreview>
|
53
|
-
<p className="docs-page__paragraph">Simple ToggleBox:</p>
|
54
|
-
<Markup.ReactMarkup>
|
55
|
-
<Markup.ReactMarkupPreview>
|
56
|
-
<div style={{marginTop: '2em'}}>
|
57
|
-
<ToggleBox variant="simple" title="Simple togglebox">
|
58
|
-
Togglebox content
|
59
|
-
</ToggleBox>
|
60
|
-
<ToggleBox variant="simple" title="With badge" badge={<Badge text="2" type="primary" />}>
|
61
|
-
Togglebox content
|
62
|
-
</ToggleBox>
|
63
|
-
<ToggleBox variant="simple" title="Togglebox - circled chevron" circledChevron={true}>
|
64
|
-
Togglebox content
|
65
|
-
</ToggleBox>
|
66
|
-
<ToggleBox variant="simple" title="Large title" largeTitle={true} circledChevron={true}>
|
67
|
-
<div className="px-4 text-sm line-height-lg">
|
68
|
-
<p className="mb-2">
|
69
|
-
Maecenas sed diam eget risus varius blandit sit amet non magna. Nulla vitae elit
|
70
|
-
libero, a pharetra augue. Donec id elit non mi porta gravida at eget metus. Integer
|
71
|
-
posuere erat a ante venenatis dapibus posuere velit aliquet. Curabitur blandit
|
72
|
-
tempus porttitor.
|
73
|
-
</p>
|
74
|
-
|
75
|
-
<p className="mb-2">
|
76
|
-
Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Nullam quis
|
77
|
-
risus eget urna mollis ornare vel eu leo. Donec id elit non mi porta gravida at eget
|
78
|
-
metus. Nullam id dolor id nibh ultricies vehicula ut id elit. Integer posuere erat a
|
79
|
-
ante venenatis dapibus posuere velit aliquet.
|
80
|
-
</p>
|
81
|
-
|
82
|
-
<p className="">
|
83
|
-
Aenean lacinia bibendum nulla sed consectetur. Morbi leo risus, porta ac consectetur
|
84
|
-
ac, vestibulum at eros. Vestibulum id ligula porta felis euismod semper. Cras justo
|
85
|
-
odio, dapibus ac facilisis in, egestas eget quam.
|
86
|
-
</p>
|
87
|
-
</div>
|
88
|
-
</ToggleBox>
|
89
|
-
</div>
|
90
|
-
</Markup.ReactMarkupPreview>
|
91
|
-
<Markup.ReactMarkupCode>{`
|
92
|
-
<ToggleBox variant='simple' title="Simple togglebox">Togglebox content</ToggleBox>
|
93
|
-
<ToggleBox variant='simple' title="With badge" badge={<Badge text='2' type='primary' />}>Togglebox content</ToggleBox>
|
94
|
-
<ToggleBox variant='simple' title="Togglebox - circled chevron" className="toggle-box--circle">Togglebox content</ToggleBox>
|
95
|
-
`}</Markup.ReactMarkupCode>
|
96
|
-
</Markup.ReactMarkup>
|
97
|
-
|
98
|
-
<p className="docs-page__paragraph">Custom header ToggleBox:</p>
|
99
|
-
<Markup.ReactMarkup>
|
100
|
-
<Markup.ReactMarkupPreview>
|
101
|
-
<div style={{marginTop: '2em'}}>
|
102
|
-
<ToggleBox
|
103
|
-
variant="custom-header"
|
104
|
-
header={
|
105
|
-
<div role="listitem" className="sd-list-item sd-list-item--no-hover">
|
106
|
-
<div className="sd-list-item__border sd-list-item__border--locked"></div>
|
107
|
-
<div className="sd-list-item__column sd-list-item__column--no-border pe-0-5">
|
108
|
-
<Icon type="primary" name="calendar" scale="1.5x" ariaHidden={true} />
|
109
|
-
</div>
|
110
|
-
<div className="sd-list-item__column sd-list-item__column--grow sd-list-item__column--no-border">
|
111
|
-
<div className="sd-list-item__row">
|
112
|
-
<span className="sd-list-item__slugline">Planning Slugline</span>
|
113
|
-
</div>
|
114
|
-
<div className="sd-list-item__row sd-list-item__row--overflow-visible me-1 mb-1-5">
|
115
|
-
<Label text="draft" style="translucent" />
|
116
|
-
<span className="sd-margin-s--auto">
|
117
|
-
<AvatarGroup size="x-small" items={avatars} />
|
118
|
-
</span>
|
119
|
-
</div>
|
120
|
-
</div>
|
121
|
-
</div>
|
122
|
-
}
|
123
|
-
getToggleButtonLabel={(open) => (open ? 'show less' : 'show more')}
|
124
|
-
onToggle={(isOpen) => false}
|
125
|
-
>
|
126
|
-
<div>
|
127
|
-
<FormLabel text="Name" />
|
128
|
-
<Text size="small" weight="medium">
|
129
|
-
Australian Open 2024
|
130
|
-
</Text>
|
131
|
-
</div>
|
132
|
-
<ContentDivider type="dashed" margin="x-small" />
|
133
|
-
<div>
|
134
|
-
<FormLabel text="Current Date" />
|
135
|
-
<Text size="small" weight="medium">
|
136
|
-
05.02.2024 @ 10:00
|
137
|
-
</Text>
|
138
|
-
</div>
|
139
|
-
<ContentDivider type="dashed" margin="x-small" />
|
140
|
-
<div>
|
141
|
-
<FormLabel text="Current Repeat Summary" />
|
142
|
-
<Text size="small" weight="medium">
|
143
|
-
Every 1 day(s) until CET 28 Feb 2024
|
144
|
-
</Text>
|
145
|
-
</div>
|
146
|
-
<ContentDivider type="dashed" margin="x-small" />
|
147
|
-
<div>
|
148
|
-
<FormLabel text="No. of events" />
|
149
|
-
<Text size="small" weight="medium">
|
150
|
-
1
|
151
|
-
</Text>
|
152
|
-
</div>
|
153
|
-
</ToggleBox>
|
154
|
-
</div>
|
155
|
-
</Markup.ReactMarkupPreview>
|
156
|
-
<Markup.ReactMarkupCode>{`
|
157
|
-
<ToggleBox
|
158
|
-
variant='custom-header'
|
159
|
-
header={
|
160
|
-
<div role="listitem" className="sd-list-item sd-list-item--no-hover">
|
161
|
-
<div className="sd-list-item__border sd-list-item__border--locked"></div>
|
162
|
-
<div className="sd-list-item__column sd-list-item__column--no-border pe-0-5">
|
163
|
-
<Icon type='primary' name='calendar' scale='1.5x' ariaHidden={true} />
|
164
|
-
</div>
|
165
|
-
<div className="sd-list-item__column sd-list-item__column--grow sd-list-item__column--no-border">
|
166
|
-
<div className="sd-list-item__row">
|
167
|
-
<span className="sd-list-item__slugline">Planning Slugline</span>
|
168
|
-
</div>
|
169
|
-
<div className="sd-list-item__row sd-list-item__row--overflow-visible me-1 mb-1-5">
|
170
|
-
<Label text='draft' style='translucent'/>
|
171
|
-
<span className="sd-margin-s--auto">
|
172
|
-
<AvatarGroup
|
173
|
-
size="x-small"
|
174
|
-
items={avatars}
|
175
|
-
/>
|
176
|
-
</span>
|
177
|
-
</div>
|
178
|
-
</div>
|
179
|
-
</div>
|
180
|
-
}
|
181
|
-
onToggle={() => false}
|
182
|
-
>
|
183
|
-
<div>
|
184
|
-
<FormLabel text='Name'/>
|
185
|
-
<Text size='small' weight='medium'>Australian Open 2024</Text>
|
186
|
-
</div>
|
187
|
-
<ContentDivider type="dashed" margin='x-small' />
|
188
|
-
<div>
|
189
|
-
<FormLabel text='Current Date'/>
|
190
|
-
<Text size='small' weight='medium'>05.02.2024 @ 10:00</Text>
|
191
|
-
</div>
|
192
|
-
<ContentDivider type="dashed" margin='x-small' />
|
193
|
-
<div>
|
194
|
-
<FormLabel text='Current Repeat Summary'/>
|
195
|
-
<Text size='small' weight='medium'>Every 1 day(s) until CET 28 Feb 2024</Text>
|
196
|
-
</div>
|
197
|
-
<ContentDivider type="dashed" margin='x-small' />
|
198
|
-
<div>
|
199
|
-
<FormLabel text='No. of events'/>
|
200
|
-
<Text size='small' weight='medium'>1</Text>
|
201
|
-
</div>
|
202
|
-
</ToggleBox>
|
203
|
-
`}</Markup.ReactMarkupCode>
|
204
|
-
</Markup.ReactMarkup>
|
205
|
-
|
206
|
-
<h3 className="docs-page__h3">Props</h3>
|
207
|
-
<PropsList>
|
208
|
-
<Prop
|
209
|
-
name="variant"
|
210
|
-
isRequired={true}
|
211
|
-
type="simple | custom header"
|
212
|
-
default="null"
|
213
|
-
description="Type of component."
|
214
|
-
/>
|
215
|
-
</PropsList>
|
216
|
-
|
217
|
-
<h3 className="docs-page__h3">Props: variant: 'simple'</h3>
|
218
|
-
<PropsList>
|
219
|
-
<Prop name="title" isRequired={true} type="string" default="null" description="Togglebox title" />
|
220
|
-
<Prop name="badge" isRequired={false} type="JSX.Element" default="null" description="Badge" />
|
221
|
-
<Prop
|
222
|
-
name="initiallyOpen"
|
223
|
-
isRequired={false}
|
224
|
-
type="boolean"
|
225
|
-
default="false"
|
226
|
-
description="Opens togglebox on initial render"
|
227
|
-
/>
|
228
|
-
<Prop
|
229
|
-
name="className"
|
230
|
-
isRequired={false}
|
231
|
-
type="string"
|
232
|
-
default="null"
|
233
|
-
description="Style class of the component"
|
234
|
-
/>
|
235
|
-
<Prop
|
236
|
-
name="margin"
|
237
|
-
isRequired={false}
|
238
|
-
type="none | small | normal | large"
|
239
|
-
default="normal"
|
240
|
-
description="Defines the bottom margin of the toggle box."
|
241
|
-
/>
|
242
|
-
<Prop
|
243
|
-
name="onOpen"
|
244
|
-
isRequired={false}
|
245
|
-
type="function"
|
246
|
-
default="null"
|
247
|
-
description="Callback on open event"
|
248
|
-
/>
|
249
|
-
<Prop
|
250
|
-
name="onClose"
|
251
|
-
isRequired={false}
|
252
|
-
type="function"
|
253
|
-
default="null"
|
254
|
-
description="Callback on close event"
|
255
|
-
/>
|
256
|
-
<Prop
|
257
|
-
name="circledChevron"
|
258
|
-
isRequired={false}
|
259
|
-
type="boolean"
|
260
|
-
default="false"
|
261
|
-
description="Adds a light, circle-shaped background around the chevron."
|
262
|
-
/>
|
263
|
-
<Prop
|
264
|
-
name="largeTitle"
|
265
|
-
isRequired={false}
|
266
|
-
type="boolean"
|
267
|
-
default="false"
|
268
|
-
description="This option will increase the size of the title. Always use a circled chevron (circledChevron) in combination with this option."
|
269
|
-
/>
|
270
|
-
</PropsList>
|
271
|
-
|
272
|
-
<h3 className="docs-page__h3">Props: variant: 'custom-header'</h3>
|
273
|
-
<PropsList>
|
274
|
-
<Prop
|
275
|
-
name="header"
|
276
|
-
isRequired={true}
|
277
|
-
type="JSX.Component"
|
278
|
-
default="null"
|
279
|
-
description="Always visible part of component."
|
280
|
-
/>
|
281
|
-
<Prop
|
282
|
-
name="children"
|
283
|
-
isRequired={false}
|
284
|
-
type="JSX.Component"
|
285
|
-
default="null"
|
286
|
-
description="Appear on clicking the button."
|
287
|
-
/>
|
288
|
-
<Prop
|
289
|
-
name="initiallyOpen"
|
290
|
-
isRequired={false}
|
291
|
-
type="boolean"
|
292
|
-
default="false"
|
293
|
-
description="Opens togglebox on initial render."
|
294
|
-
/>
|
295
|
-
<Prop
|
296
|
-
name="onClose"
|
297
|
-
isRequired={false}
|
298
|
-
type="function"
|
299
|
-
default="null"
|
300
|
-
description="Callback on toggle."
|
301
|
-
/>
|
302
|
-
</PropsList>
|
303
|
-
</section>
|
304
|
-
);
|
305
|
-
};
|
306
|
-
|
307
|
-
export default ToggleboxDocs;
|
@@ -1,74 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
|
3
|
-
import * as Markup from '../../js/react';
|
4
|
-
|
5
|
-
import {Tooltip, Prop, PropsList, Button} from '../../../app-typescript';
|
6
|
-
|
7
|
-
export default class TooltipDoc extends React.Component {
|
8
|
-
render() {
|
9
|
-
return (
|
10
|
-
<section className="docs-page__container">
|
11
|
-
<h2 className="docs-page__h2">Tooltips</h2>
|
12
|
-
<Markup.ReactMarkupCodePreview>
|
13
|
-
{`
|
14
|
-
<Tooltip text="I'm on top" >
|
15
|
-
<Button text='top' onClick={() => false} />
|
16
|
-
</Tooltip>
|
17
|
-
`}
|
18
|
-
</Markup.ReactMarkupCodePreview>
|
19
|
-
<h3 className="docs-page__h3">Default</h3>
|
20
|
-
<p className="docs-page__paragraph">
|
21
|
-
Chose one of 4 placement options (<code>’left’</code>, <code>’right’</code>, <code>down</code>, and{' '}
|
22
|
-
<code>’top’</code>). The default value is <code>’top’</code> and will be rendered so without
|
23
|
-
explicitly specifying it.
|
24
|
-
</p>
|
25
|
-
<Markup.ReactMarkup>
|
26
|
-
<Markup.ReactMarkupPreview>
|
27
|
-
<div className="docs-page__content-row docs-page__content-row--no-margin">
|
28
|
-
<Tooltip text="I'm on top">
|
29
|
-
<Button text="top" onClick={() => false} />
|
30
|
-
</Tooltip>
|
31
|
-
<Tooltip text="I'm at the bottom" flow="down">
|
32
|
-
<Button text="bottom" onClick={() => false} />
|
33
|
-
</Tooltip>
|
34
|
-
<Tooltip text="I open on the left" flow="left">
|
35
|
-
<Button text="left" onClick={() => false} />
|
36
|
-
</Tooltip>
|
37
|
-
<Tooltip text="Right on!" flow="right">
|
38
|
-
<Button text="right" onClick={() => false} />
|
39
|
-
</Tooltip>
|
40
|
-
</div>
|
41
|
-
</Markup.ReactMarkupPreview>
|
42
|
-
<Markup.ReactMarkupCode>
|
43
|
-
{`
|
44
|
-
<Tooltip text="I'm on top" >
|
45
|
-
<Button text='top' onClick={() => false} />
|
46
|
-
</Tooltip>
|
47
|
-
<Tooltip text="I'm at the bottom" flow='down'>
|
48
|
-
<Button text='bottom' onClick={() => false} />
|
49
|
-
</Tooltip>
|
50
|
-
<Tooltip text="I open on the left" flow='left'>
|
51
|
-
<Button text='left' onClick={() => false} />
|
52
|
-
</Tooltip>
|
53
|
-
<Tooltip text="Right on!" flow='right'>
|
54
|
-
<Button text='right' onClick={() => false} />
|
55
|
-
</Tooltip>
|
56
|
-
`}
|
57
|
-
</Markup.ReactMarkupCode>
|
58
|
-
</Markup.ReactMarkup>
|
59
|
-
|
60
|
-
<h3 className="docs-page__h3">Props</h3>
|
61
|
-
<PropsList>
|
62
|
-
<Prop name="text" isRequired={true} type="string" default="/" description="Tooltip text value." />
|
63
|
-
<Prop
|
64
|
-
name="flow"
|
65
|
-
isRequired={false}
|
66
|
-
type="top | left | right | down"
|
67
|
-
default="top"
|
68
|
-
description="Position of tooltip text."
|
69
|
-
/>
|
70
|
-
</PropsList>
|
71
|
-
</section>
|
72
|
-
);
|
73
|
-
}
|
74
|
-
}
|