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,130 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import {Prop, PropsList} from '../../../app-typescript';
|
3
|
-
import {TagInput} from '../../../app-typescript/components/TagInput';
|
4
|
-
import * as Markup from '../../js/react';
|
5
|
-
|
6
|
-
export default class TagInputDocs extends React.Component<{}, {value: Array<string>}> {
|
7
|
-
constructor(props) {
|
8
|
-
super(props);
|
9
|
-
|
10
|
-
this.state = {
|
11
|
-
value: ['Item 1', 'item 2'],
|
12
|
-
};
|
13
|
-
}
|
14
|
-
|
15
|
-
render() {
|
16
|
-
return (
|
17
|
-
<section className="docs-page__container">
|
18
|
-
<h2 className="docs-page__h2">Tag Input</h2>
|
19
|
-
<Markup.ReactMarkupCodePreview>
|
20
|
-
{`
|
21
|
-
<TagInput
|
22
|
-
value={this.state.value}
|
23
|
-
placeholder="Type Here"
|
24
|
-
onChange={(value) => false}
|
25
|
-
/>
|
26
|
-
`}
|
27
|
-
</Markup.ReactMarkupCodePreview>
|
28
|
-
<Markup.ReactMarkup>
|
29
|
-
<Markup.ReactMarkupPreview>
|
30
|
-
<div className="docs-page__content-row">
|
31
|
-
<TagInput
|
32
|
-
value={this.state.value}
|
33
|
-
placeholder="Type Here"
|
34
|
-
label="Tag-input Label"
|
35
|
-
info="Info Message"
|
36
|
-
onChange={(value) => {
|
37
|
-
this.setState({
|
38
|
-
value: value,
|
39
|
-
});
|
40
|
-
}}
|
41
|
-
/>
|
42
|
-
</div>
|
43
|
-
</Markup.ReactMarkupPreview>
|
44
|
-
<Markup.ReactMarkupCode>
|
45
|
-
{`
|
46
|
-
<TagInput
|
47
|
-
value={this.state.value}
|
48
|
-
placeholder="Type Here"
|
49
|
-
label='Tag-input Label'
|
50
|
-
info='Info Message'
|
51
|
-
onChange={(value) => {
|
52
|
-
this.setState({
|
53
|
-
value: value,
|
54
|
-
});
|
55
|
-
}}
|
56
|
-
/>
|
57
|
-
`}
|
58
|
-
</Markup.ReactMarkupCode>
|
59
|
-
</Markup.ReactMarkup>
|
60
|
-
<h3 className="docs-page__h3">Props</h3>
|
61
|
-
<PropsList>
|
62
|
-
<Prop
|
63
|
-
name="value"
|
64
|
-
isRequired={false}
|
65
|
-
type="Array<T>"
|
66
|
-
default="/"
|
67
|
-
description="Value of the component."
|
68
|
-
/>
|
69
|
-
<Prop
|
70
|
-
name="placeholder"
|
71
|
-
isRequired={false}
|
72
|
-
type="string"
|
73
|
-
default="/"
|
74
|
-
description="Input placeholder."
|
75
|
-
/>
|
76
|
-
<Prop
|
77
|
-
name="onChange"
|
78
|
-
isRequired={true}
|
79
|
-
type="Function"
|
80
|
-
default="/"
|
81
|
-
description="Callback to invoke when value changes."
|
82
|
-
/>
|
83
|
-
<Prop name="label" isRequired={false} type="string" default="/" description="Label of component." />
|
84
|
-
<Prop
|
85
|
-
name="inlineLabel"
|
86
|
-
isRequired={false}
|
87
|
-
type="boolean"
|
88
|
-
default="false"
|
89
|
-
description="Position labels as inline."
|
90
|
-
/>
|
91
|
-
<Prop
|
92
|
-
name="tabindex"
|
93
|
-
isRequired={false}
|
94
|
-
type="number"
|
95
|
-
default="/"
|
96
|
-
description="Indicates an element can be focused on, and determines how that focus is handled."
|
97
|
-
/>
|
98
|
-
<Prop
|
99
|
-
name="info"
|
100
|
-
isRequired={false}
|
101
|
-
type="string"
|
102
|
-
default="/"
|
103
|
-
description="Info message of component."
|
104
|
-
/>
|
105
|
-
<Prop
|
106
|
-
name="error"
|
107
|
-
isRequired={false}
|
108
|
-
type="string"
|
109
|
-
default="/"
|
110
|
-
description="Error message of component."
|
111
|
-
/>
|
112
|
-
<Prop
|
113
|
-
name="required"
|
114
|
-
isRequired={false}
|
115
|
-
type="boolean"
|
116
|
-
default="false"
|
117
|
-
description="Mark field as required."
|
118
|
-
/>
|
119
|
-
<Prop
|
120
|
-
name="disabled"
|
121
|
-
isRequired={false}
|
122
|
-
type="boolean"
|
123
|
-
default="false"
|
124
|
-
description="Mark field as disabled."
|
125
|
-
/>
|
126
|
-
</PropsList>
|
127
|
-
</section>
|
128
|
-
);
|
129
|
-
}
|
130
|
-
}
|
@@ -1,154 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import * as Markup from '../../js/react';
|
3
|
-
import {clone} from 'lodash';
|
4
|
-
import {Tag, Prop, PropsList} from '../../../app-typescript';
|
5
|
-
|
6
|
-
interface ITag {
|
7
|
-
tags: Array<any>;
|
8
|
-
tags2: Array<any>;
|
9
|
-
}
|
10
|
-
export default class TagDoc extends React.Component<{}, ITag> {
|
11
|
-
constructor(props) {
|
12
|
-
super(props);
|
13
|
-
this.state = {
|
14
|
-
tags: [
|
15
|
-
{text: 'This is a tag'},
|
16
|
-
{text: 'This is another tag', shade: 'darker'},
|
17
|
-
{text: 'Inverse tag', shade: 'inverse'},
|
18
|
-
{text: 'Lorem ipsum', shade: 'highlight1'},
|
19
|
-
{text: 'Dolor amet', shade: 'highlight2', shape: 'square'},
|
20
|
-
{text: 'Read only tag', readOnly: true},
|
21
|
-
{text: 'Draggable tag', draggable: true},
|
22
|
-
],
|
23
|
-
tags2: [
|
24
|
-
{text: 'Tag with label', label: 'Label'},
|
25
|
-
{text: 'I am', draggable: true, label: 'Draggable'},
|
26
|
-
],
|
27
|
-
};
|
28
|
-
this.handleClick = this.handleClick.bind(this);
|
29
|
-
this.handleClick2 = this.handleClick2.bind(this);
|
30
|
-
}
|
31
|
-
|
32
|
-
handleClick(i: number) {
|
33
|
-
let newTags = clone(this.state.tags);
|
34
|
-
newTags.splice(i, 1);
|
35
|
-
this.setState({
|
36
|
-
tags: newTags,
|
37
|
-
});
|
38
|
-
}
|
39
|
-
|
40
|
-
handleClick2(i: number) {
|
41
|
-
let newTags2 = clone(this.state.tags2);
|
42
|
-
newTags2.splice(i, 1);
|
43
|
-
this.setState({
|
44
|
-
tags2: newTags2,
|
45
|
-
});
|
46
|
-
}
|
47
|
-
render() {
|
48
|
-
return (
|
49
|
-
<section className="docs-page__container">
|
50
|
-
<h2 className="docs-page__h2">Tag</h2>
|
51
|
-
<Markup.ReactMarkupCodePreview>
|
52
|
-
{`
|
53
|
-
<Tag text='This is a tag' onClick={()=>false}/>
|
54
|
-
`}
|
55
|
-
</Markup.ReactMarkupCodePreview>
|
56
|
-
|
57
|
-
<Markup.ReactMarkup>
|
58
|
-
<Markup.ReactMarkupPreview>
|
59
|
-
<div className="docs-page__content-row d-flex gap-1">
|
60
|
-
{this.state.tags.map((tag, index) => {
|
61
|
-
return (
|
62
|
-
<React.Fragment key={index}>
|
63
|
-
<Tag
|
64
|
-
keyValue={index}
|
65
|
-
text={tag.text}
|
66
|
-
shade={tag.shade}
|
67
|
-
shape={tag.shape}
|
68
|
-
label={tag.label}
|
69
|
-
readOnly={tag.readOnly}
|
70
|
-
draggable={tag.draggable}
|
71
|
-
onClick={() => this.handleClick(index)}
|
72
|
-
/>
|
73
|
-
</React.Fragment>
|
74
|
-
);
|
75
|
-
})}
|
76
|
-
</div>
|
77
|
-
</Markup.ReactMarkupPreview>
|
78
|
-
<Markup.ReactMarkupCode>
|
79
|
-
{`
|
80
|
-
<Tag text='This is a tag' onClick={()=>false}/>
|
81
|
-
<Tag text='This is a another tag' shade='darker' onClick={()=>false}/>
|
82
|
-
<Tag text='Inverse tag' shade='inverse' onClick={()=>false}/>
|
83
|
-
<Tag text='Lorem ipsum' shade='highlight1' onClick={()=>false}/>
|
84
|
-
<Tag text='Dolor amet' shade='highlight2' shape='square' onClick={()=>false}/>
|
85
|
-
<Tag text='Read only tag' readOnly={true} onClick={()=>false}/>
|
86
|
-
|
87
|
-
`}
|
88
|
-
</Markup.ReactMarkupCode>
|
89
|
-
</Markup.ReactMarkup>
|
90
|
-
|
91
|
-
<Markup.ReactMarkup>
|
92
|
-
<Markup.ReactMarkupPreview>
|
93
|
-
<div className="docs-page__content-row d-flex gap-1">
|
94
|
-
{this.state.tags2.map((tag, index) => {
|
95
|
-
return (
|
96
|
-
<React.Fragment key={index}>
|
97
|
-
<Tag
|
98
|
-
keyValue={index}
|
99
|
-
text={tag.text}
|
100
|
-
label={tag.label}
|
101
|
-
draggable={tag.draggable}
|
102
|
-
onClick={() => this.handleClick2(index)}
|
103
|
-
/>
|
104
|
-
</React.Fragment>
|
105
|
-
);
|
106
|
-
})}
|
107
|
-
</div>
|
108
|
-
</Markup.ReactMarkupPreview>
|
109
|
-
<Markup.ReactMarkupCode>
|
110
|
-
{`
|
111
|
-
<Tag text='Tag with label'
|
112
|
-
label='Label'
|
113
|
-
onClick={() => false} />
|
114
|
-
`}
|
115
|
-
</Markup.ReactMarkupCode>
|
116
|
-
</Markup.ReactMarkup>
|
117
|
-
|
118
|
-
<h3 className="docs-page__h3">Props</h3>
|
119
|
-
<PropsList>
|
120
|
-
<Prop name="text" isRequired={true} type="string" default="/" description="Tag text value." />
|
121
|
-
<Prop
|
122
|
-
name="shade"
|
123
|
-
isRequired={false}
|
124
|
-
type="light | darker | highlight1 | highlight2 | inverse"
|
125
|
-
default="light"
|
126
|
-
description="Shade colour of the tag."
|
127
|
-
/>
|
128
|
-
<Prop
|
129
|
-
name="shape"
|
130
|
-
isRequired={false}
|
131
|
-
type="round | square"
|
132
|
-
default="round"
|
133
|
-
description="Shape of tag. Round (default) or square."
|
134
|
-
/>
|
135
|
-
<Prop
|
136
|
-
name="readOnly"
|
137
|
-
isRequired={false}
|
138
|
-
type="boolean"
|
139
|
-
default="false"
|
140
|
-
description="Removes the option to delete the tag if set to true."
|
141
|
-
/>
|
142
|
-
<Prop
|
143
|
-
name="keyValue"
|
144
|
-
isRequired={false}
|
145
|
-
type="number"
|
146
|
-
default="/"
|
147
|
-
description="Value of the tag key."
|
148
|
-
/>
|
149
|
-
<Prop name="label" isRequired={false} type="string" default="/" description="Text of label." />
|
150
|
-
</PropsList>
|
151
|
-
</section>
|
152
|
-
);
|
153
|
-
}
|
154
|
-
}
|
@@ -1,184 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import * as Markup from '../../js/react';
|
3
|
-
import {PropsList, Prop, Text} from '../../../app-typescript';
|
4
|
-
|
5
|
-
interface IProps {
|
6
|
-
children?: React.ReactNode;
|
7
|
-
}
|
8
|
-
|
9
|
-
export default class TextDoc extends React.Component<IProps> {
|
10
|
-
render() {
|
11
|
-
return (
|
12
|
-
<section className="docs-page__container">
|
13
|
-
<h2 className="docs-page__h2">Text</h2>
|
14
|
-
|
15
|
-
<Markup.ReactMarkupCodePreview>
|
16
|
-
{`
|
17
|
-
<Text>Cum sociis natoque penatibus et magnis dis parturient...</Text>
|
18
|
-
`}
|
19
|
-
</Markup.ReactMarkupCodePreview>
|
20
|
-
|
21
|
-
<p className="docs-page__paragraph">Text component.</p>
|
22
|
-
|
23
|
-
<Markup.ReactMarkup>
|
24
|
-
<Markup.ReactMarkupPreview>
|
25
|
-
<p className="docs-page__paragraph">// Sizes and alignments</p>
|
26
|
-
<div className="docs-page__content-row sd-margin-b--5">
|
27
|
-
<Text size="x-small" style="italic">
|
28
|
-
Extra small size (x-small), default alignment (start), italic. Fusce dapibus, tellus ac
|
29
|
-
cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
|
30
|
-
Nullam quis risus eget urna mollis ornare vel eu leo. Maecenas faucibus mollis interdum.
|
31
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
32
|
-
</Text>
|
33
|
-
</div>
|
34
|
-
<div className="docs-page__content-row sd-margin-b--5">
|
35
|
-
<Text align="end">
|
36
|
-
Default size (small), align to end. Praesent commodo cursus magna, vel scelerisque nisl
|
37
|
-
consectetur et. Sed posuere consectetur est at lobortis. Vivamus sagittis lacus vel
|
38
|
-
augue laoreet rutrum faucibus dolor auctor. Morbi leo risus, porta ac consectetur ac,
|
39
|
-
vestibulum at eros. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.
|
40
|
-
Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Praesent
|
41
|
-
commodo cursus magna, vel scelerisque nisl consectetur et. Nulla vitae elit libero, a
|
42
|
-
pharetra augue. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.
|
43
|
-
</Text>
|
44
|
-
</div>
|
45
|
-
<div className="docs-page__content-row sd-margin-b--5">
|
46
|
-
<Text size="medium" align="center">
|
47
|
-
Medium size, center aligned. Praesent commodo cursus magna, vel scelerisque nisl
|
48
|
-
consectetur et. Sed posuere consectetur est at lobortis. Vivamus sagittis lacus vel
|
49
|
-
augue laoreet rutrum faucibus dolor auctor. Morbi leo risus, porta ac consectetur ac,
|
50
|
-
vestibulum at eros.
|
51
|
-
</Text>
|
52
|
-
</div>
|
53
|
-
<div className="docs-page__content-row sd-margin-b--5">
|
54
|
-
<Text size="large" align="justify">
|
55
|
-
Large size, justified. Praesent commodo cursus magna, vel scelerisque nisl consectetur
|
56
|
-
et. Sed posuere consectetur est at lobortis. Vivamus sagittis lacus vel augue laoreet
|
57
|
-
rutrum faucibus dolor auctor. Morbi leo risus, porta ac consectetur ac, vestibulum at
|
58
|
-
eros. Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare
|
59
|
-
sem lacinia quam venenatis vestibulum.
|
60
|
-
</Text>
|
61
|
-
</div>
|
62
|
-
|
63
|
-
<p className="docs-page__paragraph">// Variations</p>
|
64
|
-
<div className="docs-page__content-row sd-margin-b--5">
|
65
|
-
<Text weight="light" size="medium">
|
66
|
-
Large size, justified. Praesent commodo cursus magna, vel scelerisque nisl consectetur
|
67
|
-
et. Sed posuere consectetur est at lobortis. Vivamus sagittis lacus vel augue laoreet
|
68
|
-
rutrum faucibus dolor auctor. Morbi leo risus, porta ac consectetur ac, vestibulum at
|
69
|
-
eros. Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare
|
70
|
-
sem lacinia quam venenatis vestibulum.
|
71
|
-
</Text>
|
72
|
-
</div>
|
73
|
-
<div className="docs-page__content-row sd-margin-b--5">
|
74
|
-
<Text fontStyle="serif" weight="strong" size="medium" color="light" align="center">
|
75
|
-
Large size, justified. Praesent commodo cursus magna, vel scelerisque nisl consectetur
|
76
|
-
et. Sed posuere consectetur est at lobortis. Vivamus sagittis lacus vel augue laoreet
|
77
|
-
rutrum faucibus dolor auctor. Morbi leo risus, porta ac consectetur ac, vestibulum at
|
78
|
-
eros. Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare
|
79
|
-
sem lacinia quam venenatis vestibulum.
|
80
|
-
</Text>
|
81
|
-
</div>
|
82
|
-
<div className="docs-page__content-row sd-margin-b--5">
|
83
|
-
<Text fontStyle="serif" weight="light" size="small" align="start">
|
84
|
-
Large size, justified. Praesent commodo cursus magna, vel scelerisque nisl consectetur
|
85
|
-
et. Sed posuere consectetur est at lobortis. Vivamus sagittis lacus vel augue laoreet
|
86
|
-
rutrum faucibus dolor auctor. Morbi leo risus, porta ac consectetur ac, vestibulum at
|
87
|
-
eros. Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare
|
88
|
-
sem lacinia quam venenatis vestibulum.
|
89
|
-
</Text>
|
90
|
-
</div>
|
91
|
-
</Markup.ReactMarkupPreview>
|
92
|
-
<Markup.ReactMarkupCode>
|
93
|
-
{`
|
94
|
-
// Sizes and alignments
|
95
|
-
|
96
|
-
<Text size='x-small' style='italic'>
|
97
|
-
Extra small size (x-small), default alignment (start), italic. Fusce dapibus, tellus...
|
98
|
-
</Text>
|
99
|
-
|
100
|
-
<Text align='end'>
|
101
|
-
Default size (small), align to end. Praesent commodo cursus magna...
|
102
|
-
</Text>
|
103
|
-
|
104
|
-
<Text size='medium' align='center'>
|
105
|
-
Medium size, center aligned. Praesent commodo cursus magna, vel scelerisque...
|
106
|
-
</Text>
|
107
|
-
|
108
|
-
<Text size='large' align='justify'>
|
109
|
-
Large size, justified. Praesent commodo cursus magna, vel scelerisque nisl...
|
110
|
-
</Text>
|
111
|
-
|
112
|
-
// Variations
|
113
|
-
|
114
|
-
<Text weight='light' size='medium'>
|
115
|
-
Large size, justified. Praesent commodo cursus magna, vel scelerisque nisl consectetur et...
|
116
|
-
</Text>
|
117
|
-
|
118
|
-
<Text fontStyle='serif' weight='medium' size='medium' color='light' align='center'>
|
119
|
-
Large size, justified. Praesent commodo cursus magna, vel scelerisque nisl consectetur et...
|
120
|
-
</Text>
|
121
|
-
|
122
|
-
<Text className='' fontStyle='serif' weight='medium' size='medium' color='light' align='center'>
|
123
|
-
Large size, justified. Praesent commodo cursus magna, vel scelerisque nisl consectetur et...
|
124
|
-
</Text>
|
125
|
-
`}
|
126
|
-
</Markup.ReactMarkupCode>
|
127
|
-
</Markup.ReactMarkup>
|
128
|
-
|
129
|
-
<h3 className="docs-page__h3">Props</h3>
|
130
|
-
<PropsList>
|
131
|
-
<Prop
|
132
|
-
name="weight"
|
133
|
-
isRequired={false}
|
134
|
-
type="light | normal | medium | strong"
|
135
|
-
default="normal"
|
136
|
-
description="Change the default font weight."
|
137
|
-
/>
|
138
|
-
<Prop
|
139
|
-
name="size"
|
140
|
-
isRequired={true}
|
141
|
-
type="x-small | small | medium | large"
|
142
|
-
default="small"
|
143
|
-
description="Choose between four predefined font sizes."
|
144
|
-
/>
|
145
|
-
<Prop
|
146
|
-
name="style"
|
147
|
-
isRequired={false}
|
148
|
-
type="normal | italic"
|
149
|
-
default="normal"
|
150
|
-
description="Change the default text style."
|
151
|
-
/>
|
152
|
-
<Prop
|
153
|
-
name="align"
|
154
|
-
isRequired={false}
|
155
|
-
type="start | end | center | justify"
|
156
|
-
default="start"
|
157
|
-
description="Text-align"
|
158
|
-
/>
|
159
|
-
<Prop
|
160
|
-
name="fontStyle"
|
161
|
-
isRequired={false}
|
162
|
-
type="sans | serif"
|
163
|
-
default="sans"
|
164
|
-
description="Choose between the default – sans (Roboto) – and serif (Merriweather) font styles. "
|
165
|
-
/>
|
166
|
-
<Prop
|
167
|
-
name="color"
|
168
|
-
isRequired={false}
|
169
|
-
type="normal | light | lighter"
|
170
|
-
default="normal"
|
171
|
-
description="Choose a different text colour. Additional two lighter shades are available."
|
172
|
-
/>
|
173
|
-
<Prop
|
174
|
-
name="className"
|
175
|
-
isRequired={false}
|
176
|
-
type="string"
|
177
|
-
default="/"
|
178
|
-
description="Add helper classes or custom CSS styles"
|
179
|
-
/>
|
180
|
-
</PropsList>
|
181
|
-
</section>
|
182
|
-
);
|
183
|
-
}
|
184
|
-
}
|
@@ -1,179 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import * as Markup from '../../js/react';
|
3
|
-
import {PropsList, Prop} from '../../../app-typescript';
|
4
|
-
import {TimePicker} from '../../../app-typescript/components/TimePicker';
|
5
|
-
import {TimePickerV2} from '../../../app-typescript/components/TimePickerV2';
|
6
|
-
|
7
|
-
let minutes = Array.from(Array(60).keys());
|
8
|
-
let changedMinutes = minutes.filter((num) => num % 15 !== 0);
|
9
|
-
|
10
|
-
class TimePickerExample extends React.PureComponent<{}, {time: string | null}> {
|
11
|
-
constructor(props) {
|
12
|
-
super(props);
|
13
|
-
|
14
|
-
this.state = {
|
15
|
-
time: null,
|
16
|
-
};
|
17
|
-
}
|
18
|
-
|
19
|
-
render() {
|
20
|
-
return (
|
21
|
-
<TimePicker
|
22
|
-
value={this.state.time}
|
23
|
-
onChange={(time) => {
|
24
|
-
this.setState({time});
|
25
|
-
}}
|
26
|
-
allowSeconds
|
27
|
-
label="This is Label"
|
28
|
-
info="This is info"
|
29
|
-
/>
|
30
|
-
);
|
31
|
-
}
|
32
|
-
}
|
33
|
-
|
34
|
-
export default class TimePickerDoc extends React.Component<{}, {time: string}> {
|
35
|
-
constructor(props) {
|
36
|
-
super(props);
|
37
|
-
|
38
|
-
this.state = {
|
39
|
-
time: '14:00',
|
40
|
-
};
|
41
|
-
}
|
42
|
-
|
43
|
-
render() {
|
44
|
-
return (
|
45
|
-
<section className="docs-page__container">
|
46
|
-
<h2 className="docs-page__h2">Time picker</h2>
|
47
|
-
<Markup.ReactMarkupCodePreview>{`
|
48
|
-
<TimePicker
|
49
|
-
value={this.state.time}
|
50
|
-
onChange={(time) => {
|
51
|
-
this.setState({time});
|
52
|
-
}}
|
53
|
-
/>
|
54
|
-
`}</Markup.ReactMarkupCodePreview>
|
55
|
-
<Markup.ReactMarkup>
|
56
|
-
<Markup.ReactMarkupPreview>
|
57
|
-
<div className="docs-page__content-row">
|
58
|
-
<TimePickerExample />
|
59
|
-
</div>
|
60
|
-
</Markup.ReactMarkupPreview>
|
61
|
-
<Markup.ReactMarkupCode>{`
|
62
|
-
<TimePicker
|
63
|
-
value={this.state.time}
|
64
|
-
onChange={(time) => {
|
65
|
-
this.setState({time});
|
66
|
-
}}
|
67
|
-
allowSeconds
|
68
|
-
label='This is Label'
|
69
|
-
info='This is info'
|
70
|
-
/>
|
71
|
-
`}</Markup.ReactMarkupCode>
|
72
|
-
</Markup.ReactMarkup>
|
73
|
-
|
74
|
-
<p className="docs-page__paragraph">TimePickerV2:</p>
|
75
|
-
<Markup.ReactMarkup>
|
76
|
-
<Markup.ReactMarkupPreview>
|
77
|
-
<div className="docs-page__content-row">
|
78
|
-
<TimePickerV2
|
79
|
-
value={this.state.time}
|
80
|
-
label="This is Label"
|
81
|
-
disabledOptions={{
|
82
|
-
minutes: changedMinutes,
|
83
|
-
}}
|
84
|
-
onChange={(time) => {
|
85
|
-
this.setState({time});
|
86
|
-
}}
|
87
|
-
/>
|
88
|
-
</div>
|
89
|
-
</Markup.ReactMarkupPreview>
|
90
|
-
<Markup.ReactMarkupCode>{`
|
91
|
-
<TimePickerV2
|
92
|
-
value={this.state.time}
|
93
|
-
label='This is Label'
|
94
|
-
disableOptions={{
|
95
|
-
minutes: changedMinutes,
|
96
|
-
}}
|
97
|
-
onChange={(time) => {
|
98
|
-
this.setState({time})
|
99
|
-
}}
|
100
|
-
/>
|
101
|
-
`}</Markup.ReactMarkupCode>
|
102
|
-
</Markup.ReactMarkup>
|
103
|
-
|
104
|
-
<h3 className="docs-page__h3">Props</h3>
|
105
|
-
<PropsList>
|
106
|
-
<Prop name="value" isRequired={true} type="string" default="/" description="Item value." />
|
107
|
-
<Prop
|
108
|
-
name="allowSeconds"
|
109
|
-
isRequired={true}
|
110
|
-
type="string"
|
111
|
-
default="/"
|
112
|
-
description="Allow seconds."
|
113
|
-
/>
|
114
|
-
<Prop
|
115
|
-
name="onChange"
|
116
|
-
isRequired={true}
|
117
|
-
type="Function"
|
118
|
-
default="/"
|
119
|
-
description="Callback to invoke when value changes."
|
120
|
-
/>
|
121
|
-
<Prop name="label" isRequired={false} type="string" default="/" description="Label of component." />
|
122
|
-
<Prop
|
123
|
-
name="inlineLabel"
|
124
|
-
isRequired={false}
|
125
|
-
type="boolean"
|
126
|
-
default="false"
|
127
|
-
description="Position labels as inline."
|
128
|
-
/>
|
129
|
-
<Prop
|
130
|
-
name="tabindex"
|
131
|
-
isRequired={false}
|
132
|
-
type="number"
|
133
|
-
default="/"
|
134
|
-
description="Indicates an element can be focused on, and determines how that focus is handled."
|
135
|
-
/>
|
136
|
-
<Prop
|
137
|
-
name="info"
|
138
|
-
isRequired={false}
|
139
|
-
type="string"
|
140
|
-
default="/"
|
141
|
-
description="Info message of component."
|
142
|
-
/>
|
143
|
-
<Prop
|
144
|
-
name="error"
|
145
|
-
isRequired={false}
|
146
|
-
type="string"
|
147
|
-
default="/"
|
148
|
-
description="Error message of component."
|
149
|
-
/>
|
150
|
-
<Prop
|
151
|
-
name="required"
|
152
|
-
isRequired={false}
|
153
|
-
type="boolean"
|
154
|
-
default="false"
|
155
|
-
description="Mark field as required."
|
156
|
-
/>
|
157
|
-
<Prop
|
158
|
-
name="disabled"
|
159
|
-
isRequired={false}
|
160
|
-
type="boolean"
|
161
|
-
default="false"
|
162
|
-
description="Mark field as disabled."
|
163
|
-
/>
|
164
|
-
</PropsList>
|
165
|
-
|
166
|
-
<h3 className="docs-page__h3">Events</h3>
|
167
|
-
<PropsList>
|
168
|
-
<Prop
|
169
|
-
name="onChange"
|
170
|
-
isRequired={true}
|
171
|
-
type="function"
|
172
|
-
default="/"
|
173
|
-
description="Returns value of time input."
|
174
|
-
/>
|
175
|
-
</PropsList>
|
176
|
-
</section>
|
177
|
-
);
|
178
|
-
}
|
179
|
-
}
|