superdesk-ui-framework 4.0.46 → 4.0.48
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/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 +175 -117
- 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 +30 -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 +2 -2
- 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/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 +46 -10
- 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 +74 -20
- 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 +6246 -5620
- 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 +0 -3
- package/dist/superdesk-ui.bundle.js +1791 -1865
- package/dist/vendor.bundle.js +2 -2
- 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 +46 -10
- 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 +74 -20
- 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 +26 -4
- package/react/components/DateTimePicker.js +82 -27
- 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.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/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/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
@@ -37,14 +37,14 @@ exports.Layout = void 0;
|
|
37
37
|
var React = __importStar(require("react"));
|
38
38
|
var Layout = function (_a) {
|
39
39
|
var header = _a.header, children = _a.children, theme = _a.theme;
|
40
|
-
return (React.createElement("div", { className:
|
41
|
-
React.createElement("div", { className:
|
42
|
-
React.createElement("div", { className:
|
43
|
-
React.createElement("header", { className:
|
44
|
-
React.createElement("a", { className:
|
45
|
-
React.createElement("i", { className:
|
46
|
-
React.createElement("p", { className:
|
47
|
-
React.createElement("section", { id:
|
48
|
-
React.createElement("footer", { className:
|
40
|
+
return (React.createElement("div", { className: "sd-page-grid--test docs-page__full-width-helper", "data-theme": theme },
|
41
|
+
React.createElement("div", { className: "sd-main-menu" },
|
42
|
+
React.createElement("div", { className: "sd-main-menu__inner" })),
|
43
|
+
React.createElement("header", { className: "sd-top-menu" },
|
44
|
+
React.createElement("a", { className: "sd-top-menu__collapse-nav" },
|
45
|
+
React.createElement("i", { className: "icon-collapse icon--white" })),
|
46
|
+
React.createElement("p", { className: "sd-top-menu__header" }, header)),
|
47
|
+
React.createElement("section", { id: "1", className: "sd-content sd-content-wrapper" }, children),
|
48
|
+
React.createElement("footer", { className: "sd-bottom-bar" }, "Footer")));
|
49
49
|
};
|
50
50
|
exports.Layout = Layout;
|
@@ -63,7 +63,7 @@ var LayoutContainer = /** @class */ (function (_super) {
|
|
63
63
|
var classes = (0, classnames_1.default)('sd-content-wrapper__main-content-area sd-main-content-grid comfort', {
|
64
64
|
'sd-main-content-grid--full-height': this.props.fullHeight,
|
65
65
|
});
|
66
|
-
return
|
66
|
+
return React.createElement("div", { className: classes }, this.props.children);
|
67
67
|
};
|
68
68
|
return LayoutContainer;
|
69
69
|
}(React.PureComponent));
|
@@ -63,7 +63,7 @@ var LeftPanel = /** @class */ (function (_super) {
|
|
63
63
|
var classes = (0, classnames_1.default)('sd-main-content-grid__filter', {
|
64
64
|
'open-filters': this.props.open === true,
|
65
65
|
});
|
66
|
-
return
|
66
|
+
return React.createElement("div", { className: classes }, this.props.children);
|
67
67
|
};
|
68
68
|
return LeftPanel;
|
69
69
|
}(React.PureComponent));
|
@@ -56,7 +56,7 @@ var MainMenuContainer = /** @class */ (function (_super) {
|
|
56
56
|
return _super !== null && _super.apply(this, arguments) || this;
|
57
57
|
}
|
58
58
|
MainMenuContainer.prototype.render = function () {
|
59
|
-
return (React.createElement("div", { id: this.props.id, "aria-labelledby":
|
59
|
+
return (React.createElement("div", { id: this.props.id, "aria-labelledby": "main-menu_title", className: "sd-main-menu__navigation", "data-theme": this.props.theme ? "".concat(this.props.theme, "-ui") : null }, this.props.children));
|
60
60
|
};
|
61
61
|
return MainMenuContainer;
|
62
62
|
}(React.PureComponent));
|
@@ -67,8 +67,8 @@ var MainMenuHeader = /** @class */ (function (_super) {
|
|
67
67
|
return _super !== null && _super.apply(this, arguments) || this;
|
68
68
|
}
|
69
69
|
MainMenuHeader.prototype.render = function () {
|
70
|
-
return (React.createElement("div", { className:
|
71
|
-
React.createElement("h3", { id:
|
70
|
+
return (React.createElement("div", { className: "sd-main-menu__header" },
|
71
|
+
React.createElement("h3", { id: "main-menu_title", className: "sd-main-menu__title" }, this.props.headerTitle)));
|
72
72
|
};
|
73
73
|
return MainMenuHeader;
|
74
74
|
}(React.PureComponent));
|
@@ -79,7 +79,7 @@ var MainMenuContent = /** @class */ (function (_super) {
|
|
79
79
|
return _super !== null && _super.apply(this, arguments) || this;
|
80
80
|
}
|
81
81
|
MainMenuContent.prototype.render = function () {
|
82
|
-
return
|
82
|
+
return React.createElement("div", { className: "sd-main-menu__content" }, this.props.children);
|
83
83
|
};
|
84
84
|
return MainMenuContent;
|
85
85
|
}(React.PureComponent));
|
@@ -90,12 +90,10 @@ var MainMenuFooter = /** @class */ (function (_super) {
|
|
90
90
|
return _super !== null && _super.apply(this, arguments) || this;
|
91
91
|
}
|
92
92
|
MainMenuFooter.prototype.render = function () {
|
93
|
-
return (React.createElement("div", { className:
|
94
|
-
this.props.poweredBy &&
|
95
|
-
|
96
|
-
React.createElement("div", { className:
|
97
|
-
this.props.footerContent &&
|
98
|
-
React.createElement("div", { className: 'sd-main-menu__footer-content' }, this.props.children)));
|
93
|
+
return (React.createElement("div", { className: "sd-main-menu__footer" },
|
94
|
+
this.props.poweredBy && React.createElement("div", { className: "sd-main-menu__footer-info" }, this.props.poweredBy),
|
95
|
+
React.createElement("div", { className: "sd-main-menu__footer-logo" }),
|
96
|
+
this.props.footerContent && React.createElement("div", { className: "sd-main-menu__footer-content" }, this.props.children)));
|
99
97
|
};
|
100
98
|
return MainMenuFooter;
|
101
99
|
}(React.PureComponent));
|
@@ -66,7 +66,7 @@ var MainPanel = /** @class */ (function (_super) {
|
|
66
66
|
'sd-padding--4': this.props.padding === 'large',
|
67
67
|
'sd-padding--0': this.props.padding === 'none',
|
68
68
|
}, this.props.className);
|
69
|
-
return
|
69
|
+
return React.createElement("div", { className: classes }, this.props.children);
|
70
70
|
};
|
71
71
|
return MainPanel;
|
72
72
|
}(React.PureComponent));
|
@@ -42,4 +42,4 @@ interface IProps {
|
|
42
42
|
export default class NotificationPanel extends React.PureComponent<IProps> {
|
43
43
|
render(): JSX.Element;
|
44
44
|
}
|
45
|
-
export { NotificationPanel, NotificationPanelContainer, NotificationPanelHeader, NotificationPanelContent, NotificationPanelFooter };
|
45
|
+
export { NotificationPanel, NotificationPanelContainer, NotificationPanelHeader, NotificationPanelContent, NotificationPanelFooter, };
|
@@ -65,7 +65,7 @@ var NotificationPanelContainer = /** @class */ (function (_super) {
|
|
65
65
|
var classes = (0, classnames_1.default)('sd-notification-panel', (_a = {},
|
66
66
|
_a["sd-notification-panel--open"] = this.props.open,
|
67
67
|
_a));
|
68
|
-
return (React.createElement("div", { id: this.props.id, "aria-labelledby":
|
68
|
+
return (React.createElement("div", { id: this.props.id, "aria-labelledby": "notifications_title", className: classes, "data-theme": this.props.theme ? "".concat(this.props.theme, "-ui") : null }, this.props.children));
|
69
69
|
};
|
70
70
|
return NotificationPanelContainer;
|
71
71
|
}(React.PureComponent));
|
@@ -77,9 +77,9 @@ var NotificationPanelHeader = /** @class */ (function (_super) {
|
|
77
77
|
}
|
78
78
|
NotificationPanelHeader.prototype.render = function () {
|
79
79
|
var _this = this;
|
80
|
-
return (React.createElement("div", { className:
|
81
|
-
React.createElement("h3", { id:
|
82
|
-
React.createElement(IconButton_1.IconButton, { toolTipFlow:
|
80
|
+
return (React.createElement("div", { className: "sd-notification-panel__header" },
|
81
|
+
React.createElement("h3", { id: "notifications_title", className: "sd-notification-panel__title" }, this.props.headerTitle),
|
82
|
+
React.createElement(IconButton_1.IconButton, { toolTipFlow: "left", ariaValue: "Close", icon: "close-small", onClick: function () { return _this.props.onClick(); } })));
|
83
83
|
};
|
84
84
|
return NotificationPanelHeader;
|
85
85
|
}(React.PureComponent));
|
@@ -90,7 +90,7 @@ var NotificationPanelContent = /** @class */ (function (_super) {
|
|
90
90
|
return _super !== null && _super.apply(this, arguments) || this;
|
91
91
|
}
|
92
92
|
NotificationPanelContent.prototype.render = function () {
|
93
|
-
return
|
93
|
+
return React.createElement("div", { className: "sd-notification-panel__content" }, this.props.children);
|
94
94
|
};
|
95
95
|
return NotificationPanelContent;
|
96
96
|
}(React.PureComponent));
|
@@ -101,7 +101,7 @@ var NotificationPanelFooter = /** @class */ (function (_super) {
|
|
101
101
|
return _super !== null && _super.apply(this, arguments) || this;
|
102
102
|
}
|
103
103
|
NotificationPanelFooter.prototype.render = function () {
|
104
|
-
return
|
104
|
+
return React.createElement("div", { className: "sd-notification-panel__footer" }, this.props.children);
|
105
105
|
};
|
106
106
|
return NotificationPanelFooter;
|
107
107
|
}(React.PureComponent));
|
@@ -116,7 +116,7 @@ var NotificationPanel = /** @class */ (function (_super) {
|
|
116
116
|
return (React.createElement(NotificationPanelContainer, { open: this.props.open, theme: this.props.theme },
|
117
117
|
React.createElement(NotificationPanelHeader, { headerTitle: this.props.headerTitle, onClick: function () { return _this.props.onClick(); } }, this.props.header),
|
118
118
|
React.createElement(NotificationPanelContent, null, this.props.children),
|
119
|
-
this.props.footer &&
|
119
|
+
this.props.footer && React.createElement(NotificationPanelFooter, null, this.props.footer)));
|
120
120
|
};
|
121
121
|
return NotificationPanel;
|
122
122
|
}(React.PureComponent));
|
@@ -56,9 +56,9 @@ var OverlayPanel = /** @class */ (function (_super) {
|
|
56
56
|
return _super !== null && _super.apply(this, arguments) || this;
|
57
57
|
}
|
58
58
|
OverlayPanel.prototype.render = function () {
|
59
|
-
return (React.createElement("div", { className:
|
60
|
-
React.createElement("div", { className:
|
61
|
-
React.createElement("div", { className:
|
59
|
+
return (React.createElement("div", { className: "sd-main-content-grid__overlay" },
|
60
|
+
React.createElement("div", { className: "sd-overlay-panel sd-overlay-panel--dark-ui" },
|
61
|
+
React.createElement("div", { className: "side-panel side-panel--shadow-right side-panel--dark-ui" }, this.props.children))));
|
62
62
|
};
|
63
63
|
return OverlayPanel;
|
64
64
|
}(React.PureComponent));
|
@@ -70,8 +70,8 @@ var PageLayout = /** @class */ (function (_super) {
|
|
70
70
|
}
|
71
71
|
PageLayout.prototype.render = function () {
|
72
72
|
return (React.createElement(Layouts_1.LayoutContainer, { fullHeight: this.props.fullHeight },
|
73
|
-
this.props.header &&
|
74
|
-
this.props.leftPanel &&
|
73
|
+
this.props.header && React.createElement(Layouts_1.HeaderPanel, null, this.props.header),
|
74
|
+
this.props.leftPanel && React.createElement(Layouts_1.LeftPanel, { open: this.props.leftPanelOpen }, this.props.leftPanel),
|
75
75
|
this.props.main && (React.createElement(Layouts_1.MainPanel, __assign({ className: this.props.mainClassName }, this.props.mainProps), this.props.main)),
|
76
76
|
this.props.rightPanel && (React.createElement(Layouts_1.RightPanel, { open: this.props.rightPanelOpen }, this.props.rightPanel))));
|
77
77
|
};
|
@@ -67,4 +67,4 @@ interface IPropsPanelTools {
|
|
67
67
|
declare class PanelTools extends React.PureComponent<IPropsPanelTools> {
|
68
68
|
render(): JSX.Element;
|
69
69
|
}
|
70
|
-
export { Panel, PanelHeader, PanelContent, PanelContentBlock, PanelFooter, PanelHeaderSlidingToolbar, PanelTools
|
70
|
+
export { Panel, PanelHeader, PanelContent, PanelContentBlock, PanelFooter, PanelHeaderSlidingToolbar, PanelTools };
|
@@ -107,16 +107,12 @@ var PanelHeader = /** @class */ (function (_super) {
|
|
107
107
|
};
|
108
108
|
var defaultTheme = darkColors.includes(this.props.color || '') ? 'dark-ui' : null;
|
109
109
|
return (React.createElement("div", { "data-theme": this.props.theme || defaultTheme, className: classes, style: style },
|
110
|
-
React.createElement("div", { className:
|
111
|
-
this.props.title != null
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
this.props.iconButtons != null
|
117
|
-
&& this.props.iconButtons,
|
118
|
-
this.props.onClose != null
|
119
|
-
&& (React.createElement(IconButton_1.IconButton, { icon: 'close-small', ariaValue: 'Close', onClick: this.props.onClose }))))),
|
110
|
+
React.createElement("div", { className: "side-panel__header-wrapper" },
|
111
|
+
this.props.title != null && (React.createElement("div", { className: "side-panel__header-inner" },
|
112
|
+
React.createElement("h3", { className: "side-panel__heading" }, this.props.title))),
|
113
|
+
(this.props.onClose == null && this.props.iconButtons == null) || (React.createElement(ButtonGroup_1.ButtonGroup, { align: "end", spaces: "no-space", className: "side-panel__btn-group" },
|
114
|
+
this.props.iconButtons != null && this.props.iconButtons,
|
115
|
+
this.props.onClose != null && (React.createElement(IconButton_1.IconButton, { icon: "close-small", ariaValue: "Close", onClick: this.props.onClose }))))),
|
120
116
|
this.props.children));
|
121
117
|
};
|
122
118
|
return PanelHeader;
|
@@ -129,11 +125,9 @@ var PanelContent = /** @class */ (function (_super) {
|
|
129
125
|
}
|
130
126
|
PanelContent.prototype.render = function () {
|
131
127
|
return (React.createElement("div", { className: "side-panel__content" },
|
132
|
-
this.props.loading
|
133
|
-
|
134
|
-
|
135
|
-
this.props.empty
|
136
|
-
&& React.createElement(Spinner_1.LoadingOverlay, null, this.props.emptyTemplate),
|
128
|
+
this.props.loading && (React.createElement(Spinner_1.LoadingOverlay, null,
|
129
|
+
React.createElement(Spinner_1.Spinner, { size: "large" }))),
|
130
|
+
this.props.empty && React.createElement(Spinner_1.LoadingOverlay, null, this.props.emptyTemplate),
|
137
131
|
this.props.children));
|
138
132
|
};
|
139
133
|
return PanelContent;
|
@@ -151,7 +145,7 @@ var PanelContentBlock = /** @class */ (function (_super) {
|
|
151
145
|
},
|
152
146
|
_a["side-panel__content-block--padding-".concat(this.props.padding)] = this.props.padding,
|
153
147
|
_a));
|
154
|
-
return
|
148
|
+
return React.createElement("div", { className: classes }, this.props.children);
|
155
149
|
};
|
156
150
|
return PanelContentBlock;
|
157
151
|
}(React.PureComponent));
|
@@ -163,7 +157,7 @@ var PanelFooter = /** @class */ (function (_super) {
|
|
163
157
|
return _super !== null && _super.apply(this, arguments) || this;
|
164
158
|
}
|
165
159
|
PanelFooter.prototype.render = function () {
|
166
|
-
return
|
160
|
+
return React.createElement("div", { className: "side-panel__footer side-panel__footer--button-box" }, this.props.children);
|
167
161
|
};
|
168
162
|
return PanelFooter;
|
169
163
|
}(React.PureComponent));
|
@@ -177,7 +171,7 @@ var PanelHeaderSlidingToolbar = /** @class */ (function (_super) {
|
|
177
171
|
var classes = (0, classnames_1.default)('subnav__sliding-toolbar', {
|
178
172
|
'subnav__sliding-toolbar--right': this.props.right,
|
179
173
|
});
|
180
|
-
return
|
174
|
+
return React.createElement("div", { className: classes }, this.props.children);
|
181
175
|
};
|
182
176
|
return PanelHeaderSlidingToolbar;
|
183
177
|
}(React.PureComponent));
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import * as React from
|
1
|
+
import * as React from 'react';
|
2
2
|
interface IMenuItem {
|
3
3
|
id: string;
|
4
4
|
label: string;
|
@@ -19,8 +19,8 @@ interface IMenu {
|
|
19
19
|
scrollSpy?: string;
|
20
20
|
offset?: number;
|
21
21
|
reverseItemBorder?: boolean;
|
22
|
-
style?:
|
23
|
-
size?:
|
22
|
+
style?: 'default' | 'inverse' | 'blanc';
|
23
|
+
size?: 'medium' | 'large';
|
24
24
|
onSelect(id: string, route: string): void;
|
25
25
|
}
|
26
26
|
interface IState {
|
@@ -80,41 +80,39 @@ var LeftMenu = /** @class */ (function (_super) {
|
|
80
80
|
active: item.id,
|
81
81
|
});
|
82
82
|
if (item.ref) {
|
83
|
-
return (_a = document
|
84
|
-
.getElementById(item.ref)) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ block: "nearest", behavior: "smooth" });
|
83
|
+
return (_a = document.getElementById(item.ref)) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ block: 'nearest', behavior: 'smooth' });
|
85
84
|
}
|
86
85
|
if (item.onClick) {
|
87
86
|
return item.onClick();
|
88
87
|
}
|
89
|
-
this.props.onSelect(item.id, item.route ? item.route :
|
88
|
+
this.props.onSelect(item.id, item.route ? item.route : '');
|
90
89
|
};
|
91
90
|
LeftMenu.prototype.componentDidMount = function () {
|
92
91
|
var _a;
|
93
92
|
if (this.props.scrollTo) {
|
94
|
-
return (_a = document
|
95
|
-
.getElementById(this.props.scrollTo)) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ block: "nearest", behavior: "smooth" });
|
93
|
+
return (_a = document.getElementById(this.props.scrollTo)) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ block: 'nearest', behavior: 'smooth' });
|
96
94
|
}
|
97
95
|
};
|
98
96
|
LeftMenu.prototype.render = function () {
|
99
97
|
var _a;
|
100
98
|
var _this = this;
|
101
|
-
var classes = (0, classnames_1.default)(
|
102
|
-
|
99
|
+
var classes = (0, classnames_1.default)('sd-left-nav', (_a = {
|
100
|
+
'sd-left-nav--default': this.props.style === undefined
|
103
101
|
},
|
104
102
|
_a["sd-left-nav--".concat(this.props.style)] = this.props.style || this.props.style !== undefined,
|
105
|
-
_a[
|
103
|
+
_a['sd-left-nav--medium'] = this.props.size === undefined,
|
106
104
|
_a["sd-left-nav--".concat(this.props.size)] = this.props.size || this.props.size !== undefined,
|
107
|
-
_a[
|
105
|
+
_a['sd-left-nav--reverse-border'] = this.props.reverseItemBorder,
|
108
106
|
_a), this.props.className);
|
109
107
|
var scrollspyList = function () {
|
110
108
|
var scrollSpyList = [];
|
111
109
|
var scrollSpyItems = [];
|
112
110
|
_this.props.groups.map(function (element, index) {
|
113
111
|
scrollSpyList = __spreadArray(__spreadArray([], scrollSpyList, true), [element.label], false);
|
114
|
-
scrollSpyItems.push(React.createElement("span", { className: "sd-left-nav__group-header", key:
|
112
|
+
scrollSpyItems.push(React.createElement("span", { className: "sd-left-nav__group-header", key: 'group-' + index }, element.label));
|
115
113
|
element.items.map(function (elementOfItem, indexOfItem) {
|
116
114
|
scrollSpyList = __spreadArray(__spreadArray([], scrollSpyList, true), ["".concat(elementOfItem.ref)], false);
|
117
|
-
scrollSpyItems.push(React.createElement("a", { key:
|
115
|
+
scrollSpyItems.push(React.createElement("a", { key: 'item-' + indexOfItem, onClick: function (event) {
|
118
116
|
_this.handleClick(elementOfItem, event);
|
119
117
|
}, className: "sd-left-nav__btn" }, elementOfItem.label));
|
120
118
|
});
|
@@ -129,8 +127,8 @@ var LeftMenu = /** @class */ (function (_super) {
|
|
129
127
|
return (React.createElement("button", { key: j, onClick: function (event) {
|
130
128
|
_this.handleClick(item, event);
|
131
129
|
}, className: item.id === _this.state.active
|
132
|
-
?
|
133
|
-
:
|
130
|
+
? 'sd-left-nav__btn sd-left-nav__btn--active'
|
131
|
+
: 'sd-left-nav__btn' }, item.label));
|
134
132
|
})));
|
135
133
|
});
|
136
134
|
};
|
@@ -60,7 +60,7 @@ var BoxedListMedia = /** @class */ (function (_super) {
|
|
60
60
|
return _super !== null && _super.apply(this, arguments) || this;
|
61
61
|
}
|
62
62
|
BoxedListMedia.prototype.render = function () {
|
63
|
-
return
|
63
|
+
return React.createElement("div", { className: "boxed-list__item-media" }, this.props.children);
|
64
64
|
};
|
65
65
|
return BoxedListMedia;
|
66
66
|
}(React.PureComponent));
|
@@ -70,7 +70,7 @@ var BoxedListContent = /** @class */ (function (_super) {
|
|
70
70
|
return _super !== null && _super.apply(this, arguments) || this;
|
71
71
|
}
|
72
72
|
BoxedListContent.prototype.render = function () {
|
73
|
-
return
|
73
|
+
return React.createElement("div", { className: "boxed-list__item-content" }, this.props.children);
|
74
74
|
};
|
75
75
|
return BoxedListContent;
|
76
76
|
}(React.PureComponent));
|
@@ -80,7 +80,7 @@ var BoxedListContentRow = /** @class */ (function (_super) {
|
|
80
80
|
return _super !== null && _super.apply(this, arguments) || this;
|
81
81
|
}
|
82
82
|
BoxedListContentRow.prototype.render = function () {
|
83
|
-
return
|
83
|
+
return React.createElement("div", { className: "boxed-list__item-content-row" }, this.props.children);
|
84
84
|
};
|
85
85
|
return BoxedListContentRow;
|
86
86
|
}(React.PureComponent));
|
@@ -91,7 +91,7 @@ var BoxedListFooter = /** @class */ (function (_super) {
|
|
91
91
|
return _super !== null && _super.apply(this, arguments) || this;
|
92
92
|
}
|
93
93
|
BoxedListFooter.prototype.render = function () {
|
94
|
-
return
|
94
|
+
return React.createElement("div", { className: "boxed-list__item-footer" }, this.props.children);
|
95
95
|
};
|
96
96
|
return BoxedListFooter;
|
97
97
|
}(React.PureComponent));
|
@@ -146,9 +146,9 @@ var BoxedListItem = /** @class */ (function (_super) {
|
|
146
146
|
_a["boxed-list__item--align-".concat(this.props.alignVertical)] = this.props.alignVertical,
|
147
147
|
_a));
|
148
148
|
return (React.createElement("li", { className: classes, onClick: this.handleClick },
|
149
|
-
this.props.media &&
|
149
|
+
this.props.media && React.createElement(BoxedListMedia, null, this.props.media),
|
150
150
|
React.createElement(BoxedListContent, null, this.props.children),
|
151
|
-
this.props.footer &&
|
151
|
+
this.props.footer && React.createElement(BoxedListFooter, null, this.props.footer),
|
152
152
|
this.props.actions && (React.createElement(BoxedListActions, { slideIn: this.props.slideInActions, ref: function (ref) {
|
153
153
|
_this.actionsRef = ref;
|
154
154
|
} }, this.props.actions))));
|
@@ -70,7 +70,7 @@ var CalendarWeekDayItem = /** @class */ (function (_super) {
|
|
70
70
|
},
|
71
71
|
_a["calendar-week-day__item--".concat(this.props.state)] = this.props.state || this.props.state !== undefined,
|
72
72
|
_a));
|
73
|
-
return
|
73
|
+
return React.createElement("div", { className: classes }, this.props.children);
|
74
74
|
};
|
75
75
|
return CalendarWeekDayItem;
|
76
76
|
}(React.PureComponent));
|
@@ -92,7 +92,7 @@ var WeeklyCalendarGridItem = /** @class */ (function (_super) {
|
|
92
92
|
return _super !== null && _super.apply(this, arguments) || this;
|
93
93
|
}
|
94
94
|
WeeklyCalendarGridItem.prototype.render = function () {
|
95
|
-
return
|
95
|
+
return React.createElement("div", { className: "calendar-week-day__container" }, this.props.children);
|
96
96
|
};
|
97
97
|
return WeeklyCalendarGridItem;
|
98
98
|
}(React.PureComponent));
|
@@ -71,33 +71,31 @@ var ContentListItem = /** @class */ (function (_super) {
|
|
71
71
|
var classes = (0, classnames_1.default)('sd-list-item sd-shadow--z1', {
|
72
72
|
'sd-list-item--activated': this.props.activated,
|
73
73
|
'sd-list-item--selected': this.props.selected,
|
74
|
-
|
75
|
-
|
74
|
+
fetched: this.props.archived,
|
75
|
+
actioning: this.props.loading,
|
76
76
|
});
|
77
|
-
return (React.createElement("div", { role:
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
if (
|
82
|
-
|
77
|
+
return (React.createElement("div", { role: "listitem", className: classes, onClick: function (e) {
|
78
|
+
return _this.multiClickHandler(e, {
|
79
|
+
onSingleClick: function () {
|
80
|
+
var selection = window.getSelection();
|
81
|
+
if (_this.props.onClick && selection) {
|
82
|
+
if (selection.toString().length < 1) {
|
83
|
+
_this.props.onClick();
|
84
|
+
}
|
83
85
|
}
|
84
|
-
}
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
}
|
90
|
-
}
|
91
|
-
}
|
92
|
-
this.props.locked
|
93
|
-
? React.createElement("div", { className: "sd-list-item__border sd-list-item__border--locked" })
|
94
|
-
: React.createElement("div", { className: "sd-list-item__border" }),
|
86
|
+
},
|
87
|
+
onDoubleClick: function () {
|
88
|
+
if (_this.props.onDoubleClick) {
|
89
|
+
_this.props.onDoubleClick();
|
90
|
+
}
|
91
|
+
},
|
92
|
+
});
|
93
|
+
} },
|
94
|
+
this.props.locked ? (React.createElement("div", { className: "sd-list-item__border sd-list-item__border--locked" })) : (React.createElement("div", { className: "sd-list-item__border" })),
|
95
95
|
this.props.itemColum.map(function (item, index) {
|
96
|
-
return React.createElement("div", { className: "\n sd-list-item__column\n ".concat(item.fullwidth && 'sd-list-item__column--grow', "\n ").concat(!item.border && 'sd-list-item__column--no-border'), key: index }, item.itemRow.map(function (e, i) {
|
97
|
-
return
|
98
|
-
|
99
|
-
: React.createElement("div", { className: "sd-list-item__row", key: i }, e.content));
|
100
|
-
}));
|
96
|
+
return (React.createElement("div", { className: "\n sd-list-item__column\n ".concat(item.fullwidth && 'sd-list-item__column--grow', "\n ").concat(!item.border && 'sd-list-item__column--no-border'), key: index }, item.itemRow.map(function (e, i) {
|
97
|
+
return item.itemRow.length <= 1 ? (React.createElement(React.Fragment, { key: i }, e.content)) : (React.createElement("div", { className: "sd-list-item__row", key: i }, e.content));
|
98
|
+
})));
|
101
99
|
}),
|
102
100
|
React.createElement("div", { className: "sd-list-item__action-menu", onClick: this.onActionMenuClick }, this.props.action)));
|
103
101
|
};
|
@@ -111,8 +109,8 @@ var ContentList = /** @class */ (function (_super) {
|
|
111
109
|
}
|
112
110
|
ContentList.prototype.render = function () {
|
113
111
|
var classes = (0, classnames_1.default)('sd-list-item-group sd-list-item-group--space-between-items');
|
114
|
-
return (React.createElement("div", { role:
|
115
|
-
return React.createElement(ContentListItem, { key: index, itemColum: item.itemColum, locked: item.locked, action: item.action, loading: item.loading, activated: item.activated, selected: item.selected, archived: item.archived, onClick: item.onClick, onDoubleClick: item.onDoubleClick });
|
112
|
+
return (React.createElement("div", { role: "list", className: classes }, this.props.items.map(function (item, index) {
|
113
|
+
return (React.createElement(ContentListItem, { key: index, itemColum: item.itemColum, locked: item.locked, action: item.action, loading: item.loading, activated: item.activated, selected: item.selected, archived: item.archived, onClick: item.onClick, onDoubleClick: item.onDoubleClick }));
|
116
114
|
})));
|
117
115
|
};
|
118
116
|
return ContentList;
|