superdesk-ui-framework 4.0.47 → 4.0.49
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/.eslintrc.js +0 -1
- package/.eslintrc.json +2 -5
- package/.github/workflows/test.yml +22 -26
- package/.prettierignore +3 -0
- package/.prettierrc.js +9 -0
- package/.travis.yml +4 -4
- package/README.md +14 -1
- package/app/styles/_time.scss +28 -0
- package/app/styles/app.scss +1 -0
- package/app/styles/design-tokens/_design-tokens-general.scss +6 -3
- package/app/styles/form-elements/_forms-general.scss +0 -4
- package/app-typescript/components/Alert.tsx +12 -16
- package/app-typescript/components/Autocomplete.tsx +53 -42
- package/app-typescript/components/Badge.tsx +1 -1
- package/app-typescript/components/Button.tsx +5 -11
- package/app-typescript/components/ButtonGroup.tsx +15 -10
- package/app-typescript/components/Carousel.tsx +25 -26
- package/app-typescript/components/CheckButtonGroup.tsx +6 -10
- package/app-typescript/components/Checkbox.tsx +16 -10
- package/app-typescript/components/CheckboxButton.tsx +22 -13
- package/app-typescript/components/ContentDivider.tsx +6 -7
- package/app-typescript/components/CreateButton.tsx +8 -6
- package/app-typescript/components/DatePicker.tsx +59 -55
- package/app-typescript/components/DateTimePicker.tsx +51 -48
- package/app-typescript/components/Divider.tsx +2 -4
- package/app-typescript/components/DonutChart.tsx +11 -6
- package/app-typescript/components/DragHandle.tsx +10 -6
- package/app-typescript/components/DragHandleDots.tsx +1 -3
- package/app-typescript/components/DropZone.tsx +27 -25
- package/app-typescript/components/Dropdown.tsx +61 -102
- package/app-typescript/components/DropdownFirst.tsx +57 -69
- package/app-typescript/components/DurationInput.tsx +64 -54
- package/app-typescript/components/Editor/EditorButton.tsx +4 -3
- package/app-typescript/components/EmptyState.tsx +10 -14
- package/app-typescript/components/Form/FormGroup.tsx +9 -16
- package/app-typescript/components/Form/FormItem.tsx +1 -5
- package/app-typescript/components/Form/FormLabel.tsx +0 -1
- package/app-typescript/components/Form/FormRow.tsx +12 -19
- package/app-typescript/components/Form/FormRowNew.tsx +9 -16
- package/app-typescript/components/Form/FormText.tsx +1 -5
- package/app-typescript/components/Form/InputBase.tsx +12 -11
- package/app-typescript/components/Form/InputNew.tsx +11 -12
- package/app-typescript/components/Form/InputWrapper.tsx +9 -18
- package/app-typescript/components/Form/index.tsx +9 -9
- package/app-typescript/components/FormLabel.tsx +1 -5
- package/app-typescript/components/GridItem.tsx +38 -69
- package/app-typescript/components/GridList.tsx +2 -6
- package/app-typescript/components/HeadingText.tsx +4 -5
- package/app-typescript/components/IconButton.tsx +4 -10
- package/app-typescript/components/IconLabel.tsx +5 -5
- package/app-typescript/components/IconPicker.tsx +128 -126
- package/app-typescript/components/IllustrationButton.tsx +2 -8
- package/app-typescript/components/Input.tsx +2 -2
- package/app-typescript/components/Label.tsx +11 -7
- package/app-typescript/components/Layouts/AuthorinInnerSideBar.tsx +1 -5
- package/app-typescript/components/Layouts/AuthoringContainer.tsx +4 -6
- package/app-typescript/components/Layouts/AuthoringFrame.tsx +4 -20
- package/app-typescript/components/Layouts/AuthoringFrameContainer.tsx +1 -5
- package/app-typescript/components/Layouts/AuthoringFrameLeftBar.tsx +1 -5
- package/app-typescript/components/Layouts/AuthoringFrameMain.tsx +1 -5
- package/app-typescript/components/Layouts/AuthoringFrameNavBar.tsx +1 -5
- package/app-typescript/components/Layouts/AuthoringFrameOverlay.tsx +1 -5
- package/app-typescript/components/Layouts/AuthoringFrameRightBar.tsx +1 -5
- package/app-typescript/components/Layouts/AuthoringFrameSidePanel.tsx +1 -5
- package/app-typescript/components/Layouts/AuthoringFrameSidePanelOverlay.tsx +1 -3
- package/app-typescript/components/Layouts/AuthoringInnerBody.tsx +3 -6
- package/app-typescript/components/Layouts/AuthoringInnerHeader.tsx +5 -5
- package/app-typescript/components/Layouts/AuthoringMain.tsx +3 -4
- package/app-typescript/components/Layouts/AuthoringMainContainer.tsx +1 -5
- package/app-typescript/components/Layouts/AuthoringMainContent.tsx +1 -5
- package/app-typescript/components/Layouts/AuthoringMainToolBar.tsx +1 -6
- package/app-typescript/components/Layouts/BottomBarAction.tsx +8 -10
- package/app-typescript/components/Layouts/Container.tsx +13 -8
- package/app-typescript/components/Layouts/ContentSplitter.tsx +2 -6
- package/app-typescript/components/Layouts/CoreLayout.tsx +5 -12
- package/app-typescript/components/Layouts/CoreLayoutContainer.tsx +1 -1
- package/app-typescript/components/Layouts/CoreLayoutFooter.tsx +1 -5
- package/app-typescript/components/Layouts/CoreLayoutMain.tsx +4 -4
- package/app-typescript/components/Layouts/CoreLayoutOverlay.tsx +1 -5
- package/app-typescript/components/Layouts/CoreLayoutSlideInMenu.tsx +2 -4
- package/app-typescript/components/Layouts/CoreLayoutTopMenu.tsx +8 -9
- package/app-typescript/components/Layouts/HamburgerButton.tsx +13 -14
- package/app-typescript/components/Layouts/HeaderPanel.tsx +1 -5
- package/app-typescript/components/Layouts/Layout.tsx +10 -16
- package/app-typescript/components/Layouts/LayoutContainer.tsx +2 -7
- package/app-typescript/components/Layouts/LeftPanel.tsx +4 -11
- package/app-typescript/components/Layouts/MainMenu.tsx +18 -32
- package/app-typescript/components/Layouts/MainPanel.tsx +10 -11
- package/app-typescript/components/Layouts/NotificationPanel.tsx +20 -29
- package/app-typescript/components/Layouts/OverlayPanel.tsx +3 -5
- package/app-typescript/components/Layouts/PageLayout.tsx +4 -21
- package/app-typescript/components/Layouts/Panel.tsx +45 -81
- package/app-typescript/components/Layouts/index.tsx +39 -39
- package/app-typescript/components/LeftMenu.tsx +51 -53
- package/app-typescript/components/ListItemLoader.tsx +1 -1
- package/app-typescript/components/Lists/BoxedList.tsx +16 -41
- package/app-typescript/components/Lists/CalendarWeekDayItem.tsx +2 -10
- package/app-typescript/components/Lists/ContentList.tsx +68 -62
- package/app-typescript/components/Lists/SimpleList.tsx +13 -12
- package/app-typescript/components/Lists/TableList.tsx +169 -217
- package/app-typescript/components/Lists/index.tsx +2 -2
- package/app-typescript/components/Loader.tsx +1 -3
- package/app-typescript/components/Menu.tsx +2 -4
- package/app-typescript/components/Modal.tsx +21 -21
- package/app-typescript/components/MultiSelect.tsx +6 -6
- package/app-typescript/components/NavButton.tsx +10 -8
- package/app-typescript/components/Navigation/BottomNav.tsx +21 -17
- package/app-typescript/components/Navigation/QuickNavBar.tsx +40 -37
- package/app-typescript/components/Navigation/SideBarMenu.tsx +21 -17
- package/app-typescript/components/Navigation/SideBarTabs.tsx +13 -19
- package/app-typescript/components/Navigation/index.tsx +3 -3
- package/app-typescript/components/Popover.tsx +19 -21
- package/app-typescript/components/PropsList.tsx +2 -4
- package/app-typescript/components/RadioButtonGroup.tsx +48 -45
- package/app-typescript/components/RadioGroup.tsx +9 -8
- package/app-typescript/components/ResizablePanels.tsx +2 -3
- package/app-typescript/components/ResizeObserverComponent.tsx +1 -5
- package/app-typescript/components/SearchBar.tsx +53 -45
- package/app-typescript/components/Select.tsx +6 -8
- package/app-typescript/components/SelectGrid.tsx +32 -40
- package/app-typescript/components/SelectPreview.tsx +31 -25
- package/app-typescript/components/SelectWithTemplate.tsx +10 -11
- package/app-typescript/components/ShowPopup.tsx +32 -46
- package/app-typescript/components/SidebarMenu.tsx +19 -18
- package/app-typescript/components/Skeleton.tsx +12 -11
- package/app-typescript/components/SlidingToolbar.tsx +1 -6
- package/app-typescript/components/Spinner.tsx +2 -6
- package/app-typescript/components/StrechBar.tsx +1 -5
- package/app-typescript/components/SubNav.tsx +10 -8
- package/app-typescript/components/SvgIconIllustration.tsx +477 -105
- package/app-typescript/components/Switch.tsx +14 -12
- package/app-typescript/components/SwitchGroup.tsx +10 -10
- package/app-typescript/components/TabCustom.tsx +28 -35
- package/app-typescript/components/TabList.tsx +13 -10
- package/app-typescript/components/Tag.tsx +21 -24
- package/app-typescript/components/TagInput.tsx +4 -11
- package/app-typescript/components/Text/Heading.tsx +21 -41
- package/app-typescript/components/Text/Text.tsx +16 -12
- package/app-typescript/components/Text/Time.tsx +14 -10
- package/app-typescript/components/ThemeSelector.tsx +15 -14
- package/app-typescript/components/TimePicker.tsx +60 -6
- package/app-typescript/components/TimePickerPopover.tsx +274 -0
- package/app-typescript/components/TimePickerV2.tsx +20 -20
- package/app-typescript/components/Toast.tsx +11 -7
- package/app-typescript/components/ToastMessage.tsx +3 -14
- package/app-typescript/components/ToastText.tsx +30 -32
- package/app-typescript/components/ToastWrapper.tsx +76 -74
- package/app-typescript/components/ToggleBox/CustomHeaderToggleBox.tsx +30 -45
- package/app-typescript/components/ToggleBox/SimpleToggleBox.tsx +31 -33
- package/app-typescript/components/ToggleBox/index.tsx +3 -7
- package/app-typescript/components/Tooltip.tsx +1 -1
- package/app-typescript/components/TreeMenu.tsx +72 -81
- package/app-typescript/components/TreeSelect/KeyboardNavigation.tsx +1 -5
- package/app-typescript/components/TreeSelect/TreeSelect.tsx +221 -238
- package/app-typescript/components/TreeSelect/TreeSelectItem.tsx +20 -24
- package/app-typescript/components/TreeSelect/TreeSelectPill.tsx +12 -15
- package/app-typescript/components/WithPagination.tsx +34 -39
- package/app-typescript/components/WithPopover.tsx +0 -1
- package/app-typescript/components/WithPortal.tsx +4 -7
- package/app-typescript/components/WithSizeObserver.tsx +2 -6
- package/app-typescript/components/_Positioner.tsx +26 -26
- package/app-typescript/components/avatar/avatar-action-add.tsx +1 -6
- package/app-typescript/components/avatar/avatar-group.tsx +49 -68
- package/app-typescript/components/avatar/avatar-image.tsx +18 -12
- package/app-typescript/components/avatar/avatar-placeholder.tsx +3 -15
- package/app-typescript/components/avatar/avatar-text.tsx +1 -4
- package/app-typescript/components/avatar/avatar-wrapper.tsx +18 -30
- package/app-typescript/components/avatar/avatar.tsx +5 -8
- package/app-typescript/components/with-pagination.spec.tsx +8 -27
- package/app-typescript/helpers.tsx +2 -2
- package/app-typescript/index.ts +111 -100
- package/app-typescript/utils/time.tsx +31 -0
- package/declarations.d.ts +1 -1
- package/dist/components/Alerts.tsx +171 -78
- package/dist/components/Autocomplete.tsx +187 -78
- package/dist/components/Avatar.tsx +52 -112
- package/dist/components/Badges.tsx +111 -67
- package/dist/components/BigIconFont.tsx +29 -17
- package/dist/components/BoxedList.tsx +244 -114
- package/dist/components/ButtonGroups.tsx +213 -147
- package/dist/components/Buttons.tsx +409 -137
- package/dist/components/Card.tsx +6 -7
- package/dist/components/Carousel.tsx +126 -39
- package/dist/components/Checkboxs.tsx +446 -105
- package/dist/components/Container.tsx +95 -48
- package/dist/components/ContentDivider.tsx +110 -63
- package/dist/components/ContentList.tsx +577 -253
- package/dist/components/CreateButton.tsx +71 -21
- package/dist/components/DatePicker.tsx +102 -26
- package/dist/components/DateTimePicker.tsx +49 -11
- package/dist/components/DragHandleDocs.tsx +56 -26
- package/dist/components/DropZone.tsx +67 -29
- package/dist/components/Dropdowns.tsx +220 -131
- package/dist/components/DurationInput.tsx +92 -32
- package/dist/components/EmptyStates.tsx +61 -26
- package/dist/components/GridItem.tsx +190 -91
- package/dist/components/GridList.tsx +37 -17
- package/dist/components/Heading.tsx +81 -35
- package/dist/components/IconButtons.tsx +125 -32
- package/dist/components/IconFont.tsx +24 -12
- package/dist/components/IconLabels.tsx +146 -39
- package/dist/components/IconPicker.tsx +30 -13
- package/dist/components/IllustrationButton.tsx +40 -20
- package/dist/components/Index.tsx +128 -114
- package/dist/components/Inputs.tsx +153 -51
- package/dist/components/Labels.tsx +191 -117
- package/dist/components/LeftNavigations.tsx +327 -100
- package/dist/components/ListItems.tsx +8 -9
- package/dist/components/Loader.tsx +5 -4
- package/dist/components/Menu.tsx +48 -26
- package/dist/components/Modal.tsx +298 -104
- package/dist/components/MultiSelect.tsx +189 -53
- package/dist/components/NavButtons.tsx +86 -30
- package/dist/components/Panel.tsx +367 -120
- package/dist/components/Popover.tsx +37 -17
- package/dist/components/QuickNavigationBar.tsx +222 -86
- package/dist/components/RadioGroup.tsx +375 -137
- package/dist/components/ResizablePanels.tsx +8 -14
- package/dist/components/SelectGrid.tsx +79 -38
- package/dist/components/SelectWithTemplate.tsx +23 -14
- package/dist/components/Selects.tsx +94 -29
- package/dist/components/SimpleList.tsx +91 -41
- package/dist/components/SubNav.tsx +57 -37
- package/dist/components/Switch.tsx +168 -42
- package/dist/components/TableList.tsx +220 -66
- package/dist/components/Tabs.tsx +149 -64
- package/dist/components/TagInputDocs.tsx +73 -17
- package/dist/components/Tags.tsx +104 -73
- package/dist/components/Text.tsx +108 -58
- package/dist/components/TimePicker.tsx +76 -22
- package/dist/components/Toasts.tsx +162 -80
- package/dist/components/Togglebox.tsx +164 -62
- package/dist/components/Tooltips.tsx +27 -15
- package/dist/components/TreeMenu.tsx +95 -59
- package/dist/components/TreeSelect.tsx +297 -162
- package/dist/components/WithPaginationDocs.tsx +15 -16
- package/dist/components/WithSizeObserver.tsx +9 -9
- package/dist/components/tree-select/TreeSelect.tsx +126 -77
- package/dist/components/tree-select/example-1.tsx +8 -12
- package/dist/components/tree-select/example-2.tsx +2 -5
- package/dist/components/utilities/BorderRadiusUtilities.tsx +28 -13
- package/dist/components/utilities/BorderUtilities.tsx +31 -32
- package/dist/components/utilities/DisplayUtilities.tsx +4 -5
- package/dist/components/utilities/FlexAndGridUtilities.tsx +38 -38
- package/dist/components/utilities/ObjectFitUtilities.tsx +4 -6
- package/dist/components/utilities/ObjectPositionUtilities.tsx +3 -4
- package/dist/components/utilities/OpacityUtilities.tsx +4 -7
- package/dist/components/utilities/OverflowUtilities.tsx +4 -5
- package/dist/components/utilities/PositionUtilities.tsx +4 -5
- package/dist/components/utilities/ShadowUtilities.tsx +15 -16
- package/dist/components/utilities/SpacingUtilities.tsx +483 -178
- package/dist/components/utilities/TextUtilities.tsx +109 -60
- package/dist/design-patterns/Index.tsx +8 -11
- package/dist/design-patterns/ThreePaneLayoutPattern.tsx +92 -76
- package/dist/examples.bundle.css +1257 -1155
- package/dist/examples.bundle.js +7904 -7035
- package/dist/playgrounds/dummy-data/items.ts +9 -8
- package/dist/playgrounds/react-playgrounds/CoreLayout.tsx +559 -277
- package/dist/playgrounds/react-playgrounds/EditorTest.tsx +387 -204
- package/dist/playgrounds/react-playgrounds/FirstPlayground.tsx +74 -52
- package/dist/playgrounds/react-playgrounds/Index.tsx +11 -11
- package/dist/playgrounds/react-playgrounds/Multiedit.tsx +294 -218
- package/dist/playgrounds/react-playgrounds/PageLayoutTest.tsx +151 -105
- package/dist/playgrounds/react-playgrounds/PersonalProfile.tsx +481 -261
- package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +261 -149
- package/dist/playgrounds/react-playgrounds/Rundowns.tsx +757 -395
- package/dist/playgrounds/react-playgrounds/SamsPlayground.tsx +173 -91
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +1364 -818
- package/dist/playgrounds/react-playgrounds/UiPlayground.tsx +178 -86
- package/dist/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +6 -7
- package/dist/playgrounds/react-playgrounds/components/AuthoringContent.tsx +42 -42
- package/dist/playgrounds/react-playgrounds/components/ContentSplitter.tsx +5 -8
- package/dist/playgrounds/react-playgrounds/components/GraphicButton.tsx +11 -11
- package/dist/playgrounds/react-playgrounds/components/GraphicButtonsGroup.tsx +2 -6
- package/dist/playgrounds/react-playgrounds/components/HeaderPanel.tsx +1 -5
- package/dist/playgrounds/react-playgrounds/components/Index.tsx +19 -21
- package/dist/playgrounds/react-playgrounds/components/Layout.tsx +11 -17
- package/dist/playgrounds/react-playgrounds/components/LayoutContainer.tsx +1 -1
- package/dist/playgrounds/react-playgrounds/components/MainPanel.tsx +11 -12
- package/dist/playgrounds/react-playgrounds/components/OverlayPanel.tsx +3 -5
- package/dist/playgrounds/react-playgrounds/components/Panel.tsx +6 -7
- package/dist/playgrounds/react-playgrounds/components/PanelContent.tsx +1 -5
- package/dist/playgrounds/react-playgrounds/components/PanelContentBlock.tsx +1 -6
- package/dist/playgrounds/react-playgrounds/components/PanelHeader.tsx +3 -3
- package/dist/playgrounds/react-playgrounds/components/SearchBar.tsx +16 -12
- package/dist/playgrounds/react-playgrounds/components/SidebarMenu.tsx +23 -14
- package/dist/playgrounds/react-playgrounds/components/SubNav.tsx +1 -5
- package/dist/playgrounds/react-playgrounds/components/ThemeDropdown.tsx +14 -11
- package/dist/playgrounds/react-playgrounds/tsconfig.json +1 -1
- package/dist/superdesk-ui.bundle.css +25 -4
- package/dist/superdesk-ui.bundle.js +3072 -2903
- package/dist/vendor.bundle.js +18 -18
- package/examples/css/docs-page.css +1135 -1116
- package/examples/css/reset.css +124 -43
- package/examples/css/vendor.css +125 -125
- package/examples/index.js +138 -139
- package/examples/js/doc.js +41 -40
- package/examples/js/react.js +82 -48
- package/examples/pages/components/Alerts.tsx +171 -78
- package/examples/pages/components/Autocomplete.tsx +187 -78
- package/examples/pages/components/Avatar.tsx +52 -112
- package/examples/pages/components/Badges.tsx +111 -67
- package/examples/pages/components/BigIconFont.tsx +29 -17
- package/examples/pages/components/BoxedList.tsx +244 -114
- package/examples/pages/components/ButtonGroups.tsx +213 -147
- package/examples/pages/components/Buttons.tsx +409 -137
- package/examples/pages/components/Card.tsx +6 -7
- package/examples/pages/components/Carousel.tsx +126 -39
- package/examples/pages/components/Checkboxs.tsx +446 -105
- package/examples/pages/components/Container.tsx +95 -48
- package/examples/pages/components/ContentDivider.tsx +110 -63
- package/examples/pages/components/ContentList.tsx +577 -253
- package/examples/pages/components/CreateButton.tsx +71 -21
- package/examples/pages/components/DatePicker.tsx +102 -26
- package/examples/pages/components/DateTimePicker.tsx +49 -11
- package/examples/pages/components/DragHandleDocs.tsx +56 -26
- package/examples/pages/components/DropZone.tsx +67 -29
- package/examples/pages/components/Dropdowns.tsx +220 -131
- package/examples/pages/components/DurationInput.tsx +92 -32
- package/examples/pages/components/EmptyStates.tsx +61 -26
- package/examples/pages/components/GridItem.tsx +190 -91
- package/examples/pages/components/GridList.tsx +37 -17
- package/examples/pages/components/Heading.tsx +81 -35
- package/examples/pages/components/IconButtons.tsx +125 -32
- package/examples/pages/components/IconFont.tsx +24 -12
- package/examples/pages/components/IconLabels.tsx +146 -39
- package/examples/pages/components/IconPicker.tsx +30 -13
- package/examples/pages/components/IllustrationButton.tsx +40 -20
- package/examples/pages/components/Index.tsx +128 -114
- package/examples/pages/components/Inputs.tsx +153 -51
- package/examples/pages/components/Labels.tsx +191 -117
- package/examples/pages/components/LeftNavigations.tsx +327 -100
- package/examples/pages/components/ListItems.tsx +8 -9
- package/examples/pages/components/Loader.tsx +5 -4
- package/examples/pages/components/Menu.tsx +48 -26
- package/examples/pages/components/Modal.tsx +298 -104
- package/examples/pages/components/MultiSelect.tsx +189 -53
- package/examples/pages/components/NavButtons.tsx +86 -30
- package/examples/pages/components/Panel.tsx +367 -120
- package/examples/pages/components/Popover.tsx +37 -17
- package/examples/pages/components/QuickNavigationBar.tsx +222 -86
- package/examples/pages/components/RadioGroup.tsx +375 -137
- package/examples/pages/components/ResizablePanels.tsx +8 -14
- package/examples/pages/components/SelectGrid.tsx +79 -38
- package/examples/pages/components/SelectWithTemplate.tsx +23 -14
- package/examples/pages/components/Selects.tsx +94 -29
- package/examples/pages/components/SimpleList.tsx +91 -41
- package/examples/pages/components/SubNav.tsx +57 -37
- package/examples/pages/components/Switch.tsx +168 -42
- package/examples/pages/components/TableList.tsx +220 -66
- package/examples/pages/components/Tabs.tsx +149 -64
- package/examples/pages/components/TagInputDocs.tsx +73 -17
- package/examples/pages/components/Tags.tsx +104 -73
- package/examples/pages/components/Text.tsx +108 -58
- package/examples/pages/components/TimePicker.tsx +76 -22
- package/examples/pages/components/Toasts.tsx +162 -80
- package/examples/pages/components/Togglebox.tsx +164 -62
- package/examples/pages/components/Tooltips.tsx +27 -15
- package/examples/pages/components/TreeMenu.tsx +95 -59
- package/examples/pages/components/TreeSelect.tsx +297 -162
- package/examples/pages/components/WithPaginationDocs.tsx +15 -16
- package/examples/pages/components/WithSizeObserver.tsx +9 -9
- package/examples/pages/components/tree-select/TreeSelect.tsx +126 -77
- package/examples/pages/components/tree-select/example-1.tsx +8 -12
- package/examples/pages/components/tree-select/example-2.tsx +2 -5
- package/examples/pages/components/utilities/BorderRadiusUtilities.tsx +28 -13
- package/examples/pages/components/utilities/BorderUtilities.tsx +31 -32
- package/examples/pages/components/utilities/DisplayUtilities.tsx +4 -5
- package/examples/pages/components/utilities/FlexAndGridUtilities.tsx +38 -38
- package/examples/pages/components/utilities/ObjectFitUtilities.tsx +4 -6
- package/examples/pages/components/utilities/ObjectPositionUtilities.tsx +3 -4
- package/examples/pages/components/utilities/OpacityUtilities.tsx +4 -7
- package/examples/pages/components/utilities/OverflowUtilities.tsx +4 -5
- package/examples/pages/components/utilities/PositionUtilities.tsx +4 -5
- package/examples/pages/components/utilities/ShadowUtilities.tsx +15 -16
- package/examples/pages/components/utilities/SpacingUtilities.tsx +483 -178
- package/examples/pages/components/utilities/TextUtilities.tsx +109 -60
- package/examples/pages/design-patterns/Index.tsx +8 -11
- package/examples/pages/design-patterns/ThreePaneLayoutPattern.tsx +92 -76
- package/examples/pages/playgrounds/dummy-data/items.ts +9 -8
- package/examples/pages/playgrounds/react-playgrounds/CoreLayout.tsx +559 -277
- package/examples/pages/playgrounds/react-playgrounds/EditorTest.tsx +387 -204
- package/examples/pages/playgrounds/react-playgrounds/FirstPlayground.tsx +74 -52
- package/examples/pages/playgrounds/react-playgrounds/Index.tsx +11 -11
- package/examples/pages/playgrounds/react-playgrounds/Multiedit.tsx +294 -218
- package/examples/pages/playgrounds/react-playgrounds/PageLayoutTest.tsx +151 -105
- package/examples/pages/playgrounds/react-playgrounds/PersonalProfile.tsx +481 -261
- package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +261 -149
- package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +757 -395
- package/examples/pages/playgrounds/react-playgrounds/SamsPlayground.tsx +173 -91
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +1364 -818
- package/examples/pages/playgrounds/react-playgrounds/UiPlayground.tsx +178 -86
- package/examples/pages/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +6 -7
- package/examples/pages/playgrounds/react-playgrounds/components/AuthoringContent.tsx +42 -42
- package/examples/pages/playgrounds/react-playgrounds/components/ContentSplitter.tsx +5 -8
- package/examples/pages/playgrounds/react-playgrounds/components/GraphicButton.tsx +11 -11
- package/examples/pages/playgrounds/react-playgrounds/components/GraphicButtonsGroup.tsx +2 -6
- package/examples/pages/playgrounds/react-playgrounds/components/HeaderPanel.tsx +1 -5
- package/examples/pages/playgrounds/react-playgrounds/components/Index.tsx +19 -21
- package/examples/pages/playgrounds/react-playgrounds/components/Layout.tsx +11 -17
- package/examples/pages/playgrounds/react-playgrounds/components/LayoutContainer.tsx +1 -1
- package/examples/pages/playgrounds/react-playgrounds/components/MainPanel.tsx +11 -12
- package/examples/pages/playgrounds/react-playgrounds/components/OverlayPanel.tsx +3 -5
- package/examples/pages/playgrounds/react-playgrounds/components/Panel.tsx +6 -7
- package/examples/pages/playgrounds/react-playgrounds/components/PanelContent.tsx +1 -5
- package/examples/pages/playgrounds/react-playgrounds/components/PanelContentBlock.tsx +1 -6
- package/examples/pages/playgrounds/react-playgrounds/components/PanelHeader.tsx +3 -3
- package/examples/pages/playgrounds/react-playgrounds/components/SearchBar.tsx +16 -12
- package/examples/pages/playgrounds/react-playgrounds/components/SidebarMenu.tsx +23 -14
- package/examples/pages/playgrounds/react-playgrounds/components/SubNav.tsx +1 -5
- package/examples/pages/playgrounds/react-playgrounds/components/ThemeDropdown.tsx +14 -11
- package/examples/pages/playgrounds/react-playgrounds/tsconfig.json +1 -1
- package/globals.d.ts +1 -1
- package/mocha-setup.ts +3 -3
- package/package.json +119 -117
- package/react/components/Alert.js +6 -9
- package/react/components/Autocomplete.js +15 -23
- package/react/components/Badge.js +1 -1
- package/react/components/Button.js +4 -6
- package/react/components/ButtonGroup.js +1 -1
- package/react/components/Carousel.js +3 -3
- package/react/components/CheckButtonGroup.js +3 -6
- package/react/components/CheckboxButton.js +2 -4
- package/react/components/ContentDivider.js +1 -1
- package/react/components/DatePicker.js +29 -26
- package/react/components/DateTimePicker.d.ts +8 -4
- package/react/components/DateTimePicker.js +6 -8
- package/react/components/Divider.js +1 -1
- package/react/components/DonutChart.js +1 -1
- package/react/components/DragHandle.js +1 -1
- package/react/components/DragHandleDots.js +1 -1
- package/react/components/DropZone.js +6 -8
- package/react/components/Dropdown.d.ts +1 -1
- package/react/components/Dropdown.js +34 -38
- package/react/components/DropdownFirst.d.ts +11 -11
- package/react/components/DropdownFirst.js +20 -24
- package/react/components/DurationInput.js +37 -34
- package/react/components/EmptyState.js +5 -5
- package/react/components/Form/FormGroup.js +1 -1
- package/react/components/Form/FormItem.js +1 -1
- package/react/components/Form/FormRow.js +1 -1
- package/react/components/Form/FormRowNew.js +3 -3
- package/react/components/Form/FormText.js +1 -1
- package/react/components/Form/InputNew.js +3 -3
- package/react/components/Form/InputWrapper.js +7 -10
- package/react/components/GridItem.d.ts +1 -1
- package/react/components/GridItem.js +16 -16
- package/react/components/GridList.js +1 -1
- package/react/components/HeadingText.js +4 -5
- package/react/components/IconLabel.js +3 -5
- package/react/components/IconPicker.d.ts +1 -1
- package/react/components/IconPicker.js +111 -104
- package/react/components/IllustrationButton.js +1 -1
- package/react/components/Input.js +1 -1
- package/react/components/Layouts/AuthorinInnerSideBar.js +1 -1
- package/react/components/Layouts/AuthoringContainer.js +1 -1
- package/react/components/Layouts/AuthoringFrame.js +4 -4
- package/react/components/Layouts/AuthoringFrameContainer.js +1 -1
- package/react/components/Layouts/AuthoringFrameLeftBar.js +1 -1
- package/react/components/Layouts/AuthoringFrameMain.js +1 -1
- package/react/components/Layouts/AuthoringFrameNavBar.js +1 -1
- package/react/components/Layouts/AuthoringFrameOverlay.js +1 -1
- package/react/components/Layouts/AuthoringFrameRightBar.js +1 -1
- package/react/components/Layouts/AuthoringFrameSidePanel.js +1 -1
- package/react/components/Layouts/AuthoringFrameSidePanelOverlay.js +1 -1
- package/react/components/Layouts/AuthoringMainContainer.js +1 -1
- package/react/components/Layouts/AuthoringMainContent.js +1 -1
- package/react/components/Layouts/AuthoringMainToolBar.js +1 -1
- package/react/components/Layouts/BottomBarAction.js +2 -2
- package/react/components/Layouts/ContentSplitter.js +1 -1
- package/react/components/Layouts/CoreLayout.js +2 -2
- package/react/components/Layouts/CoreLayoutContainer.js +1 -1
- package/react/components/Layouts/CoreLayoutFooter.js +1 -1
- package/react/components/Layouts/CoreLayoutOverlay.js +1 -1
- package/react/components/Layouts/CoreLayoutSlideInMenu.js +2 -2
- package/react/components/Layouts/CoreLayoutTopMenu.js +3 -3
- package/react/components/Layouts/HamburgerButton.js +1 -1
- package/react/components/Layouts/HeaderPanel.js +1 -1
- package/react/components/Layouts/Layout.d.ts +1 -1
- package/react/components/Layouts/Layout.js +9 -9
- package/react/components/Layouts/LayoutContainer.js +1 -1
- package/react/components/Layouts/LeftPanel.js +1 -1
- package/react/components/Layouts/MainMenu.js +8 -10
- package/react/components/Layouts/MainPanel.js +1 -1
- package/react/components/Layouts/NotificationPanel.d.ts +1 -1
- package/react/components/Layouts/NotificationPanel.js +7 -7
- package/react/components/Layouts/OverlayPanel.js +3 -3
- package/react/components/Layouts/PageLayout.js +2 -2
- package/react/components/Layouts/Panel.d.ts +1 -1
- package/react/components/Layouts/Panel.js +12 -18
- package/react/components/LeftMenu.d.ts +3 -3
- package/react/components/LeftMenu.js +11 -13
- package/react/components/Lists/BoxedList.js +6 -6
- package/react/components/Lists/CalendarWeekDayItem.js +2 -2
- package/react/components/Lists/ContentList.js +24 -26
- package/react/components/Lists/TableList.d.ts +1 -1
- package/react/components/Lists/TableList.js +59 -79
- package/react/components/Loader.js +1 -1
- package/react/components/Menu.js +1 -1
- package/react/components/Modal.d.ts +1 -1
- package/react/components/MultiSelect.d.ts +1 -1
- package/react/components/MultiSelect.js +2 -2
- package/react/components/NavButton.js +2 -4
- package/react/components/Navigation/BottomNav.js +9 -8
- package/react/components/Navigation/QuickNavBar.js +17 -20
- package/react/components/Navigation/SideBarMenu.js +11 -9
- package/react/components/Navigation/SideBarTabs.js +9 -8
- package/react/components/Popover.js +1 -1
- package/react/components/RadioButtonGroup.js +15 -23
- package/react/components/ResizablePanels.js +1 -3
- package/react/components/ResizeObserverComponent.js +1 -3
- package/react/components/SearchBar.js +14 -16
- package/react/components/Select.js +3 -3
- package/react/components/SelectGrid.js +15 -20
- package/react/components/SelectPreview.js +13 -13
- package/react/components/SelectWithTemplate.js +3 -5
- package/react/components/ShowPopup.d.ts +1 -0
- package/react/components/ShowPopup.js +7 -10
- package/react/components/Skeleton.js +1 -1
- package/react/components/SlidingToolbar.js +1 -1
- package/react/components/Spinner.js +1 -1
- package/react/components/StrechBar.js +1 -1
- package/react/components/SubNav.js +1 -1
- package/react/components/Switch.js +4 -6
- package/react/components/SwitchGroup.js +1 -1
- package/react/components/TabCustom.js +6 -4
- package/react/components/TabList.js +4 -8
- package/react/components/Tag.js +13 -17
- package/react/components/TagInput.js +1 -1
- package/react/components/Text/Heading.js +6 -6
- package/react/components/ThemeSelector.js +1 -1
- package/react/components/TimePicker.d.ts +9 -2
- package/react/components/TimePicker.js +29 -4
- package/react/components/TimePickerPopover.d.ts +19 -0
- package/react/components/TimePickerPopover.js +225 -0
- package/react/components/TimePickerV2.js +17 -17
- package/react/components/Toast.js +3 -3
- package/react/components/ToastMessage.d.ts +1 -1
- package/react/components/ToastMessage.js +1 -1
- package/react/components/ToastText.js +5 -8
- package/react/components/ToastWrapper.js +3 -5
- package/react/components/ToggleBox/CustomHeaderToggleBox.d.ts +1 -1
- package/react/components/ToggleBox/CustomHeaderToggleBox.js +7 -7
- package/react/components/ToggleBox/SimpleToggleBox.d.ts +1 -1
- package/react/components/ToggleBox/SimpleToggleBox.js +5 -5
- package/react/components/ToggleBox/index.js +3 -3
- package/react/components/TreeMenu.d.ts +1 -1
- package/react/components/TreeMenu.js +38 -44
- package/react/components/TreeSelect/TreeSelect.d.ts +2 -2
- package/react/components/TreeSelect/TreeSelect.js +105 -127
- package/react/components/TreeSelect/TreeSelectItem.d.ts +1 -1
- package/react/components/TreeSelect/TreeSelectItem.js +10 -13
- package/react/components/TreeSelect/TreeSelectPill.d.ts +1 -1
- package/react/components/TreeSelect/TreeSelectPill.js +8 -9
- package/react/components/WithPagination.js +18 -21
- package/react/components/WithPortal.d.ts +1 -1
- package/react/components/WithPortal.js +2 -1
- package/react/components/WithSizeObserver.js +1 -3
- package/react/components/_Positioner.js +11 -11
- package/react/components/avatar/avatar-action-add.js +1 -1
- package/react/components/avatar/avatar-group.js +11 -14
- package/react/components/avatar/avatar-image.js +6 -4
- package/react/components/avatar/avatar-placeholder.js +1 -1
- package/react/components/avatar/avatar-wrapper.js +2 -4
- package/react/components/avatar/avatar.js +4 -3
- package/react/helpers.js +2 -2
- package/react/index.d.ts +1 -1
- package/react/utils/time.d.ts +5 -0
- package/react/utils/time.js +36 -0
- package/tasks/webpack.dev.js +1 -1
- package/tasks/webpack.js +5 -5
- package/tasks/webpack.prod.js +1 -5
- package/tsconfig.json +2 -5
- package/tslint.json +6 -12
- package/webpack.config.js +2 -5
@@ -1,18 +1,35 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import * as Components from './components/Index';
|
3
|
-
import {
|
4
|
-
Button,
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
import {
|
4
|
+
Button,
|
5
|
+
ButtonGroup,
|
6
|
+
NavButton,
|
7
|
+
SubNav,
|
8
|
+
SubNavDivider,
|
9
|
+
Checkbox,
|
10
|
+
CheckGroup,
|
11
|
+
CheckButtonGroup,
|
12
|
+
CheckboxButton,
|
13
|
+
RadioButtonGroup,
|
14
|
+
Switch,
|
15
|
+
SwitchGroup,
|
16
|
+
Input,
|
17
|
+
Select,
|
18
|
+
Option,
|
8
19
|
Label,
|
9
20
|
Tooltip,
|
10
|
-
Tabs,
|
11
|
-
|
21
|
+
Tabs,
|
22
|
+
TabLabel,
|
23
|
+
TabContent,
|
24
|
+
TabPanel,
|
25
|
+
AvatarWrapper,
|
26
|
+
AvatarContentImage,
|
12
27
|
LeftMenu,
|
13
|
-
SimpleList,
|
28
|
+
SimpleList,
|
29
|
+
SimpleListItem,
|
14
30
|
Container,
|
15
|
-
Heading,
|
31
|
+
Heading,
|
32
|
+
Text,
|
16
33
|
Divider,
|
17
34
|
ThemeSelector,
|
18
35
|
Tag,
|
@@ -79,11 +96,11 @@ export class PersonalProfile extends React.Component<IProps, IState> {
|
|
79
96
|
radioValue2: 'grid',
|
80
97
|
radioValue3: 'list',
|
81
98
|
indexValue: 0,
|
82
|
-
}
|
99
|
+
};
|
83
100
|
this.handleFilter = this.handleFilter.bind(this);
|
84
101
|
this.handlePreview = this.handlePreview.bind(this);
|
85
102
|
this.handleTheme = this.handleTheme.bind(this);
|
86
|
-
this.handleClick=this.handleClick.bind(this);
|
103
|
+
this.handleClick = this.handleClick.bind(this);
|
87
104
|
}
|
88
105
|
|
89
106
|
handleFilter() {
|
@@ -100,8 +117,8 @@ export class PersonalProfile extends React.Component<IProps, IState> {
|
|
100
117
|
|
101
118
|
handleTheme(newTheme: string) {
|
102
119
|
this.setState({
|
103
|
-
theme: newTheme
|
104
|
-
})
|
120
|
+
theme: newTheme,
|
121
|
+
});
|
105
122
|
}
|
106
123
|
|
107
124
|
changeStatus(item: any, status: string) {
|
@@ -115,146 +132,198 @@ export class PersonalProfile extends React.Component<IProps, IState> {
|
|
115
132
|
handleClick = (number: number) => {
|
116
133
|
this.setState({
|
117
134
|
indexValue: number,
|
118
|
-
})
|
119
|
-
}
|
135
|
+
});
|
136
|
+
};
|
120
137
|
|
121
138
|
render() {
|
122
139
|
return (
|
123
|
-
<Components.Layout header=
|
140
|
+
<Components.Layout header="My Profile" theme={this.state.theme}>
|
124
141
|
<Components.LayoutContainer>
|
125
142
|
<Components.HeaderPanel>
|
126
143
|
<SubNav>
|
127
|
-
<ButtonGroup align=
|
128
|
-
<Tooltip text=
|
129
|
-
<NavButton icon=
|
144
|
+
<ButtonGroup align="start" spaces="no-space">
|
145
|
+
<Tooltip text="User list" flow="right">
|
146
|
+
<NavButton icon="arrow-left" onClick={() => false} />
|
130
147
|
</Tooltip>
|
131
148
|
</ButtonGroup>
|
132
|
-
<SubNavDivider width=
|
149
|
+
<SubNavDivider width="medium" />
|
133
150
|
<AvatarWrapper size="medium">
|
134
151
|
<AvatarContentImage imageUrl="/avatar.jpg" tooltipText="John Doe" />
|
135
152
|
</AvatarWrapper>
|
136
|
-
<h2 className=
|
153
|
+
<h2 className="subnav__page-title">Jeffrey Lebowski</h2>
|
137
154
|
</SubNav>
|
138
155
|
<SubNav>
|
139
|
-
<SubNavDivider width=
|
156
|
+
<SubNavDivider width="small" />
|
140
157
|
<Tabs onClick={this.handleClick}>
|
141
|
-
<TabLabel label=
|
142
|
-
<TabLabel label=
|
143
|
-
<TabLabel label=
|
158
|
+
<TabLabel label="Overview" indexValue={0} />
|
159
|
+
<TabLabel label="Personal preferences" indexValue={1} />
|
160
|
+
<TabLabel label="Privileges" indexValue={2} />
|
144
161
|
</Tabs>
|
145
162
|
</SubNav>
|
146
163
|
</Components.HeaderPanel>
|
147
164
|
{/* TOOLBAR HEADER */}
|
148
|
-
<TabContent
|
165
|
+
<TabContent activePanel={this.state.indexValue}>
|
149
166
|
<TabPanel indexValue={0}>
|
150
167
|
<Layout.LeftPanel open={true}>
|
151
|
-
<Layout.Panel background=
|
168
|
+
<Layout.Panel background="transparent" size="xx-small">
|
152
169
|
<Layout.PanelContent>
|
153
170
|
<LeftMenu
|
154
|
-
ariaLabel={'Left navigation'}
|
155
|
-
scrollSpy=
|
156
|
-
activeItemId=
|
157
|
-
style=
|
158
|
-
groups={[
|
159
|
-
{
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
171
|
+
ariaLabel={'Left navigation'}
|
172
|
+
scrollSpy="#scrollContainer"
|
173
|
+
activeItemId="1"
|
174
|
+
style="blanc"
|
175
|
+
groups={[
|
176
|
+
{
|
177
|
+
label: '',
|
178
|
+
items: [
|
179
|
+
{id: '1', label: 'General info', ref: 'profile'},
|
180
|
+
{id: '2', label: 'Password', ref: 'password'},
|
181
|
+
{id: '3', label: 'Default desk', ref: 'defaultDesk'},
|
182
|
+
{id: '4', label: 'Language', ref: 'language'},
|
183
|
+
{id: '5', label: 'Author info', ref: 'autorInfo'},
|
184
|
+
],
|
185
|
+
},
|
186
|
+
]}
|
187
|
+
onSelect={() => {
|
188
|
+
console.log('onSelect triggered');
|
189
|
+
}}
|
166
190
|
/>
|
167
191
|
</Layout.PanelContent>
|
168
192
|
</Layout.Panel>
|
169
193
|
</Layout.LeftPanel>
|
170
194
|
{/* FILTER PANEL*/}
|
171
|
-
<Layout.MainPanel className=
|
172
|
-
<SimpleList density=
|
173
|
-
<SimpleListItem stacked={true} id=
|
174
|
-
<Container
|
175
|
-
|
176
|
-
|
177
|
-
|
195
|
+
<Layout.MainPanel className="sd-padding--3" id="scrollContainer">
|
196
|
+
<SimpleList density="comfortable" width="large">
|
197
|
+
<SimpleListItem stacked={true} id="profile">
|
198
|
+
<Container
|
199
|
+
id="profile"
|
200
|
+
direction="column"
|
201
|
+
className="sd-radius--medium sd-panel-bg--gradient-1 sd-shadow--z2 sd-padding--3 sd-state--focus"
|
202
|
+
>
|
203
|
+
<Container className="sd-flex-justify-space-between sd-margin-b--2">
|
204
|
+
<Label text="Active" type="success" style="translucent" />
|
205
|
+
<Switch
|
206
|
+
toolTipFlow="left"
|
207
|
+
label={{content: 'Toggle active', hidden: true}}
|
208
|
+
value={this.state.value1}
|
209
|
+
onChange={(value) => this.setState(() => ({value1: value}))}
|
210
|
+
/>
|
178
211
|
</Container>
|
179
|
-
<Container
|
212
|
+
<Container
|
213
|
+
direction="column"
|
214
|
+
className="sd-flex-align-items-center sd-margin-x--auto"
|
215
|
+
>
|
180
216
|
<AvatarWrapper size="xx-large">
|
181
217
|
<AvatarContentImage imageUrl="/avatar.jpg" tooltipText="John Doe" />
|
182
218
|
</AvatarWrapper>
|
183
|
-
<Heading
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
219
|
+
<Heading
|
220
|
+
className="sd-margin-b--0-5 sd-margin-t--2"
|
221
|
+
align="center"
|
222
|
+
type="h2"
|
223
|
+
>
|
224
|
+
Jeffrey Lebowski
|
225
|
+
</Heading>
|
226
|
+
<Text
|
227
|
+
className="sd-margin-b--1 sd-font-size--medium"
|
228
|
+
align="center"
|
229
|
+
color="light"
|
230
|
+
>
|
231
|
+
the_dude
|
232
|
+
</Text>
|
233
|
+
<Text
|
234
|
+
className="sd-margin-b--1-5 sd-font-size--x-small"
|
235
|
+
align="center"
|
236
|
+
color="lighter"
|
237
|
+
>
|
238
|
+
Member since 24.04.2011
|
239
|
+
</Text>
|
240
|
+
<ButtonGroup spaces="compact" align="center">
|
241
|
+
<Tag
|
242
|
+
text="Editor"
|
243
|
+
shade="light"
|
244
|
+
readOnly={true}
|
245
|
+
onClick={() => false}
|
246
|
+
/>
|
247
|
+
<Tag
|
248
|
+
text="Author"
|
249
|
+
shade="light"
|
250
|
+
readOnly={true}
|
251
|
+
onClick={() => false}
|
252
|
+
/>
|
253
|
+
<Tag
|
254
|
+
text="Administrator"
|
255
|
+
shade="highlight1"
|
256
|
+
readOnly={true}
|
257
|
+
onClick={() => false}
|
258
|
+
/>
|
190
259
|
</ButtonGroup>
|
191
260
|
</Container>
|
192
|
-
<Container direction=
|
193
|
-
<Form.FormGroup marginBottom=
|
261
|
+
<Container direction="column" className="sd-margin-t--4">
|
262
|
+
<Form.FormGroup marginBottom="3">
|
194
263
|
<Form.FormItem>
|
195
264
|
<Input
|
196
|
-
label=
|
197
|
-
type=
|
198
|
-
value=
|
265
|
+
label="First Name"
|
266
|
+
type="text"
|
267
|
+
value="Jeffrey"
|
199
268
|
required={false}
|
200
269
|
disabled={false}
|
201
270
|
onChange={() => false}
|
202
271
|
/>
|
203
272
|
</Form.FormItem>
|
204
273
|
</Form.FormGroup>
|
205
|
-
<Form.FormGroup marginBottom=
|
274
|
+
<Form.FormGroup marginBottom="3">
|
206
275
|
<Form.FormItem>
|
207
276
|
<Input
|
208
|
-
label=
|
209
|
-
type=
|
210
|
-
value=
|
277
|
+
label="Last Name"
|
278
|
+
type="text"
|
279
|
+
value="Lebowski"
|
211
280
|
required={false}
|
212
281
|
disabled={false}
|
213
282
|
onChange={() => false}
|
214
283
|
/>
|
215
284
|
</Form.FormItem>
|
216
285
|
</Form.FormGroup>
|
217
|
-
<Form.FormGroup marginBottom=
|
286
|
+
<Form.FormGroup marginBottom="4">
|
218
287
|
<Form.FormItem>
|
219
288
|
<Input
|
220
|
-
label=
|
221
|
-
type=
|
222
|
-
value=
|
289
|
+
label="Username"
|
290
|
+
type="text"
|
291
|
+
value="the_dude"
|
223
292
|
required={false}
|
224
293
|
disabled={false}
|
225
294
|
onChange={() => false}
|
226
295
|
/>
|
227
296
|
</Form.FormItem>
|
228
297
|
</Form.FormGroup>
|
229
|
-
<Form.FormGroup marginBottom=
|
298
|
+
<Form.FormGroup marginBottom="3">
|
230
299
|
<Form.FormItem>
|
231
300
|
<Input
|
232
|
-
label=
|
233
|
-
type=
|
234
|
-
value=
|
301
|
+
label="Email"
|
302
|
+
type="text"
|
303
|
+
value="jeffrey.lebowski@bloodsimple.org"
|
235
304
|
required={false}
|
236
305
|
disabled={false}
|
237
306
|
onChange={() => false}
|
238
307
|
/>
|
239
308
|
</Form.FormItem>
|
240
309
|
</Form.FormGroup>
|
241
|
-
<Form.FormGroup marginBottom=
|
310
|
+
<Form.FormGroup marginBottom="3">
|
242
311
|
<Form.FormItem>
|
243
312
|
<Input
|
244
|
-
label=
|
245
|
-
type=
|
246
|
-
value=
|
313
|
+
label="Phone number"
|
314
|
+
type="text"
|
315
|
+
value="+381 64 155 22 55"
|
247
316
|
required={false}
|
248
317
|
disabled={false}
|
249
318
|
onChange={() => false}
|
250
319
|
/>
|
251
320
|
</Form.FormItem>
|
252
321
|
</Form.FormGroup>
|
253
|
-
<Form.FormGroup marginBottom=
|
322
|
+
<Form.FormGroup marginBottom="4">
|
254
323
|
<Form.FormItem>
|
255
324
|
<Select
|
256
|
-
label=
|
257
|
-
value=
|
325
|
+
label="Role"
|
326
|
+
value="Select user role"
|
258
327
|
required={false}
|
259
328
|
disabled={false}
|
260
329
|
onChange={() => false}
|
@@ -264,154 +333,170 @@ export class PersonalProfile extends React.Component<IProps, IState> {
|
|
264
333
|
<Option>Photographer</Option>
|
265
334
|
<Option>Freelancer</Option>
|
266
335
|
<Option>Journalist Assistant</Option>
|
267
|
-
</Select>
|
336
|
+
</Select>
|
268
337
|
</Form.FormItem>
|
269
338
|
</Form.FormGroup>
|
270
|
-
<CheckGroup orientation=
|
271
|
-
<Checkbox
|
272
|
-
|
273
|
-
|
274
|
-
onChange={(value) => this.setState(() => ({
|
339
|
+
<CheckGroup orientation="vertical">
|
340
|
+
<Checkbox
|
341
|
+
checked={this.state.value11}
|
342
|
+
label={{text: 'Administrator'}}
|
343
|
+
onChange={(value) => this.setState(() => ({value11: value}))}
|
344
|
+
/>
|
345
|
+
<Checkbox
|
346
|
+
checked={this.state.value12}
|
347
|
+
label={{text: 'Author'}}
|
348
|
+
onChange={(value) => this.setState(() => ({value12: value}))}
|
349
|
+
/>
|
275
350
|
</CheckGroup>
|
276
351
|
</Container>
|
277
352
|
</Container>
|
278
353
|
</SimpleListItem>
|
279
|
-
<SimpleListItem stacked={true} id=
|
280
|
-
<Heading type=
|
281
|
-
<Container className=
|
282
|
-
<ButtonGroup align=
|
283
|
-
<Button
|
354
|
+
<SimpleListItem stacked={true} id="password">
|
355
|
+
<Heading type="h3">Password</Heading>
|
356
|
+
<Container className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus">
|
357
|
+
<ButtonGroup align="center">
|
358
|
+
<Button
|
359
|
+
style="hollow"
|
360
|
+
type="primary"
|
361
|
+
text="Change password"
|
362
|
+
onClick={() => false}
|
363
|
+
/>
|
284
364
|
</ButtonGroup>
|
285
365
|
</Container>
|
286
366
|
</SimpleListItem>
|
287
|
-
<SimpleListItem stacked={true} id=
|
288
|
-
<Heading type=
|
289
|
-
<Container className=
|
290
|
-
<Form.FormGroup inlineLabel={true} marginBottom=
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
367
|
+
<SimpleListItem stacked={true} id="defaultDesk">
|
368
|
+
<Heading type="h3">Default desk</Heading>
|
369
|
+
<Container className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus">
|
370
|
+
<Form.FormGroup inlineLabel={true} marginBottom="0">
|
371
|
+
<Form.FormItem>
|
372
|
+
<Select
|
373
|
+
label="Default desk"
|
374
|
+
value="This is some value"
|
375
|
+
labelHidden={true}
|
376
|
+
required={false}
|
377
|
+
disabled={false}
|
378
|
+
onChange={() => false}
|
379
|
+
>
|
380
|
+
<Option>International</Option>
|
381
|
+
<Option>Kulture</Option>
|
382
|
+
<Option>National</Option>
|
383
|
+
<Option>News</Option>
|
384
|
+
<Option>Politics</Option>
|
385
|
+
<Option>Sports</Option>
|
386
|
+
</Select>
|
387
|
+
</Form.FormItem>
|
388
|
+
</Form.FormGroup>
|
309
389
|
</Container>
|
310
390
|
</SimpleListItem>
|
311
|
-
<SimpleListItem stacked={true} id=
|
312
|
-
<Heading type=
|
313
|
-
<Container className=
|
314
|
-
<Form.FormGroup inlineLabel={true} marginBottom=
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
391
|
+
<SimpleListItem stacked={true} id="language">
|
392
|
+
<Heading type="h3">Language</Heading>
|
393
|
+
<Container className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus">
|
394
|
+
<Form.FormGroup inlineLabel={true} marginBottom="0">
|
395
|
+
<Form.FormItem>
|
396
|
+
<Select
|
397
|
+
label="Language"
|
398
|
+
value="English"
|
399
|
+
labelHidden={true}
|
400
|
+
required={false}
|
401
|
+
disabled={false}
|
402
|
+
onChange={() => false}
|
403
|
+
>
|
404
|
+
<Option>English</Option>
|
405
|
+
<Option>German</Option>
|
406
|
+
<Option>French</Option>
|
407
|
+
<Option>Serbian</Option>
|
408
|
+
</Select>
|
409
|
+
</Form.FormItem>
|
410
|
+
</Form.FormGroup>
|
331
411
|
</Container>
|
332
412
|
</SimpleListItem>
|
333
|
-
<SimpleListItem stacked={true} id=
|
334
|
-
<h3 className=
|
335
|
-
<Container
|
336
|
-
|
413
|
+
<SimpleListItem stacked={true} id="autorInfo">
|
414
|
+
<h3 className="sd-font-size--medium">Author info</h3>
|
415
|
+
<Container
|
416
|
+
direction="column"
|
417
|
+
className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus"
|
418
|
+
>
|
419
|
+
<Form.FormGroup marginBottom="3">
|
337
420
|
<Form.FormItem>
|
338
421
|
<Input
|
339
|
-
label=
|
340
|
-
type=
|
341
|
-
value=
|
422
|
+
label="Sign-Off"
|
423
|
+
type="text"
|
424
|
+
value="the_dude"
|
342
425
|
required={false}
|
343
426
|
disabled={false}
|
344
427
|
onChange={() => false}
|
345
428
|
/>
|
346
429
|
</Form.FormItem>
|
347
430
|
</Form.FormGroup>
|
348
|
-
<Form.FormGroup marginBottom=
|
431
|
+
<Form.FormGroup marginBottom="3">
|
349
432
|
<Form.FormItem>
|
350
433
|
<Input
|
351
|
-
label=
|
352
|
-
type=
|
353
|
-
value=
|
434
|
+
label="Byline"
|
435
|
+
type="text"
|
436
|
+
value="Jeffrey Lebowski"
|
354
437
|
required={false}
|
355
438
|
disabled={false}
|
356
439
|
onChange={() => false}
|
357
440
|
/>
|
358
441
|
</Form.FormItem>
|
359
442
|
</Form.FormGroup>
|
360
|
-
<Form.FormGroup marginBottom=
|
443
|
+
<Form.FormGroup marginBottom="3">
|
361
444
|
<Form.FormItem>
|
362
445
|
<Input
|
363
|
-
label=
|
364
|
-
type=
|
365
|
-
value=
|
446
|
+
label="Job Title"
|
447
|
+
type="text"
|
448
|
+
value="the_dude"
|
366
449
|
required={false}
|
367
450
|
disabled={false}
|
368
451
|
onChange={() => false}
|
369
452
|
/>
|
370
453
|
</Form.FormItem>
|
371
454
|
</Form.FormGroup>
|
372
|
-
<Form.FormGroup marginBottom=
|
455
|
+
<Form.FormGroup marginBottom="4">
|
373
456
|
<Form.FormItem>
|
374
457
|
<Input
|
375
|
-
label=
|
376
|
-
type=
|
377
|
-
value=
|
458
|
+
label="Biography"
|
459
|
+
type="text"
|
460
|
+
value="the_dude"
|
378
461
|
required={false}
|
379
462
|
disabled={false}
|
380
463
|
onChange={() => false}
|
381
464
|
/>
|
382
465
|
</Form.FormItem>
|
383
466
|
</Form.FormGroup>
|
384
|
-
<Heading className=
|
385
|
-
|
467
|
+
<Heading className="sd-margin-t--3 sd-margin-b--2" type="h4">
|
468
|
+
Social media
|
469
|
+
</Heading>
|
470
|
+
<Form.FormGroup marginBottom="3">
|
386
471
|
<Form.FormItem>
|
387
472
|
<Input
|
388
|
-
label=
|
389
|
-
type=
|
390
|
-
value=
|
473
|
+
label="Facebook"
|
474
|
+
type="text"
|
475
|
+
value="the_dude"
|
391
476
|
required={false}
|
392
477
|
disabled={false}
|
393
478
|
onChange={() => false}
|
394
479
|
/>
|
395
480
|
</Form.FormItem>
|
396
481
|
</Form.FormGroup>
|
397
|
-
<Form.FormGroup marginBottom=
|
482
|
+
<Form.FormGroup marginBottom="3">
|
398
483
|
<Form.FormItem>
|
399
484
|
<Input
|
400
|
-
label=
|
401
|
-
type=
|
402
|
-
value=
|
485
|
+
label="Instagram"
|
486
|
+
type="text"
|
487
|
+
value="the_dude"
|
403
488
|
required={false}
|
404
489
|
disabled={false}
|
405
490
|
onChange={() => false}
|
406
491
|
/>
|
407
492
|
</Form.FormItem>
|
408
493
|
</Form.FormGroup>
|
409
|
-
<Form.FormGroup marginBottom=
|
494
|
+
<Form.FormGroup marginBottom="2">
|
410
495
|
<Form.FormItem>
|
411
496
|
<Input
|
412
|
-
label=
|
413
|
-
type=
|
414
|
-
value=
|
497
|
+
label="Twitter"
|
498
|
+
type="text"
|
499
|
+
value="the_dude"
|
415
500
|
required={false}
|
416
501
|
disabled={false}
|
417
502
|
onChange={() => false}
|
@@ -423,105 +508,156 @@ export class PersonalProfile extends React.Component<IProps, IState> {
|
|
423
508
|
</SimpleList>
|
424
509
|
</Layout.MainPanel>
|
425
510
|
{/* MAIN CONTENT (Monitoring) */}
|
426
|
-
<Components.RightPanel open={this.state.openPreview}>
|
427
|
-
</Components.RightPanel>
|
511
|
+
<Components.RightPanel open={this.state.openPreview}></Components.RightPanel>
|
428
512
|
{/* PREVIEW PANEL*/}
|
429
513
|
<Components.OverlayPanel />
|
430
514
|
{/* OVERLAY PANEL (Send To) */}
|
431
515
|
</TabPanel>
|
432
516
|
<TabPanel indexValue={1}>
|
433
517
|
<Layout.LeftPanel open={true}>
|
434
|
-
<Layout.Panel background=
|
518
|
+
<Layout.Panel background="transparent" size="xx-small">
|
435
519
|
<Layout.PanelContent>
|
436
|
-
<LeftMenu
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
{
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
520
|
+
<LeftMenu
|
521
|
+
ariaLabel={'Left navigation'}
|
522
|
+
activeItemId="#1"
|
523
|
+
style="blanc"
|
524
|
+
groups={[
|
525
|
+
{
|
526
|
+
label: '',
|
527
|
+
items: [
|
528
|
+
{id: '1', label: 'Feature preview'},
|
529
|
+
{id: '2', label: 'View formats'},
|
530
|
+
{id: '3', label: 'Notifications'},
|
531
|
+
{id: '4', label: 'Article defaults'},
|
532
|
+
{id: '5', label: 'Categories'},
|
533
|
+
{id: '6', label: 'Desks'},
|
534
|
+
{id: '7', label: 'Vocabulary values'},
|
535
|
+
{id: '8', label: 'Appearance'},
|
536
|
+
],
|
537
|
+
},
|
538
|
+
]}
|
449
539
|
onSelect={() => false}
|
450
540
|
/>
|
451
541
|
</Layout.PanelContent>
|
452
542
|
</Layout.Panel>
|
453
543
|
</Layout.LeftPanel>
|
454
544
|
{/* FILTER PANEL*/}
|
455
|
-
<Layout.MainPanel className=
|
456
|
-
<SimpleList density=
|
545
|
+
<Layout.MainPanel className="sd-padding--3">
|
546
|
+
<SimpleList density="comfortable" width="large">
|
457
547
|
<SimpleListItem stacked={true}>
|
458
|
-
<Heading type=
|
459
|
-
<Container className=
|
460
|
-
<Switch
|
548
|
+
<Heading type="h3">Feature preview</Heading>
|
549
|
+
<Container className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus">
|
550
|
+
<Switch
|
551
|
+
label={{content: 'Enable Feature Preview'}}
|
552
|
+
value={this.state.value1}
|
553
|
+
onChange={(value) => this.setState(() => ({value1: value}))}
|
554
|
+
/>
|
461
555
|
</Container>
|
462
556
|
</SimpleListItem>
|
463
557
|
<SimpleListItem stacked={true}>
|
464
|
-
<Heading type=
|
465
|
-
<Container
|
466
|
-
|
467
|
-
|
558
|
+
<Heading type="h3">View formats</Heading>
|
559
|
+
<Container
|
560
|
+
direction="column"
|
561
|
+
className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus"
|
562
|
+
>
|
563
|
+
<Text color="light" className="">
|
564
|
+
Select the prefered default view format for specific areas of Superdesks
|
565
|
+
interface. The sections will always open in the selected view format,
|
566
|
+
but can be always changed using the view option dropdown in each
|
567
|
+
section.
|
468
568
|
</Text>
|
469
|
-
<SimpleList
|
569
|
+
<SimpleList
|
570
|
+
density="compact"
|
571
|
+
border={true}
|
572
|
+
className="sd-margin-t--3 sd-margin-b--0 sd-padding-b--0"
|
573
|
+
>
|
470
574
|
<SimpleListItem stacked={true}>
|
471
|
-
<Heading type=
|
472
|
-
<RadioButtonGroup
|
473
|
-
{
|
474
|
-
{
|
475
|
-
|
575
|
+
<Heading type="h4">Archive</Heading>
|
576
|
+
<RadioButtonGroup
|
577
|
+
value={this.state.radioValue1}
|
578
|
+
options={[
|
579
|
+
{label: 'Grid view', value: 'grid', icon: 'th'},
|
580
|
+
{label: 'List view', value: 'list', icon: 'th-list'},
|
581
|
+
]}
|
582
|
+
onChange={(value) =>
|
583
|
+
this.setState(() => ({radioValue1: value}))
|
584
|
+
}
|
585
|
+
/>
|
476
586
|
</SimpleListItem>
|
477
587
|
<SimpleListItem stacked={true}>
|
478
|
-
<Heading type=
|
479
|
-
<RadioButtonGroup
|
480
|
-
{
|
481
|
-
{
|
482
|
-
|
588
|
+
<Heading type="h4">Contacts</Heading>
|
589
|
+
<RadioButtonGroup
|
590
|
+
value={this.state.radioValue2}
|
591
|
+
options={[
|
592
|
+
{label: 'Grid view', value: 'grid', icon: 'th'},
|
593
|
+
{label: 'List view', value: 'list', icon: 'th-list'},
|
594
|
+
]}
|
595
|
+
onChange={(value) =>
|
596
|
+
this.setState(() => ({radioValue2: value}))
|
597
|
+
}
|
598
|
+
/>
|
483
599
|
</SimpleListItem>
|
484
600
|
<SimpleListItem stacked={true}>
|
485
|
-
<Heading type=
|
486
|
-
<RadioButtonGroup
|
487
|
-
{
|
488
|
-
{
|
489
|
-
|
490
|
-
|
601
|
+
<Heading type="h4">Archive</Heading>
|
602
|
+
<RadioButtonGroup
|
603
|
+
value={this.state.radioValue3}
|
604
|
+
options={[
|
605
|
+
{label: 'Grid view', value: 'grid', icon: 'th'},
|
606
|
+
{label: 'List view', value: 'list', icon: 'th-list'},
|
607
|
+
{
|
608
|
+
label: 'Swimlane view',
|
609
|
+
value: 'kanban',
|
610
|
+
icon: 'kanban-view',
|
611
|
+
},
|
612
|
+
]}
|
613
|
+
onChange={(value) =>
|
614
|
+
this.setState(() => ({radioValue3: value}))
|
615
|
+
}
|
616
|
+
/>
|
491
617
|
</SimpleListItem>
|
492
|
-
|
493
618
|
</SimpleList>
|
494
619
|
</Container>
|
495
620
|
</SimpleListItem>
|
496
621
|
<SimpleListItem stacked={true}>
|
497
|
-
|
498
|
-
<Container className=
|
622
|
+
<Heading type="h3">Notifications</Heading>
|
623
|
+
<Container className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus">
|
499
624
|
<SwitchGroup>
|
500
|
-
<Switch
|
501
|
-
|
625
|
+
<Switch
|
626
|
+
label={{content: 'Send notifications via email'}}
|
627
|
+
value={this.state.value2}
|
628
|
+
onChange={(value) => this.setState(() => ({value2: value}))}
|
629
|
+
/>
|
630
|
+
<Switch
|
631
|
+
label={{content: 'Allow Desktop Notifications'}}
|
632
|
+
value={this.state.value3}
|
633
|
+
onChange={(value) => this.setState(() => ({value3: value}))}
|
634
|
+
/>
|
502
635
|
</SwitchGroup>
|
503
636
|
</Container>
|
504
637
|
</SimpleListItem>
|
505
638
|
<SimpleListItem stacked={true}>
|
506
|
-
<h3 className=
|
507
|
-
<Container
|
639
|
+
<h3 className="sd-font-size--medium">Article defaults</h3>
|
640
|
+
<Container
|
641
|
+
direction="column"
|
642
|
+
className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus"
|
643
|
+
>
|
508
644
|
<Form.FormGroup>
|
509
645
|
<Form.FormItem>
|
510
646
|
<Input
|
511
|
-
label=
|
512
|
-
type=
|
513
|
-
value=
|
647
|
+
label="Dateline / Located"
|
648
|
+
type="text"
|
649
|
+
value=""
|
514
650
|
required={false}
|
515
651
|
disabled={false}
|
516
652
|
onChange={() => false}
|
517
|
-
/>
|
653
|
+
/>
|
518
654
|
</Form.FormItem>
|
519
655
|
</Form.FormGroup>
|
520
656
|
<Form.FormGroup>
|
521
657
|
<Form.FormItem>
|
522
658
|
<Select
|
523
|
-
label=
|
524
|
-
value=
|
659
|
+
label="Place"
|
660
|
+
value="This is some value"
|
525
661
|
required={true}
|
526
662
|
disabled={false}
|
527
663
|
onChange={() => false}
|
@@ -529,87 +665,171 @@ export class PersonalProfile extends React.Component<IProps, IState> {
|
|
529
665
|
<Option>Select place</Option>
|
530
666
|
<Option>Option 1</Option>
|
531
667
|
<Option>Option 2</Option>
|
532
|
-
</Select>
|
668
|
+
</Select>
|
533
669
|
</Form.FormItem>
|
534
670
|
</Form.FormGroup>
|
535
671
|
</Container>
|
536
672
|
</SimpleListItem>
|
537
673
|
<SimpleListItem stacked={true}>
|
538
|
-
<Heading type=
|
539
|
-
<Container
|
540
|
-
|
541
|
-
|
542
|
-
|
674
|
+
<Heading type="h3">Categories</Heading>
|
675
|
+
<Container
|
676
|
+
direction="column"
|
677
|
+
className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus"
|
678
|
+
>
|
679
|
+
<Heading type="h4">Preferred Categories</Heading>
|
680
|
+
<Text color="light" className="">
|
681
|
+
By selecting the categories you are interested in, the system will only
|
682
|
+
display these in a menu for setting the content item's categories (along
|
683
|
+
with any of its existing categories).
|
543
684
|
</Text>
|
544
|
-
<ButtonGroup className=
|
545
|
-
<Button
|
685
|
+
<ButtonGroup className="sd-margin-y--2">
|
686
|
+
<Button
|
687
|
+
text="All"
|
688
|
+
style="text-only"
|
689
|
+
type="primary"
|
690
|
+
onClick={() => false}
|
691
|
+
/>
|
546
692
|
<Divider border={true} />
|
547
|
-
<Button
|
693
|
+
<Button
|
694
|
+
text="None"
|
695
|
+
style="text-only"
|
696
|
+
type="primary"
|
697
|
+
onClick={() => false}
|
698
|
+
/>
|
548
699
|
<Divider border={true} />
|
549
|
-
<Button
|
700
|
+
<Button
|
701
|
+
text="Default"
|
702
|
+
style="text-only"
|
703
|
+
type="primary"
|
704
|
+
onClick={() => false}
|
705
|
+
/>
|
550
706
|
</ButtonGroup>
|
551
|
-
<CheckButtonGroup
|
552
|
-
<CheckboxButton
|
553
|
-
|
554
|
-
|
555
|
-
|
707
|
+
<CheckButtonGroup grid={true}>
|
708
|
+
<CheckboxButton
|
709
|
+
checked={this.state.value1}
|
710
|
+
label={{text: 'Category one'}}
|
711
|
+
onChange={(value) => this.setState(() => ({value1: value}))}
|
712
|
+
/>
|
713
|
+
<CheckboxButton
|
714
|
+
checked={this.state.value2}
|
715
|
+
label={{text: 'Category two'}}
|
716
|
+
onChange={(value) => this.setState(() => ({value2: value}))}
|
717
|
+
/>
|
718
|
+
<CheckboxButton
|
719
|
+
checked={this.state.value3}
|
720
|
+
label={{text: 'Category three'}}
|
721
|
+
onChange={(value) => this.setState(() => ({value3: value}))}
|
722
|
+
/>
|
723
|
+
<CheckboxButton
|
724
|
+
checked={this.state.value4}
|
725
|
+
label={{text: 'Category four'}}
|
726
|
+
onChange={(value) => this.setState(() => ({value4: value}))}
|
727
|
+
/>
|
556
728
|
</CheckButtonGroup>
|
557
729
|
</Container>
|
558
730
|
</SimpleListItem>
|
559
731
|
<SimpleListItem stacked={true}>
|
560
|
-
<Heading type=
|
561
|
-
<Container
|
562
|
-
|
563
|
-
|
564
|
-
|
732
|
+
<Heading type="h3">Desks</Heading>
|
733
|
+
<Container
|
734
|
+
direction="column"
|
735
|
+
className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus"
|
736
|
+
>
|
737
|
+
<Heading type="h4">Preferred Desks</Heading>
|
738
|
+
<Text color="light" className="sd-margin-b--2">
|
739
|
+
By selecting the desks as your preferred desks, they appear first in the
|
740
|
+
order when sending or publishing items.
|
565
741
|
</Text>
|
566
|
-
<CheckButtonGroup
|
567
|
-
<CheckboxButton
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
<CheckboxButton
|
742
|
+
<CheckButtonGroup grid={true}>
|
743
|
+
<CheckboxButton
|
744
|
+
checked={this.state.value5}
|
745
|
+
label={{text: 'Politics'}}
|
746
|
+
onChange={(value) => this.setState(() => ({value5: value}))}
|
747
|
+
/>
|
748
|
+
<CheckboxButton
|
749
|
+
checked={this.state.value6}
|
750
|
+
label={{text: 'Sports'}}
|
751
|
+
onChange={(value) => this.setState(() => ({value6: value}))}
|
752
|
+
/>
|
753
|
+
<CheckboxButton
|
754
|
+
checked={this.state.value7}
|
755
|
+
label={{text: 'News'}}
|
756
|
+
onChange={(value) => this.setState(() => ({value7: value}))}
|
757
|
+
/>
|
758
|
+
<CheckboxButton
|
759
|
+
checked={this.state.value8}
|
760
|
+
label={{text: 'National'}}
|
761
|
+
onChange={(value) => this.setState(() => ({value8: value}))}
|
762
|
+
/>
|
763
|
+
<CheckboxButton
|
764
|
+
checked={this.state.value9}
|
765
|
+
label={{text: 'International'}}
|
766
|
+
onChange={(value) => this.setState(() => ({value9: value}))}
|
767
|
+
/>
|
768
|
+
<CheckboxButton
|
769
|
+
checked={this.state.value10}
|
770
|
+
label={{text: 'Kulture'}}
|
771
|
+
onChange={(value) => this.setState(() => ({value10: value}))}
|
772
|
+
/>
|
573
773
|
</CheckButtonGroup>
|
574
774
|
</Container>
|
575
775
|
</SimpleListItem>
|
576
776
|
<SimpleListItem stacked={true}>
|
577
|
-
<Heading type=
|
578
|
-
<Container
|
579
|
-
|
777
|
+
<Heading type="h3">Vocabulary values</Heading>
|
778
|
+
<Container
|
779
|
+
direction="column"
|
780
|
+
className="sd-radius--medium sd-padding--2 sd-border--medium sd-border-style--dashed"
|
781
|
+
>
|
782
|
+
<Text
|
783
|
+
color="lighter"
|
784
|
+
size="medium"
|
785
|
+
className="sd-margin--auto"
|
786
|
+
align="center"
|
787
|
+
>
|
788
|
+
There are no vocabularies configured.
|
789
|
+
</Text>
|
580
790
|
</Container>
|
581
791
|
</SimpleListItem>
|
582
792
|
<SimpleListItem stacked={true}>
|
583
|
-
<Heading type=
|
584
|
-
<Container
|
585
|
-
|
586
|
-
|
793
|
+
<Heading type="h3">Appearance</Heading>
|
794
|
+
<Container
|
795
|
+
direction="column"
|
796
|
+
className="sd-radius--medium sd-panel-bg--000 sd-shadow--z2 sd-padding--3 sd-state--focus"
|
797
|
+
>
|
798
|
+
<Heading type="h4">Themes</Heading>
|
799
|
+
<Text color="light" className="sd-margin-b--2">
|
800
|
+
Change the appearance of Superdesk across the whole application.
|
801
|
+
</Text>
|
587
802
|
<ThemeSelector
|
588
|
-
size=
|
803
|
+
size="small"
|
589
804
|
options={[
|
590
805
|
{label: 'Light', value: 'light-ui', theme: 'light'},
|
591
806
|
{label: 'Dark', value: 'dark-ui', theme: 'dark'},
|
592
|
-
{
|
807
|
+
{
|
808
|
+
label: 'High Contrast',
|
809
|
+
value: 'high-contrast',
|
810
|
+
theme: 'contrast-light',
|
811
|
+
disabled: true,
|
812
|
+
},
|
593
813
|
]}
|
594
|
-
onChange={($event)=>
|
814
|
+
onChange={($event) => {
|
815
|
+
this.setState({theme: $event});
|
816
|
+
}}
|
817
|
+
value={this.state.theme}
|
595
818
|
/>
|
596
819
|
</Container>
|
597
820
|
</SimpleListItem>
|
598
821
|
</SimpleList>
|
599
822
|
</Layout.MainPanel>
|
600
823
|
{/* MAIN CONTENT (Monitoring) */}
|
601
|
-
<Layout.RightPanel open={this.state.openPreview}>
|
602
|
-
</Layout.RightPanel>
|
824
|
+
<Layout.RightPanel open={this.state.openPreview}></Layout.RightPanel>
|
603
825
|
{/* PREVIEW PANEL*/}
|
604
826
|
</TabPanel>
|
605
827
|
<TabPanel indexValue={2}>
|
606
|
-
<Layout.MainPanel >
|
607
|
-
Privileges Content goes here
|
608
|
-
</Layout.MainPanel>
|
828
|
+
<Layout.MainPanel>Privileges Content goes here</Layout.MainPanel>
|
609
829
|
</TabPanel>
|
610
830
|
</TabContent>
|
611
831
|
</Components.LayoutContainer>
|
612
|
-
</Components.Layout
|
832
|
+
</Components.Layout>
|
613
833
|
);
|
614
834
|
}
|
615
835
|
}
|